Skip to content
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

Add DSL for building Custom HL7 structures? #29

Open
ohr opened this issue Nov 2, 2010 · 0 comments
Open

Add DSL for building Custom HL7 structures? #29

ohr opened this issue Nov 2, 2010 · 0 comments

Comments

@ohr
Copy link

ohr commented Nov 2, 2010

Although it's possible now to compile custom HL7 structures at runtime, creating these custom structures is still unintuitive.
I wonder if a DSL like the one used for HL7 validation could help, e.g. compare the custom definitions in modules-hl7 (below package org.openehealth.ipf.modules.hl7.parser.groovytest.hl7v2.def.v25, way more than 100 LOC) with:

forVersion('2.5')
.message('MDM', 'T01 T02')
.addSegment('ZBE')

.newSegment('ZBE')
.addRepeatingType('MovementId', EI, 999)
.addType('StartMovementDateTime', TS, 26)
.addType('EndMovementDateTime', TS, 26)
.addType('Action', ST, 10)

alexandruti pushed a commit to alexandruti/ipf that referenced this issue Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant