Skip to content

Instantly share code, notes, and snippets.

@vagmi
Created November 1, 2010 09:59
Show Gist options
  • Select an option

  • Save vagmi/657923 to your computer and use it in GitHub Desktop.

Select an option

Save vagmi/657923 to your computer and use it in GitHub Desktop.
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