FHIR Release 3 (STU) CI-Build

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0 . For a full list Continuous Integration Build of available versions, see FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions . Page versions: R5 R4B R4 R3

Medicationstatementexample1.ttl

Example MedicationStatement/example001 (Turtle)

Maturity Level : N/A
Responsible Owner: Pharmacy Work Group Ballot Standards Status : Informative Compartments : Encounter , Group , Patient , Practitioner , RelatedPerson

Raw Turtle , JSON-LD (+ also see Turtle/RDF Format Specification )

Patient reports they are taking Tylenol PM and has the bottle

@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/MedicationStatement/example001> a fhir:MedicationStatement;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example001"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example001</p><p><b>contained</b>: </p><p><b>identifier</b>: 12345689 (OFFICIAL)</p><p><b>status</b>: active</p><p><b>category</b>: Inpatient <span>(Details : {http://hl7.org/fhir/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span></p><p><b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; isBrand; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span></p><p><b>effective</b>: 23/01/2015</p><p><b>dateAsserted</b>: 22/02/2015</p><p><b>informationSource</b>: <a>Donald Duck</a></p><p><b>subject</b>: <a>Donald Duck</a></p><p><b>derivedFrom</b>: <a>MedicationRequest/medrx002</a></p><p><b>taken</b>: n</p><p><b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span></p><p><b>note</b>: Patient indicates they miss the occasional dose</p><p><b>dosage</b>: </p></div>"
  ];
  fhir:DomainResource.contained [
     a fhir:Medication;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "med0309" ];
     fhir:Medication.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/sid/ndc" ];
         fhir:Coding.code [ fhir:value "50580-506-02" ];
         fhir:Coding.display [ fhir:value "Tylenol PM" ]
       ]
     ];
     fhir:Medication.isBrand [ fhir:value "true"^^xsd:boolean ];
     fhir:Medication.form [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a sct:385057009;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "385057009" ];
         fhir:Coding.display [ fhir:value "Film-coated tablet (qualifier value)" ]
       ]
     ];
     fhir:Medication.ingredient [
       fhir:index 0;
       fhir:Medication.ingredient.itemCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
           fhir:Coding.code [ fhir:value "315266" ];
           fhir:Coding.display [ fhir:value "Acetaminophen 500 MG" ]

#   This example is a fully populated example where a patient reports they are taking a certain medication and has the bottle   

<http://hl7.org/fhir/MedicationStatement/example001> a fhir:MedicationStatement ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example001"] ; # 
  fhir:contained ( [
     a fhir:Medication ;
     fhir:id [ fhir:v "med0309" ] ;
     fhir:code [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/sid/ndc"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/sid/ndc>
         ] ;
         fhir:code [ fhir:v "50580-608-02" ] ;
         fhir:display [ fhir:v "Tylenol PM Extra Strength, 1 BOTTLE in 1 CARTON (50580-608-02) > 100 TABLET, FILM COATED in 1 BOTTLE (package)" ]
       ] ) ;
       fhir:text [ fhir:v "Tylenol PM" ]
     ] ;
     fhir:doseForm [
       fhir:coding ( [
         a sct:385057009 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "385057009" ] ;
         fhir:display [ fhir:v "Film-coated tablet (basic dose form)" ]
       ] )
     ] ;
     fhir:ingredient ( [
       fhir:item [
         fhir:concept [
           fhir:coding ( [
             fhir:system [
               fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ;
               fhir:l <http://www.nlm.nih.gov/research/umls/rxnorm>
             ] ;
             fhir:code [ fhir:v "315266" ] ;
             fhir:display [ fhir:v "Acetaminophen 500 MG" ]
           ] )

         ]
       ];
       fhir:Medication.ingredient.amount [
         fhir:Ratio.numerator [
           fhir:Quantity.value [ fhir:value "500"^^xsd:decimal ];
           fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
           fhir:Quantity.code [ fhir:value "mg" ]
         ];
         fhir:Ratio.denominator [
           fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ];
           fhir:Quantity.system [ fhir:value "http://hl7.org/fhir/v3/orderableDrugForm" ];
           fhir:Quantity.code [ fhir:value "Tab" ]

       ] ;
       fhir:strength [
         a fhir:Ratio ;
         fhir:numerator [
           fhir:value [ fhir:v "500"^^xsd:decimal ] ;
           fhir:system [
             fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
             fhir:l <http://unitsofmeasure.org>
           ] ;
           fhir:code [ fhir:v "mg" ]
         ] ;
         fhir:denominator [
           fhir:value [ fhir:v "1"^^xsd:decimal ] ;
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
           ] ;
           fhir:code [ fhir:v "TAB" ]

         ]
       ]
     ], [
       fhir:index 1;
       fhir:Medication.ingredient.itemCodeableConcept [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://www.nlm.nih.gov/research/umls/rxnorm" ];
           fhir:Coding.code [ fhir:value "901813" ];
           fhir:Coding.display [ fhir:value "Diphenhydramine Hydrochloride 25 mg" ]

     ] [
       fhir:item [
         fhir:concept [
           fhir:coding ( [
             fhir:system [
               fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ;
               fhir:l <http://www.nlm.nih.gov/research/umls/rxnorm>
             ] ;
             fhir:code [ fhir:v "901813" ] ;
             fhir:display [ fhir:v "Diphenhydramine Hydrochloride 25 mg" ]
           ] )

         ]
       ];
       fhir:Medication.ingredient.amount [
         fhir:Ratio.numerator [
           fhir:Quantity.value [ fhir:value "25"^^xsd:decimal ];
           fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
           fhir:Quantity.code [ fhir:value "mg" ]
         ];
         fhir:Ratio.denominator [
           fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ];
           fhir:Quantity.system [ fhir:value "http://hl7.org/fhir/v3/orderableDrugForm" ];
           fhir:Quantity.code [ fhir:value "Tab" ]

       ] ;
       fhir:strength [
         a fhir:Ratio ;
         fhir:numerator [
           fhir:value [ fhir:v "25"^^xsd:decimal ] ;
           fhir:system [
             fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
             fhir:l <http://unitsofmeasure.org>
           ] ;
           fhir:code [ fhir:v "mg" ]
         ] ;
         fhir:denominator [
           fhir:value [ fhir:v "1"^^xsd:decimal ] ;
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
           ] ;
           fhir:code [ fhir:v "TAB" ]

         ]
       ]
     ];
     fhir:Medication.package [
       fhir:Medication.package.batch [
         fhir:index 0;
         fhir:Medication.package.batch.lotNumber [ fhir:value "9494788" ];
         fhir:Medication.package.batch.expirationDate [ fhir:value "2017-05-22"^^xsd:date ]
       ]
     ]
  ];
  fhir:MedicationStatement.identifier [
     fhir:index 0;
     fhir:Identifier.use [ fhir:value "official" ];
     fhir:Identifier.system [ fhir:value "http://www.bmc.nl/portal/medstatements" ];
     fhir:Identifier.value [ fhir:value "12345689" ]
  ];
  fhir:MedicationStatement.status [ fhir:value "active"];
  fhir:MedicationStatement.category [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/medication-statement-category" ];
       fhir:Coding.code [ fhir:value "inpatient" ];
       fhir:Coding.display [ fhir:value "Inpatient" ]
     ]
  ];
  fhir:MedicationStatement.medicationReference [
     fhir:Reference.reference [ fhir:value "#med0309" ]
  ];
  fhir:MedicationStatement.effectiveDateTime [ fhir:value "2015-01-23"^^xsd:date];
  fhir:MedicationStatement.dateAsserted [ fhir:value "2015-02-22"^^xsd:date];
  fhir:MedicationStatement.informationSource [
     fhir:link <http://hl7.org/fhir/Patient/pat1>;
     fhir:Reference.reference [ fhir:value "Patient/pat1" ];
     fhir:Reference.display [ fhir:value "Donald Duck" ]
  ];
  fhir:MedicationStatement.subject [
     fhir:link <http://hl7.org/fhir/Patient/pat1>;
     fhir:Reference.reference [ fhir:value "Patient/pat1" ];
     fhir:Reference.display [ fhir:value "Donald Duck" ]
  ];
  fhir:MedicationStatement.derivedFrom [
     fhir:index 0;
     fhir:link <http://hl7.org/fhir/MedicationRequest/medrx002>;
     fhir:Reference.reference [ fhir:value "MedicationRequest/medrx002" ]
  ];
  fhir:MedicationStatement.taken [ fhir:value "n"];
  fhir:MedicationStatement.reasonCode [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a sct:32914008;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
       fhir:Coding.code [ fhir:value "32914008" ];
       fhir:Coding.display [ fhir:value "Restless Legs" ]

     ] )
  ] ) ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [
       fhir:v "http://www.bmc.nl/portal/medstatements"^^xsd:anyURI ;
       fhir:l <http://www.bmc.nl/portal/medstatements>
     ] ;
     fhir:value [ fhir:v "12345689" ]
  ] ) ; # 
  fhir:status [ fhir:v "recorded"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/medication-statement-category"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/medication-statement-category>
       ] ;
       fhir:code [ fhir:v "inpatient" ] ;
       fhir:display [ fhir:v "Inpatient" ]
     ] )
  ] ) ; # 
  fhir:medication [
     fhir:reference [
       fhir:l <#med0309> ;
       fhir:reference [ fhir:v "#med0309" ]
     ] #   Linked to a RESOURCE Medication  
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/pat1> ;
     fhir:reference [ fhir:v "Patient/pat1" ] ;
     fhir:display [ fhir:v "Donald Duck" ]
  ] ; # 
  fhir:effective [
     a fhir:DateTime ;
     fhir:v "2015-01-23"^^xsd:date
  ] ; # 
  fhir:dateAsserted [ fhir:v "2015-02-22"^^xsd:date] ; # 
  fhir:informationSource ( [
     fhir:l <http://hl7.org/fhir/Patient/pat1> ;
     fhir:reference [ fhir:v "Patient/pat1" ] ;
     fhir:display [ fhir:v "Donald Duck" ]
  ] ) ; # 
  fhir:derivedFrom ( [
     fhir:l <http://hl7.org/fhir/MedicationRequest/medrx002> ;
     fhir:reference [ fhir:v "MedicationRequest/medrx002" ]
  ] ) ; # 
  fhir:reason ( [
     fhir:concept [
       fhir:coding ( [
         a sct:32914008 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "32914008" ] ;
         fhir:display [ fhir:v "Restless Legs" ]
       ] )

     ]
  ];
  fhir:MedicationStatement.note [
     fhir:index 0;
     fhir:Annotation.text [ fhir:value "Patient indicates they miss the occasional dose" ]
  ];
  fhir:MedicationStatement.dosage [
     fhir:index 0;
     fhir:Dosage.sequence [ fhir:value "1"^^xsd:integer ];
     fhir:Dosage.text [ fhir:value "1-2 tablets once daily at bedtime as needed for restless legs" ];
     fhir:Dosage.additionalInstruction [
       fhir:index 0;
       fhir:CodeableConcept.text [ fhir:value "Taking at bedtime" ]
     ];
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.frequency [ fhir:value "1"^^xsd:integer ];
         fhir:Timing.repeat.period [ fhir:value "1"^^xsd:decimal ];
         fhir:Timing.repeat.periodUnit [ fhir:value "d" ]
       ]
     ];
     fhir:Dosage.asNeededCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a sct:32914008;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "32914008" ];
         fhir:Coding.display [ fhir:value "Restless Legs" ]
       ]
     ];
     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.doseRange [
       fhir:Range.low [
         fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ];
         fhir:Quantity.unit [ fhir:value "TAB" ];
         fhir:Quantity.system [ fhir:value "http://hl7.org/fhir/v3/orderableDrugForm" ];
         fhir:Quantity.code [ fhir:value "TAB" ]
       ];
       fhir:Range.high [
         fhir:Quantity.value [ fhir:value "2"^^xsd:decimal ];
         fhir:Quantity.unit [ fhir:value "TAB" ];
         fhir:Quantity.system [ fhir:value "http://hl7.org/fhir/v3/orderableDrugForm" ];
         fhir:Quantity.code [ fhir:value "TAB" ]
       ]

  ] ) ; # 
  fhir:note ( [
     fhir:text [ fhir:v "Patient indicates they miss the occasional dose" ]
  ] ) ; # 
  fhir:dosage [
     fhir:simple [
       fhir:text [ fhir:v "1-2 tablets once daily at bedtime as needed for restless legs" ] ;
       fhir:additionalInstruction ( [
         fhir:text [ fhir:v "Taking at bedtime" ]
       ] ) ;
       fhir:timing [
         fhir:repeat [
           fhir:frequency [ fhir:v "1"^^xsd:positiveInteger ] ;
           fhir:period [ fhir:v "1"^^xsd:decimal ] ;
           fhir:periodUnit [ fhir:v "d" ]
         ]
       ] ;
       fhir:asNeededFor ( [
         fhir:coding ( [
           a sct:32914008 ;
           fhir:system [
             fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
             fhir:l <http://snomed.info/sct>
           ] ;
           fhir:code [ fhir:v "32914008" ] ;
           fhir:display [ fhir:v "Restless Legs" ]
         ] )
       ] ) ;
       fhir:route [
         fhir:coding ( [
           a sct:26643006 ;
           fhir:system [
             fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
             fhir:l <http://snomed.info/sct>
           ] ;
           fhir:code [ fhir:v "26643006" ] ;
           fhir:display [ fhir:v "Oral Route" ]
         ] )
       ] ;
       fhir:doseAndRate ( [
         fhir:type [
           fhir:coding ( [
             fhir:system [
               fhir:v "http://terminology.hl7.org/CodeSystem/dose-rate-type"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/CodeSystem/dose-rate-type>
             ] ;
             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:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
             ] ;
             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:l <http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm>
             ] ;
             fhir:code [ fhir:v "TAB" ]
           ]
         ]
       ] )

     ]
  ] .

  ] . # 


<http://hl7.org/fhir/Patient/pat1> a fhir:Patient .

<http://hl7.org/fhir/MedicationRequest/medrx002> a fhir:MedicationRequest .

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

<http://hl7.org/fhir/MedicationStatement/example001.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://hl7.org/fhir/STU3/MedicationStatement/example001.ttl> .


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


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.