HL7 is pretty simple if you look at the docs. It is just a matter of understanding what the internal fields looked like. Its just tedious and the docs are HUGE!!!
I wrote a HL7 Parser in VB in a couple of hours a few years ago using sample data from Douglas Labs + the HL7 Reference, but looking at the patient download data is probably quickest as the data subset is small. I'll get another sample file emailed to me today and post it to the list. I've probably trashed my vb code as I have no VB environment anymore but I'll check. On second thoughts, amazing, it is still on my server, so here it is. Regards Richard On Wed, 2 Mar 2005 08:42 am, catmat wrote: > Ian Haywood wrote: > >> > MediNet script pushes the file over > >> > > >> > > >> > Data formats > >> > > >> > The data from *some* labs is coded within HL7 formatted files, > > > > ^^^^^^^^^^^^^^ > > We need samples to understand the dialect of HL7. > > > >> > permitting such data to be brought into patients' EMR as granular > >> > (individual coded test) results. However much of the lab data and > >> > reports handled by MediNet are plain text around which Medinet wraps > >> > a standard text header to permit vendors to link within their EMRs to > > > > ^^^^^^^^^^^^^^^ > > We need a description of this format and a few examples. > > Is it a legal problem to release examples on this list? > If a developer builds a parser, whoever has some results stored as files > can test > the parser, and return the error output, without the developer having to > view the results. > Or the person who has the results, can deindentify the test data and > send it to the developer. > > > > > > > > > > _______________________________________________ > Gnumed-devel mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/gnumed-devel
FHS|^~\&|DHM|DLABSYS|||200109211750|/mnt/labresults/results/dhm/pwtest/dhm_pwtest_172.rpt|00109 BHS|^~\&|dhm|dlabsys|||200109211750|/mnt/labresults/results/dhm/pwtest/dhm_pwtest_172.rpt|00109 MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122142||ORU|06136|D|2.3|||NE|AL|AU PID|1||HN1032803|51911786|DUMMY^JOHNY^^^MR||19580306|M|||26 MAIN ROAD^^ANYWHERE^UNK^|||||||||||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^|0305424T^PRACTIONER^A^^^|||||||||||PRIVATE OBR|1||00-51911786-1|HEPS.5^HEPATITIS SEROLOGY^dlabsys^||200109120000|200109120830|||||||||||||||200109122135|||F||^^^200109120000 OBX|1|FT|22034-3^REPORT^LN||\.nf\ HEPATITIS SEROLOGY\.br\ \.br\ Hepatitis B Surface Ag Not Detected\.br\ Hepatitis C Ab Not Detected\.br\No evidence of current hepatitis B infection (acute or chronic). Hepatitis C\.br\seroconversion may be delayed and repeat testing up to 6 months post exposure\.br\or clinical illness may be required to exclude infection.\.br\\.br\||||||F MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122142||ORU|06137|D|2.3|||NE|AL|AU PID|1||HN1032803|51911786|DUMMY^JOHNY^^^MR||19580306|M|||26 MAIN ROAD^^ANYWHERE^UNK^|||||||||||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^|0305424T^PRACTIONER^A^^^|||||||||||PRIVATE OBR|1||00-51911786-1|I26A.43^Ins/Imm^dlabsys^||200109120000|200109120830|||||||||||||||200109122135|||F||^^^200109120000 OBX|1|FT|22034-3^REPORT^LN||\.nf\ \.br\ HIV-1/HIV-2 Ab (EIA) NEGATIVE\.br\If serum was taken less than 3 months after exposure, this result may not\.br\exclude HIV-1/HIV-2 infection. Therefore another serum specimen should be\.br\tested after that time.\.br\\.br\||||||F MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122142||ORU|06138|D|2.3|||NE|AL|AU PID|1||FN1032635|51911787|CITIZEN^MARGE^^^MS||19691215|F|||26 MAIN ROAD^^ANYWHERE^UNK^|||||||||||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^|0305424T^PRACTIONER^A^^^|||||||||||PRIVATE OBR|1||00-51911787-1|HEPS.5^HEPATITIS SEROLOGY^dlabsys^||200109120000|200109120945|||||||||||||||200109122135|||F||^^^200109120000 OBX|1|FT|22034-3^REPORT^LN||\.nf\ HEPATITIS SEROLOGY\.br\ \.br\ Hepatitis B Surface Ag Not Detected\.br\ Hepatitis C Ab Not Detected\.br\No evidence of current hepatitis B infection (acute or chronic). Hepatitis C\.br\seroconversion may be delayed and repeat testing up to 6 months post exposure\.br\or clinical illness may be required to exclude infection.\.br\\.br\||||||F MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122142||ORU|06139|D|2.3|||NE|AL|AU PID|1||FN1032635|51911787|CITIZEN^MARGE^^^MS||19691215|F|||26 MAIN ROAD^^ANYWHERE^UNK^|||||||||||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^|0305424T^PRACTIONER^A^^^|||||||||||PRIVATE OBR|1||00-51911787-1|I26A.43^Ins/Imm^dlabsys^||200109120000|200109120945|||||||||||||||200109122135|||F||^^^200109120000 OBX|1|FT|22034-3^REPORT^LN||\.nf\ \.br\ HIV-1/HIV-2 Ab (EIA) NEGATIVE\.br\If serum was taken less than 3 months after exposure, this result may not\.br\exclude HIV-1/HIV-2 infection. Therefore another serum specimen should be\.br\tested after that time.\.br\\.br\||||||F MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122213||ORU|06153|D|2.3|||NE|AL|AU PID|1||2912|51794640|PENSIONER^JACK^^^MR||19300915|M|||26 MAIN ROAD^^ANYWHERE^NSW^2257||||||||2019081834|||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^DR|0305424T^PRACTIONER^A^^^DR|||||||||||BULKBILL OBR|1||00-51794640-1|H01.5^FBC^dlabsys^||200102260000|200109121045|||||||||||||||200109122204|||F||^^^200102260000 OBX|1|FT|H01.5-1^Comment^DHM||( Reference : Male, Adult )||||||F|||| OBX|2|NM|718-7^Haemoglobin^LN||126|g/L |130-180||||F|||| OBX|3|NM|789-8^RCC^LN||4.38|x10*12/L|4.30-6.20||||F|||| OBX|4|NM|6690-2^WBC Count^LN||9.1|x10*9/L|4.0-11.0||||F|||| OBX|5|NM|16931-8^Hct^LN||0.41|ratio|0.38-0.54||||F|||| OBX|6|NM|14011-1^Plat Count^LN||230|x10*9/L|150-450||||F|||| OBX|7|NM|787-2^MCV^LN||92.9|fL|80.0-100.0||||F|||| OBX|8|NM|785-6^MCH^LN||28.8|pg|27.0-32.0||||F|||| OBX|9|NM|786-4^MCHC^LN||310|g/L |310-360||||F|||| OBX|10|NM|788-0^RDW^LN||54.7|fL|35-50||||F|||| OBX|11|NM|H01.5-14^ Neutrophils %^DHM||77.3|%|||||F|||| OBX|12|NM|751-8^ Neutrophils^LN||7.0|x10*9/L|||||F|||| OBX|13|NM|H01.5-18^ Lymphocytes %^DHM||11.5|%|||||F|||| OBX|14|NM|731-0^ Lymphocytes^LN||1.0|x10*9/L|||||F|||| OBX|15|FT|H01.5-22^ Anisocytosis^DHM||+||||||F|||| OBX|16|NM|H01.5-24^ Monocytes %^DHM||8.0|%|||||F|||| OBX|17|NM|742-7^ Monocytes^LN||0.7|x10*9/L|||||F|||| OBX|18|FT|H01.5-28^ Poikilocytosis^DHM||+||||||F|||| OBX|19|NM|H01.5-30^ Eosinophils %^DHM||3.1|%|||||F|||| OBX|20|NM|711-2^ Eosinophils^LN||0.3|x10*9/L|||||F|||| OBX|21|NM|H01.5-36^ Basophils %^DHM||0.1|%|||||F|||| OBX|22|NM|704-7^ Basophils^LN||0.0|x10*9/L|||||F|||| OBX|23|FT|H01.5-73^Comment^DHM||Hb decreased slightly||||||F|||| MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122213||ORU|06154|D|2.3|||NE|AL|AU PID|1||2912|51794640|PENSIONER^JACK^^^MR||19300915|M|||26 MAIN ROAD^^ANYWHERE^NSW^2257||||||||2019081834|||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^DR|0305424T^PRACTIONER^A^^^DR|||||||||||BULKBILL OBR|1||00-51794640-1|H41.41^ESR^dlabsys^||200102260000|200109121045|||||||||||||||200109122204|||F||^^^200102260000 OBX|1|FT|22034-3^REPORT^LN||\.nf\\.br\ ESR * 31 mm/hr (RR 0 - 30 )\.br\ \.br\\.br\||||||F MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122234||ORU|06160|D|2.3|||NE|AL|AU PID|1||JN1033482|49828852|PENSIONER^TESS^^^MS||19640717|F|||26 MAIN ROAD^^ANYWHERE^UNK^|||||||||||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^|0305424T^PRACTIONER^A^^^|||||||||||PRIVATE OBR|1||00-49828852-1|S00.46^BIOCHEM^dlabsys^||200109120000|200109121000|||||||||||||||200109122225|||F||^^^200109120000 OBX|1|NM|2000-8^Sodium^LN||139|mmol/L|135-145||||F|||| OBX|2|NM|14631-6^Bilirubin^LN||14|umol/L|0-20||||F|||| OBX|3|NM|2823-3^Potassium^LN||5.7|mmol/L|3.5-5.6||||F|||| OBX|4|NM|6769-4^ALP(Alk Phos)^LN||76|U/L|30-115||||F|||| OBX|5|NM|2075-0^Chloride^LN||102|mmol/L|99-108||||F|||| OBX|6|NM|2324-2^GGT(Gamma GT)^LN||14|U/L|0-45||||F|||| OBX|7|NM|1963-8^Bicarbonate^LN||27|mmol/L|23-33||||F|||| OBX|8|NM|2532-0^LD^LN||142|U/L|100-225||||F|||| OBX|9|NM|1920-8^AST^LN||21|U/L|0-40||||F|||| OBX|10|NM|22664-7^Urea^LN||2.9|mmol/L|2.1-9.0||||F|||| OBX|11|NM|1742-6^ALT^LN||22|U/L|0-40||||F|||| OBX|12|NM|2160-0^Creatinine^LN||0.08|mmol/L|0.06-0.13||||F|||| OBX|13|NM|2885-2^T-Protein^LN||79|g/L|60-80||||F|||| OBX|14|NM|2000-8^Calcium^LN||2.48|mmol/L|2.10-2.60||||F|||| OBX|15|NM|1751-7^Albumin^LN||41|g/L|38-55||||F|||| OBX|16|NM|18281-6^Corrected Ca^LN||2.45|mmol/L|2.10-2.60||||F|||| OBX|17|NM|10834-0^Globulin^LN||38|g/L|20-32||||F|||| OBX|18|NM|14879-1^Phosphate^LN||1.08|mmol/L|0.80-1.40||||F|||| OBX|19|NM|3084-1^Uric Acid^LN||0.19|mmol/L|0.15-0.36||||F|||| OBX|20|NM|14647-2^Cholesterol^LN||5.4|mmol/L|3.9-5.5||||F|||| OBX|21|NM|14927-8^Triglycerides^LN||0.8|mmol/L|0.5-1.7||||F|||| MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122234||ORU|06161|D|2.3|||NE|AL|AU PID|1||JN1033482|49828852|PENSIONER^TESS^^^MS||19640717|F|||26 MAIN ROAD^^ANYWHERE^UNK^|||||||||||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^|0305424T^PRACTIONER^A^^^|||||||||||PRIVATE OBR|1||00-49828852-1|S46B.46^GLUCOSE ^dlabsys^||200109120000|200109121000|||||||||||||||200109122225|||F||^^^200109120000 OBX|1|NM|14749-6^Glucose^LN||3.6|mmol/L|3.6-6.1||||F|||| MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122254||ORU|06163|D|2.3|||NE|AL|AU PID|1||AMN1032577|51911788|EZKYOWNER^ALF^^^MR||19600627|M|||26 MAIN ROAD^^ANYWHERE^UNK^|||||||||||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^|0305424T^PRACTIONER^A^^^|||||||||||PRIVATE OBR|1||00-51911788-1|HEPS.5^HEPATITIS SEROLOGY^dlabsys^||200109120000|200109120745|||||||||||||||200109122248|||F||^^^200109120000 OBX|1|FT|22034-3^REPORT^LN||\.nf\ HEPATITIS SEROLOGY\.br\ \.br\ Hepatitis B Surface Ag Not Detected\.br\ Hepatitis C Ab Not Detected\.br\No evidence of current hepatitis B infection (acute or chronic). Hepatitis C\.br\seroconversion may be delayed and repeat testing up to 6 months post exposure\.br\or clinical illness may be required to exclude infection.\.br\\.br\||||||F MSH|^~\&|dhm|dlabsys|UNK|UNK|200109122254||ORU|06164|D|2.3|||NE|AL|AU PID|1||AMN1032577|51911788|EZKYOWNER^ALF^^^MR||19600627|M|||26 MAIN ROAD^^ANYWHERE^UNK^|||||||||||||||| PV1|1|O||||||0305424T^PRACTIONER^A^^^|0305424T^PRACTIONER^A^^^|||||||||||PRIVATE OBR|1||00-51911788-1|I26A.43^Ins/Imm^dlabsys^||200109120000|200109120745|||||||||||||||200109122248|||F||^^^200109120000 OBX|1|FT|22034-3^REPORT^LN||\.nf\ \.br\ HIV-1/HIV-2 Ab (EIA) NEGATIVE\.br\If serum was taken less than 3 months after exposure, this result may not\.br\exclude HIV-1/HIV-2 infection. Therefore another serum specimen should be\.br\tested after that time.\.br\\.br\||||||F BTS|10 FTS|1|00109
_______________________________________________ Gnumed-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnumed-devel
