问题
My requirement is parsing data into HL7 ADT message format in C#.
Please anyone suggest, I am stuck with that how to encode patient data into HL7 ADT and decode HL7 ADT message into patient data in C#.
My Model-
ID=2, FirstName="Harry", LastName="Dev", Email="abc@live.com", Mobile="9876543210", AlternatePhone="0123456789", Location="HA-abc, def, USA.-205", GuardianName="Test Guardian", GuardianContactNumber ="", EmergencyContactNumber="12"
How to encode into HL7 ADT message?
Please suggest.
回答1:
"Encoding patient data into..." is beyond reach for anybody except you, unless you tell us what input format you have. "Decoding HL7 ADT" -- use parser generator to create parser for you (Irony, Coco/R, GOLD, LLLPG, Roslyn, Sprache, or my NLT). Once you start and you will have problem with the grammar, you can ask more specific question.
来源:https://stackoverflow.com/questions/41117481/parse-patient-data-into-hl7-adt-message-format-in-c-sharp