FT1|1|||20070406||ICD||UNSPECIFIED RENAL FAILURE||1|||||||||586|9999^Doe, MD^John D.^^^^|||||
FT1|2|||20070406||ICD||CHF UNSPECIFIED||1|||||||||428.0|9999^Doe, MD^John D.^^^^|||||
FT1|3|||20070406||ICD||OTHER SPEC CARDIAC DYSRHYTHMIAS||1|||||||||427.89|9999^Doe, MD^John D.^^^^|||||
FT1|4|||20070406||CPT|93010|Electrocardiogram, Routine W/ At Least 12 Leads; Interpretation & Report Only||1|||ED|||||||9999^Doe, MD^John D.^^^^||||93010|
FT1|5|||20070406||CPT|99291|Critical Care First 30-74 Minutes||1|||ED|||||||9999^Doe, MD^John D.^^^^||||99291|25
I need to turn it into an HL7 record that looks like the following:
CHG||04062007|93010|Electrocardiogram, Routine W/ At Least 12 Leads, Interpretation & Report Only|1|9999|Doe, John D., MD|586|UNSPECIFIED RENAL FAILURE|428.0|CHF UNSPECIFIED|427.89|OTHER SPEC CARDIAC DYSRHYTHMIAS||93010||||
CHG||04062007|99291|Critical Care First 30-74 Minutes|1|9999|Doe, John D., MD||586|UNSPECIFIED RENAL FAILURE|428.0|CHF UNSPECIFIED|427.89|OTHER SPEC CARDIAC DYSRHYTHMIAS||99291||||
How do I pull the CPT info out of the last two lines and the ICD info out of the first three lines to build two “CHG” lines?
Any help or suggestions would be greatly appreciated.
Thanks,
Ricci