Examples Pain NRS
Example 1: Searching a Patient's Pain NRS Registrations by Specifying Required Profile
The following is an example of a GET request in which the search is based on patient ID and profile.
Given date interval in the search is 2020-11-20T15:33:48.583Z to 2022-12-20T15:33:48.583Z
As a response, one Pain NRS observation is included in a Bundle resource.
Search Query
GET [baseURL]/Observation/_search?date=gt2020-11-20T15:33:48.583Z&date=lt2022-12-20T15:33:48.583Z&status=final&_profile=https://fhir.cambio.se/StructureDefinition/ObservationPainNrsLite/v1&patient:identifier=urn:oid:1.2.752.129.2.1.3.1|198101199282
Response
Bundle |
id : 0d04c4ec-af92-42b7-8ab6-3a1cf78b4bae |
meta |
lastUpdated : 2022-01-13T16:47:52.973+01:00 |
type : searchset |
total : 1 |
link |
relation : self |
url : <host>/fhir/Observation/_search?_profile=https%3A%2F%2Ffhir.cambio.se%2FStructureDefinition%2FObservationPainNrsLite%2Fv1&date=gt2020-11-20T15%3A33%3A48.583Z&date=lt2022-12-20T15%3A33%3A48.583Z&patient%3Aidentifier=urn%3Aoid%3A1.2.752.129.2.1.3.1%7C198101199282&status=final |
entry |
fullUrl : <host>/fhir/Observation/13294 |
resource |
id : 13294 |
meta |
id : 13294 |
versionId : 13294 |
lastUpdated : 2022-01-13T16:47:34+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationPainNrsLite/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 : 13294 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 49121000146105 |
display : Numeric rating scale score (observable entity) |
subject |
reference : Patient/11330 |
type : Patient |
encounter |
reference : Encounter/319824 |
type : Encounter |
effective : 2022-01-13T16:47:34+01:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
coding |
system : https://cambio.codes/nrs/cs/pain-numeric-rating-scale |
code : 4 |
display : NRS 4 |
Example: Searching a Patient's Pain NRS 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 pain NRS 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/ObservationPainNrsLite/v1&_include=Observation:performer.organization
Response
Bundle |
id : dd4471fa-e094-4ede-8659-e5520b99c853 |
meta |
lastUpdated : 2022-07-11T16:13:57.423+02:00 |
type : searchset |
total : 6 |
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%2FObservationPainNrsLite%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/22749 |
resource |
id : 22749 |
meta |
id : 22749 |
versionId : 22749 |
lastUpdated : 2021-04-12T16:19:48+02:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationPainNrsLite/v1 |
contained |
id : 1 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1 |
practitioner |
reference : Practitioner/548378 |
type : Practitioner |
organization |
reference : Organization/3555 |
type : Organization |
identifier |
system : https://fhir.cambio.se/Observation |
value : 22749 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 49121000146105 |
display : Numeric rating scale score (observable entity) |
subject |
reference : Patient/8181 |
type : Patient |
effective : 2021-04-12T16:19:48+02:00 |
performer |
reference : #1 |
type : PractitionerRole |
value |
coding |
system : https://cambio.codes/nrs/cs/pain-numeric-rating-scale |
code : 6 |
display : NRS 6 |
note |
text : Patienten ser inte ut att ha så ont, kanske bara en 4. |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Observation/21648 |
resource |
id : 21648 |
meta |
id : 21648 |
versionId : 21648 |
lastUpdated : 2020-12-15T13:39:27+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationPainNrsLite/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 : 21648 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 49121000146105 |
display : Numeric rating scale score (observable entity) |
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 |
coding |
system : https://cambio.codes/nrs/cs/pain-numeric-rating-scale |
code : 4 |
display : NRS 4 |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Observation/21652 |
resource |
id : 21652 |
meta |
id : 21652 |
versionId : 21652 |
lastUpdated : 2020-12-14T15:04:00+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationPainNrsLite/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 : 21652 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 49121000146105 |
display : Numeric rating scale score (observable entity) |
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 |
coding |
system : https://cambio.codes/nrs/cs/pain-numeric-rating-scale |
code : 6 |
display : NRS 6 |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Observation/21643 |
resource |
id : 21643 |
meta |
id : 21643 |
versionId : 21643 |
lastUpdated : 2020-12-14T13:05:27+01:00 |
profile : https://fhir.cambio.se/StructureDefinition/ObservationPainNrsLite/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 : 21643 |
status : final |
category |
coding |
system : http://terminology.hl7.org/CodeSystem/observation-category |
code : vital-signs |
code |
coding |
system : http://snomed.info/sct |
code : 49121000146105 |
display : Numeric rating scale score (observable entity) |
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 |
coding |
system : https://cambio.codes/nrs/cs/pain-numeric-rating-scale |
code : 2 |
display : NRS 2 |
entry |
fullUrl : http://13.74.30.234:8080/fhir/Organization/3555 |
resource |
id : 3555 |
meta |
versionId : 13074 |
profile : https://fhir.cambio.se/StructureDefnition/Organization |
identifier |
use : official |
system : urn:oid:1.2.752.129.2.1.4.1 |
value : SE162321000024-0019919 |
identifier |
use : secondary |
system : https://cambio.codes/is/unit/lab-identifier |
value : AKUT01 |
identifier |
use : secondary |
system : https://cambio.codes/socialstyrelsen/is/arbetsplatskod |
value : 4000000000000 |
active : True |
name : The Emergency department* |
telecom |
system : phone |
value : 023-4900001 |
use : work |
rank : 1 |
address |
use : work |
line : Storgatan 45 |
extension |
url : http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetAddressLine |
value : Storgatan 45 |
city : Motala |
postalCode : 45323 |
country : SE |
partOf |
reference : Organization/1060 |
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 : 4000000000000 |
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 : 45678965497 |
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 |