Coder Social home page Coder Social logo

0bvim / appointment_book Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 31 KB

This repository to solve a challenge where you need to create a system that runs in terminal and register patients, appointments and cancel them too.

License: GNU General Public License v3.0

Ruby 100.00%

appointment_book's Introduction

Versão em Português

Appointment book

This repository was created to solve a challenge where you need to create a system that runs in terminal and register patients, schedule and cancel appointments.

Dependencies

Ensure that you have ruby installed (v3.3.15) to run correctly. Run command ruby -v to verify version.

How to use

clone the repository

SSH

git clone [email protected]:vinicius-f-pereira/appointment_book.git; cd appointment_book

HTTP

git clone https://github.com/vinicius-f-pereira/appointment_book.git; cd appointment_book

GH CLI

gh repo clone vinicius-f-pereira/appointment_book; cd appointment_book

Run the project

ruby main.c

Options

  1. Cadastrar paciente register patient
  2. Agendar consulta schedule appointment
  3. Desmarcar consulta cacel appointment
  4. Encerrar programa finish program

Register patient

This option ask for name and phone of patient.
Phone need to be in this pattern: Country code, area code and phone number.
At register a patienc for the first time, program will create a file '.db' to store this data.
If you close program and run again, you data will be read from this file and you keep data saved in past sessions.

Schedule appointment

To this option works, you need to have at least one patient registered.
When you choose this option, a prompt with registered patients will appear, so you choose patient and start the appointment.
Enter the consultation date and time. Date pattern: "dd/MM/yyyy" Time pattern: "HH:MM" (is not possible schedule in past dates)
Insert medical speciality.

Cancel appointment

To this option works, we need at least one appointment.
Will prompt existing appointments, choose one.

Finish program

Finish program

appointment_book's People

Contributors

0bvim avatar

Watchers

 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.