GithubHelp home page GithubHelp logo

mhmcc / ed-interaction-mapping Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.49 MB

Mapping patient interactions in psychiatric presentations to a tertiary emergency department using network science and machine learning

License: MIT License

Jupyter Notebook 100.00%
emergency-medicine machine-learning mental-health network-science psychiatry suicide-prevention

ed-interaction-mapping's Introduction

Mapping patient interactions in psychiatric presentations to a tertiary emergency department

Jupyter notebook and Python code for the analysis of patient trajectories in a hospital emergency department for individuals presenting with suspected risk of suicide or self-harm, as published in our study:

McCullough MH, Small M, Jayawardena B, Hood S (2024) Mapping clinical interactions in an Australian tertiary hospital emergency department for patients presenting with risk of suicide or self-harm: Network modeling from observational data. PLOS Medicine 21(1): e1004241. https://doi.org/10.1371/journal.pmed.1004241

ED interaction network โ€ƒ Interaction feature importance for predicting the point of clinical referral

Overview

This repository contains:

  • The Jupyter notebook ED-interaction-mapping.ipynb which runs the complete pipeline for analysing patient trajectory/interaction data, generating results and rendering figures for our published study.
  • YAML file ED-interaction-mapping.yml for installing the conda environment.
  • CSV files for the study data and lookup tables for system agents (doctors, patients etc.) and referral decisions.

Installation and usage

To run the notebook:

  1. Clone the repository.
  2. Install the environment with conda using the included YAML file.
conda env create -f ED-interaction-mapping.yml
  1. Run all cells in order.

Data availability

The data for this project are stored within this repository in data.csv. Note that date information has been altered for data privacy.

References

Please see the companion paper linked above for details of the methods and packages used in this code.

Citing this code

If you use or adapt our code or methods in your research, please cite the companion paper linked above or as shown here in BibTeX format:

@article{10.1371/journal.pmed.1004241,
    doi = {10.1371/journal.pmed.1004241},
    author = {McCullough, Michael H. AND Small, Michael AND Jayawardena, Binu AND Hood, Sean},
    journal = {PLOS Medicine},
    publisher = {Public Library of Science},
    title = {Mapping clinical interactions in an Australian tertiary hospital emergency department for patients presenting with risk of suicide or self-harm: Network modeling from observational data},
    year = {2024},
    month = {01},
    volume = {21},
    url = {https://doi.org/10.1371/journal.pmed.1004241},
    pages = {1-21},
    number = {1},
}

This repository was archived on Zenodo upon publication:

DOI

Questions

Please email [email protected] if you have questions about the code.

ed-interaction-mapping's People

Contributors

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