STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). 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

Xds-example.ttl

Raw Turtle, JSON-LD

XDS example

@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <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"^^xs: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 [
       fhir:DocumentReference [
         fhir:index 0;
         fhir:Resource.meta [
           fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xs:dateTime ]         ];
         fhir:DomainResource.text [
           fhir:Narrative.status [ fhir:value "generated" ]         ];
         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.subjectReference [
           fhir:reference <http://hl7.org/fhir/Patient/a2>;
           fhir:Reference.reference [ fhir:value "Patient/a2" ]         ];
         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.class [
           a loinc:47039-3;
           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.authorReference [
           fhir:index 0;
           fhir:reference <http://hl7.org/fhir/Practitioner/a3>;
           fhir:Reference.reference [ fhir:value "Practitioner/a3" ]         ];
         fhir:DocumentReference.authorReference [
           fhir:index 1;
           fhir:reference <http://hl7.org/fhir/Practitioner/a4>;
           fhir:Reference.reference [ fhir:value "Practitioner/a4" ]         ];
         fhir:DocumentReference.created [ fhir:value "2005-12-24"^^xs:date ];
         fhir:DocumentReference.indexed [ fhir:value "2013-07-01T23:11:33+10:00"^^xs:dateTime ];
         fhir:DocumentReference.status [ fhir:value "current" ];
         fhir:DocumentReference.description [ fhir:value "Physical" ];
         fhir:DocumentReference.securityLabel [
           fhir:index 0;
           fhir:CodeableConcept.coding [
             fhir:index 0;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/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:DocumentReference.content.format [
             fhir:index 0;
             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"^^xs:dateTime ];
             fhir:Period.end [ fhir:value "2004-12-23T08:01:00+10:00"^^xs: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" ]             ]           ]         ]       ]     ];
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "DocumentReference" ]     ]
  ];
  fhir:Bundle.entry [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://localhost:9556/svc/fhir/Patient/a2" ];
     fhir:Bundle.entry.resource [
       fhir:Patient [
         fhir:index 0;
         fhir:Resource.id [ fhir:value "a2" ];
         fhir:Resource.meta [
           fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xs:dateTime ]         ];
         fhir:DomainResource.text [
           fhir:Narrative.status [ fhir:value "generated" ]         ];
         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:index 0           ];
           fhir:HumanName.given [
             fhir:value "John";
             fhir:index 0           ]         ];
         fhir:Patient.birthDate [ fhir:value "1956-05-27"^^xs:date ]       ]     ];
     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:Bundle.entry [
     fhir:index 2;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://localhost:9556/svc/fhir/Practitioner/a3" ];
     fhir:Bundle.entry.resource [
       fhir:Practitioner [
         fhir:index 0;
         fhir:Resource.id [ fhir:value "a3" ];
         fhir:Resource.meta [
           fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xs:dateTime ]         ];
         fhir:DomainResource.text [
           fhir:Narrative.status [ fhir:value "generated" ]         ];
         fhir:Practitioner.name [
           fhir:index 0;
           fhir:HumanName.use [ fhir:value "usual" ];
           fhir:HumanName.family [
             fhir:value "Smitty";
             fhir:index 0           ];
           fhir:HumanName.given [
             fhir:value "Gerald";
             fhir:index 0           ]         ];
         fhir:Practitioner.practitionerRole [
           fhir:index 0;
           fhir:Practitioner.practitionerRole.organization [
             fhir:Reference.display [ fhir:value "Cleveland Clinic" ]           ];
           fhir:Practitioner.practitionerRole.role [
             fhir:CodeableConcept.coding [
               fhir:index 0;
               fhir:Coding.code [ fhir:value "Attending" ]             ]           ];
           fhir:Practitioner.practitionerRole.specialty [
             fhir:index 0;
             fhir:CodeableConcept.coding [
               fhir:index 0;
               fhir:Coding.code [ fhir:value "Orthopedic" ]             ]           ]         ];
         fhir:Practitioner.practitionerRole [
           fhir:index 1;
           fhir:Practitioner.practitionerRole.organization [
             fhir:Reference.display [ fhir:value "Parma Community" ]           ]         ]       ]     ];
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Practitioner" ]     ]
  ];
  fhir:Bundle.entry [
     fhir:index 3;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://localhost:9556/svc/fhir/Practitioner/a4" ];
     fhir:Bundle.entry.resource [
       fhir:Practitioner [
         fhir:index 0;
         fhir:Resource.id [ fhir:value "a4" ];
         fhir:Resource.meta [
           fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xs:dateTime ]         ];
         fhir:DomainResource.text [
           fhir:Narrative.status [ fhir:value "generated" ]         ];
         fhir:Practitioner.name [
           fhir:index 0;
           fhir:HumanName.use [ fhir:value "usual" ];
           fhir:HumanName.family [
             fhir:value "Dopplemeyer";
             fhir:index 0           ];
           fhir:HumanName.given [
             fhir:value "Sherry";
             fhir:index 0           ]         ];
         fhir:Practitioner.practitionerRole [
           fhir:index 0;
           fhir:Practitioner.practitionerRole.organization [
             fhir:Reference.display [ fhir:value "Cleveland Clinic" ]           ];
           fhir:Practitioner.practitionerRole.role [
             fhir:CodeableConcept.coding [
               fhir:index 0;
               fhir:Coding.code [ fhir:value "Primary Surgon" ]             ]           ];
           fhir:Practitioner.practitionerRole.specialty [
             fhir:index 0;
             fhir:CodeableConcept.coding [
               fhir:index 0;
               fhir:Coding.code [ fhir:value "Orthopedic" ]             ]           ]         ];
         fhir:Practitioner.practitionerRole [
           fhir:index 1;
           fhir:Practitioner.practitionerRole.organization [
             fhir:Reference.display [ fhir:value "Berea Community" ]           ]         ]       ]     ];
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Practitioner" ]     ]
  ];
  fhir:Bundle.entry [
     fhir:index 4;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32" ];
     fhir:Bundle.entry.resource [
       fhir:Binary [
         fhir:index 0;
         fhir:Resource.id [ fhir:value "1e404af3-077f-4bee-b7a6-a9be97e1ce32" ];
         fhir:Resource.meta [
           fhir:Meta.lastUpdated [ fhir:value "2013-07-01T13:11:33Z"^^xs:dateTime ]         ];
         fhir:Binary.contentType [ fhir:value "text/plain" ];
         fhir:Binary.content [ fhir:value "YXNkYXNkYXNkYXNkYXNk"^^xs:base64Binary ]       ]     ];
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "POST" ];
       fhir:Bundle.entry.request.url [ fhir:value "Binary" ]     ]
  ].

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


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.