Hello,
I am looking to strip an entire segment out based on the value in OBX.3. Basically, if OBX.3 is equal to “Text Report File Name”, I want to strip that entire OBX segment out. I was wondering if anyone could help out.
MSH|^~\&|IM||||20210201114846||ORU^R01|13|P|2.4|1||AL|NE
PID|1||0001016|M1036|ZZTEST^DANIEL^||19780101|M||1|2 TECHNOLOGY DR^^WESTBOROUGH^MA^01581^||(555)121-2121|||||V00000112235
PV1|1|O|PULH^^^^^^||||BERNMI^BERNSTEIN^MICHAEL^A|BERNMI^BERNSTEIN^MICHAEL^A||||||||||||11||||||||||||||||||||||||20210126105600
ORC|RE|4449001||||||||||AAROGI^AARON^GILA^
OBR|1|4449001||PULM.PFT^PULMONARY FUNCTION TEST^|||20210201114338|||||||||AAROGI^AARON^GILA^|||||||||D||||||\S\
OBX|1|ED|Report File Name||TES|||||||||20210201114846||||BreezeSuite|20210201114846
OBX|2|TX|Text Report File Name||Site: Stamford Hospital|||||||||20210201114846||||BreezeSuite|20210201114846
OBX|3|TX|Text Report File Name||ID: 0001016 Name: ZZTEST, DANIEL|||||||||20210201114846||||BreezeSuite|20210201114846
OBX|4|TX|Text Report File Name||Visit Date: 02/01/2021|||||||||20210201114846||||BreezeSuite|20210201114846