FHIR Chat · How to set ReferenceHandlingPolicy of a HAPI server · hapi

Stream: hapi

Topic: How to set ReferenceHandlingPolicy of a HAPI server


view this post on Zulip Mike Yackanich (Apr 07 2022 at 14:14):

I have HAPI 5.7 running (from dockerhub) and what I believe are needed to support logical references (see my application.yaml below).

When I attempt to use logical resource references (via identifier) versus literal within a bundle, my simple test does not create an association between two resources in the bundle (Patient and Organization). When I do a $everything on the Patient that was created I do not get back the Organization. Same for when I search for patient with _include=Patient:organization.

I retrieved the CapabilityStatement and I don't see any indication of what the ReferenceHandlingPolicy values are. I believe it is an array of multiple potential values based on documentation (https://hapifhir.io/hapi-fhir/apidocs/hapi-fhir-structures-r4/org/hl7/fhir/r4/model/CapabilityStatement.ReferenceHandlingPolicy.html). And I believe I need to have literal, logical, and resolves enabled.

I currently have allow_inline_match_url_references, auto_create_placeholder_reference_targets, and allow_external_references to "true" and enforcing integrity settings are "false".

What am I missing? Do I need to enable "logical" also?

view this post on Zulip Mike Yackanich (Apr 07 2022 at 17:49):

FYI - I was finally able to get conditional references to work, using a conditional update for the referenced resource containing the same identifier value as the conditional reference within the resource containing the reference. I don't think this is considered a "logical" reference - so still interested if there is an additional config needed to use identifier for a reference and have the server resolve it to a placeholder or existing resource.


Last updated: Apr 12 2022 at 19:14 UTC