FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example MedicationRequest/medrx0301 (Turtle)

Pharmacy Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Encounter, Patient, Practitioner

Raw Turtle (+ also see Turtle/RDF Format Specification)

Order with as needed (PRN) dosage with pre-condition - Oxycodone - active with reasonCode, note, dispenseRequest and substitution

@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:MedicationRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "medrx0301"] ; # 
  fhir:contained ( [
     a fhir:Medication ;
     fhir:id [ fhir:v "med0310" ] ;
     fhir:code [
       fhir:coding ( [
         a sct:430127000 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "430127000" ] ;
         fhir:display [ fhir:v "Oxycodone-containing product in oral dose form" ]
       ] )
     ]
  ] [
     a fhir:Provenance ;
     fhir:id [ fhir:v "signature" ] ;
     fhir:target ( [
       fhir:reference [ fhir:v "ServiceRequest/physiotherapy" ]
     ] ) ;
     fhir:recorded [ fhir:v "2017-02-01T17:23:07Z"^^xsd:dateTime ] ;
     fhir:agent ( [
       fhir:role ( [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "AUT" ]
         ] )
       ] ) ;
       fhir:who [
         fhir:reference [ fhir:v "Practitioner/example" ] ;
         fhir:display [ fhir:v "Dr Adam Careful" ]
       ]
     ] ) ;
     fhir:signature ( [
       fhir:type ( [
         fhir:system [ fhir:v "urn:iso-astm:E1762-95:2013"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "1.2.840.10065.1.12.1.1" ] ;
         fhir:display [ fhir:v "Author's Signature" ]
       ] ) ;
       fhir:when [ fhir:v "2017-02-01T17:23:07Z"^^xsd:dateTime ] ;
       fhir:who [
         fhir:reference [ fhir:v "Practitioner/example" ] ;
         fhir:display [ fhir:v "Dr Adam Careful" ]
       ] ;
       fhir:targetFormat [ fhir:v "application/fhir+xml" ] ;
       fhir:sigFormat [ fhir:v "application/signature+xml" ] ;
       fhir:data [ fhir:v "dGhpcyBibG9iIGlzIHNuaXBwZWQ="^^xsd:base64Binary ]
     ] )
  ] ) ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [ fhir:v "http://www.bmc.nl/portal/prescriptions"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "12345689" ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:statusReason [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "altchoice" ] ;
       fhir:display [ fhir:v "Try another treatment first" ]
     ] )
  ] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/medicationrequest-admin-location"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "inpatient" ] ;
       fhir:display [ fhir:v "Inpatient" ]
     ] )
  ] ) ; # 
  fhir:medication [
     fhir:reference [
       fhir:reference [ fhir:v "#med0310" ]
     ] #   Linked to a RESOURCE Medication  
  ] ; # 
  fhir:subject [
     fhir:reference [ fhir:v "Patient/pat1" ] ; #   Linked to the resource patient who needs the medication  
     fhir:display [ fhir:v "Donald Duck" ]
  ] ; # 
  fhir:encounter [
     fhir:reference [ fhir:v "Encounter/f201" ] ; #   Linked to a resource Encounter between patient and practitioner 
     fhir:display [ fhir:v "encounter who leads to this prescription" ]
  ] ; # 
  fhir:supportingInformation ( [
     fhir:reference [ fhir:v "Procedure/biopsy" ]
  ] ) ; # 
  fhir:authoredOn [ fhir:v "2015-01-15"^^xsd:date] ; # 
  fhir:requester [
     fhir:reference [ fhir:v "Practitioner/f007" ] ;
     fhir:display [ fhir:v "Patrick Pump" ]
  ] ; # 
  fhir:performerType [
     fhir:coding ( [
       a sct:26369006 ;
       fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "26369006" ] ;
       fhir:display [ fhir:v "Public Health Nurse" ]
     ] )
  ] ; # 
  fhir:performer ( [
     fhir:reference [ fhir:v "Practitioner/f204" ] ;
     fhir:display [ fhir:v "Carla Espinosa" ]
  ] ) ; # 
  fhir:reason ( [
     fhir:concept [
       fhir:coding ( [
         a sct:297217002 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "297217002" ] ;
         fhir:display [ fhir:v "Rib Pain (finding)" ]
       ] )
     ]
  ] ) ; # 
  fhir:insurance ( [
     fhir:reference [ fhir:v "Coverage/9876B1" ]
  ] ) ; # 
  fhir:note ( [
     fhir:text [ fhir:v "Patient told to take with food" ]
  ] ) ; # 
  fhir:dosageInstruction ( [
     fhir:sequence [ fhir:v "1"^^xsd:integer ] ;
     fhir:text [ fhir:v "one to two tablets every 4-6 hours as needed for rib pain" ] ;
     fhir:additionalInstruction ( [
       fhir:coding ( [
         a sct:418914006 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "418914006" ] ;
         fhir:display [ fhir:v "Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)" ]
       ] )
     ] ) ;
     fhir:patientInstruction [ fhir:v "Take one to two tablets every four to six hours as needed for rib pain" ] ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "4"^^xsd:decimal ] ;
         fhir:periodMax [ fhir:v "6"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "h" ]
       ]
     ] ;
     fhir:asNeededFor ( [
       fhir:coding ( [
         a sct:297217002 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "297217002" ] ;
         fhir:display [ fhir:v "Rib Pain (finding)" ]
       ] )
     ] ) ;
     fhir:route [
       fhir:coding ( [
         a sct:26643006 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "26643006" ] ;
         fhir:display [ fhir:v "Oral Route" ]
       ] )
     ] ;
     fhir:method [
       fhir:coding ( [
         a sct:421521009 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "421521009" ] ;
         fhir:display [ fhir:v "Swallow - dosing instruction imperative (qualifier value)" ]
       ] )
     ] ;
     fhir:doseAndRate ( [
       fhir:type [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "ordered" ] ;
           fhir:display [ fhir:v "Ordered" ]
         ] )
       ] ;
       fhir:dose [
         a fhir:Range ;
         fhir:low [
           fhir:value [ fhir:v "1"^^xsd:decimal ] ;
           fhir:unit [ fhir:v "TAB" ] ;
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "TAB" ]
         ] ;
         fhir:high [
           fhir:value [ fhir:v "2"^^xsd:decimal ] ;
           fhir:unit [ fhir:v "TAB" ] ;
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "TAB" ]
         ]
       ]
     ] )
  ] ) ; # 
  fhir:dispenseRequest [
     fhir:validityPeriod [
       fhir:start [ fhir:v "2015-01-15"^^xsd:date ] ;
       fhir:end [ fhir:v "2016-01-15"^^xsd:date ]
     ] ;
     fhir:numberOfRepeatsAllowed [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
     fhir:quantity [
       fhir:value [ fhir:v "30"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "TAB" ] ;
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "TAB" ]
     ] ;
     fhir:expectedSupplyDuration [
       fhir:value [ fhir:v "10"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "days" ] ;
       fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "d" ]
     ] ;
     fhir:dispenser [
       fhir:reference [ fhir:v "Organization/2.16.840.1.113883.19.5" ]
     ]
  ] ; # 
  fhir:substitution [
     fhir:allowed [ fhir:v "true"^^xsd:boolean ] ;
     fhir:reason [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "FP" ] ;
         fhir:display [ fhir:v "formulary policy" ]
       ] )
     ]
  ] ; # 
  fhir:eventHistory ( [
     fhir:reference [ fhir:v "#signature" ] ;
     fhir:display [ fhir:v "Author's Signature" ]
  ] )] . # 

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


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.