skip to Main Content

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.

2

Answers


  1. Not that I am aware of, but I stand corrected; You will most likely have to create your own.

    See example of someone who had a near similar problem: https://forums.librehealth.io/t/project-rest-json-to-fhir-json-mapping-implementation/1765/14

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search