How to extract PID #578
-
I have use the parser to get the MSH which is good but to get to the PID I need to cast the hl7 to a ORU_R01. Is it possible just to extract the PID segment without having to process the TriggerEvent?.
|
Beta Was this translation helpful? Give feedback.
Answered by
milkshakeuk
Aug 22, 2024
Replies: 1 comment 7 replies
-
var hl7 = parser.Parse(sMessage);
var oru = (ORU_R01)hl7;
var patientResult = message.GetPATIENT_RESULT();
var pid = patientResult.PATIENT.PID; But I strongly suggest to:
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you could also try the
SegmentFinder
Class.