Coder Social home page Coder Social logo

traumascanner's Introduction

traumascanner

Identify radiology text-reports of patients with post-traumatic hemorrhage

Installation

$ pip install traumascanner

Usage

Use traumaScanner() to identify patients with post-traumatic hemorrhage from radiology text reports.

traumaScanner() is a key-word matching/regular expression (regex) and rules-based algorithm for identifying patients with post-traumatic hemorrhage after a traumatic brain injury (TBI).

In brief, the algorithm functions as follows:

  1. Identifies radiology reports with at least one of the provided set of trauma-related keywords
  2. Considers negation to remove false positive trauma related reports
  3. Identifies and removes reports without hemorrhage

The function will output the following csv files:

  • 01_potential_trauma_reports.csv - all radiology reports which matched at least one keyword
  • 02_false_postive_trauma_reports.csv - the subset of potential_trauma_reports identified as being likely false positive for trauma
  • 03_trauma_no_hemorrhage_reports.csv - the subset of potential_trauma_reports which had no hemorrhage
  • 04_resucued_reports.csv - the subset of trauma_no_hemorrhage_reports which were likely false negatives
  • 05_post_traumatic_hemorrhage_reports - the complete set of post-traumatic hemorrhage reports identified via the traumaScanner() algorithm.

Please see the demo to learn how to use traumaScanner() on your own radiology reports.

Note: Reports in example_reports/ do not include real patient information and were created with the help of ChatGTP. Please see the notebook with the code generated by ChatGPT for creating this example dataset.

License

traumascanner was created by Meghan Hutch. It is licensed under the terms of the MIT license.

Credits

traumascanner was created with cookiecutter and the py-pkgs-cookiecutter template.

traumascanner's People

Contributors

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