Versions Compared

Key

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

...

FHIR R4 field

openIMIS field

notes

mapping status

identifier

tblItems.ItemID / tblItems.ItemUUID / tblItems.ItemCode

not mapped

code.coding

tblItems.ItemCode

The code of the medication. Duplicated in identifier.

not mapped

code.text

tblItems.ItemName

The name of the medication.

not mapped

form

tblItems.ItemPackage

string part: “tables”, “pieces”, etc.

not mapped

amount

tblItems.ItemPackage

integer part: 1000, 100, etc

If not possible to split then keep only form field

not mapped

unitPrice

tblItems.ItemPrice

mapped as Money
openIMIS extension to Medication

not mapped

Other information might be required to map from tblItems through extensions based on future requirements.

...

  • POST - the operation currently not supported
    Used to create a new medication. 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);

    • Medication resource created (includes the generated IDs)

  • GET - by default return list of all available Medication (medical items).
    To fetch information about a specific object you should add the ItemUUID to URL for instance:
    http://localhost:8000/api_fhir_R4/Medication/{ItemUUID}
    To search for a Medication resource based on ItemCode, use query variable ‘identifier’ with the ItemCode code value:
    http://localhost:8000/api_fhir_R4/Medication?identifier={ItemCode}

  • PUT - the operation currently not supported
    Used to update a Medication (medical item).

  • DELETE - the operation currently not supported
    Used to delete a Medication (medical item).

...

Example JSON representation of content:

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

Code Block
{
    "resourceType": "Medication",
    "amount": 1000,
    "code": {
        "coding": [
            {
                "code": "0001"
            }
        ],
        "text": "ACETYLSALICYLIC ACID (ASPIRIN)  TABS 300MG"
    },
    "extension": [
        {
            "valueUnitPrice": 10.0
        }
    ],
    "form": "OperationOutcome",TABLETS",
    "id": "71EFB78B-64EE-4A68-BE29-87DAF566EB20",
    "identifier": [
        {
            "type": {
                "issuecoding": [
                    {
                        "code": "ACSN",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "use": "usual",
            "value": "exception",71EFB78B-64EE-4A68-BE29-87DAF566EB20"
        },
        {
            "type": {
                "detailscoding": [
                    {
                        "textcode": "Missing `resourceType` attribute"
"ACSN",
                        "system": "https://hl7.org/fhir/valueset-identifier-type.html"
                    }
                ]
            },
            "severityuse": "usual",
            "value": "fatal0001"
        }
    ]
}