Examples Oxygen Saturation
Introduction
An example payload for a POST operation or response to a GET operation.
Example Payload
Observation |
id : 11134 |
meta |
id : 11134 |
versionId : 11134 |
lastUpdated : 2021-03-10T11:31:59+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationOxygenSaturationLite/v1 |
contained |
id : 2 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1 |
practitioner |
reference : Practitioner/523052 |
type : Practitioner |
organization |
reference : Organization/1064 |
type : Organization |
contained |
id : 1 |
meta |
id : 11134 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationInspiredOxygenLite/v1 |
status : final |
code |
coding |
system : http://snomed.info/sct |
code : 371825009 |
display : Patient on oxygen |
extension |
url : https://fhir.cambio.se/StructureDefinition/saturation-hypercapnicRespiratoryFailure/v1 |
value : True |
identifier |
system : https://fhir.cambio.se/Observation |
value : 11134 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 103228002 |
display : Hemoglobin saturation with oxygen |
coding |
system : http://loinc.org |
code : 2708-6 |
subject |
reference : Patient/12237 |
type : Patient |
effective : 2021-03-10T11:31:59+01:00 |
performer |
reference : #2 |
type : PractitionerRole |
value |
value : 10.0 |
unit : % |
system : http://unitsofmeasure.org |
code : % |
hasMember |
reference : #1 |
Example: Searching a Patient's Inspired Oxygen 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 inspired oxygen 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/ObservationInspiredOxygenLite/v1&_include=Observation:performer.organization
Response
Bundle |
id : 113ff54f-6e06-4207-b1f9-5db779bfd235 |
meta |
lastUpdated : 2022-07-11T16:11:29.703+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%2FObservationInspiredOxygenLite%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/6177 |
resource |
id : 6177 |
meta |
id : 6177 |
versionId : 6177 |
lastUpdated : 2019-02-19T10:44:16+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationOxygenSaturationLite/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 |
extension |
url : https://fhir.cambio.se/StructureDefinition/saturation-hypercapnicRespiratoryFailure/v1 |
value : False |
identifier |
system : https://fhir.cambio.se/Observation |
value : 6177 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 103228002 |
display : Hemoglobin saturation with oxygen |
coding |
system : http://loinc.org |
code : 2708-6 |
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 : 98.0 |
unit : % |
system : http://unitsofmeasure.org |
code : % |
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 : official |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE162321000024-6907 |
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 : 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 |