@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://fhir.health.gov.lk/ips/MedicationRequest/MedicationRequestsExample> a fhir:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "MedicationRequestsExample"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://fhir.health.gov.lk/ips/StructureDefinition/medication-request"^^xsd:anyURI ;
       fhir:link <http://fhir.health.gov.lk/ips/StructureDefinition/medication-request>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest MedicationRequestsExample</b></p><a name=\"MedicationRequestsExample\"> </a><a name=\"hcMedicationRequestsExample\"> </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-medication-request.html\">Medication Request</a></p></div><p><b>identifier</b>: Prescription identifier/prescription-12345</p><p><b>status</b>: Completed</p><p><b>intent</b>: Order</p><p><b>medication</b>: <span title=\"Codes:{http://fhir.health.gov.lk/ips/CodeSystem/cs-medication-name-msd 01403501}\">Medication</span></p><p><b>subject</b>: <a href=\"Patient-PatientExample.html\">Mike John Smith (official) Male, DoB: 1983-05-22 ( Personal Health Number: personal health number)</a></p><p><b>encounter</b>: <a href=\"Encounter-TargetFacilityEncounterExample.html\">Encounter: status = finished; class = ambulatory (ActCode#AMB); period = 2022-12-01 --&gt; 2023-01-20; reasonCode = Myalgia</a></p><p><b>authoredOn</b>: 2023-10-11 17:21:33-0800</p><p><b>requester</b>: <a href=\"Practitioner-GeneralPractitionerExample.html\">Practitioner Tom Junes Smith </a></p><p><b>performer</b>: <a href=\"Practitioner-GeneralPractitionerExample.html\">Practitioner Tom Junes Smith </a></p><p><b>recorder</b>: <a href=\"Practitioner-GeneralPractitionerExample.html\">Practitioner Tom Junes Smith </a></p><p><b>note</b>: By Organization/OrganizationExample @2023-10-11 17:21:33-0800</p><blockquote><div><p>Additional information regarding the patient's medication prescription</p>\n</div></blockquote><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: Count 2  times, Duration 2days , 2 per 3 days</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>3</td></tr></table></blockquote><h3>DispenseRequests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Quantity</b></td></tr><tr><td style=\"display: none\">*</td><td>5</td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:identifier ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "FILL" ] ;
         fhir:display [ fhir:v "Filler Identifier" ]
       ] ) ;
       fhir:text [ fhir:v "Prescription identifier" ]
     ] ;
     fhir:system [ fhir:v "http://fhir.health.gov.lk/ips/identifier/medication"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "prescription-12345" ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:medication [
     a fhir:CodeableConcept ;
     fhir:coding ( [
       fhir:system [ fhir:v "http://fhir.health.gov.lk/ips/CodeSystem/cs-medication-name-msd"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "01403501" ]
     ] ) ;
     fhir:text [ fhir:v "Medication" ]
  ] ; # 
  fhir:subject [
     fhir:link <http://fhir.health.gov.lk/ips/Patient/PatientExample> ;
     fhir:reference [ fhir:v "Patient/PatientExample" ]
  ] ; # 
  fhir:encounter [
     fhir:link <http://fhir.health.gov.lk/ips/Encounter/TargetFacilityEncounterExample> ;
     fhir:reference [ fhir:v "Encounter/TargetFacilityEncounterExample" ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2023-10-11T17:21:33-08:00"^^xsd:dateTime] ; # 
  fhir:requester [
     fhir:link <http://fhir.health.gov.lk/ips/Practitioner/GeneralPractitionerExample> ;
     fhir:reference [ fhir:v "Practitioner/GeneralPractitionerExample" ]
  ] ; # 
  fhir:performer [
     fhir:link <http://fhir.health.gov.lk/ips/Practitioner/GeneralPractitionerExample> ;
     fhir:reference [ fhir:v "Practitioner/GeneralPractitionerExample" ]
  ] ; # 
  fhir:recorder [
     fhir:link <http://fhir.health.gov.lk/ips/Practitioner/GeneralPractitionerExample> ;
     fhir:reference [ fhir:v "Practitioner/GeneralPractitionerExample" ]
  ] ; # 
  fhir:note ( [
     fhir:author [
       a fhir:Reference ;
       fhir:link <http://fhir.health.gov.lk/ips/Organization/OrganizationExample> ;
       fhir:reference [ fhir:v "Organization/OrganizationExample" ]
     ] ;
     fhir:time [ fhir:v "2023-10-11T17:21:33-08:00"^^xsd:dateTime ] ;
     fhir:text [ fhir:v "Additional information regarding the patient's medication prescription" ]
  ] ) ; # 
  fhir:dosageInstruction ( [
     fhir:timing [
       fhir:repeat [
         fhir:count [ fhir:v "2"^^xsd:positiveInteger ] ;
         fhir:duration [ fhir:v "2"^^xsd:decimal ] ;
         fhir:durationUnit [ fhir:v "d" ] ;
         fhir:frequency [ fhir:v "2"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "3"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "d" ]
       ]
     ] ;
     fhir:doseAndRate ( [
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v "3"^^xsd:decimal ]
       ]
     ] )
  ] ) ; # 
  fhir:dispenseRequest [
     fhir:quantity [
       fhir:value [ fhir:v "5"^^xsd:decimal ]
     ]
  ] . # 

# -------------------------------------------------------------------------------------

