Examples
Example: Searching a Registration of Patient's Foot Length by Specifying Required Code and the Patient ID
The following is an example of a GET request in which the search is based on patient ID and SNOMED CT code of Foot Length.
As a response, the Observations are included in a Bundle resource.
Search Query
GET [baseURL]/Observation?patient:identifier=urn:oid:1.2.752.129.2.1.3.1|20081202-2804&date=gt2008-05-01&date=lt2022-05-01&code=https://snomed.info/sct|249815005
Response
| Bundle |
| id : 8aa3c2ec-2e67-40e2-be35-ec1158017f99 |
| meta |
| lastUpdated : 2022-07-04T07:21:37.568+02:00 |
| type : searchset |
| total : 2 |
| link |
| relation : self |
| url : http://pcpal-growthxp.cambio.se:8080/fhir/Observation?code=https%3A%2F%2Fsnomed.info%2Fsct%7C249815005&date=gt2008-05-01&date=lt2022-05-01&patient%3Aidentifier=urn%3Aoid%3A1.2.752.129.2.1.3.1%7C20081202-2804 |
| entry |
| fullUrl : http://pcpal-growthxp.cambio.se:8080/fhir/Observation/cosmic:cps:clinicalparameter.repository.journal.record:95048 |
| resource |
| id : cosmic:cps:clinicalparameter.repository.journal.record:95048 |
| meta |
| id : cosmic:cps:clinicalparameter.repository.journal.record:95048 |
| profile : https://fhir.cambio.se/StructureDefinition/ObservationFootLengtheLite/v1 |
| contained |
| id : 1 |
| meta |
| profile : https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1 |
| practitioner |
| reference : Practitioner/523130 |
| type : Practitioner |
| organization |
| reference : Organization/1077 |
| type : Organization |
| identifier |
| system : https://fhir.cambio.se/Observation |
| value : cosmic:cps:clinicalparameter.repository.journal.record:95048 |
| status : final |
| code |
| coding |
| system : http://snomed.info/sct |
| code : 249815005 |
| display : Foot length |
| subject |
| reference : Patient/2107 |
| type : Patient |
| encounter |
| reference : Encounter/70412 |
| type : Encounter |
| effective : 2009-06-25T18:40:00+02:00 |
| performer |
| reference : #1 |
| type : PractitionerRole |
| value |
| value : 20.0 |
| unit : cm |
| system : http://unitsofmeasure.org |
| code : cm |
| entry |
| fullUrl : http://pcpal-growthxp.cambio.se:8080/fhir/Observation/cosmic:cps:clinicalparameter.repository.journal.record:95037 |
| resource |
| id : cosmic:cps:clinicalparameter.repository.journal.record:95037 |
| meta |
| id : cosmic:cps:clinicalparameter.repository.journal.record:95037 |
| profile : https://fhir.cambio.se/StructureDefinition/ObservationFootLengtheLite/v1 |
| contained |
| id : 1 |
| meta |
| profile : https://fhir.cambio.se/StructureDefinition/PractitionerRoleLiteSe/v1 |
| practitioner |
| reference : Practitioner/523130 |
| type : Practitioner |
| organization |
| reference : Organization/1077 |
| type : Organization |
| identifier |
| system : https://fhir.cambio.se/Observation |
| value : cosmic:cps:clinicalparameter.repository.journal.record:95037 |
| status : final |
| code |
| coding |
| system : http://snomed.info/sct |
| code : 249815005 |
| display : Foot length |
| subject |
| reference : Patient/2107 |
| type : Patient |
| encounter |
| reference : Encounter/70396 |
| type : Encounter |
| effective : 2008-06-26T18:40:00+02:00 |
| performer |
| reference : #1 |
| type : PractitionerRole |
| value |
| value : 12.0 |
| unit : cm |
| system : http://unitsofmeasure.org |
| code : cm |