Skip to content

Why the Message PMU B02 is missing in the message models? #491

Answered by milkshakeuk
antoprd asked this question in Q&A
Discussion options

You must be logged in to vote

@antoprd

I'm pretty sure a class model for PMU_B02 has never existed. nhapi as well as hapi using mapping to map multiple message/event types to a single class, it does this using EventMap.properties files.

The below is taken from the hapi FAQ page.

HL7 defines that some message triggers reuse the same structure. So, for example, the ADT^A04 message has the exact same structure as an ADT^A01 message. Therefore, when an ADT^A04 message is parsed, or when you want to create one, you will actually use the ADT_A01 message class, but the "triggerEvent" property of MSH-9 will be set to A04.

This is the EventMap for V27 which maps PMU_B02 into the PMU_B01 class.

I hope this helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@antoprd
Comment options

Answer selected by antoprd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants