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

not mapped (warning)

maritalStatus

Marital

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

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

povertyStatus

tblInsuree → tblFamilies → Poverty

Extension valueBoolean

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

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.Relation OR tblRelations.RelationId

Based on module configuration. tblRelations.Relation by default. relation

mapped

extension.isHead

tblInsuree.IsHead

url: isHead
type: valueBoolean

mapped

extension.registrationDate

tblInsuree.ValidityFrom

url: registrationDate
type: valueDateTime

not mapped (warning)

extension.locationCode

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

url: locationCode
type: valueReference

not mapped (warning)

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

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

utl: educationCode
type: valueCoding

not mapped (warning)

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

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

utl: professionCode
type: valueCoding

not mapped (warning)

...

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"
        },
    ],
   {   "birthDate": "1987-01-07",
    "extension": [
      "text": "0.0 0.0", {
            "typeurl": "bothhttps://openimis.atlassian.net/wiki/spaces/OP/pages/960069653/isHead",
            "usevalueBoolean": "home"true
        },
     ],   {
 "birthDate": "1952-05-07",
    "extension": [         {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960069653/FHIR+extension+isHead960331779/registrationDate",
            "valueBooleanvalueDateTime": false"2020-05-13T06:21:37.810000"
        },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960331779/FHIR+extension+registrationDate",960495619/locationCode",
            "valueReference": {
                "valueStringreference": "2018-03-27T06:44:02.833000"Location/BEE392F1-07D8-482F-B601-6C8BBA0BF2A9"
            }
        },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960495619/FHIR+extension+Location960331788/educationCode",
            "valueStringvalueCoding": "R1D1M1V1"{
        },         {"code": "3",
                "urldisplay": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960331788/FHIR+extension+Education",Secondary school"
            "valueString": ""}
        },
        {
            "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/960135203/FHIE+extension+ProfessionprofessionCode",
            "valueStringvalueCoding": ""
 {
      }     ],     "gendercode": "female3",
    "id": "3A16BEDC-3E51-459F-B89C-889EB2FE8E6F",     "identifier": [     "display": "Self  Employee"
{            }
"type": {       },
        {
"coding": [           "url": "https://openimis.atlassian.net/wiki/spaces/OP/pages/1556643849/povertyStatus",
        {    "valueBoolean": true
        }
     ],
    "codegender": "UUIDM",
    "id": "01EEDC6C-436C-465F-86C2-6FF68644D751",
    "identifier": [
        {
    "system": "https://hl7.org/fhir/valueset-identifier-type.html"
        "type": {
                "coding": [
 }                  ] {
           },             "usecode": "usualUUID",
            "value": "3A16BEDC-3E51-459F-B89C-889EB2FE8E6F"         },  "system": "https://hl7.org/fhir/valueset-identifier-type.html"
     {             "type": { }
               "coding": []
            },
       {            "use": "usual",
            "codevalue": "SB",01EEDC6C-436C-465F-86C2-6FF68644D751"
        },
        {
            "systemtype": "https://hl7.org/fhir/valueset-identifier-type.html"{
                "coding": [
  }                 ] {
           },             "usecode": "usualSB",
     
      "value": "070707081"         },         {"system": "https://hl7.org/fhir/valueset-identifier-type.html"
            "type": {       }
         "coding": [      ]
            },
 {           "use": "usual",
            "codevalue": "PPN",6561"
        },
        {
            "systemtype": "https://hl7.org/fhir/valueset-identifier-type.html" {
                "coding": [
       }                 ]
{
           },             "usecode": "usualPPN",
            "value            "system": "https://hl7.org/fhir/valueset-identifier-type.html"
        }     ],       }
 "link": [         {     ]
       "other": {    },
            "referenceuse": "Patient/18BC40A1-A1AB-47AB-9BC0-9F3C0A7B1BDF"
            }usual",
            "typevalue": "Spouse6561"
        }
    ],
    "maritalStatus": {
        "coding": [
            {
                "code": "M",
                "system": "http://hl7.org/fhir/valueset-marital-status.html"
            }
        ]
,
   },     "nametext": ["Married"
    },
    "name": [
        {
            "family": "MacintyreBanda",
            "given": [
                "JaneJames"
            ],
            "use": "usual"
        }
    ],
    "photo": [
        {
            "creation": "20181900-0301-2701",
            "url": "Images\\Updated\\070707081_E00001_20180327_0.0_0.0.jpg"
        }"
        }
    ],
    "telecom": [
        {
            "system": "phone",
            "use": "home",
            "value": ""
        },
        {
            "system": "email",
       ],     "telecomuse": ["home",
         {   "value": "         "system": "phone",                "use": "home",             "value": ""         },         {             "system": "email",             "use": "home",             "value": ""
        }
    ]
}