Versions Compared

Key

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

...

...

List of content:

Table of Contents

Description:

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:

ColorDescription

Mapped - the final choice, the most suitable choice

Need to be found the best place for the field (not mapped currently)

Currently not important - not mapped

Mapping:

OpenIMIS fieldDB typeFHIR fieldDescriptionNoteSTPHMapping status
PolicyIDPKIdentifier

Use only PolicyUUIDThis is the Database ID and should be used only internally
PolicyUUIDUniqueIdentifierIdentifierThe unique identifier used as PK for FHIR
Addedmapped
FamilyIDFK(tblFamilies)policyHolder
FHIR coverage has a direct connection with the patient. We can consider using the head of the family as a representative of the group or we can try to use the FHIR Group Resource (but first we must verify if we can add a reference to the Group instead of Patient). https://hl7.org/fhir/2018May/group.html
We can also consider using the subscriberId and put there code of the family head.OK

We use the policyHolder to represent the reference to the Patient (head of the family). The insurance code is used to point the appropriate Patient.

(was updated by SD) OKmapped
EnrollDatedate

The FHIR representation doesn't contain this type of value. If needed we can consider adding the FHIR extension.Extension
StartDatedateperiod

OKmapped
EffectiveDatedate

The FHIR representation doesn't contain this type of value. If needed we can consider adding the FHIR extension.Extension
ExpiryDatedateperiod

OKmapped
PolicyStatustinyintstatusDefault: 1
1 - Idle
2 - active
4 - suspended
8 - Expired
There are some differences between the Policy and FHIR statuses. List of FHIR coverage statuses:
1) active
2) cancelled
3) draft
4) entered-in-error
okmapped
PolicyValuedecimalcontract.valuedItem.net
The FHIR representation doesn't contain this type of value. If needed we can consider adding the FHIR extension.
ProdIDFK(tblProduct)grouping
The FHIR representation doesn't contain exactly the same type of value. The coverage classifications can be contained in the "grouping" field and we can join it with a product using grouping.plan. See example: https://hl7.org/fhir/STU3/coverage-example.json.htmlI would suggest to check Contract entity => Coverage.contract 
OfficerIDFK(tblOfficer)contract.agent.actor
The FHIR representation doesn't contain this type of value. If needed we can consider adding the FHIR extension.
subscriber

PolicyStagechar(1)
Default: N
N - New Policy
R - Renewed Policy
The FHIR representation doesn't contain this type of value. If needed we can consider adding the FHIR extension.
Will be added after when the final approach will be established
ValidityFromdatetime
This information are valuable for OpenIMIS but I probably not required by external systems.



Internal field

ValidityTodatetime

LegacyIDint

AuditUserIDint

RowIDtimestamp

I'm not sure but this is probably some unique value used to distinguish database rows. Probably not useful for external systems.Internal field
isOfflineint

I'm not sure but this is probably used to determine the source of row (offline/online app). Probably information isn't valuable for external systems.Internal field


Note:

  • The contract field could be use to map the Insurance Products to the Policies