FHIR R4 Resource - Condition

openIMIS tables mapped - tblICDCodes

FHIR R4 field

OpenIMIS field

notes

mapping status

identifier

tblICDCodes.ICDID / tblICDCodes.ICDUUID / tblICDCodes.ICDCode

tblICDCodes doesn’t contains UUID identifier. This should be added in the next release.

mapped

code.coding

tblICDCodes.ICDCode

Condition resource has a different field for code and is not part of the identifier.

mapped

code.text

tblICDCodes.ICDName

The name of the diagnosis.

mapped

recordedDate

tblICDCodes.ValidityFrom

date from when the diagnosis is valid.

mapped

subject

reference.type = “Patient”

reference to Patient resource

only mapped to be able to create a database

Endpoint specification:

Example of endpoint URL:

http://localhost:8000/api_fhir_r4/Condition

Supported HTTP operation:

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":{
"system":"https://hl7.org/fhir/valueset-identifier-type.html",
"fhir_code_for_imis_db_uuid_type":"UUID",
"fhir_code_for_imis_db_id_type":"ACSN",
"fhir_code_for_imis_chfid_type":"SB",
"fhir_code_for_imis_passport_type":"PPN",
"fhir_code_for_imis_facility_id_type":"FI",
"fhir_code_for_imis_claim_admin_code_type":"FILL",
"fhir_code_for_imis_claim_code_type":"MR",
"fhir_code_for_imis_location_code_type":"LC",
"fhir_code_for_imis_diagnosis_code_type":"DC",
"fhir_code_for_imis_item_code_type":"IC",
"fhir_code_for_imis_service_code_type":"SC",
},

R4_fhir_issue_type_config

configuration of system and codes used to represent the specific types of operation outcome

"R4_fhir_issue_type_config":{
"fhir_code_for_exception":"exception",
"fhir_code_for_not_found":"not-found",
"fhir_code_for_informational":"informational"
},

Example JSON representation of content:

{
    "resourceType": "Condition",
    "code": {
        "coding": [
            {
                "code": "A00"
            }
        ],
        "text": "Cholera"
    },
    "id": "2",
    "identifier": [
        {
            "type": {
                "coding": [
                    {
                        "code": "ACSN",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "2"
        },
        {
            "type": {
                "coding": [
                    {
                        "code": "DC",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "A00"
        }
    ],
    "recordedDate": "2018-03-19T06:59:00.533000",
    "subject": {
        "type": "Patient"
    }
}