Skip to content

Commit

Permalink
add hospital
Browse files Browse the repository at this point in the history
  • Loading branch information
ManaS066 committed Sep 1, 2024
1 parent d29f540 commit a9cf4a1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
20 changes: 14 additions & 6 deletions Government of NCT of Delhi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,17 @@ def add_details():
emergency=request.form['emergencyContactNumber']
email = request.form['emailAddress']
website = request.form['websiteURL']
no_beds = request.form['numberOfBeds']
no_icu = request.form['numberOfICUBeds']
no_ventilator = request.form['numberOfVentilators']
no_beds = int(request.form['numberOfBeds'])
occupied_beds=int(request.form['Beds_occupied'])
no_icu = int(request.form['numberOfICUBeds'])
occupied_icu = int(request.form['icu_occupied'])
no_ventilator = int(request.form['numberOfVentilators'])
occupied_ventilator=int(request.form['ventilator_occupied'])
emergency_dept = request.form['emergencyDepartment']
spetialisation = request.form['specialization']
operating_hour = request.form['hospitalOperatingHours']
visiting_hour = request.form['visitingHours']
pharmacy_onsite = request.form['pharmacyOnSite']
no_doctor = request.form['totalNumberOfDoctors']
no_nurse = request.form['totalNumberOfNurses']
no_admin_staff = request.form['administrativeStaffCount']
ambulance = request.form['ambulanceServices']
Expand All @@ -357,15 +359,17 @@ def add_details():
"emergency_contact_number": emergency,
"email_address": email,
"website_url": website,
"number_of_beds": no_beds,
"number_of_general_beds": no_beds,
"occupied_general":occupied_beds,
"number_of_icu_beds": no_icu,
"occupied_icu":occupied_icu,
"number_of_ventilators": no_ventilator,
"occupied_ventilator":occupied_ventilator,
"emergency_department": emergency_dept,
"specialization": spetialisation,
"hospital_operating_hours": operating_hour,
"visiting_hours": visiting_hour,
"pharmacy_on_site": pharmacy_onsite,
"total_number_of_doctors": no_doctor,
"total_number_of_nurses": no_nurse,
"administrative_staff_count": no_admin_staff,
"ambulance_services": ambulance,
Expand Down Expand Up @@ -468,6 +472,10 @@ def doctor_app():

@app.route('/superadmin/', methods=['GET', 'POST'])
def superadmin():
no_of_hospital = hospital_data_collection.count_documents()
total_doctor = doctors_collection.count_documents()
active_patient = patients_collection.count_documents()

return render_template('super_admin_dash.html')


Expand Down
11 changes: 4 additions & 7 deletions Government of NCT of Delhi/templates/hospital_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,23 +139,23 @@ <h1>Hospital Details Form</h1>
</div>
<div class="form-group">
<label for="numberOfBeds">General Beds Occupied:</label>
<input type="number" id="numberOfBeds" name="numberOfBeds" required>
<input type="number" id="Beds_occupied" name="Beds_occupied" required>
</div>
<div class="form-group">
<label for="numberOfICUBeds">Total ICU Beds:</label>
<input type="number" id="numberOfICUBeds" name="numberOfICUBeds" required>
</div>
<div class="form-group">
<label for="numberOfICUBeds">ICU Beds Occupied:</label>
<input type="number" id="numberOfICUBeds" name="numberOfICUBeds" required>
<input type="number" id="icu_occupied" name="icu_occupied" required>
</div>
<div class="form-group">
<label for="numberOfVentilators">Toatal Ventilators Bed:</label>
<input type="number" id="numberOfVentilators" name="numberOfVentilators" required>
</div>
<div class="form-group">
<label for="numberOfVentilators">Ventilators Bed Occupied:</label>
<input type="number" id="numberOfVentilators" name="numberOfVentilators" required>
<input type="number" id="ventilator_occupied" name="ventilator_occupied" required>
</div>
<div class="form-group">
<label for="emergencyDepartment">Emergency Department:</label>
Expand Down Expand Up @@ -192,10 +192,7 @@ <h1>Hospital Details Form</h1>
</div>

<!-- Staff Information -->
<div class="form-group">
<label for="totalNumberOfDoctors">Total Number of Doctors:</label>
<input type="number" id="totalNumberOfDoctors" name="totalNumberOfDoctors" required>
</div>

<div class="form-group">
<label for="totalNumberOfNurses">Total Number of Nurses:</label>
<input type="number" id="totalNumberOfNurses" name="totalNumberOfNurses" required>
Expand Down

0 comments on commit a9cf4a1

Please sign in to comment.