This project shows how you can use the SDK (https://github.com/icanbwell/helix.fhir.client.sdk) to download large amounts of data from a FHIR server efficiently.
- Python 3.7
- Pipenv
- Run
pipenv update
to download all the packages in Pipfile - Set following environment variables to authenticate with the FHIR server:
- FHIR_CLIENT_ID: OAuth client id issued by the owner of the FHIR server
- FHIR_CLIENT_SECRET: OAuth client secret issued by the owner of the FHIR server
- FHIR_CLIENT_TAG: Your client tag issued by the owner of the FHIR server.
- This is used only with an advanced security FHIR server such as the Helix FHIR server (https://github.com/icanbwell/fhir-server/blob/master/security.md)
- Alternatively, you can copy the
.env.template
file to.env
and set the values in there. Github will not upload.env
file since it is in.gitignore
. - Run
main.py
or typemake tests