=========
Mirth v1.1
Channel: File Reader to Database
=========
File reader randomly picks the files from the "Directory to read" folder.
Q: How to setup Mirth to process oldest files first (FIFO - First-In-First-Out order)?
More Details
=========
Setup Mirth to read files from a folder which had about 22,000 message files with datetime ranging from 10/10/06 3:30 PM to 10/12/06 6:00 PM. The messages were expected to be processed with oldest file first (Operating system file create date).
In this specific test case, it should process files from 10/10/06, 10/11/06, and then 10/12/06. But Mirth randomly picks the files from the "Directory to read" folder and process them (the files are getting moved in random order in the "Move-to Directory" folder).
This would make the updates incorrect. For e.g., A31 message for patient update on 10/10/06 and 10/12/06 for the same patient. If the 10/12/06 A31 message gets processed first and then 10/10/06, the patient data would be incorrect.
NOTE: This problem may not occur when the files are getting processed in real-time i.e., as and when they arrive. But when Mirth HL7 server is down due to hardware / network problems, the HL7 host would be sending the messages and they get accumulated in the target folder. Later, when the Mirth HL7 box is turned back on and is up and running, it needs to process the messages in the order they arrived.
Thanks in advance!
Mirth v1.1
Channel: File Reader to Database
=========
File reader randomly picks the files from the "Directory to read" folder.
Q: How to setup Mirth to process oldest files first (FIFO - First-In-First-Out order)?
More Details
=========
Setup Mirth to read files from a folder which had about 22,000 message files with datetime ranging from 10/10/06 3:30 PM to 10/12/06 6:00 PM. The messages were expected to be processed with oldest file first (Operating system file create date).
In this specific test case, it should process files from 10/10/06, 10/11/06, and then 10/12/06. But Mirth randomly picks the files from the "Directory to read" folder and process them (the files are getting moved in random order in the "Move-to Directory" folder).
This would make the updates incorrect. For e.g., A31 message for patient update on 10/10/06 and 10/12/06 for the same patient. If the 10/12/06 A31 message gets processed first and then 10/10/06, the patient data would be incorrect.
NOTE: This problem may not occur when the files are getting processed in real-time i.e., as and when they arrive. But when Mirth HL7 server is down due to hardware / network problems, the HL7 host would be sending the messages and they get accumulated in the target folder. Later, when the Mirth HL7 box is turned back on and is up and running, it needs to process the messages in the order they arrived.
Thanks in advance!
Comment