OrthoDocSoft
Programmer
Folks,
I was literally looking for "<cr>" to know when the end of my first segement (MSH) was. Now that I'm getting real messages, I don't see these four characters anywhere, and I'm betting I was looking at "fake" messages where <cr> means "carriage return", but that's ok. This practice was returning essentially a blank MSH segement (no good), so I'm abandoning it.
My real world MSH segments have 20 pipes > | < in them, so I can count them to find the end, I think,
OR
I could look for "PID" (the next segment) as a signal for the end of the MSH segment.
Does anyone have an opinion which is better?
Does anyone know a better way to parse this portion of the HL7 message? I only need the date and time bits, and the MessageType data, so....
Thanks,
Ortho
"you cain't fix 'stupid'...
I was literally looking for "<cr>" to know when the end of my first segement (MSH) was. Now that I'm getting real messages, I don't see these four characters anywhere, and I'm betting I was looking at "fake" messages where <cr> means "carriage return", but that's ok. This practice was returning essentially a blank MSH segement (no good), so I'm abandoning it.
My real world MSH segments have 20 pipes > | < in them, so I can count them to find the end, I think,
OR
I could look for "PID" (the next segment) as a signal for the end of the MSH segment.
Does anyone have an opinion which is better?
Does anyone know a better way to parse this portion of the HL7 message? I only need the date and time bits, and the MessageType data, so....
Thanks,
Ortho
"you cain't fix 'stupid'...