Python script to transform OPS data into FHIR format.
- This is a minimal standalone script to showcase how to transform data from the German Procedure Classification (Operationen- und Prozedurenschlüssel – OPS) to FHIR format as specified by the Medical Informatics-Initiative (MII). The underlying mapping of OPS codes to Identification of Medicinal Products (IDMP) compliant terminology is based on the publication S. Zabka, D. Ammon, T. Ganslandt, J. Gewehr, C. Haverkamp, S. Kiefer, H. Lautenbacher, M. Löbe, S. Thun, and M. Boeker, Towards a Medication Core Data Set for the Medical Informatics Initiative (MII): Initial Mapping Experience between the German Procedure Classification (OPS) and the Identification of Medicinal Products (IDMP). In CEUR Workshop Proceedings.
- Python 3.X
- SMART on FHIR Python client
- Pandas
-
To install the FHIR Python client in your environment use:
pip install git+git://github.com/smart-on-fhir/client-py.git
-
Install the pandas library via:
pip install pandas
-
Clone the repository:
git clone https://github.com/julsas/ops2fhir.git
- Run ops2fhir.py
- You will be prompted to specify the URL of your FHIR server
- The script will transform the given example mapping to FHIR and send the resources to the server