from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings

admin.autodiscover()

urlpatterns = patterns('',
                       url(r'^AddPerson/$',
                           'HospiPal.views.NewPatient',
                           name='NewPatient'),
                       url(r'^PM/$',
                           'HospiPal.views.Patient_Management',
                           name='Patient_Management'),
                       url(r'^PM/add/$',
                           'HospiPal.views.Add_Patient',
                           name='Add_Patient'),
                       url(r'^PM/PatientDetails/$',
                           'HospiPal.views.Patient_Details',
                           name='Patient_Details'),
                       url(r'^PM/PatientDetails/(?P<pat_id>\d+)/$',
                           'HospiPal.views.Patient_Details',
                           name='Patient_Details'),
                       url(r'^PM/search/$',
                           'HospiPal.views.Search',
                           name='Search'),
                       url(r'^PM/searchPatient/$',
                           'HospiPal.views.Search_Patient',
                           name='Search_Patient'),
                       url(r'^PM/daily/$',
                           'HospiPal.views.Daily_Schedule',
                           name='Daily_Schedule'),
                       url(r'^PM/sched/$',
                           'HospiPal.views.Schedule_Patient',
                           name='Schedule_Patient'),
                       url(r'^IPM/$',
                           'HospiPal.views.InPatient_Management',
                           name='InPatient_Management'),
                       url(r'^IPM/assignBed/$',
                           'HospiPal.views.Assign_Bed',
                           name='Assign_Bed'),
                       url(r'^IPM/AssignDischarge/$',
                           'HospiPal.views.Assign_Discharge',
                           name='Assign_Discharge'),
                       url(r'^IPM/assignDoctor/$',
                           'HospiPal.views.Assign_Doctor',
                           name='Assign_Doctor'),
                       url(r'^IPM/assignNurse/$',
                           'HospiPal.views.Assign_Nurse',
                           name='Assign_Nurse'),
                       url(r'^IPM/remove/$',
                           'HospiPal.views.Remove_Bed',
                           name='Remove_Bed'),
                       url(r'^IPM/book/$',
                           'HospiPal.views.Book_Surgery',
                           name='Book_Surgery'),
                       url(r'^IPM/viewSurgery/$',
                           'HospiPal.views.View_Surgery',
                           name='View_Surgery'),
                       url(r'^IPM/SurgeryDetails/(?P<sid>\d+)/$',
                           'HospiPal.views.Surgery_Details',
                           name='Surgery_Details'),
                       url(r'^MSM/$',
                           'HospiPal.views.MedStaff_Management',
                           name='MedStaff_Management'),
                       url(r'^MSM/add/Physician/$',
                           'HospiPal.views.Add_Physician',
                           name='Add_Physician'),
                       url(r'^MSM/add/Support/$',
                           'HospiPal.views.Add_Support',
                           name='Add_Support'),
                       url(r'^MSM/add/Nurse/$',
                           'HospiPal.views.Add_Nurse',
                           name='Add_Nurse'),
                       url(r'^MSM/add/Surgeon/$',
                           'HospiPal.views.Add_Surgeon',
                           name='Add_Surgeon'),
                       url(r'^MSM/add/Chief/$',
                           'HospiPal.views.Add_Chief',
                           name='Add_Chief'),
                       url(r'^MSM/add/Skill/$',
                           'HospiPal.views.AddSkill',
                           name='AddSkill'),
                       url(r'^MSM/add/Illness_Type/$',
                           'HospiPal.views.Add_Illness_Type',
                           name='Add_Illness_Type'),
                       url(r'^MSM/add/Illness/$',
                           'HospiPal.views.Add_Illness',
                           name='Add_Illness'),
                       url(r'^MSM/add/Theater/$',
                           'HospiPal.views.AddTheater',
                           name='AddTheater'),
                       url(r'^MSM/add/Corp/$',
                           'HospiPal.views.AddCorp',
                           name='AddCorp'),
                       url(r'^MSM/add/Contract/$',
                           'HospiPal.views.AddContract',
                           name='AddContract'),
                       url(r'^MSM/add/Prescript/$',
                           'HospiPal.views.Add_Prescript',
                           name='Add_Prescript'),
                       url(r'^MSM/add/Med/$',
                           'HospiPal.views.AddMed',
                           name='AddMed'),
                       url(r'^MSM/add/MedInt/$',
                           'HospiPal.views.AddMedInt',
                           name='AddMedInt'),
                       url(r'^MSM/add/SurgeryType/$',
                           'HospiPal.views.AddSurgeryType',
                           name='AddSurgeryType'),
                       url(r'^MSM/remove/$',
                           'HospiPal.views.Remove_MedStaff',
                           name='Remove_MedStaff'),
                       url(r'^MSM/remove/Physician$',
                           'HospiPal.views.Remove_Physician',
                           name='Remove_Physician'),
                       url(r'^MSM/remove/Nurse$',
                           'HospiPal.views.Remove_Nurse',
                           name='Remove_Nurse'),
                       url(r'^MSM/remove/Surgeon$',
                           'HospiPal.views.Remove_Surgeon',
                           name='Remove_Surgeon'),
                       url(r'^MSM/searchMedStaff/$',
                           'HospiPal.views.Search_MedStaff',
                           name='Search_MedStaff'),
                       url(r'^MSM/Staff/$',
                           'HospiPal.views.Staff_Details',
                           name='Staff_Details'),
                       url(r'^MSM/Staff/(?P<staff_id>\d+)/$',
                           'HospiPal.views.Staff_Details',
                           name='Staff_Details'),
                       url(r'^MSM/sched/$',
                           'HospiPal.views.Schedule_MedStaff',
                           name='Schedule_MedStaff')

                       )
