Example List/med-list (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
Example Medication Change List
@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:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "med-list"]; #
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p>Add hydroxocobalamin</p>\n <p>Cancel Morphine Sulphate</p>\n </div>"
]; #
fhir:List.status [ fhir:value "current"]; #
fhir:List.mode [ fhir:value "changes"]; #
fhir:List.code [
fhir:CodeableConcept.coding [
fhir:index 0;
a sct:182836005;
fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
fhir:Coding.code [ fhir:value "182836005" ];
fhir:Coding.display [ fhir:value "Review of medication" ]
];
fhir:CodeableConcept.text [ fhir:value "Medication Review" ]
]; #
fhir:List.date [ fhir:value "2013-11-20T23:10:23+11:00"^^xsd:dateTime]; #
fhir:List.source [
fhir:Reference.reference [ fhir:value "Patient/example" ]
]; #
fhir:List.entry [
fhir:index 0;
fhir:List.entry.flag [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://nehta.gov.au/codes/medications/changetype" ];
fhir:Coding.code [ fhir:value "01" ];
fhir:Coding.display [ fhir:value "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 doesn't fix the flag values
fhir:List.entry.item [
fhir:Reference.display [ fhir:value "hydroxocobalamin" ]
]
], [
fhir:index 1;
fhir:List.entry.flag [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://nehta.gov.au/codes/medications/changetype" ];
fhir:Coding.code [ fhir:value "02" ];
fhir:Coding.display [ fhir:value "Cancelled" ]
]
];
fhir:List.entry.deleted [ fhir:value "true"^^xsd:boolean ];
fhir:List.entry.item [
fhir:Reference.display [ fhir:value "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
# - ontology header ------------------------------------------------------------
[a owl:Ontology;
owl:imports fhir:fhir.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.