Examples Body Weight

Example 1: Creating a Body Weight Observation

The following is an example of a POST request where a body weight observation is created with the Snomed CT concept 27113001 | Body weight | given on code. To be able to specify HSA id:s for both unit and practitioner, a PractitionerRole resource is contained within the Observation.

Request

  1. POST [baseURL]/Observation

Body

Link to Json format

Observation

Example 2: Searching a Patient's Body Weight Registrations by Specifying Required Profile

The following is an example of a GET request in which the search is based on patient ID. To narrow the search to only body weight observations, the profile is specified in the query.

Given date interval in the search is 2021-10-01T15:33:48.583Z to 2021-12-01T15:33:48.583Z

As a response, the Observations are included in a Bundle resource.

Search Query

  1. GET [baseURL]/Observation/_search?patient:identifier=urn:oid:1.2.752.129.2.1.3.1|198101199282&date=gt2021-10-01T15:33:48.583Z&date=lt2021-12-01T15:33:48.583Z&status=final&_profile=https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightLite/v1

Response

Link to Json format

Bundle

Example 3: Searching a Patient's Body Weight Registrations by Specifying Required Profile & Including performer.organization

The following is an example of a GET request in which the search is based on patient ID. To narrow the search to only body weight observations, the profile is specified in the query.

Given date interval in the search is 2018-11-20T15:33:48.583Z to 2022-12-20T15:33:48.583Z

As a response, the Observations are included in a Bundle resource.

Search Query

  1. GET [baseURL]Observation/_search?patient.identifier=urn:oid:1.2.752.129.2.1.3.1|199402112388&date=gt2018-11-20T15:33:48.583Z&date=lt2022-12-20T15:33:48.583Z&status=final&_profile=https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightLite/v1&_include=Observation:performer.organization

Response

Link to Json format

Bundle