Versions Compared

Key

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

List of content:

Table of Contents

...

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:

...

default_audit_user_iddefault value which will be used for 'audit_user_id' field"default_audit_user_id": 1,
stu3_fhir_identifier_type_configconfiguration of system and codes used to represent the specific types of identifiers

"stu3_fhir_identifier_type_config":{
  "system":"https://hl7.org/fhir/valueset-identifier-type.html",
  "fhir_code_for_imis_db_id_type":"ACSN",
  "fhir_code_for_imis_chfid_type":"SB",
  "fhir_code_for_imis_passport_type":"PPN",
  "fhir_code_for_imis_facility_id_type":"FI",
  "fhir_code_for_imis_claim_admin_code_type":"FILL",
  "fhir_code_for_imis_claim_code_type":"MR",

},

stu3_fhir_issue_type_configconfiguration of system and codes used to represent the specific types of operation outcome"stu3_fhir_issue_type_config":{
  "fhir_code_for_exception":"exception",
  "fhir_code_for_not_found":"not-found",
  "fhir_code_for_informational":"informational"
},
stu3_fhir_claim_configconfiguration of system and codes used to represent the specific types of claim codes

"stu3_fhir_coverage_config": {
    "fhir_family_refereence_code": "FamilyReference",
    "fhir_status_idle_code": "Idle",
    "fhir_status_active_code": "active",
    "fhir_status_suspended_code": "suspended",
    "fhir_status_expired_code": "Expired",
    "fhir_item_code": "item",
    "fhir_service_code": "service",
    "fhir_practitioner_role_code": "Practitioner",
    "fhir_product_code": "Product"
    "fhir_effective_date_code": "EffectiveDate",
    "fhir_enroll_date_code": "EnrollDate"
},

Example JSON representation of content:

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

Code Block
firstline1
titleExample JOSN
linenumberstrue
{
    "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"
}

...