Examples
Example: Searching a Patient's Referrals
The following is an example of a GET request in which the search is based on patient ID.
As a response, the Observations are included in a Bundle resource.
Search Query
GET [baseURL]/ServiceRequest/_search?subject.identifier=urn:oid:1.2.752.129.2.1.3.1|197211069823
Response
Bundle |
id : 7d21364f-4af6-474f-bcce-f5988cd71b2f |
meta |
lastUpdated : 2022-07-11T16:20:47.531+02:00 |
type : searchset |
total : 4 |
link |
relation : self |
url : http://13.74.30.234:8080/fhir/ServiceRequest/_search?_sid=gustav.cederblad%40cambio.se&subject.identifier=urn%3Aoid%3A1.2.752.129.2.1.3.1%7C197211069823 |
entry |
fullUrl : http://13.74.30.234:8080/fhir/ServiceRequest/referral:SE162321000024-Cambio_Common_R8205:RcId:Referral:DemandForCare:154402 |
resource |
id : referral:SE162321000024-Cambio_Common_R8205:RcId:Referral:DemandForCare:154402 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/ServiceRequestReferral/v1 |
contained |
id : 1 |
practitioner |
type : Practitioner |
display : Christian |
organization |
reference : Organization/13094 |
type : Organization |
contained |
id : 2 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/CompositionReferralClinicalInformation/v1 |
status : final |
type |
coding |
system : https://cambio.codes/cs/referral-documentation-type |
code : RRD |
display : Referral Record Data |
category |
coding |
system : http://loinc.org |
code : 57133-1 |
coding |
system : http://snomed.info/sct |
code : 721927009 |
display : Referral Note |
date : 2021-05-12T00:00:00+02:00 |
author |
reference : #3 |
type : PractitionerRole |
title : Remiss |
section |
title : Frågeställning |
entry |
display : Fråga |
section |
title : Klinisk information |
entry |
display : Remisstext |
section |
title : Externt remissID |
entry |
display : foo#unikt-id-12346 |
contained |
id : 3 |
practitioner |
type : Practitioner |
display : Christian |
organization |
reference : Organization/13094 |
type : Organization |
identifier |
system : https://fhir.cambio.se/ServiceRequest |
value : 154402 |
identifier |
system : https://cambio.codes/is/inera/national-referral-id |
value : foo#unikt-id-12346 |
status : active |
intent : order |
category |
coding |
system : http://snomed.info/sct |
code : 3457005 |
display : Patient referral |
code |
coding |
system : http://snomed.info/sct |
code : 3457005 |
display : Patient referral |
subject |
type : Patient |
identifier |
system : urn:oid:1.2.752.129.2.1.3.1 |
value : 197211069823 |
authoredOn : 2021-05-12T00:00:00+02:00 |
requester |
reference : #1 |
type : PractitionerRole |
performer |
reference : Organization/1064 |
type : Organization |
supportingInfo |
reference : #2 |
type : Composition |
entry |
fullUrl : http://13.74.30.234:8080/fhir/ServiceRequest/referral:SE162321000024-Cambio_Common_R8205:RcId:Referral:DemandForCare:154403 |
resource |
id : referral:SE162321000024-Cambio_Common_R8205:RcId:Referral:DemandForCare:154403 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/ServiceRequestReferral/v1 |
contained |
id : 1 |
practitioner |
type : Practitioner |
display : Christian |
organization |
reference : Organization/13094 |
type : Organization |
contained |
id : 2 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/CompositionReferralClinicalInformation/v1 |
status : final |
type |
coding |
system : https://cambio.codes/cs/referral-documentation-type |
code : RRD |
display : Referral Record Data |
category |
coding |
system : http://loinc.org |
code : 57133-1 |
coding |
system : http://snomed.info/sct |
code : 721927009 |
display : Referral Note |
date : 2021-05-12T00:00:00+02:00 |
author |
reference : #3 |
type : PractitionerRole |
title : Remiss |
section |
title : Frågeställning |
entry |
display : Fråga |
section |
title : Klinisk information |
entry |
display : Remisstext |
section |
title : Externt remissID |
entry |
display : foo#unikt-id-12347 |
contained |
id : 3 |
practitioner |
type : Practitioner |
display : Christian |
organization |
reference : Organization/13094 |
type : Organization |
identifier |
system : https://fhir.cambio.se/ServiceRequest |
value : 154403 |
identifier |
system : https://cambio.codes/is/inera/national-referral-id |
value : foo#unikt-id-12347 |
status : active |
intent : order |
category |
coding |
system : http://snomed.info/sct |
code : 3457005 |
display : Patient referral |
code |
coding |
system : http://snomed.info/sct |
code : 3457005 |
display : Patient referral |
subject |
type : Patient |
identifier |
system : urn:oid:1.2.752.129.2.1.3.1 |
value : 197211069823 |
authoredOn : 2021-05-12T00:00:00+02:00 |
requester |
reference : #1 |
type : PractitionerRole |
performer |
reference : Organization/1064 |
type : Organization |
supportingInfo |
reference : #2 |
type : Composition |
entry |
fullUrl : http://13.74.30.234:8080/fhir/ServiceRequest/referral:SE162321000024-Cambio_Common_R8205:RcId:Referral:DemandForCare:154432 |
resource |
id : referral:SE162321000024-Cambio_Common_R8205:RcId:Referral:DemandForCare:154432 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/ServiceRequestReferral/v1 |
contained |
id : 1 |
practitioner |
type : Practitioner |
display : Christian |
organization |
reference : Organization/13094 |
type : Organization |
contained |
id : 2 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/CompositionReferralClinicalInformation/v1 |
status : final |
type |
coding |
system : https://cambio.codes/cs/referral-documentation-type |
code : RRD |
display : Referral Record Data |
category |
coding |
system : http://loinc.org |
code : 57133-1 |
coding |
system : http://snomed.info/sct |
code : 721927009 |
display : Referral Note |
date : 2021-05-12T00:00:00+02:00 |
author |
reference : #3 |
type : PractitionerRole |
title : Remiss |
section |
title : Frågeställning |
entry |
display : Fråga |
section |
title : Klinisk information |
entry |
display : Remisstext |
section |
title : Externt remissID |
entry |
display : foo#unikt-id-12351 |
contained |
id : 3 |
practitioner |
type : Practitioner |
display : Christian |
organization |
reference : Organization/13094 |
type : Organization |
identifier |
system : https://fhir.cambio.se/ServiceRequest |
value : 154432 |
identifier |
system : https://cambio.codes/is/inera/national-referral-id |
value : foo#unikt-id-12351 |
status : active |
intent : order |
category |
coding |
system : http://snomed.info/sct |
code : 3457005 |
display : Patient referral |
code |
coding |
system : http://snomed.info/sct |
code : 3457005 |
display : Patient referral |
subject |
type : Patient |
identifier |
system : urn:oid:1.2.752.129.2.1.3.1 |
value : 197211069823 |
authoredOn : 2021-05-12T00:00:00+02:00 |
requester |
reference : #1 |
type : PractitionerRole |
performer |
reference : Organization/1064 |
type : Organization |
supportingInfo |
reference : #2 |
type : Composition |
entry |
fullUrl : http://13.74.30.234:8080/fhir/ServiceRequest/referral:SE162321000024-Cambio_Common_R8205:RcId:Referral:DemandForCare:154433 |
resource |
id : referral:SE162321000024-Cambio_Common_R8205:RcId:Referral:DemandForCare:154433 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/ServiceRequestReferral/v1 |
contained |
id : 1 |
practitioner |
type : Practitioner |
display : Christian |
organization |
reference : Organization/13094 |
type : Organization |
contained |
id : 2 |
meta |
profile : https://fhir.cambio.se/StructureDefinition/CompositionReferralClinicalInformation/v1 |
status : final |
type |
coding |
system : https://cambio.codes/cs/referral-documentation-type |
code : RRD |
display : Referral Record Data |
category |
coding |
system : http://loinc.org |
code : 57133-1 |
coding |
system : http://snomed.info/sct |
code : 721927009 |
display : Referral Note |
date : 2021-05-12T00:00:00+02:00 |
author |
reference : #3 |
type : PractitionerRole |
title : Remiss |
section |
title : Frågeställning |
entry |
display : Fråga |
section |
title : Klinisk information |
entry |
display : Remisstext |
section |
title : Externt remissID |
entry |
display : foo#unikt-id-12352 |
contained |
id : 3 |
practitioner |
type : Practitioner |
display : Christian |
organization |
reference : Organization/13094 |
type : Organization |
identifier |
system : https://fhir.cambio.se/ServiceRequest |
value : 154433 |
identifier |
system : https://cambio.codes/is/inera/national-referral-id |
value : foo#unikt-id-12352 |
status : active |
intent : order |
category |
coding |
system : http://snomed.info/sct |
code : 3457005 |
display : Patient referral |
code |
coding |
system : http://snomed.info/sct |
code : 3457005 |
display : Patient referral |
subject |
type : Patient |
identifier |
system : urn:oid:1.2.752.129.2.1.3.1 |
value : 197211069823 |
authoredOn : 2021-05-12T00:00:00+02:00 |
requester |
reference : #1 |
type : PractitionerRole |
performer |
reference : Organization/1064 |
type : Organization |
supportingInfo |
reference : #2 |
type : Composition |