STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Orderset-example.ttl

Raw Turtle, JSON-LD

Example of orderset

@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 xs: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir//OrderSet/example> a fhir:OrderSet;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.contained [
     fhir:index 0;
     fhir:ReferralRequest [
       fhir:index 0;
       fhir:Resource.id [ fhir:value "referralRequest" ];
       fhir:ReferralRequest.status [ fhir:value "active" ];
       fhir:ReferralRequest.category [ fhir:value "request" ];
       fhir:ReferralRequest.type [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "306206005" ]         ]       ];
       fhir:ReferralRequest.specialty [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "261QM0850X" ]         ]       ];
       fhir:ReferralRequest.description [ fhir:value "refer to primary care-mental health integrated care program for evaluation and treatment of mental health conditions now" ];
       fhir:ReferralRequest.serviceRequested [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "385893007" ]         ]       ]     ]
  ];
  fhir:DomainResource.contained [
     fhir:index 1;
     fhir:MedicationOrder [
       fhir:index 0;
       fhir:Resource.id [ fhir:value "citalopramPrescription" ];
       fhir:MedicationOrder.medicationReference [
         fhir:Reference.reference [ fhir:value "#citalopramMedication" ]       ];
       fhir:MedicationOrder.dosageInstruction [
         fhir:index 0;
         fhir:MedicationOrder.dosageInstruction.text [ fhir:value "1 tablet oral 1 time daily" ];
         fhir:MedicationOrder.dosageInstruction.timing [
           fhir:Timing.repeat [
             fhir:Timing.repeat.frequency [ fhir:value "1"^^xs:int ];
             fhir:Timing.repeat.period [ fhir:value "1"^^xs:decimal ];
             fhir:Timing.repeat.periodUnit [ fhir:value "d" ]           ]         ];
         fhir:MedicationOrder.dosageInstruction.route [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             fhir:Coding.code [ fhir:value "26643006" ];
             fhir:Coding.display [ fhir:value "Oral route (qualifier value)" ]           ];
           fhir:CodeableConcept.text [ fhir:value "Oral route (qualifier value)" ]         ];
         fhir:MedicationOrder.dosageInstruction.doseQuantity [
           fhir:Quantity.value [ fhir:value "1"^^xs:decimal ];
           fhir:Quantity.unit [ fhir:value "{tbl}" ]         ]       ];
       fhir:MedicationOrder.dispenseRequest [
         fhir:MedicationOrder.dispenseRequest.numberOfRepeatsAllowed [ fhir:value "3"^^xs:int ];
         fhir:MedicationOrder.dispenseRequest.quantity [
           fhir:Quantity.value [ fhir:value "30"^^xs:decimal ];
           fhir:Quantity.unit [ fhir:value "{tbl}" ]         ]       ]     ]
  ];
  fhir:DomainResource.contained [
     fhir:index 2;
     fhir:Medication [
       fhir:index 0;
       fhir:Resource.id [ fhir:value "citalopramMedication" ];
       fhir:Medication.code [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "200371" ]         ];
         fhir:CodeableConcept.text [ fhir:value "citalopram" ]       ];
       fhir:Medication.product [
         fhir:Medication.product.form [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             fhir:Coding.code [ fhir:value "385055001" ];
             fhir:Coding.display [ fhir:value "Tablet dose form" ]           ];
           fhir:CodeableConcept.text [ fhir:value "Tablet dose form" ]         ];
         fhir:Medication.product.ingredient [
           fhir:index 0;
           fhir:Medication.product.ingredient.itemReference [
             fhir:Reference.reference [ fhir:value "#citalopramSubstance" ]           ];
           fhir:Medication.product.ingredient.amount [
             fhir:Ratio.numerator [
               fhir:Quantity.value [ fhir:value "20"^^xs:decimal ];
               fhir:Quantity.unit [ fhir:value "mg" ]             ];
             fhir:Ratio.denominator [
               fhir:Quantity.value [ fhir:value "1"^^xs:decimal ];
               fhir:Quantity.unit [ fhir:value "{tbl}" ]             ]           ]         ]       ]     ]
  ];
  fhir:DomainResource.contained [
     fhir:index 3;
     fhir:Substance [
       fhir:index 0;
       fhir:Resource.id [ fhir:value "citalopramSubstance" ];
       fhir:Substance.code [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "2556" ]         ];
         fhir:CodeableConcept.text [ fhir:value "citalopram" ]       ]     ]
  ];
  fhir:OrderSet.moduleMetadata [
     fhir:ModuleMetadata.identifier [
       fhir:index 0;
       fhir:Identifier.use [ fhir:value "official" ];
       fhir:Identifier.value [ fhir:value "mmi:low-suicide-risk-order-set" ]     ];
     fhir:ModuleMetadata.version [ fhir:value "1.0.0" ];
     fhir:ModuleMetadata.title [ fhir:value "Low Suicide Risk Order Set" ];
     fhir:ModuleMetadata.type [ fhir:value "order-set" ];
     fhir:ModuleMetadata.status [ fhir:value "draft" ];
     fhir:ModuleMetadata.description [ fhir:value "..." ];
     fhir:ModuleMetadata.publicationDate [ fhir:value "2015-08-15"^^xs:date ];
     fhir:ModuleMetadata.coverage [
       fhir:index 0;
       fhir:ModuleMetadata.coverage.focus [
         fhir:Coding.code [ fhir:value "patient-age-group" ]       ];
       fhir:ModuleMetadata.coverage.value [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "133936004" ];
           fhir:Coding.display [ fhir:value "Adult" ]         ]       ]     ];
     fhir:ModuleMetadata.coverage [
       fhir:index 1;
       fhir:ModuleMetadata.coverage.focus [
         fhir:Coding.code [ fhir:value "clinical-focus" ]       ];
       fhir:ModuleMetadata.coverage.value [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "87512008" ];
           fhir:Coding.display [ fhir:value "Mild major depression" ]         ]       ]     ];
     fhir:ModuleMetadata.coverage [
       fhir:index 2;
       fhir:ModuleMetadata.coverage.focus [
         fhir:Coding.code [ fhir:value "clinical-focus" ]       ];
       fhir:ModuleMetadata.coverage.value [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "40379007" ];
           fhir:Coding.display [ fhir:value "Major depression, recurrent, mild" ]         ]       ]     ];
     fhir:ModuleMetadata.coverage [
       fhir:index 3;
       fhir:ModuleMetadata.coverage.focus [
         fhir:Coding.code [ fhir:value "clinical-focus" ]       ];
       fhir:ModuleMetadata.coverage.value [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "394687007" ];
           fhir:Coding.display [ fhir:value "Low suicide risk" ]         ]       ]     ];
     fhir:ModuleMetadata.coverage [
       fhir:index 4;
       fhir:ModuleMetadata.coverage.focus [
         fhir:Coding.code [ fhir:value "clinical-focus" ]       ];
       fhir:ModuleMetadata.coverage.value [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "225337009" ];
           fhir:Coding.display [ fhir:value "Suicide risk assessment" ]         ]       ]     ];
     fhir:ModuleMetadata.coverage [
       fhir:index 5;
       fhir:ModuleMetadata.coverage.focus [
         fhir:Coding.code [ fhir:value "clinical-venue" ]       ];
       fhir:ModuleMetadata.coverage.value [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "440655000" ];
           fhir:Coding.display [ fhir:value "Outpatient environment" ]         ]       ]     ];
     fhir:ModuleMetadata.coverage [
       fhir:index 6;
       fhir:ModuleMetadata.coverage.focus [
         fhir:Coding.code [ fhir:value "target-user" ]       ];
       fhir:ModuleMetadata.coverage.value [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.code [ fhir:value "309343006" ];
           fhir:Coding.display [ fhir:value "Physician" ]         ]       ]     ];
     fhir:ModuleMetadata.topic [
       fhir:index 0;
       fhir:CodeableConcept.text [ fhir:value "Chlamydia Screeening" ]     ];
     fhir:ModuleMetadata.contributor [
       fhir:index 0;
       fhir:ModuleMetadata.contributor.type [ fhir:value "author" ];
       fhir:ModuleMetadata.contributor.name [ fhir:value "Motive Medical Intelligence" ];
       fhir:ModuleMetadata.contributor.contact [
         fhir:index 0;
         fhir:ModuleMetadata.contributor.contact.telecom [
           fhir:index 0;
           fhir:ContactPoint.system [ fhir:value "phone" ];
           fhir:ContactPoint.value [ fhir:value "415-362-4007" ];
           fhir:ContactPoint.use [ fhir:value "work" ]         ];
         fhir:ModuleMetadata.contributor.contact.telecom [
           fhir:index 1;
           fhir:ContactPoint.system [ fhir:value "email" ];
           fhir:ContactPoint.value [ fhir:value "info@motivemi.com" ];
           fhir:ContactPoint.use [ fhir:value "work" ]         ]       ]     ];
     fhir:ModuleMetadata.publisher [ fhir:value "Motive Medical Intelligence" ];
     fhir:ModuleMetadata.contact [
       fhir:index 0;
       fhir:ModuleMetadata.contact.telecom [
         fhir:index 0;
         fhir:ContactPoint.system [ fhir:value "phone" ];
         fhir:ContactPoint.value [ fhir:value "415-362-4007" ];
         fhir:ContactPoint.use [ fhir:value "work" ]       ];
       fhir:ModuleMetadata.contact.telecom [
         fhir:index 1;
         fhir:ContactPoint.system [ fhir:value "email" ];
         fhir:ContactPoint.value [ fhir:value "info@motivemi.com" ];
         fhir:ContactPoint.use [ fhir:value "work" ]       ]     ]
  ];
  fhir:OrderSet.library [
     fhir:index 0;
     fhir:reference <http://hl7.org/fhir/Library/mmi-suiciderisk-orderset-logic>;
     fhir:Reference.reference [ fhir:value "Library/mmi-suiciderisk-orderset-logic" ]
  ];
  fhir:OrderSet.action [
     fhir:index 0;
     fhir:ActionDefinition.title [ fhir:value "Suicide Risk Assessment and Outpatient Management" ];
     fhir:ActionDefinition.action [
       fhir:index 0;
       fhir:ActionDefinition.title [ fhir:value "Consults and Referrals" ];
       fhir:ActionDefinition.behavior [
         fhir:index 0;
         fhir:ActionDefinition.behavior.type [
           fhir:Coding.code [ fhir:value "grouping-behavior" ]         ];
         fhir:ActionDefinition.behavior.value [
           fhir:Coding.code [ fhir:value "logical-group" ]         ]       ];
       fhir:ActionDefinition.behavior [
         fhir:index 1;
         fhir:ActionDefinition.behavior.type [
           fhir:Coding.code [ fhir:value "selection-behavior" ]         ];
         fhir:ActionDefinition.behavior.value [
           fhir:Coding.code [ fhir:value "any" ]         ]       ];
       fhir:ActionDefinition.action [
         fhir:index 0;
         fhir:ActionDefinition.textEquivalent [ fhir:value "Refer to outpatient mental health program for evaluation and treatment of mental health conditions now" ];
         fhir:ActionDefinition.resource [
           fhir:Reference.reference [ fhir:value "#referralRequest" ]         ];
         fhir:ActionDefinition.customization [
           fhir:index 0;
           fhir:ActionDefinition.customization.path [ fhir:value "fulfillmentTime" ];
           fhir:ActionDefinition.customization.expression [ fhir:value "ReferralRequestFulfillmentTime" ]         ];
         fhir:ActionDefinition.customization [
           fhir:index 1;
           fhir:ActionDefinition.customization.path [ fhir:value "patient" ];
           fhir:ActionDefinition.customization.expression [ fhir:value "Patient" ]         ];
         fhir:ActionDefinition.customization [
           fhir:index 2;
           fhir:ActionDefinition.customization.path [ fhir:value "requester" ];
           fhir:ActionDefinition.customization.expression [ fhir:value "Practitioner" ]         ];
         fhir:ActionDefinition.customization [
           fhir:index 3;
           fhir:ActionDefinition.customization.path [ fhir:value "reason" ];
           fhir:ActionDefinition.customization.expression [ fhir:value "RiskAssessmentScore" ]         ];
         fhir:ActionDefinition.customization [
           fhir:index 4;
           fhir:ActionDefinition.customization.path [ fhir:value "supportingInformation" ];
           fhir:ActionDefinition.customization.expression [ fhir:value "RiskAssessment" ]         ]       ]     ];
     fhir:ActionDefinition.action [
       fhir:index 1;
       fhir:ActionDefinition.title [ fhir:value "Medications" ];
       fhir:ActionDefinition.behavior [
         fhir:index 0;
         fhir:ActionDefinition.behavior.type [
           fhir:Coding.code [ fhir:value "grouping-behavior" ]         ];
         fhir:ActionDefinition.behavior.value [
           fhir:Coding.code [ fhir:value "logical-group" ]         ]       ];
       fhir:ActionDefinition.behavior [
         fhir:index 1;
         fhir:ActionDefinition.behavior.type [
           fhir:Coding.code [ fhir:value "selection-behavior" ]         ];
         fhir:ActionDefinition.behavior.value [
           fhir:Coding.code [ fhir:value "at-most-one" ]         ]       ];
       fhir:ActionDefinition.action [
         fhir:index 0;
         fhir:ActionDefinition.title [ fhir:value "First-Line Antidepressants" ];
         fhir:ActionDefinition.supportingEvidence [
           fhir:index 0;
           fhir:Attachment.contentType [ fhir:value "text/html" ];
           fhir:Attachment.url [ fhir:value "http://psychiatryonline.org/pb/assets/raw/sitewide/practice_guidelines/guidelines/mdd.pdf" ];
           fhir:Attachment.title [ fhir:value "Practice Guideline for the Treatment of Patients with Major Depressive Disorder" ]         ];
         fhir:ActionDefinition.behavior [
           fhir:index 0;
           fhir:ActionDefinition.behavior.type [
             fhir:Coding.code [ fhir:value "grouping-behavior" ]           ];
           fhir:ActionDefinition.behavior.value [
             fhir:Coding.code [ fhir:value "logical-group" ]           ]         ];
         fhir:ActionDefinition.behavior [
           fhir:index 1;
           fhir:ActionDefinition.behavior.type [
             fhir:Coding.code [ fhir:value "selection-behavior" ]           ];
           fhir:ActionDefinition.behavior.value [
             fhir:Coding.code [ fhir:value "at-most-one" ]           ]         ];
         fhir:ActionDefinition.action [
           fhir:index 0;
           fhir:ActionDefinition.title [ fhir:value "Selective Serotonin Reuptake Inhibitors (Choose a mazimum of one or document reasons for exception)" ];
           fhir:ActionDefinition.documentation [
             fhir:index 0;
             fhir:Attachment.contentType [ fhir:value "text/html" ];
             fhir:Attachment.url [ fhir:value "http://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=6daeb45c-451d-b135-bf8f-2d6dff4b6b01" ];
             fhir:Attachment.title [ fhir:value "National Library of Medicine. DailyMed website. CITALOPRAM- citalopram hydrobromide tablet, film coated." ]           ];
           fhir:ActionDefinition.behavior [
             fhir:index 0;
             fhir:ActionDefinition.behavior.type [
               fhir:Coding.code [ fhir:value "grouping-behavior" ]             ];
             fhir:ActionDefinition.behavior.value [
               fhir:Coding.code [ fhir:value "logical-group" ]             ]           ];
           fhir:ActionDefinition.behavior [
             fhir:index 1;
             fhir:ActionDefinition.behavior.type [
               fhir:Coding.code [ fhir:value "selection-behavior" ]             ];
             fhir:ActionDefinition.behavior.value [
               fhir:Coding.code [ fhir:value "at-most-one" ]             ]           ];
           fhir:ActionDefinition.action [
             fhir:index 0;
             fhir:ActionDefinition.textEquivalent [ fhir:value "citalopram 20 mg tablet 1 tablet oral 1 time daily now (30 table; 3 refills)" ];
             fhir:ActionDefinition.resource [
               fhir:Reference.reference [ fhir:value "#citalopramPrescription" ]             ]           ];
           fhir:ActionDefinition.action [
             fhir:index 1;
             fhir:ActionDefinition.textEquivalent [ fhir:value "escitalopram 10 mg tablet 1 tablet oral 1 time daily now (30 tablet; 3 refills)" ]           ];
           fhir:ActionDefinition.action [
             fhir:index 2;
             fhir:ActionDefinition.textEquivalent [ fhir:value "fluoxetine 20 mg capsule 1 capsule oral 1 time daily now (30 tablet; 3 refills)" ]           ];
           fhir:ActionDefinition.action [
             fhir:index 3;
             fhir:ActionDefinition.textEquivalent [ fhir:value "paroxetine 20 mg tablet 1 tablet oral 1 time daily now (30 tablet; 3 refills)" ]           ];
           fhir:ActionDefinition.action [
             fhir:index 4;
             fhir:ActionDefinition.textEquivalent [ fhir:value "sertraline 50 mg tablet 1 tablet oral 1 time daily now (30 tablet; 3 refills)" ]           ]         ];
         fhir:ActionDefinition.action [
           fhir:index 1;
           fhir:ActionDefinition.textEquivalent [ fhir:value "Dopamine Norepinephrine Reuptake Inhibitors (Choose a maximum of one or document reasons for exception)" ]         ];
         fhir:ActionDefinition.action [
           fhir:index 2;
           fhir:ActionDefinition.textEquivalent [ fhir:value "Serotonin Norepinephrine Reuptake Inhibitors (Choose a maximum of one or doument reasons for exception)" ]         ];
         fhir:ActionDefinition.action [
           fhir:index 3;
           fhir:ActionDefinition.textEquivalent [ fhir:value "Norepinephrine-Serotonin Modulators (Choose a maximum of one or document reasons for exception)" ]         ]       ]     ]
  ].

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


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.