Query for Existing Data for Mobile (QEDm)
3.0.1-current - ci-build International flag

Query for Existing Data for Mobile (QEDm), published by IHE Patient Care Coordination Technical Committee. This guide is not an authorized publication; it is the continuous build for version 3.0.1-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/IHE/PCC.QEDm/ and changes regularly. See the Directory of published versions

: Example of a search set bundle - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://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 -------------------------------------------------------------------

 a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ex-search"] ; # 
  fhir:meta [
    ( fhir:security [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
fhir:code [ fhir:v "HTEST" ]     ] )
  ] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:timestamp [ fhir:v "2024-11-26T11:32:24Z"^^xsd:dateTime] ; # 
  fhir:total [ fhir:v "3"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
fhir:relation [ fhir:v "self" ] ;
fhir:url [ fhir:v "http://example.org/Observation?patient=ex-patient&category=http://terminology.hl7.org/CodeSystem/observation-category|vital-signs&code=http://loinc.org|29463-7&_revinclude=Provenance:target"^^xsd:anyURI ]
  ] ) ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "http://example.org/Observation/ex-weight"^^xsd:anyURI ] ;
    ( fhir:resource <http://example.org/Observation/ex-weight> ) ;
fhir:search [
fhir:mode [ fhir:v "match" ]     ]
  ] [
fhir:fullUrl [ fhir:v "http://example.org/Observation/ex-weight2"^^xsd:anyURI ] ;
    ( fhir:resource <http://example.org/Observation/ex-weight2> ) ;
fhir:search [
fhir:mode [ fhir:v "match" ]     ]
  ] [
fhir:fullUrl [ fhir:v "http://example.org/Provenance/ex-provenance"^^xsd:anyURI ] ;
    ( fhir:resource <http://example.org/Provenance/ex-provenance> ) ;
fhir:search [
fhir:mode [ fhir:v "include" ]     ]
  ] ) . # 

<http://example.org/Observation/ex-weight> a fhir:Observation ;
  fhir:id [ fhir:v "ex-weight"] ; # 
  fhir:meta [
    ( fhir:security [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
fhir:code [ fhir:v "HTEST" ]     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_ex-weight\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation ex-weight</b></p><a name=\"ex-weight\"> </a><a name=\"hcex-weight\"> </a><a name=\"ex-weight-en-US\"> </a><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category vital-signs}\">Vital Signs</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 29463-7}\">Body weight</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">Jack Smith  Other, DoB: 1923-07-25</a></p><p><b>effective</b>: 2004-12-25 23:50:50-0500</p><p><b>performer</b>: <a href=\"Patient-ex-patient.html\">Jack Smith  Other, DoB: 1923-07-25</a></p><p><b>value</b>: 185 in_i<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code[lb_av] = '[lb_av]')</span></p><p><b>note</b>: a bit heavy</p></div>"
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:category ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ] ;
fhir:code [ fhir:v "vital-signs" ]     ] )
  ] ) ; # 
  fhir:code [
    ( fhir:coding [
a loinc:29463-7 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "29463-7" ]     ] )
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ; # 
  fhir:effective [ fhir:v "2004-12-25T23:50:50-05:00"^^xsd:dateTime] ; # 
  fhir:performer ( [
fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ) ; # 
  fhir:value [
a fhir:Quantity ;
fhir:value [ fhir:v "185"^^xsd:decimal ] ;
fhir:unit [ fhir:v "in_i" ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "[lb_av]" ]
  ] ; # 
  fhir:note ( [
fhir:text [ fhir:v "a bit heavy" ]
  ] ) . # 

<http://example.org/Observation/ex-weight2> a fhir:Observation ;
  fhir:id [ fhir:v "ex-weight2"] ; # 
  fhir:meta [
    ( fhir:security [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
fhir:code [ fhir:v "HTEST" ]     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_ex-weight2\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation ex-weight2</b></p><a name=\"ex-weight2\"> </a><a name=\"hcex-weight2\"> </a><a name=\"ex-weight2-en-US\"> </a><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category vital-signs}\">Vital Signs</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 29463-7}\">Body weight</span></p><p><b>subject</b>: <a href=\"Patient-ex-patient.html\">Jack Smith  Other, DoB: 1923-07-25</a></p><p><b>effective</b>: 2005-12-25 23:50:50-0500</p><p><b>performer</b>: <a href=\"Patient-ex-patient.html\">Jack Smith  Other, DoB: 1923-07-25</a></p><p><b>value</b>: 185 in_i<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code[lb_av] = '[lb_av]')</span></p><p><b>note</b>: a bit heavy</p></div>"
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:category ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ] ;
fhir:code [ fhir:v "vital-signs" ]     ] )
  ] ) ; # 
  fhir:code [
    ( fhir:coding [
a loinc:29463-7 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "29463-7" ]     ] )
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ; # 
  fhir:effective [ fhir:v "2005-12-25T23:50:50-05:00"^^xsd:dateTime] ; # 
  fhir:performer ( [
fhir:reference [ fhir:v "Patient/ex-patient" ]
  ] ) ; # 
  fhir:value [
a fhir:Quantity ;
fhir:value [ fhir:v "185"^^xsd:decimal ] ;
fhir:unit [ fhir:v "in_i" ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "[lb_av]" ]
  ] ; # 
  fhir:note ( [
fhir:text [ fhir:v "a bit heavy" ]
  ] ) . # 

<http://example.org/Provenance/ex-provenance> a fhir:Provenance ;
  fhir:id [ fhir:v "ex-provenance"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "https://profiles.ihe.net/ITI/mXDE/StructureDefinition/IHE.ITI.mXDE.Provenance"^^xsd:anyURI ;
fhir:link <https://profiles.ihe.net/ITI/mXDE/StructureDefinition/IHE.ITI.mXDE.Provenance>     ] ) ;
    ( fhir:security [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
fhir:code [ fhir:v "HTEST" ]     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Provenance_ex-provenance\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Provenance ex-provenance</b></p><a name=\"ex-provenance\"> </a><a name=\"hcex-provenance\"> </a><a name=\"ex-provenance-en-US\"> </a><p>Provenance for: </p><ul><li><a href=\"Observation-ex-IHE-QEDm-bloodPressure-0.html\">Observation Blood pressure panel with all children optional</a></li><li><a href=\"Encounter-ex-encounter.html\">Encounter: status = finished; class = home health (ActCode#HH)</a></li><li><a href=\"Observation-ex-weight.html\">Observation Body weight</a></li><li><a href=\"Observation-ex-weight2.html\">Observation Body weight</a></li></ul><p>Summary</p><table class=\"grid\"><tr><td>Recorded</td><td>2023-01-25 09:49:00+0000</td></tr><tr><td>Policy</td><td>urn:ihe:iti:mxde:2023:document-provenance-policy</td></tr><tr><td>Activity</td><td><span title=\"Codes:{http://hl7.org/fhir/w3c-provenance-activity-type Derivation}\">wasDerivedFrom</span></td></tr></table><p><b>Agents</b></p><table class=\"grid\"><tr><td><b>Type</b></td><td><b>who</b></td></tr><tr><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/provenance-participant-type assembler}\">Assembler</span></td><td><a href=\"Device-ex-device.html\">Device: status = active; distinctIdentifier = Decomposer; manufacturer = Acme</a></td></tr></table></div>"
  ] ; # 
  fhir:target ( [
fhir:reference [ fhir:v "Observation/ex-IHE-QEDm-bloodPressure-0" ]
  ] [
fhir:reference [ fhir:v "Encounter/ex-encounter" ]
  ] [
fhir:reference [ fhir:v "Observation/ex-weight" ]
  ] [
fhir:reference [ fhir:v "Observation/ex-weight2" ]
  ] ) ; # 
  fhir:recorded [ fhir:v "2023-01-25T09:49:00.000Z"^^xsd:dateTime] ; # 
  fhir:policy ( [ fhir:v "urn:ihe:iti:mxde:2023:document-provenance-policy"^^xsd:anyURI] ) ; # 
  fhir:activity [
    ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/w3c-provenance-activity-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "Derivation" ]     ] )
  ] ; # 
  fhir:agent ( [
fhir:type [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "assembler" ]       ] )     ] ;
fhir:who [
fhir:reference [ fhir:v "Device/ex-device" ]     ]
  ] ) ; # 
  fhir:entity ( [
fhir:role [ fhir:v "source" ] ;
fhir:what [
fhir:reference [ fhir:v "DocumentReference/ex-documentreference" ]     ]
  ] ) . #