This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
. Page versions: R5 R4B R4 R3
Real-world encounter example (with primaryDiagnosis extension added)
@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/sct/> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
<http://hl7.org/fhir//Encounter/f202> a fhir:Encounter;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "f202"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ]
];
fhir:Encounter.identifier [
fhir:index 0;
fhir:Identifier.use [ fhir:value "temp" ];
fhir:Identifier.value [ fhir:value "Encounter_Roel_20130128" ]
];
fhir:Encounter.status [ fhir:value "finished"];
fhir:Encounter.class [ fhir:value "outpatient"];
fhir:Encounter.type [
fhir:index 0;
a sct:367336001;
fhir:CodeableConcept.coding [
fhir:index 0;
a sct:367336001;
fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
fhir:Coding.code [ fhir:value "367336001" ];
fhir:Coding.display [ fhir:value "Chemotherapy" ] ]
];
fhir:Encounter.priority [
a sct:103391001;
fhir:CodeableConcept.coding [
fhir:index 0;
a sct:103391001;
fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
fhir:Coding.code [ fhir:value "103391001" ];
fhir:Coding.display [ fhir:value "Urgent" ] ]
];
fhir:Encounter.patient [
fhir:reference <http://hl7.org/fhir/Patient/f201>;
fhir:Reference.reference [ fhir:value "Patient/f201" ];
fhir:Reference.display [ fhir:value "Roel" ]
];
fhir:Encounter.participant [
fhir:index 0;
fhir:Encounter.participant.individualReference [
fhir:reference <http://hl7.org/fhir/Practitioner/f201>;
fhir:Reference.reference [ fhir:value "Practitioner/f201" ] ]
];
fhir:Encounter.length [
fhir:Quantity.value [ fhir:value "56"^^xs:decimal ];
fhir:Quantity.unit [ fhir:value "minutes" ];
fhir:Quantity.system [ fhir:value "http://snomed.info/sct" ];
fhir:Quantity.code [ fhir:value "258701004" ]
];
fhir:Encounter.reason [
fhir:index 0;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/encounter-primaryDiagnosis" ];
fhir:Extension.valuePositiveInt [ fhir:value "2"^^xs:int ] ];
fhir:CodeableConcept.text [ fhir:value "The patient is treated for a tumor." ]
];
fhir:Encounter.indicationReference [
fhir:index 0;
fhir:reference <http://hl7.org/fhir/Procedure/f201>;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/encounter-primaryDiagnosis" ];
fhir:Extension.valuePositiveInt [ fhir:value "1"^^xs:int ] ];
fhir:Reference.reference [ fhir:value "Procedure/f201" ];
fhir:Reference.display [ fhir:value "Roel's TPF chemotherapy on January 28th, 2013" ]
];
fhir:Encounter.serviceProvider [
fhir:reference <http://hl7.org/fhir/Organization/f201>;
fhir:Reference.reference [ fhir:value "Organization/f201" ]
].
# -------------------------------------------------------------------------------------
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.