Example List/example (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
General List Example
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:List;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "example"]; #
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table>\n <thead>\n <tr>\n <th>Condition</th>\n <th>Severity</th>\n <th>Date</th>\n <th>Location</th>\n <th>Status</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>Burnt Ear</td>\n <td>Severe</td>\n <td>24-May 2012</td>\n <td>Left Ear</td>\n <td>deleted</td>\n </tr>\n <tr>\n <td>Asthma</td>\n <td>Mild</td>\n <td>21-Nov 2012</td>\n <td>--</td>\n <td>added</td>\n </tr>\n </tbody>\n </table>\n </div>"
]; #
fhir:List.identifier [
fhir:index 0;
fhir:Identifier.system [ fhir:value "urn:uuid:a9fcea7c-fcdf-4d17-a5e0-f26dda030b59" ];
fhir:Identifier.value [ fhir:value "23974652" ]
]; #
fhir:List.status [ fhir:value "current"]; #
fhir:List.mode [ fhir:value "changes"]; #
fhir:List.subject [
fhir:Reference.reference [ fhir:value "Patient/example" ]
]; # This list doesn't have a code. In actual fact,
it's a Condition list produced at the end of an encounter
to a regular primary care practitioner. But the only way
to know this is to hunt down the place it is used
and find out
fhir:List.encounter [
fhir:Reference.reference [ fhir:value "Encounter/example" ]
]; #
fhir:List.date [ fhir:value "2012-11-25T22:17:00+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.text [ fhir:value "Deleted due to error" ]
];
fhir:List.entry.deleted [ fhir:value "true"^^xsd:boolean ];
fhir:List.entry.item [
fhir:Reference.reference [ fhir:value "Condition/example" ]
]
], [
fhir:index 1;
fhir:List.entry.flag [
fhir:CodeableConcept.text [ fhir:value "Added" ]
];
fhir:List.entry.item [
fhir:Reference.reference [ fhir:value "Condition/example2" ]
]
]] . #
# - 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.