Created
November 1, 2010 09:59
-
-
Save vagmi/657923 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Site Manager | |
| - Rabbit MQ Queue | |
| Agent(s): | |
| Its a long running service | |
| - JRuby | |
| - H2 via ActiveRecord 3.0 | |
| Models | |
| - Patient | |
| - Test Results | |
| It polls the HIS | |
| - Quartz (polling) | |
| and sends message to the site manager | |
| - | |
| Patient | |
| uhid : string | |
| last_synced : time | |
| agent_id: number | |
| last_sent: Time or null | |
| confirmed: Time or null | |
| TestResult | |
| encounter_no : string //labreg_no | |
| uhid: string | |
| bill_id: string | |
| agent_id: number | |
| last_sent: Time or null | |
| confirmed: Time or null | |
| IHISService | |
| - getRegistrations(Date since) // list of patient objects | |
| - getBillings(Date since) // list of patient objects | |
| - getTestResults(String UHID, Date since) // list of test results | |
| - getProcedures(String UHID, Date since) // list of procedure objects | |
| Every 15 mins | |
| - Poll for the above | |
| - Serialize the result set to json and pass it to the site manager web service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment