This file contains 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
Patient | |
------- | |
string uhid | |
string first_name | |
string middle_name | |
string last_name | |
datetime registration_date | |
string sex | |
datetime dob |
This file contains 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
{"patient" : { | |
"address" : "KARUPPUR,KARUPPUR(PO),MAYANUR(VIA).", | |
"city" : "KARUR", | |
"created_at" : "2010-12-01T14:27:04+05:30", | |
"dob" : "1954-12-19T00:00:00+05:30", | |
"doctor_id" : null, | |
"email" : null, | |
"first_name" : "SIRUMBAYEE", | |
"id" : 0, | |
"last_name" : "R", |
This file contains 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
{"patient":{"address":"KARUPPUR,KARUPPUR(PO),MAYANUR(VIA).","city":"KARUR","created_at":"2010-12-01T14:27:04+05:30","dob":"1954-12-19T00:00:00+05:30","doctor_id":null,"email":null,"first_name":"SIRUMBAYEE","id":0,"last_name":"R","middle_name":null,"mobile":null,"phone":"9751205981","phr_id":null,"pin":null,"registration_date":"2009-12-19T00:00:00+05:30","sex":"F","state":"TAMIL NADU","uhid":4784,"updated_at":"2010-12-01T14:27:04+05:30"}} |
This file contains 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
1) For a given UHID, I want the details in the Patient model as above | |
2) For a given UHID, I want a list of Textual and Numeric Results (Profiles and Special are also a part of the texual result) | |
3) For a given UHID, I want a list of Textual and Numeric Results, since a given Result Date | |
4) For a given UHID, get a list of encounters | |
5) For a given UHID, get a list of encounters since a given date | |
6) For a given encounter id, get a list of procedures | |
7) For a given encounter id, get the discharge summary | |
8) For a given Doctor ID, get me a the details in the doctor model. |
This file contains 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
vagmi@deepthought-2 ~ $ ab -n 1000 -c 40 http://test.hiwayhealthconnect.com/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking test.hiwayhealthconnect.com (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests |
This file contains 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
#delete the users | |
User.all.each { |u| | |
u.access_context = {:user=>u.id.to_s} | |
u.destroy | |
} | |
#create the users | |
User.create(:login => 'root1', | |
:password => 'root', | |
:role => 'root', |