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 2 - 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-2> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "docref-example-2"] ;
  fhir:Bundle.type [ fhir:value "searchset"] ;
  fhir:Bundle.total [ fhir:value "3"^^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&start=2019-01-01&end=2019-01-01&type=http://terminology.hl7.org/CodeSystem/c80-doc-typecodes|18842-5,http://terminology.hl7.org/CodeSystem/c80-doc-typecodes|28570-0&ondemand=true" ]
  ] ;
  fhir:Bundle.entry [
     fhir:index 0 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.org/fhir/DocumentReference/procedure-note123" ] ;
     fhir:Bundle.entry.resource <http://example.org/fhir/DocumentReference/procedure-note123> ;
     fhir:Bundle.entry.search [
       fhir:Bundle.entry.search.mode [ fhir:value "match" ]
     ]
  ], [
     fhir:index 1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.org/fhir/DocumentReference/procedure-note456" ] ;
     fhir:Bundle.entry.resource <http://example.org/fhir/DocumentReference/procedure-note456> ;
     fhir:Bundle.entry.search [
       fhir:Bundle.entry.search.mode [ fhir:value "match" ]
     ]
  ], [
     fhir:index 2 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.org/fhir/DocumentReference/discharge" ] ;
     fhir:Bundle.entry.resource <http://example.org/fhir/DocumentReference/discharge> ;
     fhir:Bundle.entry.search [
       fhir:Bundle.entry.search.mode [ fhir:value "match" ]
     ]
  ] .

<http://example.org/fhir/DocumentReference/procedure-note123> a fhir:DocumentReference ;
  fhir:Resource.id [ fhir:value "procedure-note123"] ;
  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:28570-0 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "28570-0" ] ;
       fhir:Coding.display [ fhir:value "Procedure Note" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Procedure Note" ]
  ] ;
  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 "2022-11-18T20:45:05Z"^^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 "Ureteroscopy"] ;
  fhir:DocumentReference.content [
     fhir:index 0 ;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "application/pdf" ] ;
       fhir:Attachment.url [ fhir:value "http://example.org/fhir/Binary/procedure-note123.pdf" ]
     ]
  ] ;
  fhir:DocumentReference.context [
     fhir:DocumentReference.context.period [
       fhir:Period.start [ fhir:value "2019-03-01"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2019-03-02"^^xsd:date ]
     ]
  ] .

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

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

<http://example.org/fhir/DocumentReference/procedure-note456> a fhir:DocumentReference ;
  fhir:Resource.id [ fhir:value "procedure-note456"] ;
  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.status [ fhir:value "current"] ;
  fhir:DocumentReference.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:28570-0 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "28570-0" ] ;
       fhir:Coding.display [ fhir:value "Procedure Note" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Procedure Note" ]
  ] ;
  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 "2022-11-18T20:45:05Z"^^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 "Ureteroscopy"] ;
  fhir:DocumentReference.content [
     fhir:index 0 ;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "application/pdf" ] ;
       fhir:Attachment.url [ fhir:value "http://example.org/fhir/Binary/procedure-note456.pdf" ]
     ]
  ] ;
  fhir:DocumentReference.context [
     fhir:DocumentReference.context.period [
       fhir:Period.start [ fhir:value "2019-06-01"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2019-06-01"^^xsd:date ]
     ]
  ] .

<http://example.org/fhir/DocumentReference/discharge> a fhir:DocumentReference ;
  fhir:Resource.id [ fhir:value "discharge"] ;
  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.status [ fhir:value "current"] ;
  fhir:DocumentReference.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       a loinc:18842-5 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "18842-5" ] ;
       fhir:Coding.display [ fhir:value "Discharge Summary" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Discharge Summary" ]
  ] ;
  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 "2022-11-18T20:45:05Z"^^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 "Ureteroscopy"] ;
  fhir:DocumentReference.content [
     fhir:index 0 ;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "application/pdf" ] ;
       fhir:Attachment.url [ fhir:value "http://example.org/fhir/Binary/discharge-summary789.pdf" ]
     ]
  ] ;
  fhir:DocumentReference.context [
     fhir:DocumentReference.context.period [
       fhir:Period.start [ fhir:value "2019-03-01"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2019-03-03"^^xsd:date ]
     ]
  ] .

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

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