Release 4

Bundle-response.ttl

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

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

Response for the example transaction

@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/Bundle/bundle-response> a fhir:Bundle;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "bundle-response"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2014-08-18T01:43:33Z"^^xsd:dateTime ]
  ];
  fhir:Bundle.type [ fhir:value "transaction-response"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.org/fhir/Patient/12423" ];
     fhir:Bundle.entry.resource <http://example.org/fhir/Patient/12423>;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "201 Created" ];
       fhir:Bundle.entry.response.location [ fhir:value "Patient/12423/_history/1" ];
       fhir:Bundle.entry.response.etag [ fhir:value "W/\"1\"" ];
       fhir:Bundle.entry.response.lastModified [ fhir:value "2014-08-18T01:43:33Z"^^xsd:dateTime ];
       fhir:Bundle.entry.response.outcome [
         a fhir:OperationOutcome;
         fhir:OperationOutcome.issue [
           fhir:index 0;
           fhir:OperationOutcome.issue.severity [ fhir:value "warning" ];
           fhir:OperationOutcome.issue.code [ fhir:value "not-found" ];
           fhir:OperationOutcome.issue.details [
             fhir:CodeableConcept.text [ fhir:value "The Managing organization was not known and was deleted" ]
           ];
           fhir:OperationOutcome.issue.expression [
             fhir:value "Patient.managingOrganization";
             fhir:index 0
           ]
         ]
       ]
     ]
  ], [
     fhir:index 1;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "200 OK" ]
     ]
  ], [
     fhir:index 2;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "200 OK" ];
       fhir:Bundle.entry.response.location [ fhir:value "Patient/123/_history/4" ];
       fhir:Bundle.entry.response.etag [ fhir:value "W/\"4\"" ]
     ]
  ], [
     fhir:index 3;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "201 Created" ];
       fhir:Bundle.entry.response.location [ fhir:value "Patient/12424/_history/1" ];
       fhir:Bundle.entry.response.etag [ fhir:value "W/\"1\"" ]
     ]
  ], [
     fhir:index 4;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "200 ok" ];
       fhir:Bundle.entry.response.location [ fhir:value "Patient/123a/_history/3" ];
       fhir:Bundle.entry.response.etag [ fhir:value "W/\"3\"" ]
     ]
  ], [
     fhir:index 5;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "202 Accepted" ]
     ]
  ], [
     fhir:index 6;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "DELETE" ]
     ]
  ], [
     fhir:index 7;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:7f9724ed-ef8d-4434-aacb-41869db83233" ];
     fhir:Bundle.entry.resource <urn:uuid:7f9724ed-ef8d-4434-aacb-41869db83233>;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "200 ok" ]
     ]
  ], [
     fhir:index 8;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:e7bcef8e-5ef9-4d2b-87d5-b42b1eec9125" ];
     fhir:Bundle.entry.resource <urn:uuid:e7bcef8e-5ef9-4d2b-87d5-b42b1eec9125>;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "200 OK" ]
     ]
  ], [
     fhir:index 9;
     fhir:Bundle.entry.response [
       fhir:Bundle.entry.response.status [ fhir:value "304 Not Modified" ]
     ]
  ] .

<http://example.org/fhir/Patient/12423> a fhir:Patient;
  fhir:Resource.id [ fhir:value "12423"];
  fhir:Resource.meta [
     fhir:Meta.versionId [ fhir:value "1" ];
     fhir:Meta.lastUpdated [ fhir:value "2014-08-18T01:43:31Z"^^xsd:dateTime ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Some narrative</div>"
  ];
  fhir:Patient.active [ fhir:value "true"^^xsd:boolean];
  fhir:Patient.name [
     fhir:index 0;
     fhir:HumanName.use [ fhir:value "official" ];
     fhir:HumanName.family [ fhir:value "Chalmers" ];
     fhir:HumanName.given [
       fhir:value "Peter";
       fhir:index 0
     ], [
       fhir:value "James";
       fhir:index 1
     ]
  ];
  fhir:Patient.gender [ fhir:value "male"];
  fhir:Patient.birthDate [ fhir:value "1974-12-25"^^xsd:date] .

<urn:uuid:7f9724ed-ef8d-4434-aacb-41869db83233> a fhir:Parameters;
  fhir:Parameters.parameter [
     fhir:index 0;
     fhir:Parameters.parameter.name [ fhir:value "name" ];
     fhir:Parameters.parameter.valueString [ fhir:value "LOINC" ]
  ] .

<urn:uuid:e7bcef8e-5ef9-4d2b-87d5-b42b1eec9125> a fhir:Bundle;
  fhir:Resource.id [ fhir:value "fb6ed6cb-324e-4588-87cd-0c92c68986ca"];
  fhir:Bundle.type [ fhir:value "searchset"] .

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

<http://hl7.org/fhir/Bundle/bundle-response.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Bundle/bundle-response.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.