Skip to content

A micro-library built on top of fhirpy and fhir.resources bringing FHIR Terminology at your Python fingertips.

Notifications You must be signed in to change notification settings

axelv/fhir-tx-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FHIR Terminology Client

A micro-library built on top of fhirpy and fhir.resources bringing FHIR Terminology at your Python fingertips.

Why?

FHIR Terminology has become mature and is wide spread but it's hard for Python-developers to interact with:

  1. 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 the Parameters-resource or choice types require lots of boilerplate code.

  2. 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.

  3. 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 is work-in-progress. It serves as an example on how to create a lightweight library that increase your developer experirence. However, it is not ready for production yet. We (Tiro.health) plan to integrate this in our FHIRKit but this approach need some validation first.

A more detailed discussion on this package

This library is the result of a blogpost I've written. Read the blogpost here

Looking for a quick example?

Here you have an example notebook: 1.0-validate-snomed-code-in-valueset.ipynb

Install this package

Choose your preferred package/dependency manager

pip install fhir-tx
pipenv install fhir-tx
poetry install fhir-tx

About

A micro-library built on top of fhirpy and fhir.resources bringing FHIR Terminology at your Python fingertips.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages