Release 4 5

This page is part of the FHIR Specification (v4.0.1: R4 (v5.0.0: R5 - Mixed Normative and STU ) ). This is the current published version in it's permanent home (it will always be available at this URL). 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

Encounter-example-home.ttl

Example Encounter/home (Turtle)

Patient Administration Work Group Maturity Level : N/A Standards Status : Informative Compartments : Encounter , Patient , Practitioner , RelatedPerson

Raw Turtle (+ also see Turtle/RDF Format Specification )

Encounter example - virtual encounter

@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 -------------------------------------------------------------------

<http://hl7.org/fhir/Encounter/home> a fhir:Encounter;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "home"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Encounter with patient @example who is at home</div>"
  ];
  fhir:DomainResource.contained [
     a fhir:Location;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "home" ];
     fhir:Location.description [ fhir:value "Client's home" ];
     fhir:Location.mode [ fhir:value "kind" ]
  ];
  fhir:Encounter.status [ fhir:value "finished"];
  fhir:Encounter.class [
     fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ];
     fhir:Coding.code [ fhir:value "HH" ];
     fhir:Coding.display [ fhir:value "home health" ]
  ];
  fhir:Encounter.subject [
     fhir:link <http://hl7.org/fhir/Patient/example>;
     fhir:Reference.reference [ fhir:value "Patient/example" ]
  ];
  fhir:Encounter.participant [
     fhir:index 0;
     fhir:Encounter.participant.period [
       fhir:Period.start [ fhir:value "2015-01-17T16:00:00+10:00"^^xsd:dateTime ];
       fhir:Period.end [ fhir:value "2015-01-17T16:30:00+10:00"^^xsd:dateTime ]
     ];
     fhir:Encounter.participant.individual [
       fhir:link <http://hl7.org/fhir/Practitioner/example>;
       fhir:Reference.reference [ fhir:value "Practitioner/example" ];
       fhir:Reference.display [ fhir:value "Dr Adam Careful" ]

[a fhir:Encounter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "home"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Encounter with patient @example who is at home</div>"
  ] ; # 
  fhir:contained ( [
     a fhir:Location ;
     fhir:id [ fhir:v "home" ] ;
     fhir:description [ fhir:v "Client's home" ] ;
     fhir:mode [ fhir:v "kind" ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:class ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "HH" ] ; #   Note that this value implies that the practitioner was at the patients home, \n			if it was a tele-service, then the virtual code should be used.  
       fhir:display [ fhir:v "home health" ]
     ] )
  ] ) ; # 
  fhir:subject [
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:participant ( [
     fhir:type ( [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "PPRF" ]
       ] )
     ] ) ;
     fhir:period [
       fhir:start [ fhir:v "2015-01-17T16:00:00+10:00"^^xsd:dateTime ] ;
       fhir:end [ fhir:v "2015-01-17T16:30:00+10:00"^^xsd:dateTime ]
     ] ;
     fhir:actor [
       fhir:reference [ fhir:v "Practitioner/example" ] ;
       fhir:display [ fhir:v "Dr Adam Careful" ]

     ]
  ];
  fhir:Encounter.period [
     fhir:Period.start [ fhir:value "2015-01-17T16:00:00+10:00"^^xsd:dateTime ];
     fhir:Period.end [ fhir:value "2015-01-17T16:30:00+10:00"^^xsd:dateTime ]
  ];
  fhir:Encounter.location [
     fhir:index 0;
     fhir:Encounter.location.location [
       fhir:Reference.reference [ fhir:value "#home" ];
       fhir:Reference.display [ fhir:value "Client's home" ]
     ];
     fhir:Encounter.location.status [ fhir:value "completed" ];
     fhir:Encounter.location.period [
       fhir:Period.start [ fhir:value "2015-01-17T16:00:00+10:00"^^xsd:dateTime ];
       fhir:Period.end [ fhir:value "2015-01-17T16:30:00+10:00"^^xsd:dateTime ]

  ] [
     fhir:actor [
       fhir:reference [ fhir:v "Patient/example" ]

     ]
  ] .

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

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

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/Encounter/home.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Encounter/home.ttl> .

  ] ) ; # 
  fhir:actualPeriod [
     fhir:start [ fhir:v "2015-01-17T16:00:00+10:00"^^xsd:dateTime ] ;
     fhir:end [ fhir:v "2015-01-17T16:30:00+10:00"^^xsd:dateTime ]
  ] ; # 
  fhir:location ( [
     fhir:location [
       fhir:reference [ fhir:v "#home" ] ;
       fhir:display [ fhir:v "Client's home" ]
     ] ;
     fhir:status [ fhir:v "completed" ] ;
     fhir:period [
       fhir:start [ fhir:v "2015-01-17T16:00:00+10:00"^^xsd:dateTime ] ;
       fhir:end [ fhir:v "2015-01-17T16:30:00+10:00"^^xsd:dateTime ]
     ]
  ] )] . # 


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


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.