valchanoficial / gestaohospital Goto Github PK
View Code? Open in Web Editor NEWCode:Nation - Sistema de Gestão Hospitalar
Home Page: https://youtu.be/Krl2X_MDDD4
Code:Nation - Sistema de Gestão Hospitalar
Home Page: https://youtu.be/Krl2X_MDDD4
HospitalService.findHospitalProximoComEstoque
Requisito: Caso o hospital precise de um produto, por exemplo, um banco de sangue, é importante fazer o envio do hospital mais próximo ao local.
Requisito: Caso o hospital tenha apenas 4 itens ou 4 litros ele terá apenas o suficiente para o próprio hospital.
Analise:
Ao encontrar um paciente é importante o recomendar para um hospital mais próximo e que tenha vaga disponível. A partir da localização do paciente indicar o hospital mais próximo.
Caso o hospital precise de um produto, por exemplo, um banco de sangue, é importante fazer o envio do hospital mais próximo ao local.
Caso o hospital tenha apenas 4 itens ou 4 litros ele terá apenas o suficiente para o próprio hospital.
1 - Ao cadastrar/alterar um hospital/paciente: Busca os dados de localização no site locationiq e salvar na coleção location_collection
2 - Definir as rotas corretas para as testes:
When sending the following request:
curl -v\
--url 'http://localhost:8080/v1/hospitais/maisProximo?lat=-27.86&lon=153.35&raioMaximo=0.0'
I get the following error:
{"timestamp":"2022-10-18T11:49:07.680+0000","status":500,"error":"Internal Server Error","message":"Query failed with error code 2 and error message 'Legacy point is out of bounds for spherical query' on server localhost:27017; nested exception is com.mongodb.MongoQueryException: Query failed with error code 2 and error message 'Legacy point is out of bounds for spherical query' on server localhost:27017","path":"/v1/hospitais/maisProximo"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.