A vendor we have is requiring us to remove a “footer” in a result message. The solution I would like to implement is to null the OBX5 field of 7 OBX segments every time a certain string is encountered in the OBX5.
Example:
OBX|176|TX||| DATA REVIEWED: VITAL SIGNS, NURSES NOTES. REPEAT EXAM:. COUNSELING: I ||||||F
OBX|177|TX||| ||||||F
OBX|178|TX|||*** CHART COMPLETE *** ||||||F
OBX|179|TX|||PAGE 3 OF 4 ||||||F
OBX|180|TX|||NAME:JOHN DOE ||||||F
OBX|181|TX|||ACCOUNT#:123456789 ||||||F
OBX|182|TX|||MRN:123456789 ||||||F
OBX|183|TX|||DOB:01/04/1952 ||||||F
OBX|184|TX|||ARRIVAL DATE:07/20/2010 ||||||F
OBX|185|TX||| ||||||F
OBX|186|TX||| ||||||F
OBX|187|TX|||PHYSICIAN DOCUMENTATION ||||||F
I would like to null OBX178 – OBX184 and have the result:
OBX|176|TX||| DATA REVIEWED: VITAL SIGNS, NURSES NOTES. REPEAT EXAM:. COUNSELING: I ||||||F
OBX|177|TX||| ||||||F
OBX|178|TX||| ||||||F
OBX|179|TX||| ||||||F
OBX|180|TX||| ||||||F
OBX|181|TX||| ||||||F
OBX|182|TX||| ||||||F
OBX|183|TX||| ||||||F
OBX|184|TX||| ||||||F
OBX|185|TX||| ||||||F
OBX|186|TX||| ||||||F
OBX|187|TX|||PHYSICIAN DOCUMENTATION ||||||F
ANY HELP IS MUCH APPRECIATED!!!!!