Giter VIP home page Giter VIP logo

api-healthy-mind's Introduction

Olá, tudo bem?

Sou Técnico em Informática, Tecnólogo em Análise e Desenvolvimento de Sistemas,Participei do Programa Starter-Desenvolvimento Web Fullstack da Growdev, e do Programa Ignite-Trilha NodeJS da Rocketseat e estou cursando Inglês-Módulo 01 e 02 no CCAA,. Sou apaixonado por desenvolvimento de softwares, principalmente o backend!

 

william-ribeiro

Connect with me:

william-ribeiro Gmail

Languages and Tools:

aws docker git javascript linux mysql nodejs postgresql postman redis typescript

api-healthy-mind's People

Contributors

dependabot[bot] avatar heelpy avatar william-ribeiro avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

adlermo

api-healthy-mind's Issues

alterar retorno dos dados do paciente para trazer endereço

Cenário atual em GET /patients:

{
  "addressId": 1,
  "name": "Sample patient",
   ...
}

Normalizar o endereço {address} de paciente, trazendo os dados do endereço em lugar de apenas o {addressId}.

Cenário ideal:

{
  "address": {
      "street": "",
      "number": 123,
      "postalCode": 05724005,
      ...
   },
  "name": "Sample patient",
   ...
}

[Fix] - Atualizar paciente não deve requerer a alteração de senha sempre

Ajuste 1:

É necessário ajustar a resposta do endpoint POST /signin?type=patient
{ "message": "Password must be changed", "token": "" }

Para trazer o id do usuário
{ "message": "Password must be changed", "token": "", "id": "f0b5bc18-4fec-4ca1-a950-db1be8c309cf", "roleId": 2, }

Que será necessário para alterar a senha em:

PUT /patients/update/{patientId}

Ajuste 2:
Permitir que PUT /patients/update/{patientId} não necessite alterar a senha uma primeira vez para alterar os dados do usuário.

Verificar erro {"message":"No entity column \"patientId\" was found.","token":null}

Adicionar campos na tabela users

incluir os campos:
{ roleId: integer NOT NULL, document varchar NULL, gender: varchar NULL, birthDate: varchar NULL, addressId: integer NULL, phone varchar NULL, professionalRecord: varchar NULL}

Criar view Clinical history

GET /sessions/{patientId}

{
"response": [
{
"id": 2,
"createdAt": "2022-09-21T00:40:48.961Z",
"updatedAt": "2022-09-21T00:40:48.961Z",
"patientId": "{patientId}",
"status": "agendada",
"subject": "ASD",
"duration": "2022-09-20T03:02:00.036Z",
"type": "individual",
"enabled": true,
"appointmentDate": "2022-09-21T03:00:00.000Z",
"service": "remote",
}
]
}

OBS.: Ordenado por updatedAt. Filtrar por status = closed

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.