Here is input message I am testing with:
0000000672MSH:;~&:SPC:N:IM:N:200704271337::ADT;A02;41:6429603:P:2.2:6429603::AL
PID::00554801:0000035424;;;N:1115970;N13281500:XXXX;XXXX;M;::19410305:F::1:7639
PARADISE BEACH RD;;PASADENA;MD;21122;US;C;02:02:(410)255-2578::ENGLISH;E;:M:MET;
NK1:1:XXXX;XXXXXX;RSR:H;;:7639 PARADISE BEACH RD;;PASADENA;MD;21122;US:(410)255-
PV1::I:PAU;PACU;2;N;;;I:3::ICU;ICU;11;N;;;:50;C;ME;T;;;MD::””:SUR::::1
Output looks like this:
MESSAGE 1
0(0).MSH(0) : >|^~&|STAR|BWMC|||||ADT^A01|6429603|P|2.3<
0(0).EVN(0) : >|A02|200704271336<
0(0).PID(0) : >||554801|0000035424|1115970|XXXX^XXXXX^M||19410305|F||||||||||0711700059|217384220<
0(0).PV1(0) : >||I|PAU^PACU^2|||ICU^ICU^11|50^C^ME^T^^^MD|||||||||||||||||||||||||||||||||||||200704271327<
[/code]