A micro-library built on top of fhirpy
and fhir.resources
bringing FHIR Terminology at your Python fingertips.
FHIR Terminology has become mature and is wide spread but it's hard for Python-developers to interact with:
-
FHIR resources can be deeply nested,
dict
's lack autocompletion of attributes and validation of types. This makes code error-prone. Some data artifacts in FHIR like theParameters
-resource orchoice types
require lots of boilerplate code. -
REST API calls come with overhead. You need to construct URL's, handle HTTP Headers, or reponse codes, but in the end you only care about the FHIR Resources or want to receive a human-readable exception.
-
You want your code to be readable and increase your developer experience. Clinical Terminology is complex matter, no room for extra confusion due to low-level technical details.
This library is the result of a blogpost I've written. Read the blogpost here
Here you have an example notebook: 1.0-validate-snomed-code-in-valueset.ipynb
Choose your preferred package/dependency manager
pip install fhir-tx
pipenv install fhir-tx
poetry install fhir-tx