The receiving system wants one message per patient with multiple FT1 segments.
The sending systems can not change how that send DFT messages.
I have know idea where to begin to accomplish this, any and all assistance is appreciated.
Example:
MSH|^~&|TEST|TEST2|||20160323100000||DFT^P03|1342186|P|2.3.1
EVN|P03|20160323100000
PID|||99-99-99||testTest^Bob||19340101|M|||2657 Somewhere rd^^Sometown^PA^88888||5553331111|||||999999999|123456789
PV1|||^^^TEST2^^11||||ABCDEFG^Doctor^Test
FT1||||20160323000000|20160323000000|CG|29580|||1.0||||||||||ABCDEFG^Doctor^Test|||||29580
MSH|^~&|TEST|TEST2|||20160323100000||DFT^P03|1342187|P|2.3.1
EVN|P03|20160323100000
PID|||99-99-99||testTest^Bob||19340101|M|||2657 Somewhere rd^^Sometown^PA^88888||5553331111|||||999999999|123456789
PV1|||^^^TEST2^^11||||ABCDEFG^Doctor^Test
FT1||||20160323000000|20160323000000|CG|97597|||1.0||||||||||ABCDEFG^Doctor^Test|||||97597
MSH|^~&|TEST|TEST2|||20160323100000||DFT^P03|1342188|P|2.3.1
EVN|P03|20160323100000
PID|||99-99-99||testTest^Bob||19340101|M|||2657 Somewhere rd^^Sometown^PA^88888||5553331111|||||999999999|123456789
PV1|||^^^TEST2^^11||||ABCDEFG^Doctor^Test
FT1||||20160323000000|20160323000000|CG|17250|||1.0||||||||||ABCDEFG^Doctor^Test|||||17250
Would like to have:
MSH|^~&|TEST|TEST2|||20160323100000||DFT^P03|1342188|P|2.3.1
EVN|P03|20160323100000
PID|||99-99-99||testTest^Bob||19340101|M|||2657 Somewhere rd^^Sometown^PA^88888||5553331111|||||999999999|123456789
PV1|||^^^TEST2^^11||||ABCDEFG^Doctor^Test
FT1||||20160323000000|20160323000000|CG|29580|||1.0||||||||||ABCDEFG^Doctor^Test|||||29580
FT1||||20160323000000|20160323000000|CG|97597|||1.0||||||||||ABCDEFG^Doctor^Test|||||97597
FT1||||20160323000000|20160323000000|CG|17250|||1.0||||||||||ABCDEFG^Doctor^Test|||||17250