@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/List/med-list> a fhir:List ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "med-list"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>Add hydroxocobalamin</p>\n      <p>Cancel Morphine Sulphate</p>\n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:mode [ fhir:v "changes"] ; # 
  fhir:code [
     fhir:coding ( [
       a sct:182836005 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "182836005" ] ;
       fhir:display [ fhir:v "Review of medication" ]
     ] ) ;
     fhir:text [ fhir:v "Medication Review" ]
  ] ; # 
  fhir:date [ fhir:v "2013-11-20T23:10:23+11:00"^^xsd:dateTime] ; # 
  fhir:source [
     fhir:l <http://hl7.org/fhir/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:entry ( [
     fhir:flag [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://nehta.gov.au/codes/medications/changetype"^^xsd:anyURI ;
           fhir:l <http://nehta.gov.au/codes/medications/changetype>
         ] ;
         fhir:code [ fhir:v "01" ] ;
         fhir:display [ fhir:v "Prescribed" ]
       ] )
     ] ; #   patient was prescribed hydroxocobalamin. the flag marks this \n       as a prescription. Note that healthcare workers will now get into\n       a long debate the exact implication of \"prescribed\". That's why the\n       spec does not fix the flag values  
     fhir:item [
       fhir:display [ fhir:v "hydroxocobalamin" ]
     ]
  ] [
     fhir:flag [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://nehta.gov.au/codes/medications/changetype"^^xsd:anyURI ;
           fhir:l <http://nehta.gov.au/codes/medications/changetype>
         ] ;
         fhir:code [ fhir:v "02" ] ;
         fhir:display [ fhir:v "Cancelled" ]
       ] )
     ] ;
     fhir:deleted [ fhir:v true ] ;
     fhir:item [
       fhir:display [ fhir:v "Morphine Sulfate" ]
     ]
  ] ) . #   
#      in a real medications list, we'd actually have medication resources.
#      but this an example to demonstrate a changes list, so we'll just use 
#      display  

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

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

