R5 Final QA

This page is part of the FHIR Specification (v5.0.0-draft-final: Final QA Preview for R5 - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example PlanDefinition/low-suicide-risk-order-set (Turtle)

Clinical Decision Support Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

Low Suicide Risk Order Set

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

[a fhir:PlanDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "low-suicide-risk-order-set"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Id: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">PlanDefinition/low-suicide-risk-order-set</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Identifier: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  <b>value: </b>\n                  <span>mmi:low-suicide-risk-order-set</span>\n               </td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Title: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">Low Suicide Risk Order Set</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Status: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">draft</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Description: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">Orders to be applied to a patient characterized as low suicide risk.</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Purpose: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">This order set helps ensure consistent application of appropriate orders for the care of low suicide risk patients.</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Usage: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">This order set should be applied after assessing a patient for suicide risk, when the findings of that assessment indicate the patient has low suicide risk.</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Context: </b>\n               </td>\n            </tr>\n            <tr style=\"vertical-align: top;\">\n               <td style=\"padding-right: 25px;\">\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>system: </b>\n                     <span>http://terminology.hl7.org/CodeSystem/usage-context-type</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>code: </b>\n                     <span>age</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>value: </b>\n                     <br/>\n                     <span>\n                        <span>\n                           <span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>system: </b>\n                                 <span>https://meshb.nlm.nih.gov</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>code: </b>\n                                 <span>D000328</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>display: </b>\n                                 <span>Adult</span>\n                              </span>\n                           </span>\n                        </span>\n                     </span>\n                  </p>\n               </td>\n            </tr>\n         </table>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Context: </b>\n               </td>\n            </tr>\n            <tr style=\"vertical-align: top;\">\n               <td style=\"padding-right: 25px;\">\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>system: </b>\n                     <span>http://terminology.hl7.org/CodeSystem/usage-context-type</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>code: </b>\n                     <span>focus</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>value: </b>\n                     <br/>\n                     <span>\n                        <span>\n                           <span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>system: </b>\n                                 <span>http://snomed.info/sct</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>code: </b>\n                                 <span>87512008</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>display: </b>\n                                 <span>Mild major depression</span>\n                              </span>\n                           </span>\n                        </span>\n                     </span>\n                  </p>\n               </td>\n            </tr>\n         </table>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Context: </b>\n               </td>\n            </tr>\n            <tr style=\"vertical-align: top;\">\n               <td style=\"padding-right: 25px;\">\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>system: </b>\n                     <span>http://terminology.hl7.org/CodeSystem/usage-context-type</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>code: </b>\n                     <span>focus</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>value: </b>\n                     <br/>\n                     <span>\n                        <span>\n                           <span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>system: </b>\n                                 <span>http://snomed.info/sct</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>code: </b>\n                                 <span>40379007</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>display: </b>\n                                 <span>Major depression, recurrent, mild</span>\n                              </span>\n                           </span>\n                        </span>\n                     </span>\n                  </p>\n               </td>\n            </tr>\n         </table>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Context: </b>\n               </td>\n            </tr>\n            <tr style=\"vertical-align: top;\">\n               <td style=\"padding-right: 25px;\">\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>system: </b>\n                     <span>http://terminology.hl7.org/CodeSystem/usage-context-type</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>code: </b>\n                     <span>focus</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>value: </b>\n                     <br/>\n                     <span>\n                        <span>\n                           <span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>system: </b>\n                                 <span>http://snomed.info/sct</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>code: </b>\n                                 <span>394687007</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>display: </b>\n                                 <span>Low suicide risk</span>\n                              </span>\n                           </span>\n                        </span>\n                     </span>\n                  </p>\n               </td>\n            </tr>\n         </table>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Context: </b>\n               </td>\n            </tr>\n            <tr style=\"vertical-align: top;\">\n               <td style=\"padding-right: 25px;\">\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>system: </b>\n                     <span>http://terminology.hl7.org/CodeSystem/usage-context-type</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>code: </b>\n                     <span>focus</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>value: </b>\n                     <br/>\n                     <span>\n                        <span>\n                           <span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>system: </b>\n                                 <span>http://snomed.info/sct</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>code: </b>\n                                 <span>225337009</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>display: </b>\n                                 <span>Suicide risk assessment</span>\n                              </span>\n                           </span>\n                        </span>\n                     </span>\n                  </p>\n               </td>\n            </tr>\n         </table>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Context: </b>\n               </td>\n            </tr>\n            <tr style=\"vertical-align: top;\">\n               <td style=\"padding-right: 25px;\">\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>system: </b>\n                     <span>http://terminology.hl7.org/CodeSystem/usage-context-type</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>code: </b>\n                     <span>user</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>value: </b>\n                     <br/>\n                     <span>\n                        <span>\n                           <span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>system: </b>\n                                 <span>http://snomed.info/sct</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>code: </b>\n                                 <span>309343006</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>display: </b>\n                                 <span>Physician</span>\n                              </span>\n                           </span>\n                        </span>\n                     </span>\n                  </p>\n               </td>\n            </tr>\n         </table>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Context: </b>\n               </td>\n            </tr>\n            <tr style=\"vertical-align: top;\">\n               <td style=\"padding-right: 25px;\">\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>system: </b>\n                     <span>http://terminology.hl7.org/CodeSystem/usage-context-type</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>code: </b>\n                     <span>venue</span>\n                  </p>\n                  <p style=\"padding-left: 25px; margin-top: 5px; margin-bottom: 5px;\">\n                     <b>value: </b>\n                     <br/>\n                     <span>\n                        <span>\n                           <span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>system: </b>\n                                 <span>http://snomed.info/sct</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>code: </b>\n                                 <span>440655000</span>\n                                 <br/>\n                              </span>\n                              <span style=\"padding-left: 25px;\">\n                                 <b>display: </b>\n                                 <span>Outpatient environment</span>\n                              </span>\n                           </span>\n                        </span>\n                     </span>\n                  </p>\n               </td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Topic: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  <span>\n                     <b>text: </b>\n                     <span>Suicide risk assessment</span>\n                  </span>\n               </td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Contributor: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  <b>\n                     <span>author</span>:\n                  </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 50px; padding-right: 25px;\">Motive Medical Intelligence</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Library: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  <b>reference: </b>\n                  <span>Library/suiciderisk-orderset-logic</span>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">\n                  <b>display: </b>\n                  <span>SuicideRiskLogic</span>\n               </td>\n            </tr>\n         </table>\n         <p/>\n         <h2>Actions</h2>\n         <p style=\"width: 100%;\" class=\"hierarchy\">\n            <span>\n               <b>Step: </b>\n               <br/>\n               <span style=\"padding-left: 25px;\">\n                  <b>title: </b>\n                  <span>Suicide Risk Assessment and Outpatient Management</span>\n                  <br/>\n               </span>\n               <span style=\"padding-left: 25px;\">\n                  <span>\n                     <b>Step: </b>\n                     <br/>\n                     <span style=\"padding-left: 50px;\">\n                        <b>title: </b>\n                        <span>Consults and Referrals</span>\n                        <br/>\n                     </span>\n                     <span style=\"padding-left: 50px;\">\n                        <span>\n                           <b>Step: </b>\n                           <br/>\n                           <span style=\"padding-left: 75px;\">\n                              <b>text: </b>\n                              <span>Refer to outpatient mental health program for evaluation and treatment of mental health conditions now</span>\n                              <br/>\n                           </span>\n                           <span style=\"padding-left: 75px;\">\n                              <b>condition: </b>\n                              <br/>\n                              <span style=\"padding-left: 100px;\">\n                                 <b>reference: </b>\n                                 <br/>\n                                 <span style=\"padding-left: 125px;\">#referralToMentalHealthCare</span>\n                                 <span>\n                                    <span style=\"padding-left: 75px;\">\n                                       <br/>\n                                       <span style=\"padding-left: 100px;\">\n                                          <b>description: </b>\n                                          <span>refer to primary care mental-health integrated care program for evaluation and treatment of mental health conditions now</span>\n                                          <br/>\n                                       </span>\n                                       <span style=\"padding-left: 100px;\">\n                                          <b>category: </b>\n                                          <span>referral</span>\n                                          <br/>\n                                       </span>\n                                    </span>\n                                 </span>\n                              </span>\n                           </span>\n                           <span style=\"padding-left: 50px;\"/>\n                        </span>\n                     </span>\n                  </span>\n                  <span>\n                     <b>Step: </b>\n                     <br/>\n                     <span style=\"padding-left: 50px;\">\n                        <b>title: </b>\n                        <span>Medications</span>\n                        <br/>\n                     </span>\n                     <span style=\"padding-left: 50px;\">\n                        <span>\n                           <b>Step: </b>\n                           <br/>\n                           <span style=\"padding-left: 75px;\">\n                              <b>title: </b>\n                              <span>First-Line Antidepressants</span>\n                              <br/>\n                           </span>\n                           <span style=\"padding-left: 75px;\">\n                              <span>\n                                 <b>Step: </b>\n                                 <br/>\n                                 <span style=\"padding-left: 100px;\">\n                                    <b>title: </b>\n                                    <span>Selective Serotonin Reuptake Inhibitors (Choose a mazimum of one or document reasons for exception)</span>\n                                    <br/>\n                                 </span>\n                                 <span style=\"padding-left: 100px;\">\n                                    <span>\n                                       <b>Step: </b>\n                                       <br/>\n                                       <span style=\"padding-left: 125px;\">\n                                          <b>text: </b>\n                                          <span>citalopram 20 mg tablet 1 tablet oral 1 time daily now (30 table; 3 refills)</span>\n                                          <br/>\n                                       </span>\n                                       <span style=\"padding-left: 125px;\">\n                                          <b>condition: </b>\n                                          <br/>\n                                          <span style=\"padding-left: 150px;\">\n                                             <b>reference: </b>\n                                             <br/>\n                                             <span style=\"padding-left: 175px;\">#citalopramPrescription</span>\n                                             <span/>\n                                             <span>\n                                                <span style=\"padding-left: 125px;\">\n                                                   <br/>\n                                                   <span style=\"padding-left: 150px;\">\n                                                      <b>category: </b>\n                                                      <span>drug</span>\n                                                      <br/>\n                                                   </span>\n                                                </span>\n                                             </span>\n                                             <span/>\n                                             <span/>\n                                          </span>\n                                       </span>\n                                       <span style=\"padding-left: 100px;\"/>\n                                    </span>\n                                    <span>\n                                       <b>Step: </b>\n                                       <br/>\n                                       <span style=\"padding-left: 125px;\">\n                                          <b>text: </b>\n                                          <span>escitalopram 10 mg tablet 1 tablet oral 1 time daily now (30 tablet; 3 refills)</span>\n                                          <br/>\n                                       </span>\n                                       <span style=\"padding-left: 100px;\"/>\n                                    </span>\n                                    <span>\n                                       <b>Step: </b>\n                                       <br/>\n                                       <span style=\"padding-left: 125px;\">\n                                          <b>text: </b>\n                                          <span>fluoxetine 20 mg capsule 1 capsule oral 1 time daily now (30 tablet; 3 refills)</span>\n                                          <br/>\n                                       </span>\n                                       <span style=\"padding-left: 100px;\"/>\n                                    </span>\n                                    <span>\n                                       <b>Step: </b>\n                                       <br/>\n                                       <span style=\"padding-left: 125px;\">\n                                          <b>text: </b>\n                                          <span>paroxetine 20 mg tablet 1 tablet oral 1 time daily now (30 tablet; 3 refills)</span>\n                                          <br/>\n                                       </span>\n                                       <span style=\"padding-left: 100px;\"/>\n                                    </span>\n                                    <span>\n                                       <b>Step: </b>\n                                       <br/>\n                                       <span style=\"padding-left: 125px;\">\n                                          <b>text: </b>\n                                          <span>sertraline 50 mg tablet 1 tablet oral 1 time daily now (30 tablet; 3 refills)</span>\n                                          <br/>\n                                       </span>\n                                       <span style=\"padding-left: 100px;\"/>\n                                    </span>\n                                 </span>\n                              </span>\n                              <span>\n                                 <b>Step: </b>\n                                 <br/>\n                                 <span style=\"padding-left: 125px;\">\n                                    <b>text: </b>\n                                    <span>Dopamine Norepinephrine Reuptake Inhibitors (Choose a maximum of one or document reasons for exception)</span>\n                                    <br/>\n                                 </span>\n                                 <span style=\"padding-left: 75px;\"/>\n                              </span>\n                              <span>\n                                 <b>Step: </b>\n                                 <br/>\n                                 <span style=\"padding-left: 100px;\">\n                                    <b>text: </b>\n                                    <span>Serotonin Norepinephrine Reuptake Inhibitors (Choose a maximum of one or doument reasons for exception)</span>\n                                    <br/>\n                                 </span>\n                                 <span style=\"padding-left: 75px;\"/>\n                              </span>\n                              <span>\n                                 <b>Step: </b>\n                                 <br/>\n                                 <span style=\"padding-left: 100px;\">\n                                    <b>text: </b>\n                                    <span>Norepinephrine-Serotonin Modulators (Choose a maximum of one or document reasons for exception)</span>\n                                    <br/>\n                                 </span>\n                                 <span style=\"padding-left: 100px;\"/>\n                              </span>\n                           </span>\n                        </span>\n                     </span>\n                  </span>\n               </span>\n            </span>\n         </p>\n      </div>"
  ] ; # 
  fhir:contained ( [
     a fhir:ActivityDefinition ;
     fhir:id [ fhir:v "referralToMentalHealthCare" ] ;
     fhir:status [ fhir:v "draft" ] ;
     fhir:description [ fhir:v "refer to primary care mental-health integrated care program for evaluation and treatment of mental health conditions now" ] ;
     fhir:kind [ fhir:v "ServiceRequest" ] ; #   Kind indicates the type of resource that is defined by this activity, a ServiceRequest in this case  
     fhir:code [
       fhir:coding ( [
         a sct:306206005 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "306206005" ]
       ] ) ;
       fhir:text [ fhir:v "Referral to service (procedure)" ]
     ] ;
     fhir:timing [
       a fhir:Timing ;
       fhir:event ( [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-expression"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:Expression ;
             fhir:language [ fhir:v "text/cql" ] ;
             fhir:expression [ fhir:v "Now()" ]
           ]
         ] ) #   The expression here specifies the value for the timing of the resulting resource. In this case, referralRequest.fulfillmentTime.start  
       ] )
     ] ;
     fhir:participant ( [
       fhir:type [ fhir:v "practitioner" ]
     ] )
  ] [
     a fhir:ActivityDefinition ;
     fhir:id [ fhir:v "citalopramPrescription" ] ;
     fhir:status [ fhir:v "draft" ] ;
     fhir:kind [ fhir:v "MedicationRequest" ] ;
     fhir:product [
       a fhir:Reference ;
       fhir:reference [ fhir:v "#citalopramMedication" ]
     ] ;
     fhir:dosage ( [
       fhir:text [ fhir:v "1 tablet oral 1 time daily" ] ;
       fhir:timing [
         fhir:repeat [
           fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
           fhir:period [ fhir:v "1"^^xsd:decimal ] ;
           fhir:periodUnit [ fhir:v "d" ]
         ]
       ] ;
       fhir:route [
         fhir:coding ( [
           fhir:code [ fhir:v "26643006" ] ;
           fhir:display [ fhir:v "Oral route (qualifier value)" ]
         ] ) ;
         fhir:text [ fhir:v "Oral route (qualifier value)" ]
       ] ;
       fhir:doseAndRate ( [
         fhir:type [
           fhir:coding ( [
             fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "ordered" ] ;
             fhir:display [ fhir:v "Ordered" ]
           ] )
         ] ;
         fhir:dose [
           a fhir:Quantity ;
           fhir:value [ fhir:v "1"^^xsd:decimal ] ;
           fhir:unit [ fhir:v "{tbl}" ]
         ]
       ] )
     ] ) ;
     fhir:dynamicValue ( [
       fhir:path [ fhir:v "dispenseRequest.numberOfRepeatsAllowed" ] ;
       fhir:expression [
         fhir:language [ fhir:v "text/cql" ] ;
         fhir:expression [ fhir:v "3" ]
       ]
     ] [
       fhir:path [ fhir:v "dispenseRequest.quantity" ] ;
       fhir:expression [
         fhir:language [ fhir:v "text/cql" ] ;
         fhir:expression [ fhir:v "30 '{tbl}'" ]
       ]
     ] )
  ] [
     a fhir:Medication ;
     fhir:id [ fhir:v "citalopramMedication" ] ;
     fhir:code [
       fhir:coding ( [
         fhir:system [ fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "200371" ]
       ] ) ;
       fhir:text [ fhir:v "citalopram" ]
     ] ;
     fhir:doseForm [
       fhir:coding ( [
         a sct:385055001 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "385055001" ] ;
         fhir:display [ fhir:v "Tablet dose form" ]
       ] ) ;
       fhir:text [ fhir:v "Tablet dose form" ]
     ] ;
     fhir:ingredient ( [
       fhir:item [
         fhir:reference [
           fhir:reference [ fhir:v "#citalopramSubstance" ]
         ]
       ] ;
       fhir:strength [
         a fhir:Ratio ;
         fhir:numerator [
           fhir:value [ fhir:v "20"^^xsd:decimal ] ;
           fhir:unit [ fhir:v "mg" ]
         ] ;
         fhir:denominator [
           fhir:value [ fhir:v "1"^^xsd:decimal ] ;
           fhir:unit [ fhir:v "{tbl}" ]
         ]
       ]
     ] )
  ] [
     a fhir:Substance ;
     fhir:id [ fhir:v "citalopramSubstance" ] ;
     fhir:instance [ fhir:v "false"^^xsd:boolean ] ;
     fhir:code [
       fhir:concept [
         fhir:coding ( [
           fhir:system [ fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "2556" ]
         ] ) ;
         fhir:text [ fhir:v "citalopram" ]
       ]
     ]
  ] ) ; # 
  fhir:url [ fhir:v "http://motivemi.com/artifacts/PlanDefinition/low-suicide-risk-order-set"^^xsd:anyURI] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.11.7" ]
  ] [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [ fhir:v "http://motivemi.com/artifacts"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "mmi:low-suicide-risk-order-set" ]
  ] ) ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "LowSuicideRiskOrderSet"] ; # 
  fhir:title [ fhir:v "Low Suicide Risk Order Set"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2015-08-15"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "Motive Medical Intelligence"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "415-362-4007" ] ;
       fhir:use [ fhir:v "work" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "info@motivemi.com" ] ;
       fhir:use [ fhir:v "work" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Orders to be applied to a patient characterized as low suicide risk."] ; # 
  fhir:useContext ( [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "age" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [ fhir:v "https://meshb.nlm.nih.gov"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "D000328" ] ;
         fhir:display [ fhir:v "Adult" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "focus" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:87512008 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "87512008" ] ;
         fhir:display [ fhir:v "Mild major depression" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "focus" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:40379007 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "40379007" ] ;
         fhir:display [ fhir:v "Major depression, recurrent, mild" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "focus" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:394687007 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "394687007" ] ;
         fhir:display [ fhir:v "Low suicide risk" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "focus" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:225337009 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "225337009" ] ;
         fhir:display [ fhir:v "Suicide risk assessment" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "user" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:309343006 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "309343006" ] ;
         fhir:display [ fhir:v "Physician" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "venue" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:440655000 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "440655000" ] ;
         fhir:display [ fhir:v "Outpatient environment" ]
       ] )
     ]
  ] ) ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "US" ]
     ] )
  ] ) ; # 
  fhir:purpose [ fhir:v "This order set helps ensure consistent application of appropriate orders for the care of low suicide risk patients."] ; # 
  fhir:usage [ fhir:v "This order set should be applied after assessing a patient for suicide risk, when the findings of that assessment indicate the patient has low suicide risk."] ; # 
  fhir:copyright [ fhir:v "© Copyright 2016 Motive Medical Intelligence. All rights reserved."] ; # 
  fhir:approvalDate [ fhir:v "2016-03-12"^^xsd:date] ; # 
  fhir:lastReviewDate [ fhir:v "2016-08-15"^^xsd:date] ; # 
  fhir:effectivePeriod [
     fhir:start [ fhir:v "2016-01-01"^^xsd:date ] ;
     fhir:end [ fhir:v "2017-12-31"^^xsd:date ]
  ] ; # 
  fhir:topic ( [
     fhir:text [ fhir:v "Suicide risk assessment" ]
  ] ) ; # 
  fhir:author ( [
     fhir:name [ fhir:v "Motive Medical Intelligence" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "415-362-4007" ] ;
       fhir:use [ fhir:v "work" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "info@motivemi.com" ] ;
       fhir:use [ fhir:v "work" ]
     ] )
  ] ) ; # 
  fhir:relatedArtifact ( [
     fhir:type [ fhir:v "derived-from" ] ;
     fhir:display [ fhir:v "Practice Guideline for the Treatment of Patients with Major Depressive Disorder" ] ;
     fhir:document [
       fhir:url [ fhir:v "http://psychiatryonline.org/pb/assets/raw/sitewide/practice_guidelines/guidelines/mdd.pdf"^^xsd:anyURI ]
     ]
  ] [
     fhir:type [ fhir:v "composed-of" ] ;
     fhir:resource [
       fhir:v "http://example.org/fhir/ActivityDefinition/referralPrimaryCareMentalHealth"^^xsd:anyURI ;
       fhir:link <http://example.org/fhir/ActivityDefinition/referralPrimaryCareMentalHealth>
     ]
  ] [
     fhir:type [ fhir:v "composed-of" ] ;
     fhir:resource [
       fhir:v "http://example.org/fhir/ActivityDefinition/citalopramPrescription"^^xsd:anyURI ;
       fhir:link <http://example.org/fhir/ActivityDefinition/citalopramPrescription>
     ]
  ] ) ; # 
  fhir:library ( [
     fhir:v "http://example.org/fhir/Library/suiciderisk-orderset-logic"^^xsd:anyURI ;
     fhir:link <http://example.org/fhir/Library/suiciderisk-orderset-logic>
  ] ) ; # 
  fhir:action ( [
     fhir:title [ fhir:v "Suicide Risk Assessment and Outpatient Management" ] ;
     fhir:action ( [
       fhir:title [ fhir:v "Consults and Referrals" ] ;
       fhir:groupingBehavior [ fhir:v "logical-group" ] ;
       fhir:selectionBehavior [ fhir:v "any" ] ;
       fhir:action ( [
         fhir:textEquivalent [ fhir:v "Refer to outpatient mental health program for evaluation and treatment of mental health conditions now" ] ;
         fhir:definition [ fhir:v "#referralToMentalHealthCare"^^xsd:anyURI ] ;
         fhir:dynamicValue ( [
           fhir:path [ fhir:v "timing.event" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql" ] ;
             fhir:expression [ fhir:v "Now()" ]
           ]
         ] [
           fhir:path [ fhir:v "specialty" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql" ] ;
             fhir:expression [ fhir:v "Code '261QM0850X' from SuicideRiskLogic.\"NUCC Provider Taxonomy\" display 'Adult Mental Health'" ]
           ] #   This expression is code selector syntax in CQL, returning the code from the NPI provider taxonomy  
         ] [
           fhir:path [ fhir:v "occurrenceDateTime" ] ; #   The fulfillmentTime element of the resulting ServiceRequest will be set to the result of the ServiceRequestFulfillmentTime expression defined in the SuicideRiskLogic library  
           fhir:expression [
             fhir:language [ fhir:v "text/cql" ] ;
             fhir:expression [ fhir:v "SuicideRiskLogic.ServiceRequestFulfillmentTime" ]
           ]
         ] [
           fhir:path [ fhir:v "subject" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql" ] ;
             fhir:expression [ fhir:v "SuicideRiskLogic.Patient" ]
           ]
         ] [
           fhir:path [ fhir:v "requester.agent" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql" ] ;
             fhir:expression [ fhir:v "SuicideRiskLogic.Practitioner" ]
           ]
         ] [
           fhir:path [ fhir:v "reasonCode" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql" ] ;
             fhir:expression [ fhir:v "SuicideRiskLogic.RiskAssessmentScore" ]
           ]
         ] [
           fhir:path [ fhir:v "reasonReference" ] ;
           fhir:expression [
             fhir:language [ fhir:v "text/cql" ] ;
             fhir:expression [ fhir:v "SuicideRiskLogic.RiskAssessment" ]
           ]
         ] ) #   These expressions will be evaluated with the library referenced above as an include  
       ] )
     ] [
       fhir:title [ fhir:v "Medications" ] ;
       fhir:groupingBehavior [ fhir:v "logical-group" ] ;
       fhir:selectionBehavior [ fhir:v "at-most-one" ] ;
       fhir:action ( [
         fhir:title [ fhir:v "First-Line Antidepressants" ] ;
         fhir:documentation ( [
           fhir:type [ fhir:v "citation" ] ;
           fhir:document [
             fhir:extension ( [
               fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-qualityOfEvidence"^^xsd:anyURI ] ;
               fhir:value [
                 a fhir:CodeableConcept ;
                 fhir:coding ( [
                   fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/evidence-quality"^^xsd:anyURI ] ;
                   fhir:code [ fhir:v "high" ]
                 ] ) ;
                 fhir:text [ fhir:v "High Quality" ]
               ]
             ] ) ;
             fhir:contentType [ fhir:v "text/html" ] ;
             fhir:url [ fhir:v "http://psychiatryonline.org/pb/assets/raw/sitewide/practice_guidelines/guidelines/mdd.pdf"^^xsd:anyURI ] ;
             fhir:title [ fhir:v "Practice Guideline for the Treatment of Patients with Major Depressive Disorder" ]
           ]
         ] ) ;
         fhir:groupingBehavior [ fhir:v "logical-group" ] ;
         fhir:selectionBehavior [ fhir:v "at-most-one" ] ;
         fhir:action ( [
           fhir:title [ fhir:v "Selective Serotonin Reuptake Inhibitors (Choose a mazimum of one or document reasons for exception)" ] ;
           fhir:documentation ( [
             fhir:type [ fhir:v "citation" ] ;
             fhir:document [
               fhir:contentType [ fhir:v "text/html" ] ;
               fhir:url [ fhir:v "http://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=6daeb45c-451d-b135-bf8f-2d6dff4b6b01"^^xsd:anyURI ] ;
               fhir:title [ fhir:v "National Library of Medicine. DailyMed website. CITALOPRAM- citalopram hydrobromide tablet, film coated." ]
             ]
           ] ) ;
           fhir:groupingBehavior [ fhir:v "logical-group" ] ;
           fhir:selectionBehavior [ fhir:v "at-most-one" ] ;
           fhir:action ( [
             fhir:textEquivalent [ fhir:v "citalopram 20 mg tablet 1 tablet oral 1 time daily now (30 table; 3 refills)" ] ;
             fhir:definition [ fhir:v "#citalopramPrescription"^^xsd:anyURI ] ;
             fhir:dynamicValue ( [
               fhir:path [ fhir:v "status" ] ;
               fhir:expression [
                 fhir:language [ fhir:v "text/cql" ] ;
                 fhir:expression [ fhir:v "'draft'" ]
               ]
             ] [
               fhir:path [ fhir:v "patient" ] ;
               fhir:expression [
                 fhir:language [ fhir:v "text/cql" ] ;
                 fhir:expression [ fhir:v "SuicideRiskLogic.Patient" ]
               ]
             ] [
               fhir:path [ fhir:v "prescriber" ] ;
               fhir:expression [
                 fhir:language [ fhir:v "text/cql" ] ;
                 fhir:expression [ fhir:v "SuicideRiskLogic.Practitioner" ]
               ]
             ] [
               fhir:path [ fhir:v "reasonCode" ] ;
               fhir:expression [
                 fhir:language [ fhir:v "text/cql" ] ;
                 fhir:expression [ fhir:v "SuicideRiskLogic.RiskAssessmentScore" ]
               ]
             ] [
               fhir:path [ fhir:v "reasonReference" ] ;
               fhir:expression [
                 fhir:language [ fhir:v "text/cql" ] ;
                 fhir:expression [ fhir:v "SuicideRiskLogic.RiskAssessment" ]
               ]
             ] )
           ] [
             fhir:textEquivalent [ fhir:v "escitalopram 10 mg tablet 1 tablet oral 1 time daily now (30 tablet; 3 refills)" ]
           ] [
             fhir:textEquivalent [ fhir:v "fluoxetine 20 mg capsule 1 capsule oral 1 time daily now (30 tablet; 3 refills)" ]
           ] [
             fhir:textEquivalent [ fhir:v "paroxetine 20 mg tablet 1 tablet oral 1 time daily now (30 tablet; 3 refills)" ]
           ] [
             fhir:textEquivalent [ fhir:v "sertraline 50 mg tablet 1 tablet oral 1 time daily now (30 tablet; 3 refills)" ]
           ] )
         ] [
           fhir:textEquivalent [ fhir:v "Dopamine Norepinephrine Reuptake Inhibitors (Choose a maximum of one or document reasons for exception)" ]
         ] [
           fhir:textEquivalent [ fhir:v "Serotonin Norepinephrine Reuptake Inhibitors (Choose a maximum of one or doument reasons for exception)" ]
         ] [
           fhir:textEquivalent [ fhir:v "Norepinephrine-Serotonin Modulators (Choose a maximum of one or document reasons for exception)" ]
         ] )
       ] )
     ] )
  ] )] . #   Actions  

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.