Adapter Module Queue Design

The Point of Care adapter module that connects the OpenMRS system to the HIM provides a user interface that displays a log of the RHEA transactions that have been processed on the system and either have been sent through to the HIM or are in waiting in to be sent through to the HIM.

The console has four queues that display the transactions in terms of their status as follows:

Archive Queue: This is a list of all Transactions that have been processed through the HIM successfully and a successful html code has been returned from the HIM.

Processing Queue: This shows a list of al transactions in the system that have not been sent due to a lack of Internet connectivity, a scheduled task is set in the OpenMRS system to run periodically
and resend the transactions once a connection to the internet can be established.

Error Queue: This contains a list of all transactions that have failed to validate at the HIM level and a HTML error code has been sent in the response.

Back Entry Queue: This queue contains all the save encounter messages that have been created in the system when the system is in offline mode (no internet connectivity) this page has a button that when clicked triggers the process of sending these encounters to the HIM for validation. This is done manually inorder to allow the user to first check if all messages in the processing queue (save patient record messages ) have been sent to the HIM before saving the encounters so as to minimize the risk of client record validation failures.