Metadata-Version: 2.1
Name: python-fhir-converter
Version: 0.0.3
Summary: Conversion utility to translate data formats into FHIR
Home-page: https://github.com/chaseastewart/fhir-converter
License: MIT
Author: Chase Stewart
Author-email: chase.a.stewart@outlook.com
Requires-Python: >=3.9,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: frozendict (>=2.3.10,<3.0.0)
Requires-Dist: pyjson5 (>=1.6.5,<2.0.0)
Requires-Dist: python-liquid (>=1.10.2,<2.0.0)
Requires-Dist: xmltodict (>=0.13.0,<0.14.0)
Project-URL: Repository, https://github.com/chaseastewart/fhir-converter
Description-Content-Type: text/markdown

# python-fhir-converter

Provides a python native version of the [reference implementation](https://github.com/microsoft/FHIR-Converter) written in C#. The goal is to generate 1:1 output for the same [templates](https://github.com/microsoft/FHIR-Converter/tree/main/data/Templates). Built on the back of [python-liquid](https://github.com/jg-rp/liquid)

**Table of Contents**

- [Install](#install)
- [Links](#links)
- [Example](#example)
- [Related Projects](#related-projects)

## Install

Install Python FHIR Converter using [Pipenv](https://pipenv.pypa.io/en/latest/):

```shell
$ pipenv install -u python-fhir-converter
```

Or [pip](https://pip.pypa.io/en/stable/getting-started/):

```shell
$ pip install python-fhir-converter
```

## Links

- PyPi: https://pypi.org/project/python-fhir-converter/
- Source Code: https://github.com/chaseastewart/fhir-converter
- Issue Tracker: https://github.com/chaseastewart/fhir-converter/issues

## Example

```python
from fhir_converter.processors import CcdaProcessor

with open(f"data/sample/ccda/Discharge_Summary.ccda") as ccda_file:
    print(processor.convert(template_name="DischargeSummary", xml_input=ccda_file))
```

## Related Projects

- [python-liquid](https://github.com/jg-rp/liquid) Python engine for the Liquid template language.

