Examples Body Height
Example 1: Creating a Patient Generated Body Height Observation
The following is an example of a POST request where a body height observation is created by the patient. For patient generated observations, it is required to also include an Organization (unit) in Observation.performer. Here, the organization is specified with HSA id. The date and time given for the body height is 2022-01-10, 15:33:48.583Z.
Request
POST [baseURL]/Observation
Body
Observation |
meta |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyHeightLite/v1 |
identifier |
system : https://fhir.cambio.se/Observation |
value : 12362 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://loinc.org |
code : 8302-2 |
coding |
system : http://snomed.info/sct |
code : 1153637007 |
display : Body height |
subject |
identifier |
system : urn:oid:1.2.752.129.2.1.3.1 |
value : 198101199282 |
effective : 2022-01-10T15:33:48.583Z |
performer |
type : Patient |
identifier |
system : urn:oid:1.2.752.129.2.1.3.1 |
value : 198101199282 |
performer |
type : Organization |
identifier |
value |
value : 186.0 |
unit : cm |
system : http://unitsofmeasure.org |
code : cm |
Example 2: Searching a Patient's Body Height 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 height 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?date=gt2021-12-20T15:33:48.583Z&date=lt2022-12-20T15:33:48.583Z&status=final&_profile=https://fhir.cambio.se/StructureDefinition/ObservationBodyHeightLite/v1&patient.identifier=urn:oid:1.2.752.129.2.1.3.1|198101199282&_include=Observation:subject&_include=Observation:performer.practitioner&_include=Observation:performer.organization
Response
Bundle |
id : 94260a20-66ad-4848-a840-95463f15dca0 |
meta |
lastUpdated : 2022-01-13T15:43:51.224+01:00 |
type : searchset |
total : 4 |
link |
relation : self |
url : <host>/fhir/Observation/_search?_include=Observation%3Asubject&_include=Observation%3Aperformer.practitioner&_include=Observation%3Aperformer.organization&_profile=https%3A%2F%2Ffhir.cambio.se%2FStructureDefinition%2FObservationBodyHeightLite%2Fv1&date=lt2022-12-20T15%3A33%3A48.583Z&date=gt2021-12-20T15%3A33%3A48.583Z&patient.identifier=urn%3Aoid%3A1.2.752.129.2.1.3.1%7C198101199282&status=final |
entry |
fullUrl : <host>/fhir/Observation/13293 |
resource |
id : 13293 |
meta |
id : 13293 |
versionId : 13293 |
lastUpdated : 2022-01-13T15:29:58+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyHeightLite/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 : 13293 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://loinc.org |
code : 8302-2 |
coding |
system : http://snomed.info/sct |
code : 1153637007 |
display : Body height |
subject |
reference : Patient/11330 |
type : Patient |
encounter |
reference : Encounter/319824 |
type : Encounter |
effective : 2022-01-13T15:29:58+01:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
value : 187 |
unit : cm |
system : http://unitsofmeasure.org |
code : cm |
entry |
fullUrl : <host>/fhir/Practitioner/617207 |
resource |
id : 617207 |
meta |
versionId : 617207 |
profile : https://fhir.cambio.se/StructureDefnition/Practitioner |
active : True |
name |
family : Andersson |
given : Nelly |
entry |
fullUrl : <host>/patients/fhir/Organization/1085 |
resource |
id : 1085 |
meta |
versionId : 18200 |
profile : https://fhir.cambio.se/StructureDefnition/Organization |
identifier |
use : secondary |
system : https://cambio.codes/is/unit/lab-identifier |
value : MED1 |
identifier |
use : secondary |
system : https://cambio.codes/socialstyrelsen/is/arbetsplatskod |
value : 4000000000000 |
identifier |
use : official |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE2321000016-13Q012 |
active : True |
name : Medicin Avd 1 |
telecom |
system : phone |
value : 019-345670 |
use : work |
rank : 1 |
address |
use : work |
line : Nygatan 35 |
extension |
url : http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetAddressLine |
value : Nygatan 35 |
city : Stockholm |
postalCode : 79182 |
country : SE |
partOf |
reference : Organization/1064 |
entry |
fullUrl : <host>/fhir/Patient/11330 |
resource |
id : 11330 |
meta |
versionId : 11330 |
profile : https://fhir.cambio.se/StructureDefinition/PatientSe |
extension |
url : http://hl7.org/fhir/StructureDefinition/patient-genderIdentity |
value |
coding |
system : http://hl7.org/fhir/gender-identity |
code : female |
display : female |
extension |
url : https://fhir.cambio.se/StructureDefinition/patient-populationRegistrationCounty |
value |
system : https://cambio.codes/scb/cs/lkf |
code : 01 |
display : Stockholms län |
extension |
url : https://fhir.cambio.se/StructureDefinition/patient-populationRegistrationMunicipality |
value |
system : https://cambio.codes/scb/cs/lkf |
code : 80 |
display : Stockholm |
extension |
url : https://fhir.cambio.se/StructureDefinition/patient-populationRegistrationParish |
value |
system : https://cambio.codes/scb/cs/lkf |
code : 07 |
display : S:t Matteus |
identifier |
use : official |
system : urn:oid:1.2.752.129.2.1.3.1 |
value : 198101199282 |
name |
family : Gran |
given : Matilda |
gender : female |
birthDate : 1981-01-19 |
deceased : False |
address |
line : Kungsgatan 31 |
extension |
url : http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetAddressLine |
value : Kungsgatan 31 |
city : Stockholm |
country : SE |
Example 3: Searching a Patient's Body Height 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 height 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/ObservationBodyHeightLite/v1&_include=Observation:performer.organization
Response
Bundle |
id : 6f0ac5fc-984a-4b7a-8c4a-7e6f3a24a15c |
meta |
lastUpdated : 2022-07-11T15:47:49.996+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%2FObservationBodyHeightLite%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/21646 |
resource |
id : 21646 |
meta |
id : 21646 |
versionId : 21646 |
lastUpdated : 2020-12-15T13:39:27+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyHeightLite/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 : 21646 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://loinc.org |
code : 8302-2 |
coding |
system : http://snomed.info/sct |
code : 1153637007 |
display : Body height |
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 : 170 |
unit : cm |
system : http://unitsofmeasure.org |
code : cm |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Observation/21650 |
resource |
id : 21650 |
meta |
id : 21650 |
versionId : 21650 |
lastUpdated : 2020-12-14T15:04:00+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyHeightLite/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 : 21650 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://loinc.org |
code : 8302-2 |
coding |
system : http://snomed.info/sct |
code : 1153637007 |
display : Body height |
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 : 150 |
unit : cm |
system : http://unitsofmeasure.org |
code : cm |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Observation/21641 |
resource |
id : 21641 |
meta |
id : 21641 |
versionId : 21641 |
lastUpdated : 2020-12-14T13:05:27+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationBodyHeightLite/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 : 21641 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://loinc.org |
code : 8302-2 |
coding |
system : http://snomed.info/sct |
code : 1153637007 |
display : Body height |
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 : 160 |
unit : cm |
system : http://unitsofmeasure.org |
code : cm |
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/is/unit/lab-identifier |
value : EMERG |
identifier |
use : secondary |
system : https://cambio.codes/socialstyrelsen/is/arbetsplatskod |
value : 4000000000000 |
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 |