Inconsistencies in FHIR Resource Referencing

This is a repost from my LinkedIn post

A recurring challenge I’ve encountered when working with FHIR is inconsistent resource referencing.

For example, the ChargeItemDefinition.instance element can reference both Device and DeviceDefinition. However, it can only reference Medication — not MedicationKnowledge — even though both DeviceDefinition and MedicationKnowledge are definition resources, share significant similarities, and are part of the Order Catalog Implementation Guide.

No MedicationKnowledge referencing in ChargeItemDefinition

Similarly, in request resources such as MedicationRequest and DeviceRequest, it is possible to assign a HealthcareService as the performer. However, in corresponding event resources like MedicationDispense and DeviceDispense, there is no option to reference a HealthcareService as the performer. As a result, to indicate that a pharmacy service is performing the dispensing, I have to create an extension.

HealthcareService referencing from MedicationRequest resource
HealthcareService referencing from MedicationRequest.performer
MedicationDispense does not allow referencing HealthcareService. So even if the order expects a service as performer, this must be captured via an extension.
MedicationDispense does not allow referencing HealthcareService. So even if the order expects a service as performer, this must be captured via an extension.

Additionally, while a request’s performer can be a HealthcareService, the requester is restricted to entities such as Organization — HealthcareService is not permitted.

No HealthcareService referencing in MedicationRequest.requester
No HealthcareService referencing in MedicationRequest.requester

These are just some examples. There may be valid reasons for these modeling choices, but they’re not always clear to me. Don’t get me wrong — I really like FHIR overall :). I just sometimes run into designs that I find a bit puzzling.

Originally published on May 12, 2024.
Republished on this blog on April 25, 2025.
Featured image by Tamanna Rumee on Unsplash


Rath Panyowat Avatar

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

©2025 Rath Panyowat. All rights reserved.