web stats
Mirth Community - View Single Post - How to hardcode something with repeating obx segments
View Single Post
  #3  
Old 04-19-2012, 07:49 AM
achilton achilton is offline
Mirth Newb
 
Join Date: Sep 2011
Posts: 9
achilton is on a distinguished road
Default

Thank you so much this worked perfect!!!

Now we need to be able to Delete OBX segments that are not always in the same place.
Example:
OBX|1|FT|MRI3721^MRI LOWER JOINT WO||Examination||||||F
OBX|2|FT|MRI3721^MRI LOWER JOINT WO||MRI LOWER JOINT WO ||||||F
OBX|3|FT|MRI3721^MRI LOWER JOINT WO|| ||||||F
OBX|4|FT|MRI3721^MRI LOWER JOINT WO||Clinical History||||||F
OBX|5|FT|MRI3721^MRI LOWER JOINT WO||PAIN AND SWELLING LEFT KNEE ||||||F



OBX|1|FT|RAD1020^CHEST PA LATERAL TWO VIEW||Examination||||||F
OBX|2|FT|RAD1020^CHEST PA LATERAL TWO VIEW||CHEST PA LATERAL TWO VIEW ||||||F
OBX|3|FT|RAD1020^CHEST PA LATERAL TWO VIEW|| ||||||F
OBX|4|FT|RAD1020^CHEST PA LATERAL TWO VIEW|| ||||||F
OBX|5|FT|RAD1020^CHEST PA LATERAL TWO VIEW||Clinical History||||||F
OBX|6|FT|RAD1020^CHEST PA LATERAL TWO VIEW||ROUTINE ||||||F

We need to be able to delete everything contating clinical History and above. As you can see these they are not always in the same place for us to delete. The First message has 5 segments that we need to be deleted, the next one has 6 segments. What would be the best way to do this? The other system has everything hardcoded so when we send all these it duplicates everything.

Thanks
Reply With Quote