Create a database based on below requirements.
- Patients
- The system must be able to store personal information about patients, including name, date of birth, gender, address, and phone number.
- The system must be able to uniquely identify each patient.
- Doctors and Other Staff
- The system must be able to store information about hospital staff, including name, role (such as doctor or nurse), specialty, and contact information.
- The system must be able to uniquely identify each staff member.
- Departments
- The system must be able to store information about hospital departments, including department name and location.
- The system must be able to associate each department with a responsible doctor.
- The system must be able to uniquely identify each department.
- Patient Stays
- The system must be able to record when a patient is admitted to and discharged from the hospital.
- The system must be able to associate a patient stay with a department and a responsible doctor.
- The system must be able to uniquely identify each patient stay.
- Treatments and Procedures
- The system must be able to record treatments or procedures performed during a patient stay.
- The system must be able to associate each treatment with the staff member who performed it and the date it was performed.
- The system must be able to uniquely identify each treatment or procedure.
- Medications
- The system must be able to store information about medications, including name, dosage, and special instructions.
- The system must be able to record which medications are prescribed to a patient and for what time period.
- The system must be able to uniquely identify each medication.
- Appointments
- The system must be able to schedule appointments between patients and doctors.
- The system must be able to store the date and time of each appointment.
- The system must be able to uniquely identify each appointment.
- Potilaat
- Järjestelmän tulee pystyä tallentamaan potilaiden henkilötiedot, kuten nimi, syntymäaika, sukupuoli, osoite ja puhelinnumero.
- Järjestelmän tulee pystyä yksilöimään jokainen potilas.
- Lääkärit ja muu henkilökunta
- Järjestelmän tulee pystyä tallentamaan sairaalan henkilökunnan tiedot, kuten nimi, rooli (esim. lääkäri tai sairaanhoitaja), erikoisala ja yhteystiedot.
- Järjestelmän tulee pystyä yksilöimään jokainen henkilökunnan jäsen.
- Osastot
- Järjestelmän tulee pystyä tallentamaan sairaalan osastojen tiedot, kuten osaston nimi ja sijainti.
- Järjestelmän tulee pystyä liittämään jokainen osasto vastuulääkäriin.
- Järjestelmän tulee pystyä yksilöimään jokainen osasto.
- Potilasjaksot
- Järjestelmän tulee pystyä tallentamaan tiedot potilaan sairaalajaksoista, mukaan lukien sisään- ja uloskirjautumispäivämäärät.
- Järjestelmän tulee pystyä liittämään potilasjakso potilaaseen, osastoon ja vastuulääkäriin.
- Järjestelmän tulee pystyä yksilöimään jokainen potilasjakso.
- Hoidot ja toimenpiteet
- Järjestelmän tulee pystyä tallentamaan potilasjakson aikana suoritetut hoidot ja toimenpiteet.
- Järjestelmän tulee pystyä liittämään hoito tai toimenpide sen suorittaneeseen henkilökunnan jäseneen sekä suorituspäivämäärään.
- Järjestelmän tulee pystyä yksilöimään jokainen hoito tai toimenpide.
- Lääkkeet
- Järjestelmän tulee pystyä tallentamaan lääkkeiden tiedot, kuten nimi, annostus ja erityisohjeet.
- Järjestelmän tulee pystyä tallentamaan tiedot potilaalle määrätyistä lääkkeistä ja niiden voimassaoloajoista.
- Järjestelmän tulee pystyä yksilöimään jokainen lääke.
- Ajanvaraukset
- Järjestelmän tulee pystyä tallentamaan potilaiden ja lääkäreiden väliset ajanvaraukset.
- Järjestelmän tulee pystyä tallentamaan ajanvarauksen päivämäärä ja kellonaika.
- Järjestelmän tulee pystyä yksilöimään jokainen ajanvaraus.