Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

List of content:

...

The OpenIMIS Policy object (from the openimis-be-policy_py module) was mapped to the FHIR Coverage resource. 

Notes / Assumptions:

  • The endpoint uses the UUID as a primary key

FHIR resources:

Fields mapping:

Table legend:

...

  • READ - by default return list of all available resources. To fetch information about a specific object you should add the primary key to URL for instance:
    http://127.0.0.1:8000/api_fhir/Claim/{PolicyCode}
    , where "{PolicyCode}" is the value of the policy primary key. Should be used the GET HTTP method.

  • CREATE - the operation currently not supported

  • UPDATE - the operation currently not supported

  • DELETE - the operation currently not supported

...

Example JSON representation of content:

FHIR Coverage (http://127.0.0.1:8000/api_fhir/Coverage/covCode1):

Example JOSN
Code Block
{
    "resourceType": "Coverage",
    "contract": [
        {
            "resourceType": "Contract",
            "agent": [
                {
                    "actor": {
                        "reference": "Practitioner/officerCode"
                    },
                    "role": [
                        {
                            "text": "Practitioner"
                        }
                    ]
                }
            ],
            "valuedItem": [
                {
                    "net": {
                        "value": policyValue
                    }
                }
            ]
        }
    ],
    "extension": [
        {
            "url": "EffectiveDate"
        },
        {
            "url": "EnrollDate",
            "valueDate": "2019-08-06"
        }
    ],
    "grouping": {
        "group": "Product/productUuid",
        "groupDisplay": "productCode",
        "plan": "Product Name",
        "planDisplay": "{
			'item': ['itemCode1', 'itemCode2', 'itemCode3'], 
			'service': ['serviceCode1', 'serviceCode2']
		}"
    },
    "identifier": [
        {
            "type": {
                "coding": [
                    {
                        "code": "ACSN",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "covCode1"
        }
    ],
    "period": {
        "end": "2020-08-05",
        "start": "2019-08-06"
    },
    "policyHolder": {
        "reference": "FamilyReference/familyCode0"
    },
    "status": "Idle"
}

...