Can python fhirpy fhir be used to get a list of patients from my end point that has a particular diagnosis and or insurance?
Newbie here...
I am looking to use fhir to gather patients in our end point that have a certain diagnosis and or certain insurance.
Is this what fhir can be used for?
In the past I have done the normal SQL query/extract to CSV file. Looking to use fhir for this for future.
Thanks in advance for your time
Dean-O
Sure you can, for example to retrieve all the patient with an observation based on the code : 8302-2
More info here : https://www.hl7.org/fhir/search.html#has
For the python part have a look at this git :
https://github.com/LucasEnard/fhir-client-python
It's a simple example how to use python client to interact with a FHIR server.
For fhir-py to create the same query use raw search :
https://github.com/grongierisc/fhir-py#raw-parameters
Last but not least, check out our neat implementation of SQL On FHIR aka FHIR SQL Builder
Demo here : https://github.com/grongierisc/iris-fhirsqlbuilder