~anubhav929/sahana-eden/websetup

« back to all changes in this revision

Viewing changes to models/06_hms.py

  • Committer: Fran Boon
  • Date: 2011-03-26 15:41:31 UTC
  • mfrom: (1612.1.96 eden)
  • Revision ID: fran@aidiq.com-20110326154131-wvoa7xyo3rip11zh
merge michael: Improved error messages for shn_site_based_permissions & separate inv & req menus; Make Modules less intertwined: Tabs/Menus appended optionally, remove HMS FK from CR

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
    from gluon.sql import Row
13
13
 
14
 
    # -----------------------------------------------------------------------------
 
14
    # -------------------------------------------------------------------------
15
15
    # Hospitals
16
16
    #
17
17
 
241
241
                                       "total_beds",
242
242
                                       "available_beds"])
243
243
 
244
 
    # -----------------------------------------------------------------------------
 
244
    # -------------------------------------------------------------------------
245
245
    # Contacts
246
246
    #
247
247
    resourcename = "contact"
309
309
        msg_record_deleted = T("Contact information deleted"),
310
310
        msg_list_empty = T("No contacts currently registered"))
311
311
 
312
 
    # -----------------------------------------------------------------------------
 
312
    # -------------------------------------------------------------------------
313
313
    # Activity
314
314
    #
315
315
    resourcename = "activity"
403
403
        msg_record_deleted = T("Report deleted"),
404
404
        msg_list_empty = T("No reports currently available"))
405
405
 
406
 
    # -----------------------------------------------------------------------------
 
406
    # -------------------------------------------------------------------------
407
407
    # Bed Capacity
408
408
    #
409
409
    hms_bed_type_opts = {
559
559
        msg_record_deleted = T("Unit deleted"),
560
560
        msg_list_empty = T("No units currently registered"))
561
561
 
562
 
    # -----------------------------------------------------------------------------
 
562
    # -------------------------------------------------------------------------
563
563
    # Services
564
564
    #
565
565
    resourcename = "services"
625
625
                          list_fields = ["id"],
626
626
                          main="hospital_id", extra="id")
627
627
 
628
 
    # -----------------------------------------------------------------------------
 
628
    # -------------------------------------------------------------------------
629
629
    # Cholera Treatment Capability
630
630
    #
631
631
    hms_problem_types = {
767
767
            "Current Problems": "problem_types",
768
768
            "Comments": "comments"})
769
769
 
770
 
    # -----------------------------------------------------------------------------
 
770
    # -------------------------------------------------------------------------
771
771
    # Images
772
772
    #
773
773
    hms_image_type_opts = {
845
845
                                       "description",
846
846
                                       "tags"])
847
847
 
848
 
    # -----------------------------------------------------------------------------
 
848
    # -------------------------------------------------------------------------
849
849
    # Resources (multiple) - TODO: to be completed!
850
850
    #
851
851
    resourcename = "resources"
885
885
                          list_fields=["id"],
886
886
                          main="hospital_id", extra="id")
887
887
 
888
 
    # -----------------------------------------------------------------------------
 
888
    # -------------------------------------------------------------------------
889
889
    # Hospital Search Method
890
890
    #
891
891
    hms_hospital_search = s3base.S3Search(
912
912
 
913
913
    # Set as standard search method for hospitals
914
914
    s3xrc.model.configure(db.hms_hospital, search_method=hms_hospital_search)
 
915
 
 
916
# END =========================================================================
 
 
b'\\ No newline at end of file'