Current Build

Xds-example.ttl

Structured Documents Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Encounter, Patient, Practitioner, RelatedPerson

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

XDS example

@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/xds> a fhir:Bundle;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "xds"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xsd:dateTime ]
  ];
  fhir:Bundle.type [ fhir:value "transaction"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e1d" ];
     fhir:Bundle.entry.resource <urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e1d>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "DocumentReference" ]
     ]
  ], [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://localhost:9556/svc/fhir/Patient/a2" ];
     fhir:Bundle.entry.resource <http://localhost:9556/svc/fhir/Patient/a2>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Patient" ];
       fhir:Bundle.entry.request.ifNoneExist [ fhir:value "Patient?identifier=http://acme.org/xds/patients!89765a87b" ]
     ]
  ], [
     fhir:index 2;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://localhost:9556/svc/fhir/Practitioner/a3" ];
     fhir:Bundle.entry.resource <http://localhost:9556/svc/fhir/Practitioner/a3>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Practitioner" ]
     ]
  ], [
     fhir:index 3;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://localhost:9556/svc/fhir/Practitioner/a4" ];
     fhir:Bundle.entry.resource <http://localhost:9556/svc/fhir/Practitioner/a4>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Practitioner" ]
     ]
  ], [
     fhir:index 4;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32" ];
     fhir:Bundle.entry.resource <http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32>;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Binary" ]
     ]
  ] .

<urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e1d> a fhir:DocumentReference;
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xsd:dateTime ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\n						<a href=\"http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32\">Document: urn:oid:129.6.58.92.88336</a>undefined, created 24/12/2005\n					</div>"
  ];
  fhir:DocumentReference.masterIdentifier [
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:oid:129.6.58.92.88336" ]
  ];
  fhir:DocumentReference.status [ fhir:value "current"];
  fhir:DocumentReference.type [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://ihe.net/connectathon/classCodes" ];
       fhir:Coding.code [ fhir:value "History and Physical" ];
       fhir:Coding.display [ fhir:value "History and Physical" ]
     ]
  ];
  fhir:DocumentReference.category [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a loinc:47039-3;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "47039-3" ];
       fhir:Coding.display [ fhir:value "Inpatient Admission history and physical note" ]
     ]
  ];
  fhir:DocumentReference.subject [
     fhir:link <http://hl7.org/fhir/Patient/a2>;
     fhir:Reference.reference [ fhir:value "Patient/a2" ]
  ];
  fhir:DocumentReference.date [ fhir:value "2013-07-01T23:11:33+10:00"^^xsd:dateTime];
  fhir:DocumentReference.author [
     fhir:index 0;
     fhir:link <http://hl7.org/fhir/Practitioner/a3>;
     fhir:Reference.reference [ fhir:value "Practitioner/a3" ]
  ], [
     fhir:index 1;
     fhir:link <http://hl7.org/fhir/Practitioner/a4>;
     fhir:Reference.reference [ fhir:value "Practitioner/a4" ]
  ];
  fhir:DocumentReference.description [ fhir:value "Physical"];
  fhir:DocumentReference.securityLabel [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-Confidentiality" ];
       fhir:Coding.code [ fhir:value "N" ];
       fhir:Coding.display [ fhir:value "normal" ]
     ]
  ];
  fhir:DocumentReference.content [
     fhir:index 0;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "text/plain" ];
       fhir:Attachment.language [ fhir:value "en-US" ];
       fhir:Attachment.url [ fhir:value "http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32" ];
       fhir:Attachment.title [ fhir:value "Physical" ];
       fhir:Attachment.creation [ fhir:value "2005-12-24"^^xsd:date ]
     ];
     fhir:DocumentReference.content.format [
       fhir:Coding.system [ fhir:value "urn:oid:1.3.6.1.4.1.19376.1.2.3" ];
       fhir:Coding.code [ fhir:value "urn:ihe:pcc:handp:2008" ]
     ]
  ];
  fhir:DocumentReference.context [
     fhir:DocumentReference.context.period [
       fhir:Period.start [ fhir:value "2004-12-23T08:00:00+10:00"^^xsd:dateTime ];
       fhir:Period.end [ fhir:value "2004-12-23T08:01:00+10:00"^^xsd:dateTime ]
     ];
     fhir:DocumentReference.context.practiceSetting [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://ihe.net/connectathon/practiceSettingCodes" ];
         fhir:Coding.code [ fhir:value "General Medicine" ];
         fhir:Coding.display [ fhir:value "General Medicine" ]
       ]
     ]
  ] .

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

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

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

<http://localhost:9556/svc/fhir/Patient/a2> a fhir:Patient;
  fhir:Resource.id [ fhir:value "a2"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xsd:dateTime ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Person DOE, John, M, dob: 27/05/1956</div>"
  ];
  fhir:Patient.identifier [
     fhir:index 0;
     fhir:Identifier.use [ fhir:value "usual" ];
     fhir:Identifier.value [ fhir:value "MRN" ]
  ];
  fhir:Patient.name [
     fhir:index 0;
     fhir:HumanName.use [ fhir:value "usual" ];
     fhir:HumanName.text [ fhir:value "DOE, John" ];
     fhir:HumanName.family [ fhir:value "Doe" ];
     fhir:HumanName.given [
       fhir:value "John";
       fhir:index 0
     ]
  ];
  fhir:Patient.birthDate [ fhir:value "1956-05-27"^^xsd:date] .

<http://localhost:9556/svc/fhir/Practitioner/a3> a fhir:Practitioner;
  fhir:Resource.id [ fhir:value "a3"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xsd:dateTime ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Author Gerald Smitty @ Cleveland Clinic</div>"
  ];
  fhir:Practitioner.name [
     fhir:index 0;
     fhir:HumanName.use [ fhir:value "usual" ];
     fhir:HumanName.family [ fhir:value "Smitty" ];
     fhir:HumanName.given [
       fhir:value "Gerald";
       fhir:index 0
     ]
  ] .

<http://localhost:9556/svc/fhir/Practitioner/a4> a fhir:Practitioner;
  fhir:Resource.id [ fhir:value "a4"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xsd:dateTime ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Author Person @ Cleveland Clinic</div>"
  ];
  fhir:Practitioner.name [
     fhir:index 0;
     fhir:HumanName.use [ fhir:value "usual" ];
     fhir:HumanName.family [ fhir:value "Dopplemeyer" ];
     fhir:HumanName.given [
       fhir:value "Sherry";
       fhir:index 0
     ]
  ] .

<http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32> a fhir:Binary;
  fhir:Resource.id [ fhir:value "1e404af3-077f-4bee-b7a6-a9be97e1ce32"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xsd:dateTime ]
  ];
  fhir:Binary.contentType [ fhir:value "text/plain"];
  fhir:Binary.data [ fhir:value "YXNkYXNkYXNkYXNkYXNk"^^xsd:base64Binary] .

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

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

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


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.