Installation#

You can easily install the latest FHIRPACK release from PyPI or the most current version by cloning this repository. As usual with Python, we strongly recommend using virtual environments such as pipenv, venv or conda.

Requirements#

FHIRPACK requires Python 3.9 or greater as well as libmagic to work without problems. In case you’re using an older Python version, you can use asdf, conda or pyenv to have several Python versions coexist on your system. libmagic can be installed with apt-get install libmagic-dev on Ubuntu or brew install libmagic on MacOS.

Using the Latest Release from PyPI#

pip install fhirpack

alternatively use pipenv:

pipenv --python 3.9 install fhirpack

Using the Latest Version a from Local Clone#

git clone https://gitlab.com/fhirpack/main.git
mv main fhirpack
pip install -e fhirpack 

alternatively use pipenv:

git clone https://gitlab.com/fhirpack/main.git
mv main fhirpack
pipenv install -e fhirpack

Configuration#

To set up a server configuration, create an .env file in the directory where you’ll work with FHIRPACK and specify the settings as can be seen in env.example. Alternatively, copy, rename and modify .env.example according to your needs.

⚠️ By Default, FHIRPACK connects to the public R4 FHIR test server from HAPIFHIR http://hapi.fhir.org/baseR4. We recommend using this setup to get familiar with the library.