Skip to content

Conversation

@SyardD
Copy link

@SyardD SyardD commented Sep 24, 2025

During the conversion of HL7 messages to FHIR resources, I found that the template DataType/PL_HDLocation defines the field physicalType, even though this property is already included in PLLocation. This duplication leads to physicalType being generated twice in the same resource (as an array).

Root Cause
PLLocation already includes physicalType.
When DataType/PL_HDLocation is rendered inside PLLocation, it introduces another physicalType.
The same applies when DataType/PL_HDLocation is called from NDLocation.

Fix
Removed the physicalType field from DataType/PL_HDLocation.

Impact
Prevents duplicate physicalType fields in FHIR resources.
Safe change: both PLLocation and NDLocation already handle physicalType.
No edge cases identified where DataType/PL_HDLocation requires its own physicalType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant