@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 -------------------------------------------------------------------

<http://hl7.org.au/fhir/core/MedicationDispense/paracetamol-codeine> a fhir:MedicationDispense ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "paracetamol-codeine"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationdispense" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationdispense>
     ]
  ] ;
  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 paracetamol-codeine</b></p><a name=\"paracetamol-codeine\"> </a><a name=\"hcparacetamol-codeine\"> </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: <a href=\"StructureDefinition-au-core-medicationdispense.html\">AU Core MedicationDispense</a></p></div><p><b>status</b>: Completed</p><p><b>medication</b>: <span title=\"Codes:{http://snomed.info/sct 79115011000036100}\">Paracetamol 500 mg + codeine phosphate hemihydrate 30 mg tablet</span></p><p><b>subject</b>: <a href=\"Patient-bennelong-anne.html\">Mrs. Anne Mary Bennelong(official) Female, DoB: 1968-10-11 ( Medical record number)</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>Main Street Pharmacy</td></tr></table><p><b>authorizingPrescription</b>: <a href=\"MedicationRequest-paracetamol-codeine.html\">MedicationRequest: status = unknown; intent = order; medication[x] = Paracetamol 500 mg + codeine phosphate hemihydrate 30 mg tablet; authoredOn = 2018-07-15; reasonCode = Pain management</a></p><p><b>quantity</b>: 20 TAB<span style=\"background: LightGoldenRodYellow\"> (Details: Orderable Drug Form  codeTAB = 'Tablet')</span></p><p><b>whenPrepared</b>: 2018-07-15</p><blockquote><p><b>dosageInstruction</b></p><p><b>text</b>: 1-2 tablets every 4-6 hours as needed for pain</p><p><b>timing</b>: 1-2 per 4-6 hours</p><p><b>asNeeded</b>: true</p><p><b>route</b>: <span title=\"Codes:{http://snomed.info/sct 26643006}\">Oral route</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>1 TAB<span style=\"background: LightGoldenRodYellow\"> (Details: Orderable Drug Form  codeTAB = 'Tablet')</span></td></tr></table></blockquote></div>"
  ] ;
  fhir:MedicationDispense.status [ fhir:value "completed"] ;
  fhir:MedicationDispense.medicationCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a sct:79115011000036100 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "79115011000036100" ] ;
       fhir:Coding.display [ fhir:value "Paracetamol 500 mg + codeine phosphate hemihydrate 30 mg tablet" ]
     ]
  ] ;
  fhir:MedicationDispense.subject [
     fhir:link <http://hl7.org.au/fhir/core/Patient/bennelong-anne> ;
     fhir:Reference.reference [ fhir:value "Patient/bennelong-anne" ]
  ] ;
  fhir:MedicationDispense.performer [
     fhir:index 0 ;
     fhir:MedicationDispense.performer.actor [
       fhir:Reference.display [ fhir:value "Main Street Pharmacy" ]
     ]
  ] ;
  fhir:MedicationDispense.authorizingPrescription [
     fhir:index 0 ;
     fhir:link <http://hl7.org.au/fhir/core/MedicationRequest/paracetamol-codeine> ;
     fhir:Reference.reference [ fhir:value "MedicationRequest/paracetamol-codeine" ]
  ] ;
  fhir:MedicationDispense.quantity [
     fhir:Quantity.value [ fhir:value "20"^^xsd:decimal ] ;
     fhir:Quantity.unit [ fhir:value "TAB" ] ;
     fhir:Quantity.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm" ] ;
     fhir:Quantity.code [ fhir:value "TAB" ]
  ] ;
  fhir:MedicationDispense.whenPrepared [ fhir:value "2018-07-15"^^xsd:date] ;
  fhir:MedicationDispense.dosageInstruction [
     fhir:index 0 ;
     fhir:Dosage.text [ fhir:value "1-2 tablets every 4-6 hours as needed for pain" ] ;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:positiveInteger ] ;
         fhir:Timing.repeat.frequencyMax [ fhir:value "2"^^xsd:positiveInteger ] ;
         fhir:Timing.repeat.period [ fhir:value "4"^^xsd:decimal ] ;
         fhir:Timing.repeat.periodMax [ fhir:value "6"^^xsd:decimal ] ;
         fhir:Timing.repeat.periodUnit [ fhir:value "h" ]
       ]
     ] ;
     fhir:Dosage.asNeededBoolean [ fhir:value "true"^^xsd:boolean ] ;
     fhir:Dosage.route [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         a sct:26643006 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "26643006" ] ;
         fhir:Coding.display [ fhir:value "Oral route" ]
       ]
     ] ;
     fhir:Dosage.doseAndRate [
       fhir:index 0 ;
       fhir:Dosage.doseAndRate.doseQuantity [
         fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ;
         fhir:Quantity.unit [ fhir:value "TAB" ] ;
         fhir:Quantity.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm" ] ;
         fhir:Quantity.code [ fhir:value "TAB" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org.au/fhir/core/MedicationDispense/paracetamol-codeine.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

