xCaliber healthCare Data Mesh

MedicationStatement

Overview

The MedicationStatement API allows creating, retrieving and managing records of medications taken by patients. Healthcare developers can use it to build applications that consolidate medication history from multiple sources for a more complete view of the patient's medication adherence and response.

Use Cases

  • Medication Reconciliation - Create complete medication histories by consolidating statement data from multiple sources.
  • Medication Adherence - Track whether patients are taking medications as prescribed based on recorded statements.
  • Clinical Decision Support - Check medication statements to identify missed doses, duplications, or interactions.
  • Allergy Checking - Cross-check recorded administrations against patient allergies to identify possible reactions.
  • Inventory Management - Update pharmacy inventory levels as doses are marked as administered.
  • Patient Medication Records - Build patient portals with medication histories populated from statement data.
  • Analytics & Research - Analyze medication statement data to study prescribing patterns, effectiveness etc.
  • Reporting - Generate reports on medication administration volumes, adherence rates, and discrepancies.
  • Regulatory Compliance - Ensure medication administration documentation meets regulatory requirements.

EHR Data Model

EHRSupported?Mapped Source Object
AthenaMedications
ElationHistorical Medication Download Request
EpicN/A

Object Definition

{
  "resourceType": "MedicationStatement",
  "id": "example001",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example001</p><p><b>contained</b>: </p><p><b>identifier</b>: 12345689 (OFFICIAL)</p><p><b>status</b>: active</p><p><b>category</b>: Inpatient <span>(Details : {http://terminology.hl7.org/CodeSystem/medication-statement-category code 'inpatient' = 'Inpatient', given as 'Inpatient'})</span></p><p><b>medication</b>: id: med0309; Tylenol PM <span>(Details : {http://hl7.org/fhir/sid/ndc code '50580-506-02' = '50580-506-02', given as 'Tylenol PM'})</span>; Film-coated tablet (qualifier value) <span>(Details : {SNOMED CT code '385057009' = 'Film-coated tablet', given as 'Film-coated tablet (qualifier value)'})</span></p><p><b>subject</b>: <a>Donald Duck</a></p><p><b>effective</b>: 23/01/2015</p><p><b>dateAsserted</b>: 22/02/2015</p><p><b>informationSource</b>: <a>Donald Duck</a></p><p><b>derivedFrom</b>: <a>MedicationRequest/medrx002</a></p><p><b>reasonCode</b>: Restless Legs <span>(Details : {SNOMED CT code '32914008' = 'Restless legs', given as 'Restless Legs'})</span></p><p><b>note</b>: Patient indicates they miss the occasional dose</p><p><b>dosage</b>: </p></div>"
  },
  "contained": [
    {
      "resourceType": "Medication",
      "id": "med0309",
      "code": {
        "coding": [
          {
            "system": "http://hl7.org/fhir/sid/ndc",
            "code": "50580-506-02",
            "display": "Tylenol PM"
          }
        ]
      },
      "form": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "385057009",
            "display": "Film-coated tablet (qualifier value)"
          }
        ]
      },
      "ingredient": [
        {
          "itemCodeableConcept": {
            "coding": [
              {
                "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                "code": "315266",
                "display": "Acetaminophen 500 MG"
              }
            ]
          },
          "strength": {
            "numerator": {
              "value": 500,
              "system": "http://unitsofmeasure.org",
              "code": "mg"
            },
            "denominator": {
              "value": 1,
              "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
              "code": "Tab"
            }
          }
        },
        {
          "itemCodeableConcept": {
            "coding": [
              {
                "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                "code": "901813",
                "display": "Diphenhydramine Hydrochloride 25 mg"
              }
            ]
          },
          "strength": {
            "numerator": {
              "value": 25,
              "system": "http://unitsofmeasure.org",
              "code": "mg"
            },
            "denominator": {
              "value": 1,
              "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
              "code": "Tab"
            }
          }
        }
      ],
      "batch": {
        "lotNumber": "9494788",
        "expirationDate": "2017-05-22"
      }
    }
  ],
  "identifier": [
    {
      "use": "official",
      "system": "http://www.bmc.nl/portal/medstatements",
      "value": "12345689"
    }
  ],
  "status": "active",
  "category": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/medication-statement-category",
        "code": "inpatient",
        "display": "Inpatient"
      }
    ]
  },
  "medicationReference": {
    "reference": "#med0309"
  },
  "subject": {
    "reference": "Patient/pat1",
    "display": "Donald Duck"
  },
  "effectiveDateTime": "2015-01-23",
  "dateAsserted": "2015-02-22",
  "informationSource": {
    "reference": "Patient/pat1",
    "display": "Donald Duck"
  },
  "derivedFrom": [
    {
      "reference": "MedicationRequest/medrx002"
    }
  ],
  "reasonCode": [
    {
      "coding": [
        {
          "system": "http://snomed.info/sct",
          "code": "32914008",
          "display": "Restless Legs"
        }
      ]
    }
  ],
  "note": [
    {
      "text": "Patient indicates they miss the occasional dose"
    }
  ],
  "dosage": [
    {
      "sequence": 1,
      "text": "1-2 tablets once daily at bedtime as needed for restless legs",
      "additionalInstruction": [
        {
          "text": "Taking at bedtime"
        }
      ],
      "timing": {
        "repeat": {
          "frequency": 1,
          "period": 1,
          "periodUnit": "d"
        }
      },
      "asNeededCodeableConcept": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "32914008",
            "display": "Restless Legs"
          }
        ]
      },
      "route": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "26643006",
            "display": "Oral Route"
          }
        ]
      },
      "doseAndRate": [
        {
          "type": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                "code": "ordered",
                "display": "Ordered"
              }
            ]
          },
          "doseRange": {
            "low": {
              "value": 1,
              "unit": "TAB",
              "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
              "code": "TAB"
            },
            "high": {
              "value": 2,
              "unit": "TAB",
              "system": "http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm",
              "code": "TAB"
            }
          }
        }
      ]
    }
  ],
  "meta": {
    "tag": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code": "HTEST",
        "display": "test health data"
      }
    ]
  }
}

Data Fields

Data FieldTypeDescription
resourceTypeMedicationStatementThis is a MedicationStatement resource
ididThe logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
metaMetaThe metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
implicitRulesuriA reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
languagecodeThe base language in which the resource is written.
textNarrativeA human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
containedBackboneElementThese resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
extensionExtensionMay be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
modifierExtensionExtensionMay be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
identifierIdentifierIdentifiers associated with this Medication Statement that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.
basedOnReferenceA plan, proposal or order that is fulfilled in whole or in part by this event.
partOfReferenceA larger event of which this particular event is a component or step.
statuscodeA code representing the patient or other source's judgment about the state of the medication used that this statement is about. Generally, this will be active or completed.
statusReasonCodeableConceptCaptures the reason for the current state of the MedicationStatement.
categoryCodeableConceptIndicates where the medication is expected to be consumed or administered.
medicationCodeableConceptCodeableConceptIdentifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.
medicationReferenceReferenceIdentifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.
subjectReferenceThe person, animal or group who is/was taking the medication.
contextReferenceThe encounter or episode of care that establishes the context for this MedicationStatement.
effectiveDateTimestringThe interval of time during which it is being asserted that the patient is/was/will be taking the medication (or was not taking, when the MedicationStatement.taken element is No).
effectivePeriodPeriodThe interval of time during which it is being asserted that the patient is/was/will be taking the medication (or was not taking, when the MedicationStatement.taken element is No).
dateAsserteddateTimeThe date when the medication statement was asserted by the information source.
informationSourceReferenceThe person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g. Claim or MedicationRequest.
derivedFromReferenceAllows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.
reasonCodeCodeableConceptA reason for why the medication is being/was taken.
reasonReferenceReferenceCondition or observation that supports why the medication is being/was taken.
noteAnnotationProvides extra information about the medication statement that is not conveyed by the other attributes.
dosageDosageIndicates how the medication is/was or should be taken by the patient.

Extensions

NameURL

Operations & APIs

MedicationStatement-GET

MedicationStatement-POST

MedicationStatement ID-GET

MedicationStatement ID-PUT

MedicationStatement ID-DELETE

MedicationStatement Export-POST