Examples Body Temperature
Introduction
An example payload for a POST operation or response to a GET operation.
Example Payload
Observation |
id : 11142 |
meta |
id : 11142 |
versionId : 11142 |
lastUpdated : 2021-03-10T11:31:59+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyTemperatureLite/v1 |
contained |
id : 1 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1 |
practitioner |
reference : Practitioner/523052 |
type : Practitioner |
organization |
reference : Organization/1064 |
type : Organization |
identifier |
system : https://fhir.cambio.se/Observation |
value : 11142 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://loinc.org |
code : 8310-5 |
coding |
system : http://snomed.info/sct |
code : 276885007 |
display : Core body temperature |
subject |
reference : Patient/12237 |
type : Patient |
effective : 2021-03-10T11:31:59+01:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
value : 36.7 |
unit : Cel |
system : http://unitsofmeasure.org |
code : Cel |
Example: Searching a Patient's Body Temperature 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 temperature 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
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/ObservationBodyTemperatureLite/v1&_include=Observation:performer.organization
Response
Bundle |
id : 0076853c-1509-4323-a658-b6b1007d4477 |
meta |
lastUpdated : 2022-07-11T15:53:01.695+02:00 |
type : searchset |
total : 2 |
link |
relation : self |
url : http://13.74.30.234:8080/fhir/Observation/_search?_include=Observation%3Aperformer.organization&_profile=https%3A%2F%2Ffhir.cambio.se%2FStructureDefinition%2FObservationBodyTemperatureLite%2Fv1&_sid=gustav.cederblad%40cambio.se&date=gt2018-11-20T15%3A33%3A48.583Z&date=lt2022-12-20T15%3A33%3A48.583Z&patient.identifier=urn%3Aoid%3A1.2.752.129.2.1.3.1%7C199402112388&status=final |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Observation/6174 |
resource |
id : 6174 |
meta |
id : 6174 |
versionId : 6174 |
lastUpdated : 2019-02-19T10:44:16+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyTemperatureLite/v1 |
contained |
id : 1 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1 |
practitioner |
reference : Practitioner/548378 |
type : Practitioner |
organization |
reference : Organization/3557 |
type : Organization |
identifier |
system : https://fhir.cambio.se/Observation |
value : 6174 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://loinc.org |
code : 8310-5 |
coding |
system : http://snomed.info/sct |
code : 276885007 |
display : Core body temperature |
subject |
reference : Patient/8181 |
type : Patient |
encounter |
reference : Encounter/220192 |
type : Encounter |
effective : 2019-02-19T10:44:16+01:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
value : 40 |
unit : Cel |
system : http://unitsofmeasure.org |
code : Cel |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Organization/3557 |
resource |
id : 3557 |
meta |
versionId : 18607 |
profile : https://fhir.cambio.se/StructureDefnition/Organization |
identifier |
use : secondary |
system : https://cambio.codes/is/unit/lab-identifier |
value : EMERG |
identifier |
use : secondary |
system : https://cambio.codes/socialstyrelsen/is/arbetsplatskod |
value : 45678965497 |
identifier |
use : official |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE162321000024-6907 |
identifier |
use : secondary |
system : https://cambio.codes/socialstyrelsen/is/arbetsplatskod |
value : 4000000000000 |
active : True |
name : Emergency Clinic* |
telecom |
system : phone |
value : 023-490000 |
use : work |
rank : 1 |
address |
use : work |
line : Akut mott- Cambio lasarett |
extension |
url : http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetAddressLine |
value : Akut mott- Cambio lasarett |
city : Bromma |
postalCode : 79182 |
country : SE |
partOf |
reference : Organization/3555 |