Code Monkey home page Code Monkey logo

doc-finder's Introduction

Doctor Finder

Doctor Finder is a minimal search engine to find Doctors using BetterDoctor API

Task

  • Implement doctor search by name which calls BetterDoctor API. (Doctor Search GET /doctors)

  • Show list of doctors with names and their titles.

  • Upon clicking the link for Doctor, show following data for the Doctor:

    • Doctor's name (String): Concatenation of first name, middle name, and last name
    • Doctor's title (String)
    • Doctor's specialties (Array)
    • Doctor's insurances (Array): Map "insurance_uids" to the labels. (Retrieve insurance providers and plans GET /insurances)
    • Is Doctor a Primary Care Physician? (Boolean)
      • If Doctor's specialties comes within the following list then doctor is a Primary Care Physician:
          'family-practitioner', 'family-medicine-adult-medicine',
          'general-practice', 'general-practitioner', 'internist',
          'geriatric-medicine-doctor', 'internal-medicine-adolescent-medicine',
          'adolescent-medicine-pediatrician', 'obstetrics-gynecologist',
          'general-practitioner', 'pediatrician', 'primary-care-nurse-practitioner',
          'family-nurse-practitioner', 'nurse-practitioner', 'adolescent-medicine-pediatrician',
          'family-medicine-geriatric-medicine', 'physician-assistant',
          'medical-physician-assistant', 'adult-medicine-physician-assistant'
        
    • JSON response should look like this:
      [
        {
          "name": "Neel R Anand",
          "title": "MD",
          "insurances": [
            "Better Insurance HMO",
            "Better Insurance PPO"
          ],
          "specialties": [
            "psychiatrist"
          ],
          "primary_care_physician": false
        },
        {
          "name": "John Doe",
          "title": "MD",
          "insurances": [
            "Better Network PPO",
            "Best HMO"
          ],
          "specialties": [
            "general-practitioner"
          ],
          "primary_care_physician": true
        }
      ]
  • Feel free to show the data however you like on the view.

  • BONUS Points:

    • Multi-field search by specialty, location or any keyword.
    • Use minimal requests to fetch the data from the BetterDoctor API.

Instructions

  • Clone this repo
  • Create secret_key for your app: bundle exec rake secret (Check secrets.yml on this project)
  • Get an API key from BetterDoctor API
  • Paste the API key in .env file

Reference: BetterDoctor API documentation

Note: Please do not post the solution as this is a public repo.

doc-finder's People

Contributors

alishersadikov avatar dependabot[bot] avatar neelanand 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.