Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
title$search.measurements-bundle-limit example

Searching measurements with $search-measurements-bundle-limit

POST $search-measurement request body:

Parameters available:

Amount

Parameter Name

Type

0..1

patient

Reference (Patient)

0..1

episodeOfCare

Reference (EpisodeOfCare)

0..1

count

Positive Integer

0..1

start

DateTimeType

0..1

end

DateTimeType

0..*

based-on

Reference (ServiceRequests)

Combinations allow for:

Info

Only one of the parameters Start or End can be used at a time.

  • If start is used, the first count number of bundles after the start time is returned.

  • If end is used, the latest count number of bundles up to the end time is returned.

  • broad searches (Patient and Start or End only)

  • precise searches (Start or End and ServiceRequest) and other combinations

Response:

The response is a bundle of nested bundles that each contain a full set of related resources (Observation, Media, QuestionnaireResponse and Provenance) for a found measurement. If a QuestionnaireResponse is part of a bundle the Questionnaire it answers is also included in the bundle. Related resources are the set of resources created by a single invocation of the submit-measurement operation. The amount of nested bundles is limited by the given count parameter.

  • Bundle of:

    • Bundle for each submitted together:

      • 0..* Observation

      • 0..* Media

      • 0..* QuestionnaireResponse

      • 0..* Provenance indicating reuse of measurement

Examples:

Below example is from here: http://ehealth-documentation.s3-website-eu-west-1.amazonaws.com/latest/ig/POST_search-measurements.html#post-search-measurements

Like the $search-measurements operation, the $search-measurements-bundle-limit operation is also a POST request to the URL:

POST [base]/$search-measurements-bundle-limit

The search parameters are sent by including them in the request body (below is a JSON example of a body):

Code Block
languagejson
{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "patient",
      "valueReference": {
        "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/968908100"
      }
    },
    {
      "name": "count",
      "valueInteger": 10
    },
    {
      "name": "startend",
      "valueDateTime": "2024-0506-21T1306T04:5541:2738+02:00"
    }
  ]
}

The response will then contain a bundle of bundles with the found resources (Below is a JSON example of a return bundle):

Code Block
languagejson
{
  "resourceType": "Bundle",
  "type": "collection",
  "entry": [
    {
      "fullUrl": "f0d826c9-61d3-4406-8d3e-43e0a0c1ebbd",
      "resource": {
        "typeresourceType": "collectionBundle",
        "id": "796ecc5af0d826c9-245f61d3-43a34406-a76d-fa9d7b46490b8d3e-43e0a0c1ebbd",
        "type": "collection",
        "entry": [
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Provenance/30",
            "resource": {
              "recordedresourceType": "Provenance",
"2024-05-22T13:55:26.659+02:00              "id": "30",
              "target": [
                {
                  "reference": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/2529"
                }
              ],
              "resourceTypemeta": "Provenance",{
                "agentsource": ["#408ec467-6c79-43",
                {
 "lastUpdated": "2024-06-17T05:41:37.304+00:00",
                "whoprofile": {[
                    "reference": "https:http://patient.local.ehealth.sundhed.dk/fhir/PatientStructureDefinition/96890ehealth-provenance"
                ],
 }               "versionId": "1"
}               ]},
              "idagent": "26", [
                {
                  "policywho": [ {
                    "reference": "httphttps://patient.local.ehealth.sundhed.dk/policyfhir/ehealth/coherent-submitted-measurementPatient/8100"
              ],    }
          "meta": {     }
           "source": "#9f165990-87b4-45",  ],
              "lastUpdatedpolicy": "2024-06-07T11:55:26.718+00:00",
                "profile": [
 [
                "http://ehealth.sundhed.dk/fhirpolicy/StructureDefinitionehealth/ehealthcoherent-submitted-provenancemeasurement"
                ],
                "versionIdrecorded": "1"2024-06-05T07:41:37.286+02:00"
            }
        }  },
          },{
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/ProvenanceObservation/2629",
          }  "resource": {
     ],         "resourceType": "BundleObservation",
      },        "fullUrleffectivePeriod": "796ecc5a-245f-43a3-a76d-fa9d7b46490b"{
    },     {       "resourceend": {"2024-06-17T07:41:37+02:00",
        "type": "collection",         "idstart": "6726134b2024-76ea-4c7c-b471-a9af07ad9e16",06-17T07:41:37+02:00"
        "entry": [     },
     {             "resourcecode": {
                "recordedcoding": "2024-05-24T13:55:26.924+02:00",[
              "target": [        {
        {                   "reference"system": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/27"urn:oid:1.2.208.176.2.1",
                }    "code": "NPU03011"
           ],       }
       "resourceType": "Provenance",         ]
       "agent": [      },
          {    "performer": [
             "who": {  {
                  "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/968908100"
 
                }
              ],
 }               ]"status": "final",
              "iddevice": "28", {
                "policyreference": [
                "http"https://device.local.ehealth.sundhed.dk/policyfhir/ehealth/coherent-submitted-measurementDevice/72047"
              ]},
              "metaid": {
 "29",
              "sourceextension": "#c350e479-e6a0-47",[
                {
"lastUpdated": "2024-06-07T11:55:26.946+00:00",                 "profilevalueReference": {
 [                   "httpreference": "https://careplan.local.ehealth.sundhed.dk/fhir/StructureDefinitionEpisodeOfCare/ehealth-provenance46567"
                ]  },
                  "versionIdurl": "1http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare"
                },
            },    {
        "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Provenance/28"         "extension": [
}         ],
           {
       "resourceType": "Bundle"       },       "fullUrlvalueId": "6726134b-76ea-4c7c-b471-a9af07ad9e16"42",
          },     {       "resourceurl": {"serviceRequestVersionId"
         "type": "collection",         "id": "c1c9ae30-7240-4003-a2fb-0459813b6a50" },
        "entry": [           {
                      "resourcevalueCodeableConcept": {
              "recorded": "2024-05-26T13:55:27.211+02:00",          "coding": [
                  "target": [       {
         {                   "referencesystem": "httpshttp://measurement.local.ehealth.sundhed.dk/fhir/Observation/29"cs/resolved-timing-type",
                 }           "code": "Adhoc"
  ],               "resourceType": "Provenance",         }
          "agent": [             ]
   {                   "who": {},
                      "referenceurl": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/96890type"
                    }
                }   ],
                  "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing"
               ], }
             "id": "30" ],
              "policysubject": {
[                "reference": "httphttps://patient.local.ehealth.sundhed.dk/policyfhir/ehealth/coherent-submitted-measurementPatient/8100"
              ]},
              "meta": {
                "source": "#8f56bce2#6b5ef661-6c4857ea-454a",
                "lastUpdated": "2024-06-07T1117T05:5541:2737.234174+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenanceobservation"
                ],
                "versionId": "1"
              },
            },  "basedOn": [
            "fullUrl    {
                  "reference": "https://measurementcareplan.local.ehealth.sundhed.dk/fhir/ProvenanceServiceRequest/30"31566"
                }
           ],   ]
            }
          }
        ]
  "resourceType": "Bundle"    }
    },
    {
      "fullUrl": "c1c9ae302666bbd6-72401c51-4003418a-a2fb-0459813b6a50"a32c-ac915dfef6a3",
      "resource": {
     },   "resourceType": "Bundle",
 {       "resourceid": {"2666bbd6-1c51-418a-a32c-ac915dfef6a3",
        "type": "collection",
        "identry": "e4c4f253-3b15-4140-9b3d-43deffc93d9b [
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Provenance/28",
            "resource": {
              "resourceType": "Provenance",
              "id": "28",
              "target": [
                {
                  "reference": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/27"
                }
              ],
              "meta": {
                "source": "#eb81403f-d6e4-4c",
                "lastUpdated": "2024-06-17T05:41:37.063+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance"
                ],
                "versionId": "1"
              },
              "agent": [
                {
                  "who": {
                    "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
                  }
                }
              ],
              "policy": [
                "http://ehealth.sundhed.dk/policy/ehealth/coherent-submitted-measurement"
              ],
              "recorded": "2024-06-03T07:41:36.986+02:00"
            }
          },
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/27",
            "resource": {
              "resourceType": "Observation",
              "effectivePeriod": {
                "end": "2024-06-17T07:41:36+02:00",
                "start": "2024-06-17T07:41:36+02:00"
              },
              "code": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.208.176.2.1",
                    "code": "NPU03011"
                  }
                ]
              },
              "performer": [
                {
                  "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
                }
              ],
              "status": "final",
              "device": {
                "reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/2050"
              },
              "id": "27",
              "extension": [
                {
                  "valueReference": {
                    "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/65152"
                  },
                  "url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare"
                },
                {
                  "extension": [
                    {
                      "valueId": "42",
                      "url": "serviceRequestVersionId"
                    },
                    {
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://ehealth.sundhed.dk/cs/resolved-timing-type",
                            "code": "Adhoc"
                          }
                        ]
                      },
                      "url": "type"
                    }
                  ],
                  "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing"
                }
              ],
              "subject": {
                "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
              },
              "meta": {
                "source": "#b7bbebca-a50c-43",
                "lastUpdated": "2024-06-17T05:41:36.956+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation"
                ],
                "versionId": "1"
              },
              "basedOn": [
                {
                  "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/82641"
                }
              ]
            }
          }
        ]
      }
    },
    {
      "fullUrl": "b515e3be-13f3-4eed-8067-83743581781f",
      "resource": {
        "resourceType": "Bundle",
        "id": "b515e3be-13f3-4eed-8067-83743581781f",
        "type": "collection",
        "entry": [
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Provenance/26",
            "resource": {
              "resourceType": "Provenance",
              "id": "26",
              "target": [
                {
                  "reference": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/25"
                }
              ],
              "meta": {
                "source": "#b505a71c-28f4-45",
                "lastUpdated": "2024-06-17T05:41:36.791+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance"
                ],
                "versionId": "1"
              },
              "agent": [
                {
                  "who": {
                    "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
                  }
                }
              ],
              "policy": [
                "http://ehealth.sundhed.dk/policy/ehealth/coherent-submitted-measurement"
              ],
              "recorded": "2024-06-01T07:41:36.772+02:00"
            }
          },
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/25",
            "resource": {
              "resourceType": "Observation",
              "effectivePeriod": {
                "end": "2024-06-17T07:41:36+02:00",
                "start": "2024-06-17T07:41:36+02:00"
              },
              "code": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.208.176.2.1",
                    "code": "NPU03011"
                  }
                ]
              },
              "performer": [
                {
                  "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
                }
              ],
              "status": "final",
              "device": {
                "reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/48238"
              },
              "id": "25",
              "extension": [
                {
                  "valueReference": {
                    "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/95071"
                  },
                  "url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare"
                },
                {
                  "extension": [
                    {
                      "valueId": "42",
                      "url": "serviceRequestVersionId"
                    },
                    {
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://ehealth.sundhed.dk/cs/resolved-timing-type",
                            "code": "Adhoc"
                          }
                        ]
                      },
                      "url": "type"
                    }
                  ],
                  "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing"
                }
              ],
              "subject": {
                "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
              },
              "meta": {
                "source": "#589f2ffe-7597-4c",
                "lastUpdated": "2024-06-17T05:41:36.675+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation"
                ],
                "versionId": "1"
              },
              "basedOn": [
                {
                  "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/44178"
                }
              ]
            }
          }
        ]
      }
    },
    {
      "fullUrl": "2233f5a6-1d86-436d-9b24-0a1b29082160",
      "resource": {
        "resourceType": "Bundle",
        "id": "2233f5a6-1d86-436d-9b24-0a1b29082160",
        "type": "collection",
        "entry": [
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Provenance/24",
            "resource": {
              "resourceType": "Provenance",
              "id": "24",
              "target": [
                {
                  "reference": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/23"
                }
              ],
              "meta": {
                "source": "#c321fda6-1f04-45",
                "lastUpdated": "2024-06-17T05:41:36.550+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance"
                ],
                "versionId": "1"
              },
              "agent": [
                {
                  "who": {
                    "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
                  }
                }
              ],
              "policy": [
                "http://ehealth.sundhed.dk/policy/ehealth/coherent-submitted-measurement"
              ],
              "recorded": "2024-05-31T07:41:36.480+02:00"
            }
          },
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/23",
            "resource": {
              "resourceType": "Observation",
              "effectivePeriod": {
                "end": "2024-06-17T07:41:36+02:00",
                "start": "2024-06-17T07:41:36+02:00"
              },
              "code": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.208.176.2.1",
                    "code": "NPU03011"
                  }
                ]
              },
              "performer": [
                {
                  "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
                }
              ],
              "status": "final",
              "device": {
                "reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/66978"
              },
              "id": "23",
              "extension": [
                {
                  "valueReference": {
                    "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/55315"
                  },
                  "url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare"
                },
                {
                  "extension": [
                    {
                      "valueId": "42",
                      "url": "serviceRequestVersionId"
                    },
                    {
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://ehealth.sundhed.dk/cs/resolved-timing-type",
                            "code": "Adhoc"
                          }
                        ]
                      },
                      "url": "type"
                    }
                  ],
                  "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing"
                }
              ],
              "subject": {
                "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
              },
              "meta": {
                "source": "#eba350f6-e680-40",
                "lastUpdated": "2024-06-17T05:41:36.301+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation"
                ],
                "versionId": "1"
              },
              "basedOn": [
                {
                  "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/52820"
                }
              ]
            }
          }
        ]
      }
    },
    {
      "fullUrl": "3624c79a-1647-4ea3-97ef-9c153a5ea210",
      "resource": {
        "resourceType": "Bundle",
        "id": "3624c79a-1647-4ea3-97ef-9c153a5ea210",
        "type": "collection",
        "entry": [
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Provenance/22",
            "resource": {
              "resourceType": "Provenance",
              "id": "22",
              "target": [
                {
                  "reference": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/21"
                }
              ],
              "meta": {
                "source": "#92e3dc36-5881-46",
                "lastUpdated": "2024-06-17T05:41:36.180+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance"
                ],
                "versionId": "1"
              },
              "agent": [
                {
                  "who": {
                    "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
                  }
                }
              ],
              "policy": [
                "http://ehealth.sundhed.dk/policy/ehealth/coherent-submitted-measurement"
              ],
              "recorded": "2024-05-30T07:41:36.163+02:00"
            }
          },
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/21",
            "resource": {
              "resourceType": "Observation",
              "effectivePeriod": {
                "end": "2024-06-17T07:41:35+02:00",
                "start": "2024-06-17T07:41:35+02:00"
              },
              "code": {
                "coding": [
                  {
                    "system": "urn:oid:1.2.208.176.2.1",
                    "code": "NPU03011"
                  }
                ]
              },
              "performer": [
                {
                  "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
                }
              ],
              "status": "final",
              "device": {
                "reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/65032"
              },
              "id": "21",
              "extension": [
                {
                  "valueReference": {
                    "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/72530"
                  },
                  "url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare"
                },
                {
                  "extension": [
                    {
                      "valueId": "42",
                      "url": "serviceRequestVersionId"
                    },
                    {
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://ehealth.sundhed.dk/cs/resolved-timing-type",
                            "code": "Adhoc"
                          }
                        ]
                      },
                      "url": "type"
                    }
                  ],
                  "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing"
                }
              ],
              "subject": {
                "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/8100"
              },
              "meta": {
                "source": "#f0aede18-939d-40",
                "lastUpdated": "2024-06-17T05:41:36.072+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation"
                ],
                "versionId": "1"
              },
              "basedOn": [
                {
                  "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/4423"
                }
              ]
            }
          }
        ]
      }
    },
    {
      "fullUrl": "c9afae18-c908-4f2a-a0e7-b9b487195fc4",
      "resource": {
        "resourceType": "Bundle",
        "id": "c9afae18-c908-4f2a-a0e7-b9b487195fc4",
        "type": "collection",
        "entry": [
          {
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Provenance/20",
        "entry": [   "resource": {
      {
            "resourceresourceType": {"Provenance",
              "recordedid": "2024-05-27T13:55:27.426+02:0020",
              "target": [
                {
                  "reference": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/3119"
                }
              ],
              "resourceTypemeta": "Provenance", {
                "agentsource": ["#9c9c8c39-fe5d-4d",
                {
 "lastUpdated": "2024-06-17T05:41:35.953+00:00",
                "whoprofile": {[
                    "reference": "https"http://patient.local.ehealth.sundhed.dk/fhir/PatientStructureDefinition/96890ehealth-provenance"
                ],
 }               "versionId": "1"
}               ]},
              "idagent": "32", [
                {
                  "policywho": {
[                    "httpreference": "https://patient.local.ehealth.sundhed.dk/policyfhir/ehealth/coherent-submitted-measurement"
 Patient/8100"
            ],      }
        "meta": {        }
        "source": "#16621d9d-185c-4f",                 "lastUpdated": "2024-06-07T11:55:27.443+00:00"],
                "profilepolicy": [
                  "http://ehealth.sundhed.dk/fhirpolicy/StructureDefinitionehealth/ehealthcoherent-submitted-provenancemeasurement"
                ],
 
              "versionIdrecorded": "1"2024-05-28T07:41:35.898+02:00"
            }
  }        },
          },{
            "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/ProvenanceObservation/32"
          }
  19",
     ],         "resourceTyperesource": {
"Bundle"       },       "fullUrlresourceType": "e4c4f253-3b15-4140-9b3d-43deffc93d9b"Observation",
    },     {       "resourceeffectivePeriod": {
 
      "type": "collection",         "idend": "c57c6e942024-4423-487b-9c29-b25bc8cb3e2706-17T07:41:35+02:00",
        "entry": [       "start": "2024-06-17T07:41:35+02:00"
  {            },
"resource": {               "recordedcode": "2024-05-28T13:55:27.613+02:00", {
                "targetcoding": [
                  {
                    "referencesystem": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/33"urn:oid:1.2.208.176.2.1",
                 }   "code": "NPU03011"
           ],       }
       "resourceType": "Provenance",         ]
       "agent": [      },
          {    "performer": [
             "who": {  {
                  "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/96890"
               8100"
  }                 }
              ],
              "idstatus": "34final",
              "policydevice": {
[                "reference": "httphttps://device.local.ehealth.sundhed.dk/policyfhir/ehealth/coherent-submitted-measurement"Device/34570"
              },
      ]        "id": "19",
              "metaextension": [
                {
                  "sourcevalueReference": "#d0b8e791-bb0a-46",{
                    "lastUpdatedreference": "2024-06-07T11:55:27.632+00:00",https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/5775"
                 "profile": [ },
                  "url": "http://ehealthhl7.sundhed.dkorg/fhir/StructureDefinition/ehealthworkflow-provenanceepisodeOfCare"
                ]},
                {
 "versionId": "1"               } "extension": [
          },          {
  "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Provenance/34"           }         ]"valueId": "42",
        "resourceType": "Bundle"       },       "fullUrlurl": "c57c6e94-4423-487b-9c29-b25bc8cb3e27"serviceRequestVersionId"
       },     {       "resource": { },
        "type": "collection",         "id": "87f27014-00fd-4baf-aa9a-8f4e38206dc6",
 {
       "entry": [           {   "valueCodeableConcept": {
        "resource": {               "recordedcoding": "2024-05-30T13:55:27.762+02:00", [
                  "target": [       {
         {                   "referencesystem": "httpshttp://measurement.local.ehealth.sundhed.dk/fhir/Observation/35"cs/resolved-timing-type",
                }            "code": "Adhoc"
    ],                  "resourceType": "Provenance",   }
           "agent": [            ]
    {                  },
"who": {                     "referenceurl": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/96890"type"
                    }
                  ],
                  "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing"
   }             }
 ],               "id": "36"],
              "policysubject": [{
                "reference": "httphttps://patient.local.ehealth.sundhed.dk/policyfhir/ehealth/coherent-submitted-measurementPatient/8100"
              ]},
              "meta": {
                "source": "#b3ac45ea#a124fe94-93132f0d-4e43",
                "lastUpdated": "2024-06-07T1117T05:5541:2735.822785+00:00",
                "profile": [
                  "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenanceobservation"
                ],
                "versionId": "1"
              },
              "basedOn": [
               }, {
                  "fullUrlreference": "https://measurementcareplan.local.ehealth.sundhed.dk/fhir/ProvenanceServiceRequest/3635457"
                }
            ],  ]
            }
  "resourceType": "Bundle"       },
        "fullUrl": "87f27014-00fd-4baf-aa9a-8f4e38206dc6"]
      }
  ],  }
 "resourceType": "Bundle" ]
}
  • Search on Observation

Expand
titleExamples of Searching for Observations

Searching for Observation

Below is a list of some of the common search parameters. An exhaustive list can be found in implementation guide at http://ehealth-documentation.s3-website-eu-west-1.amazonaws.com/latest/ig/measurement.openapi.json.

Name

Description

_tag

the tag of a resource

_id

The ID of the resource

patient

The patient that the observation is about

subject

The subject that the observation is about

episodeOfCare

The EpisodeOfCare that the Observation is associated with

based-on

The ServiceRequest that the observation is based on

resolvedTimingStart

Resolved Timing start

resolvedTimingEnd

Resolved Timing end

Response:

  • Bundle of

    • Observation(s)

Examples:

Searching on Observations are done by use of a traditional GET request:

GET [base]/fhir/Observation?paramName1=param1&paramName2=param2

As an example one could perform searches like the following examples:

  • Searching by two resource Ids and and a Subject: GET [base]/fhir/Observation?_id=1,3&subject=https://patient.local.ehealth.sundhed.dk/fhir/Patient/34032

  • Searching by occurrence date: GET [base]/fhir/Observation?date=lt2023-01-22&date=gt2022-10-22 (lt=less than, gt=greater than)

  • Searching by resolvedTiming start and end: GET [base]/fhir/Observation?resolvedTimingEnd=gt2023-05-22T08:37:42+02:00&resolvedTimingStart=gt2023-05-22T08:37:42+02:00

  • Search by resource tag: GET [base]/fhir/Observation?_tag=http://ehealth.sundhed.dk/cs/ehealth-system|xa

An example of a response on for a search could be:

Code Block
{
  "resourceType": "Bundle",
  "id": "38696d91-c2e4-44c4-9745-9101fde22c68",
  "meta": {
    "lastUpdated": "2023-05-22T11:38:07.748+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [ {
    "relation": "self",
    "url": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation?_id=1,3&subject=https://patient.local.ehealth.sundhed.dk/fhir/Patient/11464"
  } ],
  "entry": [ {
    "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/3",
    "resource": {
      "resourceType": "Observation",
      "id": "3",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2023-05-22T11:38:07.645+00:00",
        "source": "#681926ed-87a3-45",
        "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation" ]
      },
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare",
        "valueReference": {
          "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/74121"
        }
      }, {
        "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing",
        "extension": [ {
          "url": "serviceRequestVersionId",
          "valueId": "42"
        }, {
          "url": "type",
          "valueCodeableConcept": {
            "coding": [ {
              "system": "http://ehealth.sundhed.dk/cs/resolved-timing-type",
              "code": "Adhoc"
            } ]
          }
        } ]
      } ],
      "basedOn": [ {
        "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/68661"
      } ],
      "status": "final",
      "code": {
        "coding": [ {
          "system": "urn:oid:1.2.208.176.2.1",
          "code": "NPU03011"
        } ]
      },
      "subject": {
        "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/11464"
      },
      "effectivePeriod": {
        "start": "2023-05-22T13:38:07+02:00",
        "end": "2023-05-22T13:38:07+02:00"
      },
      "performer": [ {
        "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/11464"
      } ],
      "device": {
        "reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/41502"
      }
    },
    "search": {
      "mode": "match"
    }
  }, {
    "fullUrl": "https://measurement.local.ehealth.sundhed.dk/fhir/Observation/1",
    "resource": {
      "resourceType": "Observation",
      "id": "1",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2023-05-22T11:38:06.857+00:00",
        "source": "#ad7c2284-3eb3-47",
        "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation" ]
      },
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/workflow-episodeOfCare",
        "valueReference": {
          "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/14633"
        }
      }, {
        "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-resolved-timing",
        "extension": [ {
          "url": "serviceRequestVersionId",
          "valueId": "42"
        }, {
          "url": "type",
          "valueCodeableConcept": {
            "coding": [ {
              "system": "http://ehealth.sundhed.dk/cs/resolved-timing-type",
              "code": "Adhoc"
            } ]
          }
        } ]
      } ],
      "basedOn": [ {
        "reference": "https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/43518"
      } ],
      "status": "final",
      "code": {
        "coding": [ {
          "system": "urn:oid:1.2.208.176.2.1",
          "code": "NPU03011"
        } ]
      },
      "subject": {
        "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/11464"
      },
      "effectivePeriod": {
        "start": "2023-05-22T13:38:05+02:00",
        "end": "2023-05-22T13:38:05+02:00"
      },
      "performer": [ {
        "reference": "https://patient.local.ehealth.sundhed.dk/fhir/Patient/11464"
      } ],
      "device": {
        "reference": "https://device.local.ehealth.sundhed.dk/fhir/Device/72749"
      }
    },
    "search": {
      "mode": "match"
    }
  } ]
}

...