EHRsuction downloads all Compositions from an openEHR platform and exports them into an organized structure:
EHR_UID/composition-name.json
It also supports FLAT format using the view provided in the resources
directory for Better.
(
For EHRbase, only CANONICAL export is currently supported.
- A running openEHR server
- Python 3
- Install dependencies:
pip install -r requirements.txt
- Modify
config.yaml
to your desired settings. - Run EHRsuction:
python3 ehrsuction.py
The BETTER setting for CANONICAL format also works with other openEHR platforms that correctly implement the REST API.
However, EHRBASE currently returns a non-standardized response body (rows
), which has already been reported.