Coder Social home page Coder Social logo

backend's People

Contributors

beatrizrocha avatar dougolima avatar gantonyp avatar hee1ko avatar heukirne avatar marceloarocha avatar marsc98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

backend's Issues

Save Prescription Snapshot

When a prescription is checked, save in prescriptionSnapshot table a snapshot of all risk variable in at the moment of check.

Acceptance Test - Memory

Background

NoHarm's backend code today doesn't have much testing (neither unitary nor acceptance). To start increasing code test coverage, let's start with the broader endpoint acceptance tests.

Task Goal

Develop basic acceptance tests for memory endpoints:

  • GET /memory/string:kind
  • PUT /memory/
  • PUT /memory/int:idMemory

Getting Memory List (GET)

This endpoint get a list of records from memory table with a certain kind. It could be one record or many records.

Steps of Acceptance Test

  1. Authenticate in the system with demo user;
  2. Call an existing memory;
  3. Basic checks:
    - assert status code auth
    - assert memory key
    - assert memory value

Set a new Memory (PUT)

This endpoint set a new memory record with a specific kind.

Steps of Acceptance Test

  1. Authenticate in the system with demo user;
  2. Set a new memory;
  3. Basic checks:
    - assert status code

Update a existing Memory (PUT)

This endpoint set a existing memory record with a specific kind.

Steps of Acceptance Test

  1. Authenticate in the system with demo user;
  2. Update a existing memory;
  3. Basic checks:
    - assert status code
    - assert memory id

Update a non-existing Memory (PUT)

Try to update a memory that do not exist in the memory table.

Steps of Acceptance Test

  1. Authenticate in the system with demo user;
  2. Update a non-existing memory;
  3. Basic checks:
    - assert status error code

Reference

The is some GET and POST tests to use as reference such as Patient Test in test folder.

Voluntariado Python NoHarm

Sobre a NoHarm

A NoHarm é uma startup sem fins lucrativos que desenvolve tecnologia para segurança do paciente. Oferecemos nosso produto de forma gratuita para o SUS, uma maneira de criar uma tecnologia inclusiva. Saiba mais sobre nossa arquitetura e infraestrutura na nossa Política de Dados.

Contribuindo para a NoHarm

Estamos felizes em aceitar suas contribuições para tornar a NoHarm melhor e mais incrível! Para evitar trabalho desnecessário em qualquer lado, siga o seguinte processo:

  1. Verifique se já existe [um problema] (https://github.com/noharm-ai/backend/issues) que te interesse.
  2. Se não houver, abra um novo para iniciar uma discussão.
  3. Faça um Fork do nosso repositório e execute as alterações que achar importantes. Se precisar, use nossa imagem docker para montar o ambiente de desenvolvimento
  4. Depois do código alterado, fala um Pull Request para o branch develop para testar as suas alteração.
  5. Se estiver tudo certo, ficaremos felizes em fazer o merge da sua contribuição;

Caso você queira apenas ajudar e não saiba por onde começar, pode sugerir a criação de um test unitário para alguma função do backend ou resolver algum bug que tenha encontrado.

Diretrizes do Git Commit

Se já existe um ticket, use este número no início de sua mensagem de confirmação.
Use mensagens de confirmação significativas que descrevam o que você fez.

** Exemplo: ** `GH-42: Novo teste unitário para a função get_patients;

Se tiver dúvidas, entre em contato: [email protected]

Sprint v1.10-beta

  • Separar atributos de alerta dos medicamentos por segmento;
    • Novos atributos: Divisor De Faixas (integer), Considerar Peso (boolean)
    • Separar atributos dos medicamentos por segmento;
  • Alterar alerta função hepática: Trocar verdadeiro ou falso por número;
  • Alerta Hepático somente para valores acima da referência;
  • Trazer nome do Segmento no endpoint da Prescrição;

Acceptance Test - Improve Drugs

Background

There is some acceptance tests for drugs endpoint, but we can improve it.

Task Goal

Improve acceptance tests for drugs endpoints:

  • GET /drugs/int:idSegment improve test_get_drugs_by_idSegment
  • GET /drugs/int:idSegment with q param
  • PUT /drugs/int:idDrug

The drugs endpoint definition are in outlier.py file

Getting Drug List by Segment (GET)

Improve test_get_drugs_by_idSegment

Add new asserts to test_get_drugs_by_idSegment

  1. Keep the tests and...
    • assert drugs count

Getting Drug List by Query (GET)

This is a new test fuction

Add new asserts to test_get_drugs_by_idSegment

  1. Search drug name using q param:
    - assert drugs count

Set drug properties (PUT)

This is a new test fuction

Steps of Acceptance Test

  1. Authenticate in the system with demo user;
  2. Set a drug properties;
  3. Basic checks:
    - assert status code
    - assert drug.liver
    - assert drug.chemo
    - assert other properties

Testes Unitários - Memória

Desenvolver testes unitários para as funções de Memória da API

/memory/string:kind GET
/memory/int:idMemory PUT

Sprint v1.11-beta

  • Novo Endpoint: /exams/{admissionNumber} GET
    • Lista dos exames: [ { name, date, value, ref, alert, history[exams] } , ...]
  • Possibilidade de Edição do Peso do Paciente
    • Novo Endpoint: /patient/{admissionNumber} POST
    • Atualização dos Outliers?
  • Novo indicador de medicamento por peso no endpoint: {useWeigth}
  • Novos dados no endpoint da prescrição: {bed, record}
  • Nova opção de filtro na Triagem por Medicamento
  • Não contar nos indicadores os medicamentos suspensos;
  • Alerta de Alergias;
  • Sinalização que paciente mudou de setor;

Static by Admission

Para evitar o overhead de prescrições de itens no CPOE, deve haver um método para calcular a prescrição agrupada através do número do atendimento.

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.