-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser does not allow some permissible IN1 and IN2 field repetitions for HL7 v. 2.3 #191
Comments
@afaonline I have looked at the HL7 v2.3 specification for IN1 (section 6.4.6) and it looks like you are correct. Section 6.4.6 on the HL7 v2.3 specification It looks at first glance like the database doesn't align with the specification... but it could also just be the query used to pull this information is incorrect, I have reached out to the maintainer of the database to see if this a query mistake or a database mistake. |
@afaonline I have had a response from the database maintainer and this looks as though this is a database issue. |
@afaonline this defect is up for grabs, if you would like to create a PR to fix those |
Due to errors in normative database for HL7 v. 2.3, IN1 and IN2 segments had incorrect repetition flags
I am not sure that it is OK to make changes in generated code, but I've created a pull request that fixes IN1 and IN2 field repetitions for HL7 v. 2.3 |
@afaonline you are correct to be concerned about making changing to generated code however, the maintainer of the database isn't going provide an updated version in the immediate future. Your PR will enable this fix to go out with the V3 release of nHapi, rather than wait for the next run of the source code generator. The next planned re-run of the source code generator will be for V4 of nHapi (we already have a newer version of the database but it doesn't yet have the fixes described in this issue), at that time we will also be discontinuing support for |
Update HL7 v. 2.3 IN1 and IN2 repeat flags for some fields, fixes #191
I've noticed that parser does not allow repetitions for IN1.3 "Insurance Company ID", while repetitions of this field is permitted by HL7 2.3. Also repetitions should be allowed for the IN1 fields 4–7, 9–11, 16, 19, 44, and 49.
By comparing the /src/NHapi.Model.V23/Segment/IN2.cs file and text of HL7 2.3 standard I can suppose that some IN2 fields also should be allowed to repeat. At the same time IN3 has all repetition flags set correctly according to HL7 v. 2.3 standard.
The text was updated successfully, but these errors were encountered: