Release 4B R5 Final QA

This page is part of the FHIR Specification (v4.3.0: R4B (v5.0.0-draft-final: Final QA Preview for R5 - STU see ballot notes ). 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

Bundle-request-medsallergies.ttl

Example Bundle/bundle-request-medsallergies (Turtle)

FHIR Infrastructure Work Group Maturity Level : N/A Standards Status : Informative Compartments : Not linked to any defined compartments

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

Retrieve a patients medications, allergies, problems and immunizations

@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-request-medsallergies> a fhir:Bundle;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "bundle-request-medsallergies"];
  fhir:Bundle.type [ fhir:value "batch"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "GET" ];
       fhir:Bundle.entry.request.url [ fhir:value "/Patient/example" ]

[a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "bundle-request-medsallergies"] ; # 
  fhir:type [ fhir:v "batch"] ; #   This bundle is a batch of reqests to the FHIR RESTful API  
  fhir:entry ( [
     fhir:request [
       fhir:method [ fhir:v "GET" ] ;
       fhir:url [ fhir:v "/Patient/example"^^xsd:anyURI ]

     ]
  ], [
     fhir:index 1;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "GET" ];
       fhir:Bundle.entry.request.url [ fhir:value "/MedicationStatement?patient=example&_list=$current-medications" ]

  ] [
     fhir:request [
       fhir:method [ fhir:v "GET" ] ;
       fhir:url [ fhir:v "/MedicationStatement?patient=example&_list=$current-medications"^^xsd:anyURI ]

     ]
  ], [
     fhir:index 2;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "GET" ];
       fhir:Bundle.entry.request.url [ fhir:value "/AllergyIntolerance?patient=example&_list=$current-allergies" ]

  ] [
     fhir:request [
       fhir:method [ fhir:v "GET" ] ;
       fhir:url [ fhir:v "/AllergyIntolerance?patient=example&_list=$current-allergies"^^xsd:anyURI ]

     ]
  ], [
     fhir:index 3;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "GET" ];
       fhir:Bundle.entry.request.url [ fhir:value "/Condition?patient=example&_list=$current-problems" ]

  ] [
     fhir:request [
       fhir:method [ fhir:v "GET" ] ;
       fhir:url [ fhir:v "/Condition?patient=example&_list=$current-problems"^^xsd:anyURI ]

     ]
  ], [
     fhir:index 4;
     fhir:Bundle.entry.request [
       fhir:Bundle.entry.request.method [ fhir:value "GET" ];
       fhir:Bundle.entry.request.url [ fhir:value "/MedicationStatement?patient=example&notgiven:not=true" ]

  ] [
     fhir:request [
       fhir:method [ fhir:v "GET" ] ;
       fhir:url [ fhir:v "/MedicationStatement?patient=example&notgiven:not=true"^^xsd:anyURI ]

     ]
  ] .

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

<http://hl7.org/fhir/Bundle/bundle-request-medsallergies.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Bundle/bundle-request-medsallergies.ttl> .

  ] )] . #   Each entry is used to represent a RESTful API request
#       This request retrieves a single Patient resource  


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


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.