Code Monkey home page Code Monkey logo

platform_dev_challenge's Introduction

Overview

Oncora has a concept of case objects that represent a single course of radiation treatment. Users may associate one or more prescription objects with a given case.

This project contains an API to store and retrieve those prescription objects, defined in api.py. It exposes a single endpoint, which accepts two methods:

Endpoint Method Description
/prescription/<case_id> GET Get the latest prescription for a given case
/prescription/<case_id> POST Submit a prescription to associate with a case and retrieve risk predictions

Oncora also has a separate API that can be used to retrieve a set of "risk predictions" for a given case and prescription. This is mocked by a function in prediction_api.py.

Goals

  1. When a user submits a prescription to be saved, use the prediction api to retrieve predictions, store them in a database along with the prescription and case used to generate them, and include the predictions in the response to the client.
    • The predictions should be stored in a mongo collection called predictions
  2. Add a suite of unit tests
    • A single, failing test already exists
    • Refactor the existing code as much as you like to accomplish this

Setup

  1. Install pipenv if it isn't already installed.
  2. Clone this repo
  3. Create virtual environment and install dependencies: PIPENV_VENV_IN_PROJECT=1 pipenv install -d
  4. Open the project in VS Code and run the test suite, or pipenv run pytest

platform_dev_challenge's People

Contributors

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