Code Monkey home page Code Monkey logo

iatros_challenge's Introduction

Hypertension Alert System

The repository contains the solution for the iAtros AI & Backend Engineer challenge.

The solution contains two parts.

  1. First a prototyping notebook for function testing and explaining reasoning process.
  2. A cli tool that queries for a patient and predicts it mesurments returning an alert summary.

Prototyping

The notebook (iatros_challenge.ipynb) contains the step by step implementation of the solution incluiding:

  1. Implementation of requests between HAPI-fhir server and app

  2. Pagination handeling

  3. Filling the Dataframe

  4. Running the main query

  5. Preprocess and clead the Dataframe

  6. Binary classification

    • Model setup
    • Model definition
  7. Running the model

  8. Prediction test on a row of dataframe

Installation

1. Install Conda environment

  1. conda env create -f environment.yml
  2. Activate the environment: conda activate iatros
  3. Verify the environment was installed correctly: conda env list

2. Install fhir-client

In main working directory from terminal run pip install fhirclient --no-index --find-links client-py-4.0.0.zip

3. Install PIP Requirements

  1. pip install -r requirements.txt

How to Run the prediction App

From terminal:

Example: Arterial Pressure Prediction for a subject on database

  • Args:
    • observ: Code for observation defaul to 85354-9 LOINC code
      'Blood pressure panel with all children optional'
    • subject: Subject code in HAPI-FHIR test server
    • path to pretained model, default to models/hypertension_model

python app.py --observ 85354-9 --subject 1598464 --model ./models/hypertension_model.pkl

iatros_challenge's People

Contributors

t2ac32 avatar

Watchers

James Cloos avatar  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.