senaranya / HL7

PHP library for Parsing, Generation and Sending HL7 v2 messages
MIT License
183 stars 86 forks source link

Messages HL7 QBP^Q22 and RSP^K22 #91

Open testlorenzospa opened 1 year ago

testlorenzospa commented 1 year ago

Hello.

Can your library support this type of HL7 messages? Can I get the response from the QBP^Q22 message?

Thanks.

senaranya commented 1 year ago

It doesn't support yet. You can construct or parse any segment though, even if it's not supported. So if you're doing just that, and sending the HL7 to a remote to get back a response, I'd say it's possible.

I've never used this segment, so I can't say for sure of the usecase you have

testlorenzospa commented 1 year ago

Hi @senaranya Thanks for your response. My goal is to send to a remote (an hospital) a message of type QBP^Q22 (from a PHP application) and receive the successive message RSP^K22 in response with probably a patient list in form of PID segments (if I don't understant wrong what I have read about in internet). Can I ask you how can I simulate this goal? I know how to simulate the situation when an hospital send a message (for example, through a program like SmartHL7). But in this case?

Thanks a lot.

senaranya commented 1 year ago

For sending message you can follow this section in the docs: https://github.com/senaranya/HL7#send-messages-to-remote-listeners

The sender can only receive an ACK and no other message-type. So for incoming messages, you may have to use some other library (or create your own TCP/IP socket listener)