US Core Implementation Guide
10.0.0-ballot - STU 10 Ballot United States of America flag

US Core Implementation Guide, published by HL7 International / Cross-Group Projects. This guide is not an authorized publication; it is the continuous build for version 10.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/US-Core/ and changes regularly. See the Directory of published versions

: Docref Example 1 - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@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/Bundle/docref-example-1> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "docref-example-1"] ;
  fhir:Bundle.type [ fhir:value "searchset"] ;
  fhir:Bundle.total [ fhir:value "1"^^xsd:nonNegativeInteger] ;
  fhir:Bundle.link [
     fhir:index 0 ;
     fhir:Bundle.link.relation [ fhir:value "self" ] ;
     fhir:Bundle.link.url [ fhir:value "http://example.org/fhir/DocumentReference/$docref?patient=123" ]
  ] ;
  fhir:Bundle.entry [
     fhir:index 0 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.org/fhir/DocumentReference/ccd123" ] ;
     fhir:Bundle.entry.resource <http://example.org/fhir/DocumentReference/ccd123> ;
     fhir:Bundle.entry.search [
       fhir:Bundle.entry.search.mode [ fhir:value "match" ]
     ]
  ] .

<http://example.org/fhir/DocumentReference/ccd123> a fhir:DocumentReference ;
  fhir:Resource.id [ fhir:value "ccd123"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference>
     ]
  ] ;
  fhir:DocumentReference.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.19.5.99999.1" ]
  ] ;
  fhir:DocumentReference.status [ fhir:value "current"] ;
  fhir:DocumentReference.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:34133-9 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "34133-9" ] ;
       fhir:Coding.display [ fhir:value "Summary of episode note" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "CCD Document" ]
  ] ;
  fhir:DocumentReference.category [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category" ] ;
       fhir:Coding.code [ fhir:value "clinical-note" ] ;
       fhir:Coding.display [ fhir:value "Clinical Note" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Clinical Note" ]
  ] ;
  fhir:DocumentReference.subject [
     fhir:link <http://hl7.org/fhir/Patient/example> ;
     fhir:Reference.reference [ fhir:value "Patient/example" ] ;
     fhir:Reference.display [ fhir:value "Amy Shaw" ]
  ] ;
  fhir:DocumentReference.date [ fhir:value "2016-03-09T15:29:46Z"^^xsd:dateTime] ;
  fhir:DocumentReference.author [
     fhir:index 0 ;
     fhir:link <http://hl7.org/fhir/Practitioner/practitioner-1> ;
     fhir:Reference.reference [ fhir:value "Practitioner/practitioner-1" ] ;
     fhir:Reference.display [ fhir:value "Ronald Bone, MD" ]
  ] ;
  fhir:DocumentReference.description [ fhir:value "Pulmonology clinic acute visit"] ;
  fhir:DocumentReference.content [
     fhir:index 0 ;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "text/plain" ] ;
       fhir:Attachment.url [ fhir:value "http://example.org/fhir/Binary/1-note" ] ;
       fhir:Attachment.title [ fhir:value "URI where the data can be found: http://example.org/fhir/Binary/1-note" ]
     ] ;
     fhir:DocumentReference.content.format [
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-HL7DocumentFormatCodes" ] ;
       fhir:Coding.code [ fhir:value "urn:hl7-org:sdwg:ccda-structuredBody:2.1" ] ;
       fhir:Coding.display [ fhir:value "ccda-structuredBody:2.1" ]
     ]
  ] ;
  fhir:DocumentReference.context [
     fhir:DocumentReference.context.period [
       fhir:Period.start [ fhir:value "2004-12-23T08:00:00+11:00"^^xsd:dateTime ] ;
       fhir:Period.end [ fhir:value "2004-12-23T08:01:00+11:00"^^xsd:dateTime ]
     ]
  ] .

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

<http://hl7.org/fhir/Practitioner/practitioner-1> a fhir:Practitioner .

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

<http://hl7.org/fhir/Bundle/docref-example-1.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/Bundle/docref-example-1.ttl> .