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
POST [baseURL]/Observation
Body
Observation |
meta |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightLite/v1 |
contained |
id : 1 |
practitioner |
identifier |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE-123-231-123 |
organization |
identifier |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE-123-231-231 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 3645890065345345 |
display : Body weight |
coding |
system : http://loinc.org |
code : 29463-7 |
subject |
identifier |
system : urn:oid:1.2.752.129.2.1.3.1 |
value : 198101199282 |
effective : 2022-01-11T15:33:48.583Z |
performer |
reference : #1 |
type : PractitionerRole |
value |
value : 65.0 |
unit : kg |
system : http://unitsofmeasure.org |
code : kg |
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
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
Bundle |
id : d1536af3-6755-49e9-984c-372cf72c1f7a |
meta |
lastUpdated : 2022-01-13T16:40:33.466+01:00 |
type : searchset |
total : 3 |
link |
relation : self |
url : <host>/fhir/Observation/_search?_profile=https%3A%2F%2Ffhir.cambio.se%2FStructureDefinition%2FObservationBodyWeightLite%2Fv1&date=gt2021-10-01T15%3A33%3A48.583Z&date=lt2021-12-01T15%3A33%3A48.583Z&patient%3Aidentifier=urn%3Aoid%3A1.2.752.129.2.1.3.1%7C198101199282&status=final |
entry |
fullUrl : <host>/fhir/Observation/13156 |
resource |
id : 13156 |
meta |
id : 13156 |
versionId : 13156 |
lastUpdated : 2021-12-01T10:56:30+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightLite/v1 |
contained |
id : 1 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1 |
practitioner |
reference : Practitioner/617207 |
type : Practitioner |
organization |
reference : Organization/1085 |
type : Organization |
identifier |
system : https://fhir.cambio.se/Observation |
value : 13156 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 27113001 |
display : Body weight |
coding |
system : http://loinc.org |
code : 29463-7 |
subject |
reference : Patient/11330 |
type : Patient |
encounter |
reference : Encounter/319824 |
type : Encounter |
effective : 2021-12-01T10:56:30+01:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
value : 102 |
unit : kg |
system : http://unitsofmeasure.org |
code : kg |
entry |
fullUrl : <host>/fhir/Observation/13158 |
resource |
id : 13158 |
meta |
id : 13158 |
versionId : 13158 |
lastUpdated : 2021-11-07T09:15:00+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightLite/v1 |
identifier |
system : https://fhir.cambio.se/Observation |
value : 13158 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 27113001 |
display : Body weight |
coding |
system : http://loinc.org |
code : 29463-7 |
subject |
reference : Patient/11330 |
type : Patient |
effective : 2021-11-07T09:15:00+01:00 |
performer |
reference : Patient/11330 |
type : Patient |
performer |
reference : Organization/1064 |
type : Organization |
value |
value : 99 |
unit : kg |
system : http://unitsofmeasure.org |
code : kg |
note |
text : . |
entry |
fullUrl : <host>/fhir/Observation/13154 |
resource |
id : 13154 |
meta |
id : 13154 |
versionId : 13154 |
lastUpdated : 2021-11-01T10:51:01+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightLite/v1 |
contained |
id : 1 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1 |
practitioner |
reference : Practitioner/617207 |
type : Practitioner |
organization |
reference : Organization/1064 |
type : Organization |
identifier |
system : https://fhir.cambio.se/Observation |
value : 13154 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 27113001 |
display : Body weight |
coding |
system : http://loinc.org |
code : 29463-7 |
subject |
reference : Patient/11330 |
type : Patient |
effective : 2021-11-01T10:51:01+01:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
value : 110 |
unit : kg |
system : http://unitsofmeasure.org |
code : kg |
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
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
Bundle |
id : 43397c49-3079-47c2-b585-c6a2fb067244 |
meta |
lastUpdated : 2022-07-11T15:24:16.251+02:00 |
type : searchset |
total : 4 |
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%2FObservationBodyWeightLite%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/21645 |
resource |
id : 21645 |
meta |
id : 21645 |
versionId : 21645 |
lastUpdated : 2020-12-15T13:39:27+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightLite/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 : 21645 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 27113001 |
display : Body weight |
coding |
system : http://loinc.org |
code : 29463-7 |
subject |
reference : Patient/8181 |
type : Patient |
encounter |
reference : Encounter/339014 |
type : Encounter |
effective : 2020-12-15T13:39:27+01:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
value : 60 |
unit : kg |
system : http://unitsofmeasure.org |
code : kg |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Observation/21649 |
resource |
id : 21649 |
meta |
id : 21649 |
versionId : 21649 |
lastUpdated : 2020-12-14T15:04:00+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightLite/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 : 21649 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 27113001 |
display : Body weight |
coding |
system : http://loinc.org |
code : 29463-7 |
subject |
reference : Patient/8181 |
type : Patient |
encounter |
reference : Encounter/339014 |
type : Encounter |
effective : 2020-12-14T15:04:00+01:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
value : 40 |
unit : kg |
system : http://unitsofmeasure.org |
code : kg |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Observation/21640 |
resource |
id : 21640 |
meta |
id : 21640 |
versionId : 21640 |
lastUpdated : 2020-12-14T13:05:27+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyWeightLite/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 : 21640 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 27113001 |
display : Body weight |
coding |
system : http://loinc.org |
code : 29463-7 |
subject |
reference : Patient/8181 |
type : Patient |
encounter |
reference : Encounter/339014 |
type : Encounter |
effective : 2020-12-14T13:05:27+01:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
value : 50 |
unit : kg |
system : http://unitsofmeasure.org |
code : kg |
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/socialstyrelsen/is/arbetsplatskod |
value : 45678965497 |
identifier |
use : secondary |
system : https://cambio.codes/socialstyrelsen/is/arbetsplatskod |
value : 4000000000000 |
identifier |
use : secondary |
system : https://cambio.codes/is/unit/lab-identifier |
value : EMERG |
identifier |
use : official |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE162321000024-6907 |
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 |