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

Messages HL7 QBP^Q22 and RSP^K22 #91

Open
testlorenzospa opened this issue Jan 26, 2023 · 3 comments
Open

Messages HL7 QBP^Q22 and RSP^K22 #91

testlorenzospa opened this issue Jan 26, 2023 · 3 comments

Comments

@testlorenzospa
Copy link

Hello.

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

Thanks.

@senaranya
Copy link
Owner

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
Copy link
Author

testlorenzospa commented Jan 27, 2023

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
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants