@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.eu/fhir/extensions/Encounter/enc-example> a fhir:Encounter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "enc-example"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Encounter enc-example</b></p><a name=\"enc-example\"> </a><a name=\"hcenc-example\"> </a><p><b>Encounter: Legal Status</b>: <span title=\"Codes:{http://snomed.info/sct 135848002}\">Voluntary admission</span></p><p><b>status</b>: Completed</p><p><b>class</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode IMP}\">inpatient encounter</span></p><p><b>subject</b>: Nice Patient</p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.eu/fhir/StructureDefinition/encounter-legalStatus"^^xsd:anyURI ;
       fhir:l <http://hl7.eu/fhir/StructureDefinition/encounter-legalStatus>
     ] ;
     fhir:value [
       a fhir:CodeableReference ;
       fhir:concept [
         fhir:coding ( [
           a sct:135848002 ;
           fhir:system [
             fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
             fhir:l <http://snomed.info/sct>
           ] ;
           fhir:code [ fhir:v "135848002" ] ;
           fhir:display [ fhir:v "Voluntary admission" ]
         ] )
       ]
     ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:class ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode>
       ] ;
       fhir:code [ fhir:v "IMP" ]
     ] )
  ] ) ; # 
  fhir:subject [
     fhir:display [ fhir:v "Nice Patient" ]
  ] . # 

# -------------------------------------------------------------------------------------

