LinuxForHealth / hl7v2-fhir-converter

Converts HL7 v2 Messages to FHIR Resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not assume multiple births unless explicitly stated.

cragun47 opened this issue · comments

Describe the bug
Multiple birth was implemented such that if the multiple births integer is present and N is set as indicator, parser assumes that deceased is true, and a .multipleBirthInteger is created.

However, the desired behavior is:

BOOL || NUMBER = Answer
-----------------------------
Y + number = integer number
N + number = N
Y + blank = Y
N + blank = N
blank + number = number   << in this case assume the number is meaningful data
blank + blank = nothing

To Reproduce
Use the value for boolean | number: `|N|16|'

Expected behavior
This should produce "multipleBirthBoolean": false

In Release 1.0.9