Post

HackHealth

Welcome to my project, HackHealth. A website that tracks patients prescriptions, allows them to add/delete prescriptions, make appointments with doctors at selected time slots.

Features

  • Sign up/login page for patients
  • Prescription Management (adds/deletes)
  • Tracks frequency of medication and dosage
  • View available doctor with their photo/specialty/working hours
  • Ability to create appointments with the selected doctors

Contributors Forks Stargazers Issues LinkedIn


Open GitHub Repo »

Report Bug Request Feature

Built With

  • NodeJS
  • JavaScript
  • HTML
  • CSS

Accomplishments that I am proud of

  • Interactive time slots for appointments
  • Excellent front-end design
  • Ability for patient to input their current medication/prescription and easily manage them

Some of the logic in the project

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const findDoctor = (e) => {
  e.preventDefault();
  let doctor_id = parseInt(doctor.value);
  axios
    .post("http://localhost:4000/getDoctorsAvaiblity", {
      doctor_id: doctor_id,
      date: date.value,
    })
    .then(({ data: doctorsAvaiblity }) => {
      let doctorTime = avaiblity.map((t, index) => {
        if (doctorsAvaiblity.length > 0) {
          for (let i = 0; i < doctorsAvaiblity.length; i++) {
            if (doctorsAvaiblity[i].time != t) {
              docstime.push(t);
              return `<option value="${usTime[index]}">${usTime[index]}</option>`;
            }
          }
        } else {
          docstime.push(t);
          return `<option value="${usTime[index]}">${usTime[index]}</option>`;
        }
      });
      timeContainer.innerHTML = doctorTime;
    });
};
This post is licensed under CC BY 4.0 by the author.