Versions Compared

Key

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

...

openIMIS table - tblInsurees, tblFamilies

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 mappedRelatedPerson

FamilyID

not 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

mapped

RelatedPerson.Relationship

IsHeadmaritalStatus.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 not → tblPhotos.PhotoFolder + PhotoFileName

Should include the base URL

mapped

photo. creation

tblInsuree.PhotoID → tblPhotos.PhotoDate

not mapped

managingOrganizationgeneralPractitioner

HFIDnot

reference/HeathcareService

mapped

address

CurrentAddress / GeoLocation

The patient can contain multiple addresses

mappedpovertyStatus

link.other

link to tblInsuree.FamilyId → tblFamilies.InsureeId Poverty

Extension valueBoolean

If Poverty from tblFamilies is “None” nothing is returned and the field is empty, else it’s “True” or “False”

mappedtblInsurees.InsureeUUID

reference Patient/UUID
UUID is head of the family

mapped

link.type

tblInsuree.relationship → tblRelations.Relation 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

http://localhost:8000/api_fhir_R4r4/Patient/

Supported HTTP operation

...

Code Block
http://localhost:8000/api_fhir_R4r4/Patient/01DB0819-69F6-44F9-BF3D-0BCC5D4803E2

...

Code Block
languagepowershell
http://localhost:8000/api_fhir_R4r4/Patient/01DB0819-69F6-44F9-BF3D-0BCC5D4803E2

...

Code Block
http://localhost:8000/api_fhir_R4r4/Patient/01DB0819-69F6-44F9-BF3D-0BCC5D4803E2

...

Code Block
languagejson
{
    "resourceType": "Patient",
    "address": [
        {
            "text": "5 Tsoka",
            "type": "physical",
            "use": "home"
        },
        {
            "text": "0.0 0.0",
  
    ],
    "typebirthDate": "both1987-01-07",
    "extension": [
       "use": "home" {
        }     ],"url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960069653/isHead",
     "birthDate": "1970-01-04",       "contactvalueBoolean": [true
        },
        {
            "relationshipurl": ["https://openimis.atlassian.net/wiki/spaces/OP/pages/960331779/registrationDate",
                {"valueDateTime": "2020-05-13T06:21:37.810000"
        },
        {
  "coding": [         "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960495619/locationCode",
             "valueReference": {
           
                "codereference": "relatedPersonLocation/BEE392F1-07D8-482F-B601-6C8BBA0BF2A9"
            }
        },
  }      {
            "url":  ],"https://openimis.atlassian.net/wiki/spaces/OP/pages/960331788/educationCode",
            "valueCoding": {
       "text": false        "code": "3",
       }         "display": "Secondary school"
 ]         }  }
  ],     "extension": [ },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960069653/FHIR+extension+isHead960135203/professionCode",
            "valueBooleanvalueCoding": false{
        },         {"code": "3",
                "url": display"https://openimis.atlassian.net/wiki/spaces/OP/pages/960331779/FHIR+extension+registrationDate",
: "Self Employee"
           "valueString": "2020-05-22T08:52:06.687000" }
        },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960495619/FHIR+extension+Location",
 1556643849/povertyStatus",
            "valueBoolean": true
        }
    ],
    "gender": "M",
    "valueStringid": "R1D1M1V1"01EEDC6C-436C-465F-86C2-6FF68644D751",
        },"identifier": [
        {
            "urltype": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960331788/FHIR+extension+Education", {
                "valueStringcoding": ""[
           },         {
               "url         "code": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960135203/FHIE+extension+Profession",UUID",
                        "valueStringsystem": "https://hl7.org/fhir/valueset-identifier-type.html"
        },         {   }
         "url": "povertyStatus",      ]
      "valueBoolean": false      },
  }     ],     "genderuse": "maleusual",
            "idvalue": "A608DAEE01EEDC6C-ED8A436C-42BE465F-B6E686C2-B309707205D96FF68644D751",
       "identifier": [ },
        {
            "type": {
                "coding": [
                    {
                        "code": "UUIDSB",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "A608DAEE-ED8A-42BE-B6E6-B309707205D96561"
        },
        {
            "type": {
                "coding": [
                    {
                        "code": "SBPPN",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "1111111196561"
  
     },
        {
            "type": {       }
    ],
    "codingmaritalStatus": [{
        "coding":  [
         {   {
                     "code": "PPNM",
       
                "system": "httpshttp://hl7.org/fhir/valueset-identifiermarital-typestatus.html"
            }
        }],
        "text": "Married"
    },
 ]   "name": [
        },{
            "usefamily": "usualBanda",
            "valuegiven": ""[
        }     ],   "James"
  "name": [         {],
            "familyuse": "Manthusual",
        }
   "given": [ ],
    "photo": [
        {
 "Roger"             ]"creation": "1900-01-01",
            "useurl": "usualImages\\Updated\\"
        }
    ],
    "telecom": [
        {
            "system": "phone",
            "use": "home",
            "value": ""
        },
        {
            "system": "email",
            "use": "home",
            "value": "                                                                                                    "
        }
    ]
}