@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 -------------------------------------------------------------------

<https://fhir.dha.go.ke/erx/MedicationDispense/example-medicationdispense-invalid> a fhir:MedicationDispense ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-medicationdispense-invalid"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-dispense" ;
       fhir:index 0 ;
       fhir:link <https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-dispense>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationDispense example-medicationdispense-invalid</b></p><a name=\"example-medicationdispense-invalid\"> </a><a name=\"hcexample-medicationdispense-invalid\"> </a><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\"/><p style=\"margin-bottom: 0px\">Profile: <code>https://fhir.dha.go.ke/fhir/StructureDefinition/ke-medication-dispense</code></p></div><p><b>status</b>: Completed</p><p><b>medication</b>: <span title=\"Codes:{http://snomed.info/sct 372687004}\">Amoxicillin</span></p><p><b>subject</b>: <a href=\"Patient-example-patient-amina.html\">Amina Hassan (official) Female, DoB: 1988-04-15 ( https://ilm-hie.dha.go.ke/fhir/NamingSystem/national-id#KenyaNationalId#29834765)</a></p><h3>Performers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Patient-example-patient-amina.html\">Amina Hassan (official) Female, DoB: 1988-04-15 ( https://ilm-hie.dha.go.ke/fhir/NamingSystem/national-id#KenyaNationalId#29834765)</a></td></tr></table><p><b>location</b>: <a href=\"Location-example-location-knh-pharmacy.html\">Location KNH Outpatient Pharmacy</a></p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode FF}\">First Fill</span></p><p><b>quantity</b>: 3 tablet<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code1 = '1')</span></p><h3>Substitutions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>WasSubstituted</b></td></tr><tr><td style=\"display: none\">*</td><td>false</td></tr></table></div>"
  ] ;
  fhir:MedicationDispense.status [ fhir:value "completed"] ;
  fhir:MedicationDispense.medicationCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:372687004 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "372687004" ] ;
       fhir:Coding.display [ fhir:value "Amoxicillin" ]
     ]
  ] ;
  fhir:MedicationDispense.subject [
     fhir:link <https://fhir.dha.go.ke/erx/Patient/example-patient-amina> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient-amina" ]
  ] ;
  fhir:MedicationDispense.performer [
     fhir:index 0 ;
     fhir:MedicationDispense.performer.actor [
       fhir:link <https://fhir.dha.go.ke/erx/Patient/example-patient-amina> ;
       fhir:Reference.reference [ fhir:value "Patient/example-patient-amina" ]
     ]
  ] ;
  fhir:MedicationDispense.location [
     fhir:link <https://fhir.dha.go.ke/erx/Location/example-location-knh-pharmacy> ;
     fhir:Reference.reference [ fhir:value "Location/example-location-knh-pharmacy" ]
  ] ;
  fhir:MedicationDispense.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ] ;
       fhir:Coding.code [ fhir:value "FF" ] ;
       fhir:Coding.display [ fhir:value "First Fill" ]
     ]
  ] ;
  fhir:MedicationDispense.quantity [
     fhir:Quantity.value [ fhir:value "3"^^xsd:decimal ] ;
     fhir:Quantity.unit [ fhir:value "tablet" ] ;
     fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ] ;
     fhir:Quantity.code [ fhir:value "1" ]
  ] ;
  fhir:MedicationDispense.substitution [
     fhir:MedicationDispense.substitution.wasSubstituted [ fhir:value "false"^^xsd:boolean ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.dha.go.ke/erx/MedicationDispense/example-medicationdispense-invalid.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

