René's URL Explorer Experiment


Title: PipeParser treats choice/conditional segments in groups as invalid segments · Issue #794 · nHapiNET/nHapi · GitHub

Open Graph Title: PipeParser treats choice/conditional segments in groups as invalid segments · Issue #794 · nHapiNET/nHapi

X Title: PipeParser treats choice/conditional segments in groups as invalid segments · Issue #794 · nHapiNET/nHapi

Description: Describe the bug PipeParser.Parse() does not properly parse conditional segments in groups, such as in the ORDER_DETAIL group in ORM_O01 messages. Instead, the parser erroneously treats these as invalid segments. Attempt to parse the att...

Open Graph Description: Describe the bug PipeParser.Parse() does not properly parse conditional segments in groups, such as in the ORDER_DETAIL group in ORM_O01 messages. Instead, the parser erroneously treats these as in...

X Description: Describe the bug PipeParser.Parse() does not properly parse conditional segments in groups, such as in the ORDER_DETAIL group in ORM_O01 messages. Instead, the parser erroneously treats these as in...

Opengraph URL: https://github.com/nHapiNET/nHapi/issues/794

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PipeParser treats choice/conditional segments in groups as invalid segments","articleBody":"**Describe the bug**\n`PipeParser.Parse()` does not properly parse conditional segments in groups, such as in the `ORDER_DETAIL` group in `ORM_O01` messages. Instead, the parser erroneously treats these as invalid segments.\n\nAttempt to parse the attached HL7 message using a `PipeParser` with the option:\n```\nUnexpectedSegmentBehaviour = UnexpectedSegmentBehaviour.ThrowHl7Exception\n```\n\nThe call to `Parse()` will throw an exception, despite the HL7 message being valid. The exception message states that `RXO` is not a valid segment when attempting to parse the `ORDER_DETAIL` group. `RXO` should be parsed correctly because it is a valid conditional element within the `ORDER_DETAIL` group. The message appears to be parsed correctly when using `LegacyPipeParser`. Without the parser option set, the message will parse, but the `RXO` structure will not be populated with the data from the message.\n\nThe error appears to stem from the fact that all of the models mark conditional fields as required, but `IsChoiceElement` is always set to false for these items. See [`AbstractGroup.cs(429)`](https://github.com/nHapiNET/nHapi/blob/master/src/NHapi.Base/Model/AbstractGroup.cs#L429). There appears to be no way to ascertain this information in the parser without changes to the generated models.\n\nHere is an example HL7 message\n```\nMSH|^~\\\\\u0026|HIS|MedCenter|LIS|MedCenter|20060307110114||ORM^O01|MSGID20060307110114|P|2.3.1\nPID|||12001||Jones^John^^^Mr.||19670824|M|||123 West St.^^Denver^CO^80020^USA|||||||\nPV1||O|OP^PAREG^||||2342^Jones^Bob|||OP|||||||||2|||||||||||||||||||||||||20060307110111|\nORC|NW|1016314\nRXO|65862000330^MIRTAZAPINE^NDC^^REMERON^|1||30MG|TAB||1 TAB By Mouth QHS(2000)||G||60|Doses|0|123456^Jones, NP^Joan\n```\n\n**Environment details:**\n- OS: Windows 11\n- Target Framework: .NET 8\n- Version: 3.2.4\n- HL7 Version: tested using versions 2.3, 2.3.1, 2.5, 2.5.1","author":{"url":"https://github.com/rlannon","@type":"Person","name":"rlannon"},"datePublished":"2026-01-27T16:15:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/794/nHapi/issues/794"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a429a54a-5c3e-7af2-2b03-03c7ab1baacc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB2CA:327B79:65D88F:8B1E14:6A4C7D79
html-safe-nonce14d4a50a7222f3152215211bc7ac2c3ad150c0be46ef0850ea90e84f3a93608a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkNBOjMyN0I3OTo2NUQ4OEY6OEIxRTE0OjZBNEM3RDc5IiwidmlzaXRvcl9pZCI6IjQwNDk0Mzg4NTIyODgxMTgxMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5090eaf989c7a030726e2ba21f49114909d817779d6c9b99c767aa3af168e046
hovercard-subject-tagissue:3861336014
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nHapiNET/nHapi/794/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1189193ac764a0e80e6d9486b4535c319987b204f500f88e478c725210d43f8c/nHapiNET/nHapi/issues/794
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1189193ac764a0e80e6d9486b4535c319987b204f500f88e478c725210d43f8c/nHapiNET/nHapi/issues/794
og:image:altDescribe the bug PipeParser.Parse() does not properly parse conditional segments in groups, such as in the ORDER_DETAIL group in ORM_O01 messages. Instead, the parser erroneously treats these as in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerlannon
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-preview
go-importgithub.com/nHapiNET/nHapi git https://github.com/nHapiNET/nHapi.git
octolytics-dimension-user_id70870423
octolytics-dimension-user_loginnHapiNET
octolytics-dimension-repository_id29993598
octolytics-dimension-repository_nwonHapiNET/nHapi
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29993598
octolytics-dimension-repository_network_root_nwonHapiNET/nHapi
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecd470457e909b9d062f8002cf438ba870e6acff6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nHapiNET/nHapi/issues/794#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FnHapiNET%2FnHapi%2Fissues%2F794
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FnHapiNET%2FnHapi%2Fissues%2F794
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nHapiNET%2FnHapi
Reloadhttps://github.com/nHapiNET/nHapi/issues/794
Reloadhttps://github.com/nHapiNET/nHapi/issues/794
Reloadhttps://github.com/nHapiNET/nHapi/issues/794
Please reload this pagehttps://github.com/nHapiNET/nHapi/issues/794
nHapiNET https://github.com/nHapiNET
nHapihttps://github.com/nHapiNET/nHapi
Notifications https://github.com/login?return_to=%2FnHapiNET%2FnHapi
Fork 164 https://github.com/login?return_to=%2FnHapiNET%2FnHapi
Star 307 https://github.com/login?return_to=%2FnHapiNET%2FnHapi
Code https://github.com/nHapiNET/nHapi
Issues 24 https://github.com/nHapiNET/nHapi/issues
Pull requests 10 https://github.com/nHapiNET/nHapi/pulls
Discussions https://github.com/nHapiNET/nHapi/discussions
Actions https://github.com/nHapiNET/nHapi/actions
Projects https://github.com/nHapiNET/nHapi/projects
Wiki https://github.com/nHapiNET/nHapi/wiki
Security and quality 0 https://github.com/nHapiNET/nHapi/security
Insights https://github.com/nHapiNET/nHapi/pulse
Code https://github.com/nHapiNET/nHapi
Issues https://github.com/nHapiNET/nHapi/issues
Pull requests https://github.com/nHapiNET/nHapi/pulls
Discussions https://github.com/nHapiNET/nHapi/discussions
Actions https://github.com/nHapiNET/nHapi/actions
Projects https://github.com/nHapiNET/nHapi/projects
Wiki https://github.com/nHapiNET/nHapi/wiki
Security and quality https://github.com/nHapiNET/nHapi/security
Insights https://github.com/nHapiNET/nHapi/pulse
PipeParser treats choice/conditional segments in groups as invalid segmentshttps://github.com/nHapiNET/nHapi/issues/794#top
awaiting reviewhttps://github.com/nHapiNET/nHapi/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
https://github.com/rlannon
rlannonhttps://github.com/rlannon
on Jan 27, 2026https://github.com/nHapiNET/nHapi/issues/794#issue-3861336014
AbstractGroup.cs(429)https://github.com/nHapiNET/nHapi/blob/master/src/NHapi.Base/Model/AbstractGroup.cs#L429
awaiting reviewhttps://github.com/nHapiNET/nHapi/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.