GithubHelp home page GithubHelp logo

hypnocil's Introduction

Hypnocil Clinical Trials

checkpoint demo

You've recently been hired as a new physician's assistant at Westin Hills Psychiatric Hospital in Springwood, Ohio. They've been running clinical trials on a new drug called Hypnocil. The FDA has deemed Hypnocil as an experimental treatment that is effective for management of psychotic disorders. It's used for sedation where dreamless sleep is considered optimal.

The patients are adolescents that are suffering extreme and troubling night terrors of a severely burned man wearing a red and green sweater with long knives as claws.

Having been through Flatiron School you've been tasked with creating a web portal to track any side effects being experienced by the patients.

Instructions

For this project, you’ll be building out a React application that displays a list of patients. Try your best to find the right places to insert code into the established code base.

Part of what this code challenge is testing is your ability to follow given instructions. While you will definitely have a significant amount of freedom in how you implement the features, be sure to carefully read the directions for setting up the application.

Setup

  1. Run npm install in your terminal.
  2. Run json-server --watch src/db.json. This will run your backend on port 3000.
  3. In a new terminal, run npm start. You may be asked whether you want to run react on another port. Type 'y' and it should open the page.

Make sure to open http://localhost:3000/patients in the browser to verify that your backend is working before you proceed!

The base URL for your backend is: http://localhost:3000.

Core Deliverables

As a user, I should be able to:

  • See all patients and patient data in the table when the page loads
  • Create a new patient with a given side effect. This patient should persist in your backend.
  • You should be able to the table by typing the search box. The filter should work on both the name and the side effects.
  • Clicking the delete button should remove the patient from the page. This should also remove the patient from the backend.
  • Create some visual indicator of whether a patient is alive or deceased.

Bonus Deliverables

  • Create a way to add a side effect to each patient. These should persist in the backend.
  • Create a way to mark a patient 'deceased'. This should persist in the backend.
  • Create a way to add multuple side effects when creating a new patient.

Example Response:

[
  {
    "id": 1,
    "name": "Nancy Thompson",
    "deceased": false,
    "side_effects": [
      "Dizziness",
      "Nausea",
      "Somnambulism",
      "Loss of Memory"
    ]
  },
  {
    "id": 2,
    "name": "Kristen Parker",
    "deceased": false,
    "side_effects": [
      "Headache",
      "Severe Allergic Reaction"
    ]
  }
]

hypnocil's People

Contributors

bdenney avatar stringtheory92 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.