Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
debaraja-394 committed Aug 31, 2024
2 parents 6b00af9 + 466ff4c commit 9ac4f40
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 245 deletions.
8 changes: 5 additions & 3 deletions Government of NCT of Delhi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,10 @@ def admin():
hospital_name=session.get('hospital_name')
print(hospital_name)
total_appointment = appointment_collection.count_documents({"hospital_name":hospital_name})
print(total_appointment)
return render_template('admin_dashboard.html',count=total_appointment)
data = hospital_data_collection.find_one({'hospital_name': hospital_name})

beds = data['number_of_beds']
return render_template('admin_dashboard.html',count=total_appointment,beds=beds)


@app.route("/admin/contact-us")
Expand Down Expand Up @@ -446,7 +448,7 @@ def doc_login():

@app.route('/doctor_app',methods=["POST","GET"])
def doctor_app():
pass
return render_template('doctor_dash.html')

@app.route('/superadmin/', methods=['GET', 'POST'])
def superadmin():
Expand Down
2 changes: 1 addition & 1 deletion Government of NCT of Delhi/templates/admin_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ <h3>Total Patients</h3>
</div>
<div class="card">
<h3>Available Beds</h3>
<p>300</p>
<p>{{beds}}</p>
</div>
<div class="card">
<h3>Doctors On Duty</h3>
Expand Down
31 changes: 4 additions & 27 deletions Government of NCT of Delhi/templates/doctor_dash.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@ <h1>Doctor Dashboard</h1>
<!-- Patient Information Section -->
<section id="patient-info">
<h2>Patient Information</h2>
<!-- Patient Medical History -->
<div class="card" id="patient-medical-history">
<h3>Patient Medical History</h3>
<p id="patient-medical-history-content">Click on a patient to view detailed medical history, past
diagnoses, surgeries, allergies, and chronic conditions.</p>
</div>

<!-- Upcoming Appointments -->
<div class="card" id="upcoming-appointments">
<h3>Upcoming Appointments</h3>
Expand All @@ -104,25 +99,7 @@ <h3>Upcoming Appointments</h3>
</div>
</section>

<!-- Communication Tools Section -->
<section id="communication-tools">
<h2>Communication Tools</h2>

<!-- Messaging -->
<div class="card">
<h3>Secure Messaging</h3>
<p>Send secure messages to other healthcare providers, nurses, or administrative staff.</p>
<!-- Messaging UI would go here -->
</div>

<!-- Telehealth Integration -->
<div class="card">
<h3>Telehealth Integration</h3>
<p>Start a video call for remote consultations with patients.</p>
<!-- Video call interface would go here -->
</div>
</section>


<!-- Hospital Resources Section -->
<section id="hospital-resources">
<h2>Hospital Resources and Availability</h2>
Expand All @@ -135,7 +112,7 @@ <h3>Bed Availability</h3>
</div>
</section>
</main>
<script>
<!-- <script>
// Fetch patient data from the backend API
fetch('http://localhost:3000/api/patients')
.then(response => response.json())
Expand Down Expand Up @@ -168,7 +145,7 @@ <h3>Bed Availability</h3>
});
})
.catch(error => console.error('Error fetching patient data:', error));
</script>
</script> -->

</body>

Expand Down

This file was deleted.

74 changes: 0 additions & 74 deletions Government of NCT of Delhi/templates/doctor_patient_commu.html

This file was deleted.

70 changes: 0 additions & 70 deletions Government of NCT of Delhi/templates/doctor_patient_details.html

This file was deleted.

0 comments on commit 9ac4f40

Please sign in to comment.