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 |
patient | tblClaim.InsureeUUID | reference to Patient resource | mapped - mandatory |
billablePeriod | tblClaim.DateFrom / tblClaim.DateTo | date from and date to 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 Location resource | 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 | 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":{ }, |
R4_fhir_issue_type_config | configuration of system and codes used to represent the specific types of operation outcome | "R4_fhir_issue_type_config":{ |
R4_fhir_claim_config | configuration of system and codes used to represent the specific types of claim codes | "R4_fhir_claim_config":{ |
Example JSON representation of content:
As in the other resources there is an error and therefore this file is shown.
{ "resourceType": "OperationOutcome", "issue": [ { "code": "exception", "details": { "text": "Missing `resourceType` attribute" }, "severity": "fatal" } ] } |