Release 4B R5 Final QA

This page is part of the FHIR Specification (v4.3.0: R4B (v5.0.0-draft-final: Final QA Preview for R5 - STU see ballot notes ). 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

Basic-example.ttl

Example Basic/referral (Turtle)

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

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

How 'basic' can be used for future resources - in this case referral

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

<http://hl7.org/fhir/Basic/referral> a fhir:Basic;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "referral"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p><b>Patient:</b>Roel</p>\n      <p><b>Requestor:</b>Dokter Bronsig</p>\n      <p><b>Type:</b>Consultation</p>\n      <p><b>Target Date:</b>April 1 - April 31</p>\n      <p>COMPLETED</p>\n      <b>The patient had fever peaks over the last couple of days. He is worried about these peaks.</b>\n    </div>"
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://example.org/do-not-use/fhir-extensions/referral#requestingPractitioner" ];
     fhir:Extension.valueReference [
       fhir:link <http://hl7.org/fhir/Practitioner/f201>;
       fhir:Reference.reference [ fhir:value "Practitioner/f201" ];
       fhir:Reference.display [ fhir:value "Dokter Bronsig" ]
     ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://example.org/do-not-use/fhir-extensions/referral#notes" ];
     fhir:Extension.valueString [ fhir:value "The patient had fever peaks over the last couple of days. He is worried about these peaks." ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "http://example.org/do-not-use/fhir-extensions/referral#fulfillingEncounter" ];
     fhir:Extension.valueReference [
       fhir:link <http://hl7.org/fhir/Encounter/f201>;
       fhir:Reference.reference [ fhir:value "Encounter/f201" ]

[a fhir:_Basic ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "referral"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p><b>Patient:</b>Roel</p>\n      <p><b>Requestor:</b>Dokter Bronsig</p>\n      <p><b>Type:</b>Consultation</p>\n      <p><b>Target Date:</b>April 1 - April 31</p>\n      <p>COMPLETED</p>\n      <b>The patient had fever peaks over the last couple of days. He is worried about these peaks.</b>\n    </div>"
  ] ; # 
  fhir:extension ( [
     fhir:url [ fhir:v "http://example.org/do-not-use/fhir-extensions/referral#requestingPractitioner"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:reference [ fhir:v "Practitioner/f201" ] ;
       fhir:display [ fhir:v "Dokter Bronsig" ]

     ]
  ];
  fhir:DomainResource.modifierExtension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://example.org/do-not-use/fhir-extensions/referral#referredForService" ];
     fhir:Extension.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a sct:11429006;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "11429006" ];
         fhir:Coding.display [ fhir:value "Consultation" ]
       ]

  ] [
     fhir:url [ fhir:v "http://example.org/do-not-use/fhir-extensions/referral#notes"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "The patient had fever peaks over the last couple of days. He is worried about these peaks." ]
  ] [
     fhir:url [ fhir:v "http://example.org/do-not-use/fhir-extensions/referral#fulfillingEncounter"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:reference [ fhir:v "Encounter/f201" ]

     ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://example.org/do-not-use/fhir-extensions/referral#targetDate" ];
     fhir:Extension.valuePeriod [
       fhir:Period.start [ fhir:value "2013-04-01"^^xsd:date ];
       fhir:Period.end [ fhir:value "2013-04-15"^^xsd:date ]

  ] ) ; # 
  fhir:modifierExtension ( [
     fhir:url [ fhir:v "http://example.org/do-not-use/fhir-extensions/referral#referredForService"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:11429006 ;
         fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "11429006" ] ;
         fhir:display [ fhir:v "Consultation" ]
       ] )

     ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "http://example.org/do-not-use/fhir-extensions/referral#status" ];
     fhir:Extension.valueCode [ fhir:value "complete" ]
  ];
  fhir:Basic.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "http://goodhealth.org/basic/identifiers" ];
     fhir:Identifier.value [ fhir:value "19283746" ]
  ];
  fhir:Basic.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/basic-resource-type" ];
       fhir:Coding.code [ fhir:value "referral" ]

  ] [
     fhir:url [ fhir:v "http://example.org/do-not-use/fhir-extensions/referral#targetDate"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Period ;
       fhir:start [ fhir:v "2013-04-01"^^xsd:date ] ;
       fhir:end [ fhir:v "2013-04-15"^^xsd:date ]

     ]
  ];
  fhir:Basic.subject [
     fhir:link <http://hl7.org/fhir/Patient/f201>;
     fhir:Reference.reference [ fhir:value "Patient/f201" ];
     fhir:Reference.display [ fhir:value "Roel" ]
  ];
  fhir:Basic.created [ fhir:value "2013-05-14"^^xsd:date];
  fhir:Basic.author [
     fhir:link <http://hl7.org/fhir/Practitioner/example>;
     fhir:Reference.reference [ fhir:value "Practitioner/example" ]
  ] .

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

<http://hl7.org/fhir/Encounter/f201> a fhir:Encounter .

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

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

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

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

  ] [
     fhir:url [ fhir:v "http://example.org/do-not-use/fhir-extensions/referral#status"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "complete" ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "http://goodhealth.org/basic/identifiers"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "19283746" ]
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/basic-resource-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "referral" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:reference [ fhir:v "Patient/f201" ] ;
     fhir:display [ fhir:v "Roel" ]
  ] ; # 
  fhir:created [ fhir:v "2013-05-14"^^xsd:date] ; # 
  fhir:author [
     fhir:reference [ fhir:v "Practitioner/example" ]
  ]] . # 


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


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.