Versions Compared

Key

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

...

FHIR R4 field

openIMIS field

Notes

Mapping status

identifier

InsureeID / CHFID / passport / TypeOfId / InsureeUUID

there is a 0..* relation on identifier

InsureeID / CHFID / passport / InsureeUUID is mapped

name

LastName / OtherNames

name field contains values that are being mapped for both LastName and OtherNames fields

mapped

birthDate

DOB

mapped

gender

Gender

Link to gender_codes configuration key

mapped

maritalStatus

Marital

maritalStatus.text in [Married, Single, Divorced, Widowed, Not specified]

mapped

telecom

Phone / Email

telecom field contains values that are being mapped for both Phone and Email fields

mapped

photo.url

tblInsuree.PhotoID → tblPhotos.PhotoFolder + PhotoFileName

Should include the base URL

mapped

photocreation

tblInsuree.PhotoID → tblPhotos.PhotoDate

mapped

generalPractitioner

HFID

reference/HeathcareService

mapped

address

CurrentAddress / GeoLocation

The patient can contain multiple addresses

mapped

link.other

link to tblInsuree.FamilyId → tblFamilies.InsureeId → tblInsurees.InsureeUUID

reference Patient/UUID
UUID is head of the family

mapped

link.type

tblInsuree.relationship → tblRelations.relationRelation OR tblRelations.RelationId

Based on module configuration. tblRelations.Relation by default.

mapped

extension.isHead

tblInsuree.IsHead

url: isHead
type: valueBoolean

mapped

extension.registrationDate

tblInsuree.ValidityFrom

url: registrationDate
type: valueDateTime

mapped

extension.locationCode

link to tblInsuree.FamilyId → tblFamilies.LocationId→ tblLocations.LocationUUID

url: locationCode
type: valueReference

mapped

extension.educationCode.valueCoding.code
extension.educationCode.valueCoding.display

tblInsuree.Education → tblEducations.EducationId
tblInsuree.Education → tblEducations.Education

utl: educationCode
type: valueCoding

mapped

extension.professionCode.valueCoding.code
extension.professionCode.valueCoding.display

tblInsuree.Profession → tblProfessions.ProfessionId
tblInsuree.Profession → tblProfessions.Profession

utl: professionCode
type: valueCoding

mapped

extension.povertyStatus

tblInsuree → tblFamilies → Poverty

url: povertyStatus
type: valueBoolean

mapped

extension.group

link to tblInsuree.FamilyId → tblFamilies.FamilyUUID

reference/Group/UUID

not mapped (warning)

Endpoint specification

Example of endpoint URL

...

Code Block
languagejson
{
    "resourceType": "Patient",
    "address": [
        {
            "text": "5 Tsoka",
            "type": "physical",
            "use": "home"
        }
    ],
    "birthDate": "1987-01-07",
    "extension": [
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960069653/isHead",
            "valueBoolean": true
        },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960331779/registrationDate",
            "valueDateTime": "2020-05-13T06:21:37.810000"
        },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960495619/locationCode",
            "valueReference": {
                "reference": "Location/BEE392F1-07D8-482F-B601-6C8BBA0BF2A9"
            }
        },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960331788/educationCode",
            "valueCoding": {
                "code": "3",
                "display": "Secondary school"
            }
        },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960135203/professionCode",
            "valueCoding": {
                "code": "3",
                "display": "Self Employee"
            }
        },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/1556643849/povertyStatus",
            "valueBoolean": true
        }
    ],
    "gender": "M",
    "id": "01EEDC6C-436C-465F-86C2-6FF68644D751",
    "identifier": [
        {
            "type": {
                "coding": [
                    {
                        "code": "UUID",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "01EEDC6C-436C-465F-86C2-6FF68644D751"
        },
        {
            "type": {
                "coding": [
                    {
                        "code": "SB",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "6561"
        },
        {
            "type": {
                "coding": [
                    {
                        "code": "PPN",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "6561"
        }
    ],
    "maritalStatus": {
        "coding": [
            {
                "code": "M",
                "system": "http://hl7.org/fhir/valueset-marital-status.html"
            }
        ],
        "text": "Married"
    },
    "name": [
        {
            "family": "Banda",
            "given": [
                "James"
            ],
            "use": "usual"
        }
    ],
    "photo": [
        {
            "creation": "1900-01-01",
            "url": "Images\\Updated\\"
        }
    ],
    "telecom": [
        {
            "system": "phone",
            "use": "home",
            "value": ""
        },
        {
            "system": "email",
            "use": "home",
            "value": "                                                                                                    "
        }
    ]
}