Versions Compared

Key

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

FHIR R4 Resource - Claim

openIMIS tables mapped - tblClaim , tblClaimItems , tblClaimServices

...

FHIR R4 field

...

openIMIS field

...

notes

...

mapping status

...

identifier

...

tblClaim.ClaimID / tblClaim.ClaimUUID / tblClaim.ClaimCode

...

Claim can have multiple identifiers. The most important one is mapped from ClaimUUID.

...

mapped

...

status

...

one of [entered, checked, reviewed, valuated] based on tblClaim.ClaimStatus

...

entered state by default

...

patient

...

tblClaim.InsureeUUID

...

reference to Patient resource

...

mapped - mandatory

...

billablePeriod

...

tblClaim.DateFrom / tblClaim.DateTo

...

DateFrom and DateTo are mapped to a period of time between them

...

mapped - mandatory

...

diagnosis

...

tblClaim.ICDID / tblClaim.ICDID1 / tblClaim.ICDID2 / tblClaim.ICDID3 / tblClaim.ICDID4

...

reference to Condition resource

There is an error with the POST for both versions. When the error is found complete the mapping.

...

mapped - mandatory

from fhir to imis not mapped (diagnosis)

...

provider

...

tblClaim.Adjuster

...

to be validated

...

not mapped

...

total

...

tblClaim.Claimed

...

mapped as Money data type

...

mapped - mandatory

...

created

...

tblClaim.DateClaimed

...

mapped - mandatory

...

supportingInfo

...

tblClaim.Explanation / tblClaim.GuaranteeId / tblClaimItems.Availability / tblClaimItems.Explanation / tblClaimServices.Explanation

...

information category is distinguishing the type of information
renamed from information (STU3) to supportingInfo (R4)

...

mapped

...

facility

...

tblClaim.HFID

...

reference to HealthcareService resource
FHIR specification: reference to Location (warning)

...

mapped - mandatory

...

enterer

...

tblClaim.ClaimAdminId

...

reference to Practitioner resource

...

mapped

...

type

...

tblClaim.VisitType

...

mapped - mandatory

...

item.productOrService

...

tblClaimItems.tblItem.ItemCode / tblClaimServices.tblServices.ServiceCode

...

actual Code value

...

mapped - mandatory

...

item.extension.productOrServiceReference

...

tblClaimItems.ItemUUID / tblClaimServices.ServiceUUID

...

reference to Medication resource if medical item
reference to ActivityDefinition resource if medical service

...

mapped

...

item.quantity

...

tblClaimItems.QtyProvided / tblClaimServices.QtyProvided

...

mapped

...

item.unitPrice

...

tblClaimItems.PriceAsked / tblClaimServices.PriceAsked

...

price could differ from the price defined in medical item/service definition

...

mapped

...

item.category.text

...

“service” or “item”

...

distinguishing whether mapping is done from tblClaimsServices or tblClaimItems

...

mapped - mandatory

Endpoint specification:

Example of endpoint URL:

http://localhost:8000/api_fhir_R4/Claim/

Supported HTTP operation:

  • POST - used to submit a new claim. List of supported fields can be found in the table which shows the mapping between openIMIS and FHIR and the body has JSON representation (example can be found below).
    The response is:

    • OperationOutcome which notice about the failure (list of possible errors);

    • ClaimResponse which notice about the success.

  • GET - by default return list of all available resources. To fetch information about a specific object you should add the Claim UUID to URL for instance:
    http://localhost:8000/api_fhir_R4/Claim/{ClaimUUID}

  • PUT - the operation currently not supported

  • DELETE - the operation currently not supported

Module configuration used by the endpoint:

Configuration key

Description

Default value

default_audit_user_id

default value which will be used for 'audit_user_id' field

"default_audit_user_id": 1,

R4_fhir_identifier_type_config

configuration of system and codes used to represent the specific types of identifiers

"R4_fhir_identifier_type_config":{
"system":"https://hl7.org/fhir/valueset-identifier-type.html",
"fhir_code_for_imis_db_uuid_type":"UUID",
"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",
"fhir_code_for_imis_location_code_type":"LC",
"fhir_code_for_imis_diagnosis_code_type":"DC",
"fhir_code_for_imis_item_code_type":"IC",
"fhir_code_for_imis_service_code_type":"SC",
},

R4_fhir_issue_type_config

configuration of system and codes used to represent the specific types of operation outcome

"R4_fhir_issue_type_config":{
"fhir_code_for_exception":"exception",
"fhir_code_for_not_found":"not-found",
"fhir_code_for_informational":"informational"
},

R4_fhir_claim_config

configuration of system and codes used to represent the specific types of claim codes

"R4_fhir_claim_config":{
"fhir_claim_information_guarantee_id_code":"guarantee_id",
"fhir_claim_information_explanation_code":"explanation",
"fhir_claim_item_explanation_code":"item_explanation",
"fhir_claim_item_code":"item",
"fhir_claim_service_code":"service",
"fhir_claim_status_rejected_code":"rejected",
"fhir_claim_status_entered_code":"entered",
"fhir_claim_status_checked_code":"checked",
"fhir_claim_status_processed_code":"processed",
"fhir_claim_status_valuated_code":"evaluated",
"fhir_claim_item_status_code":"claim_item_status",
"fhir_claim_item_status_passed_code":"passed",
"fhir_claim_item_status_rejected_code":"rejected",
"fhir_claim_item_general_adjudication_code":"general",
"fhir_claim_item_rejected_reason_adjudication_code":"rejected_reason",
},

Example JSON representation of content:

As in the other resources there is an error and therefore this file is shown.

...

languagejson

...

Code Block
{
    "resourceType": "Claim",
    "billablePeriod": {
        "end": "2019-05-13",
        "start": "2019-05-13"
    },
    "created": "2019-05-14",
    "diagnosis": [
        {
            "diagnosisReference": {
                "reference": "Condition/A03"
            },
            "sequence": 1,
            "type": [
                {
                    "coding": [
                        {
                            "code": "icd_0"
                        }
                    ]
                }
            ]
        },
        {
            "diagnosisReference": {
                "reference": "Condition/A01"
            },
            "sequence": 2,
            "type": [
                {
                    "coding": [
                        {
                            "code": "icd_1"
                        }
                    ]
                }
            ]
        },
        {
            "diagnosisReference": {
                "reference": "Condition/A02"
            },
            "sequence": 3,
            "type": [
                {
                    "coding": [
                        {
                            "code": "icd_2"
                        }
                    ]
                }
            ]
        }
    ],
    "enterer": {
        "reference": "Practitioner/BC32112F-9DF2-4F46-AD5D-97727E07CBD7"
    },
    "facility": {
        "reference": "HealthcareService/50E9ABD9-A826-4071-BFED-F731F5FAFB55"
    },
    "id": "6F6062DB-F912-4FC9-B659-BA9D0032EF99",
    "identifier": [
        {
            "type": {
                "coding": [
                    {
                        "code": "UUID",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "6F6062DB-F912-4FC9-B659-BA9D0032EF99"
        },
        {
            "type": {
                "coding": [
                    {
                        "code": "MR",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "chs123"
        }
    ],
    "item": [
        {
            "category": {
                "text": "item"
            },
            "extension": [
                {
                    "url": "Medication",
                    "valueReference": {
                        "reference": "Medication/369c1437-48ae-4f7a-b8f4-2b8e5d8bdf51"
                    }
                }
            ],
            "productOrService": {
                "text": "0002"
            },
            "quantity": {
                "value": 1.0
            },
            "sequence": 1,
            "unitPrice": {
                "currency": "$",
                "value": 1000.0
            }
        },
        {
            "category": {
                "text": "item"
            },
            "extension": [
                {
                    "url": "Medication",
                    "valueReference": {
                        "reference": "Medication/0dcd4105-acf0-478c-9fc0-de65309ade86"
                    }
                }
            ],
            "productOrService": {
                "text": "0002"
            },
            "quantity": {
                "value": 1.0
            },
            "sequence": 2,
            "unitPrice": {
                "currency": "$",
                "value": 1000.0
            }
        },
        {
            "category": {
                "text": "item"
            },
            "extension": [
                {
                    "url": "Medication",
                    "valueReference": {
                        "reference": "Medication/87211a50-ad85-4fc1-bc76-5b30c24469b7"
                    }
                }
            ],
            "productOrService": {
                "text": "0002"
            },
            "quantity": {
                "value": 1.0
            },
            "sequence": 3,
            "unitPrice": {
                "currency": "$",
                "value": 1000.0
            }
        },
        {
            "category": {
                "text": "service"
            },
            "extension": [
                {
                    "url": "ActivityDefinition",
                    "valueReference": {
                        "reference": "ActivityDefinition/863ab2d2-9519-4f80-bc58-d54fb6e3ba79"
                    }
                }
            ],
            "productOrService": {
                "text": "M4"
            },
            "quantity": {
                "value": 1.0
            },
            "sequence": 4,
            "unitPrice": {
                "currency": "$",
                "value": 21000.0
            }
        },
        {
            "category": {
                "text": "service"
            },
            "extension": [
                {
                    "url": "ActivityDefinition",
                    "valueReference": {
                        "reference": "ActivityDefinition/0f836206-4f8c-4f49-ae4e-19853a590018"
                    }
                }
            ],
            "productOrService": {
                "text": "M3"
            },
            "quantity": {
                "value": 1.0
            },
            "sequence": 5,
            "unitPrice": {
                "currency": "$",
                "value": 21000.0
            }
        },
        {
            "category": {
                "text": "service"
            },
            "extension": [
                {
                    "url": "ActivityDefinition",
                    "valueReference": {
                        "reference": "ActivityDefinition/9a64c4f9-8096-412f-91fc-7c2ffac1c7e7"
                    }
                }
            ],
            "productOrService": {
                "text": "M6"
            },
            "quantity": {
                "value": 1.0
            },
            "sequence": 6,
            "unitPrice": {
                "currency": "$",
                "value": 21000.0
            }
        },
        {
            "category": {
                "text": "service"
            },
            "extension": [
                {
                    "url": "ActivityDefinition",
                    "valueReference": {
                        "reference": "ActivityDefinition/fedc55c6-7cd1-43e8-a266-c107bf059c1b"
                    }
                }
            ],
            "productOrService": {
                "text": "M2"
            },
            "quantity": {
                "value": 1.0
            },
            "sequence": 7,
            "unitPrice": {
                "currency": "$",
                "value": 21000.0
            }
        }
    ],
    "patient": {
        "reference": "Patient/F2EC72C9-7489-45AA-95C5-30D79216E74F"
    },
    "supportingInfo": [
        {
            "category": {
                "text": "guarantee_id"
            },
            "sequence": 1,
            "valueString": "sdasdasd"
        },
        {
            "category": {
                "text": "explanation"
            },
            "sequence": 2,
            "valueString": "asdasdasd"
        }
    ],
    "total": {
        "currency": "$",
        "value": 87000.0
    },
    "type": {
        "text": "E"
    }
}