Bugs5382 / node-hl7-client

A pure Node.js HL7 Client that allows for communication to a HL7 Broker/Server that can send properly formatted HL7 messages with ease.It can also parse and then you can extract message segments out.
MIT License
14 stars 4 forks source link

Export HL7 versions #81

Closed glenarama closed 6 months ago

glenarama commented 6 months ago

Need to be able to create versions other than 2.7

Currently the example shows creation using:

specification: new HL7_2_3()

However the HL7 versions are not exported, so 2.7 is used by default. This then forces 9 to have a secondary constructed ADT message which breaks the 2.2 server im trying to communicate with.

Could HL7_2* be exported or added as a messageHeader option?

Bugs5382 commented 6 months ago

Yep. I already know about this... I have yet to get around to it.

Bugs5382 commented 6 months ago

Got it working..

image

Release coming very shortly.

Bugs5382 commented 6 months ago

:tada: This issue has been resolved in version 2.1.0-beta.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Bugs5382 commented 6 months ago

@glenarama Can you check this out in the development release?

glenarama commented 6 months ago

Looks to be working @Bugs5382 Thanks!

Theres an issue with ES6 import recognition, but it is working.

image
Bugs5382 commented 6 months ago

Can you try:

import {HL7_2_2} from "node-hl7-client/lib/types/hl7";
Bugs5382 commented 6 months ago

I am looking for an NPM package that does this type of "sub" package as a typescript. Not sure the above is the best method.

glenarama commented 6 months ago

That didn't help, could you not just export them at the top level? They would get shaken out when not used.

Bugs5382 commented 6 months ago

Yeah. I just ran a test on one of the apps I am doing.. which I am using 2.7 ... so ok. Let me re-work this tonight. :)

Bugs5382 commented 6 months ago

So, going over the code, I can't merge it into the main thing; otherwise, things will break. Yikes. So, I gotta figure out this sub-module issue.

Bugs5382 commented 6 months ago

Ok. I got it working in my code now....

import {HL7_2_3} from "node-hl7-client/hl7"; now will work in upcoming develop channel.

Bugs5382 commented 6 months ago

85 is being merged into develop now

Bugs5382 commented 6 months ago

2.1.0-beta.3 is out. Please try it there...

import {HL7_2_2} from "node-hl7-client/hl7"
console.log(new HL7_2_2())
glenarama commented 6 months ago

Looks good! Thanks.

Bugs5382 commented 6 months ago

@glenarama - let me know so I can push it out to main. :)

glenarama commented 6 months ago

@glenarama - let me know so I can push it out to main. :)

Its working good for me now thanks.

Bugs5382 commented 6 months ago

:tada: This issue has been resolved in version 2.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: