This project has moved and is read-only. For the latest updates, please go here.

X12.HIPAA: HSD segment is ignored in Translation to Eligibility Response Format.


The existing file handles Quantity but only when the value comes from EB09/EB10. There is an alternative way to specify this quantity in the form of the HSD segment. The HSD segment is represented in the TypedSegmentHSD.cs file but that same handling was not translated by the XSLT in used by EligibilityTransformationService to create an EligibilityBenefitDocument record.

File to be updated is: X12-271-To-BenefitResponse.xslt

There is a decision to be made how the HSD is represented. It could be mapped directly to the existing Quantity element or it could be a new extension on the EligibilityBenefitDocument class to include HSD specific properties. This changes how the data is consumed.

The argument for mapping to Quantity is that it doesn't require a change for consumers, they just get the value that was previously ignored.

The argument for a new property is that this field might mean something slightly different in a particular context and therefore the two values can't be conflated.