Medication data in HIEBus may come from several types of data sources including prescriptions (from EMRs like Epic and Cerner), pharmacy claims (from payor systems), and pharmacy fills (from networks like Surescripts or pharmacy benefits managers like CVS/CareMark). To build as comprehensive a medication list as possible, you can aggregate data from multiple FHIR resources and use ValueSets to consolidate into a single list organized by generic ingredients.
Retrieve medication data from 3 FHIR resources:
Many clinical use cases require a single med list summarized by medication irrespective of different brands, formulations, and dosages. To create a single med list from the set of data returned above, group meds by generic ingredient.
version=RxNorm – Multi Ingredient
for the RxNorm code for each medication (use codes where system=http://www.nlm.nih.gov/research/umls/rxnorm
).For example, here 4 MedicationDispense rows (shown as ‘Fill’) and 1 MedicationRequest row (shown as ‘Rx) have been grouped into Amoxicillin, Clavulanate (Augmentin)
. The grouping was found with this query:
https://[YOUR_FHIR_ENDPOINT]/ValueSet/$classify?version=RxNorm - Multi Ingredient&system=http://www.nlm.nih.gov/research/umls/rxnorm&code=1152875,562508
Note that there were 2 pharmacy fills returned for the same date and therefore consolidated into a single row as well. Also note that Augmentin is the brand name of the medication, shown here in parentheses to indicate that the branded version was filled.
$classify
operation and common value set scopes.
medicationCodeableConcept.coding.code.display
where userselected=false
AND system=http://www.nlm.nih.gov/research/umls/rxnorm
medicationCodeableConcept.coding.text
https://[YOUR_FHIR_ENDPOINT]/ValueSet/$classify?version=RxNorm - Brands&system=http://www.nlm.nih.gov/research/umls/rxnorm
for the RxNorm code for each medication.explanationofbenefits.item.extension('http://careevolution.com/fhirextensions#explanationOfBenefitItem-strength’)
).MedicationDispense.extension('http://careevolution.com/fhirextensions#medicationDispense-caregiverReference')
MedicationRequest.requester
MedicationAdministration.request
Reference(MedicationRequest.requester)
MedicationDispense.performer.actor
MedicationAdministration.performer.actor
MedicationDispense