HL7 Unit Tests These Unit Tests are for HL7 messages and should only be done by experienced IT persons. Test 1: Process ADT Message
EVN|A04|20120901100000|| PID|1|10||A10|Smiths^Jan^F||19760210|M||Hispanic|421 Main Ave^Apt 7^Salem^MA^97330||5305554045|5305554234||Single|||534997812|||Standard GT1|1|11|Smiths^Jon^F||420 Main Ave^Apt 7^Salem^MA^97330|5305554743|5303635432|19770730|F|||544071829
EcwOldFull, EcwOldTight, HL7DefEcwFull, HL7DefEcwTight: EcwOldStandalone, HL7DefEcwStandalone: Test 2: Update Demographic Information
EVN|A04|20120901100000|| PID|1|10||A11|Smith^Jane^N||19760205|Female||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||111224444|||Standard GT1|1|11|Smith^John^L||421 Main St^Apt 17^Dallas^OR^97338|5035554743|5033635432|19770704|Male|||111223333
EcwOldFull, EcwOldTight, HL7DefEcwFull, HL7DefEcwTight: EcwOldStandalone, HL7DefEcwStandalone: Test 3: Message With Missing First or Last Name
EVN|A04|20120901100000|| PID|1|10||A10|Smith^^N||19760215|M||Asian|421 Main Ave^Apt 7^Salem^MA^97330||5305554045|5305554234||Single|||111224444|||Standard GT1|1|11|^John^L||421 Main Ave^Apt 7^Salem^MA^97330|5305554743|5303635432|19770730|Female|||111223333
Test 4: Parse Date
EVN|A04|20120901100000|| PID|1|20||A100|Smith^Jane^N||197602|Female||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||111224444|||Standard GT1|1|21|Smith^John^L||421 Main St^Apt 17^Dallas^OR^97338|5035554743|5033635432|197707030711|Male|||111223333
HL7DefEcwFull, HL7DefEcwStandalone, HL7DefEcwTight: Test 5: Process SIU Message
SCH|100|100|||||Checkup||||^^1200^20120901100000^20120901102000|||||||||||||| PID|1|30||A30|Smiths2^Jan2^L||19760210|Male||Hispanic|421 Main Ave^Apt 7^Salem^MA^97330||5305554045|5305554234||Single|||222334444|||Standard
EcwOldStandalone, HL7DefEcwStandalone: Test 6: Update Information
SCH|100|100|||||Checkup and Fillings||||^^2400^20120902100000^20120902104000|||||||||||||| PID|1|30||A300|Smith2^Jane2^N||19760205|Female||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||222334444|||Standard
EcwOldStandalone, HL7DefEcwStandalone: Test 7: Mismatched appointment.PatNum and patient.PatNum
SCH|100|100|||||Checkup and Fillings||||^^2400^20120903100000^20120903104000|||||||||||||| PID|1|30||A300|Smith2^Jane2^N||19760210|Male||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||222334444|||Standard
EcwOldStandalone, HL7DefEcwStandalone: Test 8: Missing Patient's Last Name
SCH|100|100|||||Checkup and Fillings and Crown||||^^2400^20120902100000^20120902104000|||||||||||||| PID|1|30||A300|^Jane2^N||19760205|Male||White|421 Test St^Apt 17^Dallas^OR^97338||5035554041|5035554234||Married|||222334444|||Standard
EcwOldStandalone, HL7DefEcwStandalone: Test 9: Process AIG Segment
SCH|100|100|||||Checkup and Fillings||||^^2400^20120902100000^20120902104000|||||||||||||| PID|1|30||A300|Smith2^Jane2^N||19760205|Female||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||222334444|||Standard AIG|1||DOC1^Albert, Brian S||||
EcwOldStandalone, HL7DefEcwStandalone: Test 10: Process PV1 Segment
SCH|100|100|||||Checkup and Fillings||||^^2400^20120902100000^20120902104000|||||||||||||| PID|1|30||A300|Smith2^Jane2^N||19760205|Male||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||222334444|||Standard PV1|1||||||DOC2^Lexington^Sarah^J||||||||||||
EcwOldStandalone, HL7DefEcwStandalone: Test 11: Create DFT Message
MSH|^~\&|OD||ECW||20120906075519||DFT^P03||P|2.3 EVN|P03|20120906075519| PID|1|A11|10||Smith^Jane^N||19760205|F||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||111224444||| PV1|||||||DOC1^Albert, Brian S^^||||||||||||500||||||||||||||||||||||||||||||| FT1|1|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert, Brian S^^|DOC1^Albert, Brian S^^|75.00|||D0150|^ FT1|2|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert, Brian S^^|DOC1^Albert, Brian S^^|20.00|||D0230|^ FT1|3|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert, Brian S^^|DOC1^Albert, Brian S^^|20.00|||D0230|^ FT1|4|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert, Brian S^^|DOC1^Albert, Brian S^^|150.00|||D2332|26^MID ZX1|6|PDF|PATHOLOGY^Pathology Report^L|treatment|Test Message HL7DefEcwFull, HL7DefEcwTight: MSH|^~\&|OD||ECW||20120906075519||DFT^P03||P|2.3 EVN|P03|20120906075519| PID|1|A11|10||Smith^Jane^N||19760205|F||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||111224444||| PV1|||||||DOC1^Albert^Brian^S||||||||||||500||||||||||||||||||||||||||||||| FT1|1|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert^Brian^S|DOC1^Albert^Brian^S|75.00|||D0150|^ FT1|2|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert^Brian^S|DOC1^Albert^Brian^S|20.00|||D0230|^ FT1|3|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert^Brian^S|DOC1^Albert^Brian^S|20.00|||D0230|^ FT1|4|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert^Brian^S|DOC1^Albert^Brian^S|150.00|||D2332|26^MID ZX1|6|PDF|PATHOLOGY^Pathology Report^L|treatment|Test Message EcwOldStandalone, HL7DefEcwStandalone: Test 12: Create DFT Message With Multiple Providers
MSH|^~\&|OD||ECW||20120906075519||DFT^P03||P|2.3 EVN|P03|20120906075519| PID|1|A11|10||Smith^Jane^N||19760205|F||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||111224444||| PV1|||||||DOC1^Albert, Brian S^^||||||||||||500||||||||||||||||||||||||||||||| FT1|1|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert, Brian S^^|DOC1^Albert, Brian S^^|75.00|||D0150|^ FT1|2|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert, Brian S^^|DOC1^Albert, Brian S^^|20.00|||D0230|^ FT1|3|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert, Brian S^^|DOC1^Albert, Brian S^^|20.00|||D0230|^ FT1|4|||20120906000000|20120906000000|CG||||1.0||||||||||DOC2^Lexington^Sarah^J|DOC2^Lexington^Sarah^J|150.00|||D2332|26^MID ZX1|6|PDF|PATHOLOGY^Pathology Report^L|treatment|Test Message HL7DefEcwFull, HL7DefEcwTight: MSH|^~\&|OD||ECW||20120906075519||DFT^P03||P|2.3 EVN|P03|20120906075519| PID|1|A11|10||Smith^Jane^N||19760205|F||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||111224444||| PV1|||||||DOC1^Albert^Brian^S||||||||||||500||||||||||||||||||||||||||||||| FT1|1|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert^Brian^S|DOC1^Albert^Brian^S|75.00|||D0150|^ FT1|2|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert^Brian^S|DOC1^Albert^Brian^S|20.00|||D0230|^ FT1|3|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert^Brian^S|DOC1^Albert^Brian^S|20.00|||D0230|^ FT1|4|||20120906000000|20120906000000|CG||||1.0||||||||||DOC2^Lexington^Sarah^J|DOC2^Lexington^Sarah^J|150.00|||D2332|26^MID ZX1|6|PDF|PATHOLOGY^Pathology Report^L|treatment|Test Message EcwOldStandalone, HL7DefEcwStandalone: Test 13: Truncate D Codes to Dxxxx
MSH|^~\&|OD||ECW||20120906093201||DFT^P03||P|2.3 EVN|P03|20120906093201| PID|1|A11|10||Smith^Jane^N||19760205|F||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||111224444||| PV1|||||||DOC1^Albert, Brian S^^||||||||||||600||||||||||||||||||||||||||||||| FT1|1|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert, Brian S^^|DOC1^Albert, Brian S^^|200.00|||D2332|1^MOD FT1|2|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert, Brian S^^|DOC1^Albert, Brian S^^|250.00|||2332AA|2^MOD ZX1|6|PDF|PATHOLOGY^Pathology Report^L|treatment|Test Message HL7DefEcwFull, HL7DefEcwTight: MSH|^~\&|OD||ECW||20120906093201||DFT^P03||P|2.3 EVN|P03|20120906093201| PID|1|A11|10||Smith^Jane^N||19760205|F||White|421 Main St^Apt 17^Dallas^OR^97338||5035554045|5035554234||Married|||111224444||| PV1|||||||DOC1^Albert^Brian^S||||||||||||600||||||||||||||||||||||||||||||| FT1|1|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert^Brian^S|DOC1^Albert^Brian^S|200.00|||D2332|1^MOD FT1|2|||20120906000000|20120906000000|CG||||1.0||||||||||DOC1^Albert^Brian^S|DOC1^Albert^Brian^S|250.00|||2332AA|2^MOD ZX1|6|PDF|PATHOLOGY^Pathology Report^L|treatment|Test Message EcwOldStandalone, HL7DefEcwStandalone:
|
EZ2000 Plus Dental Software 800-273-5033
|