Stream: implementers
Topic: Getting Observations from FHIR server based on code text?
Karimulla (Oct 27 2017 at 07:41):
Hi,
I want to retrieve all Observations of specified Patient which code is Sexual History (I didn't specified any code here. code contains only text don't included any Coding system)
Please find the following example for Observation I created.
{
"resource": { "resourceType": "Observation", "id": "abcdefgh", "meta": { "versionId": "1", "lastUpdated": "2017-10-27T02:05:23.925-04:00" }, "status": "registered", "category": [ { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "social-history", "display": "Social History" } ] } ], "code": { "text": "Sexual History" }, "subject": { "reference": "Patient/abcde" } }
Lloyd McKenzie (Oct 27 2017 at 14:48):
You would certainly be advised to look for a code as getting string matches consistent can be difficult. That said, querying the sample you created would be: Observation?subject=Patient%2Fabcde&code:text=Sexual%20history
Last updated: Apr 12 2022 at 19:14 UTC