Akram
Akram

Reputation: 1266

FHIR Converter for Python

Is there is any function available in python to convert the given json input into HL7 FHIR format. By passing the Liquid Template (Shopify) and the input source data.

Upvotes: 0

Views: 879

Answers (1)

wowkin2
wowkin2

Reputation: 6355

Thinking that you are looking for something like fhir.resources library, where you can provide some dictionary with data to some kind of object that can be serialized.

from fhir.resources.organization import Organization
from fhir.resources.address import Address

data = {
    "id": "f001",
    "active": True,
    "name": "Acme Corporation",
    "address": [{"country": "Switzerland"}]
}
org = Organization(**data)
org.resource_type == "Organization"

P.S. But don't quite follow why you mentioned Liquid Templates.

Upvotes: 0

Related Questions