Versions Compared

Key

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

FHIR R4 Resource - Condition Claim

OpenIMIS 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.

not

mapped

code.coding

tblICDCodes.ICDCode

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

not

mapped

code.text

tblICDCodes.ICDName

The name of the diagnosis.

not

mapped

recordedDate

tblICDCodes.ValidityFrom

date from when the diagnosis is valid.

not

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_R4r4/Condition

Supported HTTP operation:

  • POST - the operation currently not supported
    Used to submit a condition. List of supported fields can be found in the table which shows the mapping between OpenIMIS and FHIR. The body as JSON representation.

    The response is:

    • OperationOutcome which notice about the failure (list of possible errors);

    • Condition which notice about the success (includes the generated IDs);

  • GET - by default return list of all available Conditions (diagnosis). To fetch information about a specific object you should add the Condition code to URL for instance:
    http://localhost:8000/api_fhir_R4r4/Condition/{ConditionCode}

  • PUT - the operation currently not supported
    Used to update a Condition/diagnosis.

  • DELETE - the operation currently not supported
    Used to delete a Condition/diagnosis.

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:

As in the other resources there is an error and therefore this file is shown.

...

Code Block
languagejson
{
    "resourceType": "Condition",
    "code": {
        "coding": [
            {
                "code": 
"OperationOutcome
"A00"
            }
        ],
        "text": "Cholera"
    },
    "id": "2",
    "
issue
identifier": [
        {
            "type": {
                "coding": [
                    {
                        "code
": "exception",
": "ACSN",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "2"
        },
        {
            "type": {
                "
details
coding": [
                    {
                
"text
        "code": 
"Missing `resourceType` attribute"
"DC",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "
severity
value": "
fatal
A00"
        }
    ],
    "recordedDate": "2018-03-19T06:59:00.533000",
    "subject": {
        "type": "Patient"
    }
}