~shikharkohli/sahana-eden/gsoc1

« back to all changes in this revision

Viewing changes to controllers/hms.py

  • Committer: Shikhar Kohli
  • Date: 2010-08-11 18:40:09 UTC
  • mfrom: (802.1.156 eden)
  • Revision ID: shikharkohli@gmail.com-20100811184009-yy8zag5dowlam0ip
Merge trunk and update (a bit) of JS

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    if session.rcvars and "hms_hospital" in session.rcvars:
26
26
        hospital = db.hms_hospital
27
27
        query = (hospital.id == session.rcvars["hms_hospital"])
28
 
        selection = db(query).select(hospital.id, hospital.name, limitby=(0,1)).first()
 
28
        selection = db(query).select(hospital.id, hospital.name, limitby=(0, 1)).first()
29
29
        if selection:
30
30
            menu_hospital = [
31
31
                    [selection.name, False, URL(r=request, f="hospital", args=[selection.id])]
69
69
    table.phone_business.label = T("Phone/Business")
70
70
    table.phone_emergency.label = T("Phone/Emergency")
71
71
    table.email.label = T("Email")
72
 
    table.fax.label = T("FAX")
 
72
    table.fax.label = T("Fax")
73
73
    table.website.represent = shn_url_represent
74
74
 
75
75
    table.total_beds.label = T("Total Beds")
76
76
    table.total_beds.comment = DIV(DIV(_class="tooltip",
77
 
        _title=T("Total Beds|Total number of beds in this hospital. Automatically updated from daily reports.")))
 
77
        _title=Tstr("Total Beds") + "|" + Tstr("Total number of beds in this hospital. Automatically updated from daily reports.")))
78
78
 
79
79
    table.available_beds.label = T("Available Beds")
80
80
    table.available_beds.comment = DIV(DIV(_class="tooltip",
81
 
        _title=T("Available Beds|Number of vacant/available beds in this hospital. Automatically updated from daily reports.")))
 
81
        _title=Tstr("Available Beds") + "|" + Tstr("Number of vacant/available beds in this hospital. Automatically updated from daily reports.")))
82
82
 
83
83
    table.ems_status.comment = DIV(DIV(_class="tooltip",
84
 
        _title=T("EMS Status|Status of operations of the emergency department of this hospital.")))
 
84
        _title=Tstr("EMS Status") + "|" + Tstr("Status of operations of the emergency department of this hospital.")))
85
85
    table.ems_reason.comment = DIV(DIV(_class="tooltip",
86
 
        _title=T("EMS Reason|Report the contributing factors for the current EMS status.")))
 
86
        _title=Tstr("EMS Reason") + "|" + Tstr("Report the contributing factors for the current EMS status.")))
87
87
 
88
88
    table.or_status.comment = DIV(DIV(_class="tooltip",
89
 
        _title=T("OR Status|Status of the operating rooms of this hospital.")))
 
89
        _title=Tstr("OR Status") + "|" + Tstr("Status of the operating rooms of this hospital.")))
90
90
    table.or_reason.comment = DIV(DIV(_class="tooltip",
91
 
        _title=T("OR Reason|Report the contributing factors for the current OR status.")))
 
91
        _title=Tstr("OR Reason") + "|" + Tstr("Report the contributing factors for the current OR status.")))
92
92
 
93
93
    table.facility_status.comment = DIV(DIV(_class="tooltip",
94
 
        _title=T("Facility Status|Status of general operation of the facility.")))
 
94
        _title=Tstr("Facility Status") + "|" + Tstr("Status of general operation of the facility.")))
95
95
 
96
96
    table.clinical_status.comment = DIV(DIV(_class="tooltip",
97
 
        _title=T("Clinical Status|Status of clinical operation of the facility.")))
 
97
        _title=Tstr("Clinical Status") + "|" + Tstr("Status of clinical operation of the facility.")))
98
98
 
99
99
    table.morgue_status.comment = DIV(DIV(_class="tooltip",
100
 
        _title=T("Morgue Status|Status of morgue capacity.")))
 
100
        _title=Tstr("Morgue Status") + "|" + Tstr("Status of morgue capacity.")))
101
101
 
102
102
    table.security_status.comment = DIV(DIV(_class="tooltip",
103
 
        _title=T("Security Status|Status of security procedures/access restrictions in the hospital.")))
 
103
        _title=Tstr("Security Status") + "|" + Tstr("Status of security procedures/access restrictions in the hospital.")))
104
104
 
105
105
    table.morgue_units.label = T("Morgue Units Available")
106
106
    table.morgue_units.comment =  DIV(DIV(_class="tooltip",
107
 
        _title=T("Morgue Units Available|Number of vacant/available units to which victims can be transported immediately.")))
 
107
        _title=Tstr("Morgue Units Available") + "|" + Tstr("Number of vacant/available units to which victims can be transported immediately.")))
108
108
 
109
109
    table.doctors.label = T("Number of doctors")
110
110
    table.nurses.label = T("Number of nurses")
112
112
 
113
113
    table.access_status.label = T("Road Conditions")
114
114
    table.access_status.comment =  DIV(DIV(_class="tooltip",
115
 
        _title=T("Road Conditions|Describe the condition of the roads to your hospital.")))
 
115
        _title=Tstr("Road Conditions") + "|" + Tstr("Describe the condition of the roads to your hospital.")))
116
116
 
117
117
    table.info_source.label = "Source of Information"
118
118
    table.info_source.comment =  DIV(DIV(_class="tooltip",
119
 
        _title=T("Source of Information|Specify the source of the information in this report.")))
 
119
        _title=Tstr("Source of Information") + "|" + Tstr("Specify the source of the information in this report.")))
120
120
 
121
121
    # CRUD Strings
122
122
    LIST_HOSPITALS = T("List Hospitals")