Felipe Silva 34 InfoA
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Instituto Nossa Senhora de Fátima # Hefesto Tech Integrantes: Mateus Ferreira Nº22, Arthur Figueredo Nº3, Felipe Conceição Nº34, Matheus Pinheiro Nº26 Professor(a): Bruno Oliveira Links: [GitHub](https://github.com/HefestoTech/TCC---NSF2020 ) e [Trello](https://trello.com/b/Rf6Ns3Ft/tcc-nsf-2020) ## Índice - Caso de Uso - Caso de Uso: Funcionário - Caso de Uso: Cliente - MER - MER Completo - Prototipações - Home - Cadastrar Conta - Login - Menu Cliente - Agendar Consulta Cliente - Ver Agendamentos Cliente - Menu Funcionário - Agendar Consulta Funcionário - Ver Agendamentos Funcionário - Avaliar Consulta - Remarcar Consulta - Relatório - - Rotas do Sistema Testadas ## Caso de Uso ### Funcionário ![](https://i.imgur.com/LDQ68ym.png) - UC001 - O Funcionário pode ser cadastrar no sistema. - UC002 - O Funcionário pode logar no sistema. - UC003 - O Funcionário pode agendar uma consulta para algum cliente. - UC003.1 - O Funcionário pode escolher o dentista que estiver disponivel para realizar a consulta. - UC003.2 - O Funcionário pode escolher um horário para a consulta. - UC003.3 - O Funcionário pode ver o valor total da consulta. - UC004 - O Funcionário pode ver as suas consultas ja agendadas. - UC005 - O Funcionário pode cancelar uma consulta. - UC006 - O Funcionário pode remarcar a consulta - UC007 - O Funcionário pode mudar a situação de um agendamento para "Realizado" ou "O Cliente não compareceu". ### Cliente ![](https://i.imgur.com/r7LYpQn.png) - UC001 - O Cliente pode ser cadastrar no sistema. - UC002 - O Cliente pode logar no sistema. - UC003 - O Cliente pode agendar uma consulta para algum cliente. - UC003.1 - O Cliente pode escolher o dentista que estiver disponivel para realizar a consulta. - UC003.2 - O Cliente pode escolher um horário para a consulta. - UC003.3 - O Cliente pode ver o valor total da consulta. - UC004 - O Cliente pode ver as suas consultas ja agendadas. - UC005 - O Cliente pode cancelar a consulta. - UC006 - O Cliente pode remarcar a consulta. - UC007 - O Cliente pode avaliar a consulta, depois de realizada. - UC007.1 - Para avaliar é obrigatório dar uma nota de 0 a 5 para a consulta. - UC007.2 - O Cliente pode opcionalmente fazer um comentário sobre a consulta. ## MER ![](https://i.imgur.com/2QNLO41.png) O MER possui 6 tabelas. São elas: - tb_cliente Essa tabela guarda os dados dos clientes do sistema. Leva como chave estrangeira a tb_login, sendo uma relação de 1 para 1. - tb_funcionario Essa tabela guarda os dados dos funcionários do sistema. Leva como chave estrangeira a tb_login, sendo uma relação de 1 para 1. - tb_login Guarda as informações do login dos usuarios, que podem ser tanto de um funcionário, como de um cliente. - tb_perfil_acesso Guarda as informações do acesso permitido do cliente, especificando em qual área da empresa ele trabalha. Leva a tb_funcionario como chave estrangeira, em uma relação de 1 para 1. - tb_servico Essa tabela guarda as informações dos tipos de serviços prestados pela empresa. - tb_consulta -Essa tabela gurda as informações das consultas que ja foram ou serão realizadas. Leva chave estrangeira da tb_cliente, em uma relação de 1 para N. Leva chave estrangeira da tb_serviço em uma relação de 1 para N. Leva como chave estrangeira da tb_funcionario em uma relação de 1 para N. ## Protótipos ### HOME ![](https://i.imgur.com/p2raHoD.jpg) ### Login ![](https://i.imgur.com/3qUuYaF.jpg) ### Cadastrar Conta no Sistema ![](https://i.imgur.com/UlAmM23.jpg) ### Menu Cliente ![](https://i.imgur.com/pw8dwHt.jpg) ### Agendar Nova Consulta - CLiente ![](https://i.imgur.com/5bteHqg.jpg) ### Ver os Agendamentos - Cliente ![](https://i.imgur.com/XXkS6vu.jpg) ### Menu Funcionário ![](https://i.imgur.com/W2AWEzW.jpg) ### Agendar Nova Consulta - Funcionário ![](https://i.imgur.com/P4RWXty.jpg) ### Ver os Agendamentos - Funcionário ![](https://i.imgur.com/Jv9ToTq.jpg) ### Avaliar Consulta ![](https://i.imgur.com/0YxRCbP.jpg) ### Remarcar Consulta ![](https://i.imgur.com/qyQ6JyB.jpg) ### Relatórios ![](https://i.imgur.com/3BN8uwq.jpg) ### Sobre Nós Odonto ![](https://i.imgur.com/tkvt0UL.jpg) ### Sobre Nós HefestoTech ![](https://i.imgur.com/wAWlGZO.jpg) ### Aplicativo Móvel ![](https://i.imgur.com/Vs7jyCU.jpg) ## Rotas Testadas - [POST] /Login Essa rota permite que o cliente ou o funcionário loguem no sistema. Chamada ![](https://i.imgur.com/uu2A4HY.png) Resposta ![](https://i.imgur.com/Txy5ub6.png) - [GET] /agendamento/PegarServicos Essa rota pega todos os serviços que estão cadastrados em nosso banco de dados. Chamada ![](https://i.imgur.com/wp4rlFr.png) Resposta ![](https://i.imgur.com/mfBIl5l.png) - [GET] /agendamento/destista/disponivel Pega os dentistas disponiveís a partir de um horário passado. Chamada ![](https://i.imgur.com/lKNd3E2.png) Resposta ![](https://i.imgur.com/joIitCH.png) - [GET] /agendamento/valordaconsulta Pega as informações sobre o preço da consulta de acordo com o que foi passado. Chamada ![](https://i.imgur.com/AGDDYSv.png) Resposta ![](https://i.imgur.com/Qdffo8l.png) - [POST] /agendamento/cadastrar/cliente Agenda uma nova consulta de acordo com as informações passadas pelo cliente. Chamada ![](https://i.imgur.com/NOah1K3.png) Resposta ![](https://i.imgur.com/jjqR9jt.png) - [PUT] /agendamento/remarcar Essa rota remarca uma consulta. Chamada ![](https://i.imgur.com/SdNFYx6.png) Resposta ![](https://i.imgur.com/PGXXzBq.png) - [POST] /agendamento/cadastrar/funcionario Agenda uma nova consulta de acordo com as informações passadas pelo funcionário. Chamada ![](https://i.imgur.com/NR36f4g.png) Resposta ![](https://i.imgur.com/dd0Wgi1.png) - [PUT] /agendamento/cancelar/{idConsulta} Essa rota cancela um agendamento, mas invés de excluir da tabela, a situação é mudada para "cancelado". Chamada ![](https://i.imgur.com/SEWj7nb.png) Resposta ![](https://i.imgur.com/wfCH833.png) - [PUT] /agendamento/alterar/situacao/{idConsulta}/?novaSituacao={Situacao} A situação de uma determinado agendamento é alterado. Só o funcionário tem permissão para fazer isso. A situação pode ser mudada para "Concluido" ou "Não Compareceu". Chamada ![](https://i.imgur.com/OmJJaAD.png) Resposta ![](https://i.imgur.com/t3sXoTX.png) - [POST] /cadastro Cadastra um novo cliente no sistema. Chamada ![](https://i.imgur.com/sfIdtbL.png) Resposta ![](https://i.imgur.com/tzJkxQL.png) - [GET] /consultaagendamento/agendados/cliente/{idCliente} Pega as consultas de um cliente, separando por "Concluidos", "Agendados", "Não Compareceu" e "Cancelados". Chamada ![](https://i.imgur.com/vVJ89xc.png) Resposta ![](https://i.imgur.com/ZNhfUlw.png) ![](https://i.imgur.com/KK08fah.png) - [GET] /consultaagendamento/agendados/filtro?nome={nome}&servico={servico}&doutor={doutor}&data={data}&situacao={situacao} Essa rota pega as consultas a partir dos filtros passado pelo funcionário Chamada ![](https://i.imgur.com/u0LBE45.png) Resposta ![](https://i.imgur.com/XE4NmJu.png) - [POST] /feedback O cliente tem a opção de avaliar a consulta, após o funcionário mudar a situação para "Concluido" Chamada ![](https://i.imgur.com/qaKSTpn.png) Resposta ![](https://i.imgur.com/TNAH82X.png)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully