GithubHelp home page GithubHelp logo

bunny851 / hospital-system-cmd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from victorzottmann/hospital-system

0.0 0.0 0.0 685 KB

A simple CLI hospital management system built in C#.

C# 100.00%

hospital-system-cmd's Introduction

Hospital Management System

A simple command-line program written in C# to manage a hospital system.

How to run the program

To run the program, it is necessary that you are using Visual Studio IDE on Windows and have .NET 6.0 installed.

  • Clone this repository
  • Open the solution in Visual Studio
  • Click on the play icon to run it
  • [Alternative] Navigate to bin/Debug/net6.0/ and run HospitalSystem.exe. This executable file holds the program, so there is no need to open the solution in Visual Studio.

As soon as you run it, the following screen should appear:

login-screen

Login Credentials

The system only contain three types of users: Admin, Doctor, and Patient. The credentials for each user are stored in ./bin/Debug/net6.0/login-credentials.txt and follow the formats below:

  • Admin
    • ID: 30001
    • Password: admin
  • Doctor:
    • ID Range: 20001 - 20026 (there are 26 doctor credentials in the file)
    • All Passwords: doc
  • Patient
    • ID Range: 10001 - 10026 (there are 26 patient credentials in the file)
    • All Passwords: pat

User Privileges

Note: In addition to user-specific menu options, Admin, Doctors, and Patients share Logout and Exit features.

Admin

Admin can view details about all doctors and patients registered in the system, as well as add new doctors and patients.

admin-menu

Doctor

Notes:

  • Seeded doctors are listed in ./bin/Debug/net6.0/doctors.txt
  • Seeded patients are listed in ./bin/Debug/net6.0/patients.txt
  • Seeded appointments are listed in ./bin/Debug/net6.0/appointments.txt
  • Seeded doctor-patient relationships are listed in ./bin/Debug/net6.0/doctor-patients.txt

Doctors can:

  1. See their personal details
  2. See which patients are assigned to them (think of a GP - patient relationship)
  3. See all appointments they have with all patients
  4. Check the details of a particular patient
  5. See all appointments they have with a given patient

doctor-menu

Patients

  • Seeded doctors are listed in ./bin/Debug/net6.0/doctors.txt
  • Seeded patients are listed in ./bin/Debug/net6.0/patients.txt
  • Seeded appointments are listed in ./bin/Debug/net6.0/appointments.txt
  • Seeded doctor-patient relationships are listed in ./bin/Debug/net6.0/doctor-patients.txt

Patients can:

  1. See their personal details
  2. See their doctor details
    • If they are not assigned to any doctors, a message will be displayed
    • If they are assigned to a doctor, the doctor details will be displayed
  3. See all the appointments they have booked
  4. Book an appointment with a doctor

patient-menu

List of seeded doctors

Reference file: ./bin/Debug/net6.0/doctors.txt

Doctor ID Name Last Name Email Phone Address
20001 Gregor House [email protected] 04320001 15 Pitt Street, Sydney, NSW
20002 Lisa Cuddy [email protected] 04320002 20 Oxford Street, Sydney, NSW
20003 James Wilson [email protected] 04320003 25 Kent Street, Sydney, NSW
20004 Eric Foreman [email protected] 04320004 30 Market Street, Sydney, NSW
20005 Robert Chase [email protected] 04320005 35 King Street, Sydney, NSW
20006 Allison Cameron [email protected] 04320006 40 Elizabeth Street, Sydney, NSW
20007 Remy Hadley [email protected] 04320007 45 Castlereagh Street, Sydney, NSW
20008 Chris Taub [email protected] 04320008 50 York Street, Sydney, NSW
20009 Lawrence Kutner [email protected] 04320009 55 Sussex Street, Sydney, NSW
20010 Jessica Addams [email protected] 04320010 60 Macquarie Street, Sydney, NSW
20011 Chi Park [email protected] 04320011 65 Liverpool Street, Sydney, NSW
20012 Dominika Petrova [email protected] 04320012 70 Albert Street, Sydney, NSW
20013 Derek Shepherd [email protected] 04320013 75 George Street, Sydney, NSW
20014 Lisa Addison [email protected] 04320014 80 Clarence Street, Sydney, NSW
20015 John Carter [email protected] 04320015 85 Murray Street, Sydney, NSW
20016 Christina Yang [email protected] 04320016 90 Park Street, Sydney, NSW
20017 Meredith Grey [email protected] 04320017 95 Victoria Street, Sydney, NSW
20018 Alex Karev [email protected] 04320018 100 William Street, Sydney, NSW
20019 Izzie Stevens [email protected] 04320019 105 Alberta Street, Sydney, NSW
20020 Miranda Bailey [email protected] 04320020 110 Madison Street, Sydney, NSW
20021 Richard Webber [email protected] 04320021 115 Adelaide Street, Sydney, NSW
20022 George O'Malley [email protected] 04320022 120 Spencer Street, Sydney, NSW
20023 April Kepner [email protected] 04320023 125 Wellington Street, Sydney, NSW
20024 Amelia Shepherd [email protected] 04320024 130 Bourke Street, Sydney, NSW
20025 Nathan Riggs [email protected] 04320025 135 Pitt Street, Sydney, NSW
20026 Harvey Specter [email protected] 04320026 140 Violet Street, Sydney, NSW

List of seeded patients

Reference file: ./bin/Debug/net6.0/patients.txt

Patient ID Name Last Name Email Phone Address
10001 Rebecca Adler [email protected] 04310001 1 Pacific Highway, St Leonards, NSW
10002 Clancy Harris [email protected] 04310002 3 Raglan Street, Mosman, NSW
10003 Joe Luria [email protected] 04310003 5 Crystal Street, Petersham, NSW
10004 Eve Anderson [email protected] 04310004 7 Mount Street, North Sydney, NSW
10005 John Thompson [email protected] 04310005 9 Archer Street, Chatswood, NSW
10006 Patrick Obyedkov [email protected] 04310006 11 Miller Street, North Sydney, NSW
10007 Lee Ross [email protected] 04310007 13 McDougall Street, Kirribilli, NSW
10008 Helena Martinez [email protected] 04310008 15 Bondi Road, Bondi, NSW
10009 Ben Taylor [email protected] 04310009 17 Flushcombe Road, Blacktown, NSW
10010 David Young [email protected] 04310010 19 Milford Street, Randwick, NSW
10011 Adele Turner [email protected] 04310011 21 Station Street, Penrith, NSW
10012 Abraham Williams [email protected] 04310012 23 Berry Street, North Sydney, NSW
10013 Edward Mitchell [email protected] 04310013 25 Shirley Street, Wollstonecraft, NSW
10014 Della Jenkins [email protected] 04310014 27 Victoria Street, Potts Point, NSW
10015 Mara Keaton [email protected] 04310015 29 Walker Street, North Sydney, NSW
10016 Aaron Crasnoff [email protected] 04310016 31 Dolphin Street, Randwick, NSW
10017 Hannah Morgenthal [email protected] 04310017 33 Booth Street, Annadale, NSW
10018 Irma Rodriguez [email protected] 04310018 35 Falcon Street, Crows Nest, NSW
10019 Dylan Crandall [email protected] 04310019 37 Rozelle Street, Rozelle, NSW
10020 Emily Foster [email protected] 04310020 39 Dulwich Street, Dulwich Hill, NSW
10021 Kyle Chandler [email protected] 04310021 41 Darley Street, Mona Vale, NSW
10022 Julia Carter [email protected] 04310022 43 Marion Street, Leichhardt, NSW
10023 Patrick Clark [email protected] 04310023 45 Darling Street, Balmain, NSW
10024 Ollie Warner [email protected] 04310024 47 Boundary Street, Roseville, NSW
10025 Henry Burton [email protected] 04310025 49 Beulah Street, Kingsford, NSW
10026 Mike Ross [email protected] 04310026 51 Green Street, Maroubra, NSW

List of seeded doctor-patient relationships

This table is to be used for reference when looking up a patients' doctor. If the field is displayed as Not Assigned, then it is because a patient is not assigned to a doctor yet.

This table makes it easy to spot which doctors and patients you can manipulate in the program.

For example, when adding a new doctor or a new patient, this relationship will not exist until a patient logs into the system and assigns a doctor to them. Use this table (and the other ones above as well) as reference when choosing a doctor.

Reference file: ./bin/Debug/net6.0/doctor-patients.txt

Doctor ID Doctor Patient ID Patient
20001 Gregory House 10001 Rebecca Adler
20002 Lisa Cuddy 10002 Clancy Harris
20005 Robert Chase 10005 John Thompson
20006 Allison Cameron 10006 Patrick Obyedkov
20007 Remy Hadley 10007 Lee Ross
20009 Lawrence Kutner 10009 Ben Taylor
20010 Jessica Adams 10010 David Young
20011 Chi Park 10015 Mara Keaton
20011 Chi Park 10021 Kyle Chandler
20012 Dominika Petrova 10012 Abraham Williams
20013 Derek Shepherd 10013 Edward Mitchell
20014 Lisa Addison 10004 Eve Anderson
20014 Lisa Addison 10026 Mike Ross
20017 Meredith Grey 10017 Hannah Morgenthal
20018 Alex Karev 10018 Irma Rodriguez
20019 Izzie Stevens 10019 Dylan Crandall
20022 George O'Malley 10022 Julia Carter
20023 April Kepner 10023 Patrick Clark
20025 Nathan Riggs 10025 Henry Burton

hospital-system-cmd's People

Contributors

victorzottmann avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.