We get HL7 ADT messages from hospitals on Mirth Interface. We get diagnosis and procedure codes in each message and we want to store all 50 diag and proc codes. Note= We also want to capture related\associated fields with each of these codes. Like every diagnosis code has code date, description, type, category, poa, group.
- If we capture all these in separate variable and store all in columns - So for each patient around 400 cols populated in one insert
- If we store as rows then for each code, a separate insert statement is triggered. This also degrades the performance
What might be best approach to process this in mirth and store in DB - So if for patient x ADT Message 1 will insert 3 diagnosis codes ( with related fields). Message 2 can append and will insert may be 5 codes in total ?
Thanks