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

feat: new HL7_2_7() #36

Open
Bugs5382 opened this issue Dec 18, 2023 · 1 comment
Open

feat: new HL7_2_7() #36

Bugs5382 opened this issue Dec 18, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Bugs5382
Copy link
Owner

Class System for Each Spec which would allow the user not have to know the "values" that they need or could enter.

I envision this as:

const hl7 = new HL7_2_7(); 
hl7.produceMSH( { ....MSH } )
hl7.produceEVN( { ...EVN } )
/// etc.. would build out the full HL7 Message with strong-typescript, checked inputs.

This would be different from the Message//FileBatch//Batch classes where they are more generic, the classes for each spec would confirm to what it can produce. For example 2.1 has limited specs in terms of different segments allowed. The Message class would help in this case and the overall HL7_2_7 would return a Message object. This way it can be added to the Batch or FileBath functions.

Some functions inside the overarching might not exist. For example AL1 segment does not exist on 2.1 but does in 2.2.

For now for milestone 1.0.0, we are just trying to get something out the door :)

@Bugs5382 Bugs5382 added enhancement New feature or request help wanted Extra attention is needed labels Dec 18, 2023
@Bugs5382 Bugs5382 added this to the 2.0.0 milestone Jan 5, 2024
@Bugs5382
Copy link
Owner Author

Bugs5382 commented Jan 5, 2024

GitHub's Octokit is a good example of how this should be 'dynamic' and 'conditional'.

@Bugs5382 Bugs5382 removed this from the 2.0.0 milestone Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Development

No branches or pull requests

1 participant