Closed JoelV closed 4 years ago
I think that the sample you're looking at is misleading and should be removed.
I'd recommend using the requests library and following our samples in https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/healthcare/api-client/fhir/fhir_resources.py. We also have documentation in https://cloud.google.com/healthcare/docs/how-tos/dicomweb#searching_using_dicom_tags for how to search using query parameters.
Got it thanks!!!
Referencing the following python example below and can be found here: https://cloud.google.com/healthcare/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores.fhir/search
Question
I'm having trouble putting in search params into search_resources_request_body
for example i want to search all observations for a particular Observation.subject so the request would be something like this
'{base_url}/{parent}/fhir/Observation/_search?subject='123-123-123'
right now all I can do is narrow the search to return every Fhir observation
I've been digging through the code and it doesn't seem to be a way to add search criteria via query params.
Am I missing something.?