QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## : MedicationDispense example - TTL Representation

Raw ttl | Download

    @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:MedicationDispense;
      fhir:nodeRole fhir:treeRoot;
      fhir:Resource.id [ fhir:value "example"];
      fhir:Resource.meta [
         fhir:Meta.profile [
           fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationdispense";
           fhir:index 0;
           fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationdispense>     ]
      ];
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "generated" ];
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource \"example\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-qicore-medicationdispense.html\">QICoreMedicationDispense</a></p></div><p><b>status</b>: completed</p><p><b>medication</b>: <a href=\"Medication-example.html\">Medication/example</a></p><p><b>subject</b>: <a href=\"Patient-example.html\">Patient/example</a> \" CHALMERS\"</p><h3>Performers</h3><table class=\"grid\"><tr><td>-</td><td><b>Actor</b></td></tr><tr><td>*</td><td><a href=\"Practitioner-example.html\">Practitioner/example</a> \" CAREFUL\"</td></tr></table><p><b>authorizingPrescription</b>: <a href=\"MedicationRequest-example.html\">MedicationRequest/example</a></p><p><b>quantity</b>: 100 ml<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM code ml = 'ml')</span></p><p><b>daysSupply</b>: 30 Day<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM code d = 'd')</span></p><p><b>whenPrepared</b>: 2012-05-30T16:20:00Z</p><p><b>whenHandedOver</b>: 2012-05-31T10:20:00Z</p><p><b>destination</b>: <a href=\"Location-example.html\">Location/example</a> \"South Wing, second floor\"</p><p><b>receiver</b>: <a href=\"Patient-example.html\">Patient/example</a> \" CHALMERS\"</p><h3>Substitutions</h3><table class=\"grid\"><tr><td>-</td><td><b>WasSubstituted</b></td><td><b>Type</b></td></tr><tr><td>*</td><td>false</td><td>No substitution made or expected <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (MedDispSubType#NoSub)</span></td></tr></table></div>"
      ];
      fhir:MedicationDispense.status [ fhir:value "completed"];
      fhir:MedicationDispense.medicationReference [
         fhir:Reference.reference [ fhir:value "Medication/example" ]
      ];
      fhir:MedicationDispense.subject [
         fhir:Reference.reference [ fhir:value "Patient/example" ]
      ];
      fhir:MedicationDispense.performer [
         fhir:index 0;
         fhir:MedicationDispense.performer.actor [
           fhir:Reference.reference [ fhir:value "Practitioner/example" ]     ]
      ];
      fhir:MedicationDispense.authorizingPrescription [
         fhir:index 0;
         fhir:Reference.reference [ fhir:value "MedicationRequest/example" ]
      ];
      fhir:MedicationDispense.quantity [
         fhir:Quantity.value [ fhir:value "100"^^xsd:decimal ];
         fhir:Quantity.unit [ fhir:value "ml" ];
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
         fhir:Quantity.code [ fhir:value "ml" ]
      ];
      fhir:MedicationDispense.daysSupply [
         fhir:Quantity.value [ fhir:value "30"^^xsd:decimal ];
         fhir:Quantity.unit [ fhir:value "Day" ];
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
         fhir:Quantity.code [ fhir:value "d" ]
      ];
      fhir:MedicationDispense.whenPrepared [ fhir:value "2012-05-30T16:20:00+00:00"^^xsd:dateTime];
      fhir:MedicationDispense.whenHandedOver [ fhir:value "2012-05-31T10:20:00+00:00"^^xsd:dateTime];
      fhir:MedicationDispense.destination [
         fhir:Reference.reference [ fhir:value "Location/example" ]
      ];
      fhir:MedicationDispense.receiver [
         fhir:index 0;
         fhir:Reference.reference [ fhir:value "Patient/example" ]
      ];
      fhir:MedicationDispense.dosageInstruction [
         fhir:index 0;
         fhir:Dosage.timing [
           fhir:Timing.repeat [
             fhir:Timing.repeat.frequency [ fhir:value "3"^^xsd:positiveInteger ];
             fhir:Timing.repeat.period [ fhir:value "1"^^xsd:decimal ];
             fhir:Timing.repeat.periodUnit [ fhir:value "d" ]       ]     ];
         fhir:Dosage.route [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             a sct:394899003;
             fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
             fhir:Coding.code [ fhir:value "394899003" ];
             fhir:Coding.display [ fhir:value "oral administration of treatment" ]       ]     ];
         fhir:Dosage.doseAndRate [
           fhir:index 0;
           fhir:Dosage.doseAndRate.type [
             fhir:CodeableConcept.coding [
               fhir:index 0;
               fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/dose-rate-type" ];
               fhir:Coding.code [ fhir:value "ordered" ];
               fhir:Coding.display [ fhir:value "Ordered" ]         ]       ];
           fhir:Dosage.doseAndRate.doseQuantity [
             fhir:Quantity.value [ fhir:value "5"^^xsd:decimal ];
             fhir:Quantity.unit [ fhir:value "ml" ];
             fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
             fhir:Quantity.code [ fhir:value "ml" ]       ]     ]
      ];
      fhir:MedicationDispense.substitution [
         fhir:MedicationDispense.substitution.wasSubstituted [ fhir:value "false"^^xsd:boolean ];
         fhir:MedicationDispense.substitution.type [
           fhir:CodeableConcept.coding [
             fhir:index 0;
             fhir:Coding.system [ fhir:value "http://example.org/MedDispSubType" ];
             fhir:Coding.code [ fhir:value "NoSub" ];
             fhir:Coding.display [ fhir:value "No substitution made or expected" ]       ]     ]
      ].

    # - ontology header ------------------------------------------------------------

     a owl:Ontology;
      owl:imports fhir:fhir.ttl.