Giter VIP home page Giter VIP logo

health-api-serverless's Introduction

Overview

AWS Lambda / Node.js api that searches a DynamoDB database of health facilities based on Brazilian government data. The api accesses the database created by health-dynamo-db.

This project was built using serverless framework and Node.js 6.10.

A similar API that uses Redis instead of DynamoDB can be found here.

Routes

  • GET /nearest/{long}/{lat}

Retrieves nearest health facilities based on the provided coordinates.

[
  {
    "hashKey": "432040",
    "geoJson": "{\"type\":\"POINT\",\"coordinates\":[\"-43.26089\",\"-22.92408\"]}",
    "services": [
      "SERVICO DE DIAGNOSTICO POR IMAGEM",
      "SERVICO DE FISIOTERAPIA"
    ],
    "ibge": "330455",
    "openingHours": "ATENDIMENTOS NOS TURNOS DA MANHA E A TARDE",
    "businessName": "CENTRO ORTOPEDICO GRAJAU LTDA",
    "name": "CENTRO ORTOPEDICO GRAJAU",
    "state": "RJ",
    "city": "RIO DE JANEIRO",
    "neighborhood": "GRAJAU",
    "longitude": "-43.26089",
    "geohash": "43204095853209369",
    "facilityId": "3521125",
    "latitude": "-22.92408",
    "postalCode": "20561206",
    "phone": "N/A",
    "type": "CLINICA/CENTRO DE ESPECIALIDADE",
    "street": "RUA BORDA DO MATO",
    "addressNumber": "100"
  },
  {
    "hashKey": "432042",
    "geoJson": "{\"type\":\"POINT\",\"coordinates\":[\"-43.24864\",\"-22.93962\"]}",
    "services": [
      "SERVICO DE ATENCAO CARDIOVASCULAR / CARDIOLOGIA",
      "SERVICO DE DIAGNOSTICO POR IMAGEM",
      "SERVICO DE DIAGNOSTICO POR METODOS GRAFICOS DINAMICOS"
    ],
    "ibge": "330455",
    "openingHours": "ATENDIMENTOS NOS TURNOS DA MANHA E A TARDE",
    "businessName": "VOTICOR SERVICOS MEDICOS LTDA",
    "name": "VOTICOR SERVICOS MEDICOS LTDA",
    "state": "RJ",
    "city": "RIO DE JANEIRO",
    "neighborhood": "TIJUCA",
    "longitude": "-43.24864",
    "geohash": "43204217948206637",
    "facilityId": "3503496",
    "latitude": "-22.93962",
    "postalCode": "20530001",
    "phone": "21 22383001",
    "type": "CLINICA/CENTRO DE ESPECIALIDADE",
    "street": "RUA CONDE DE BONFIM",
    "addressNumber": "1033"
  },
  ...

health-api-serverless's People

Contributors

rafaelrpinto 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.