Skip to content
@hsma-programme

HSMA

GitHub Organisation for the NIHR PenARC Health Service Modelling Associates (HSMA) Programme

Welcome to the home of the Health Service Modelling Associates (HSMA) programme on GitHub!

Our GitHub is where you can find all of our slides, code examples, and coding exercises. There are also standalone teaching resources like our Discrete Event Simulation Playground.

HSMA is a 15-month programme of training and mentoring for people working in health, social care and policing in England, covering a range of data science and operational research techniques. We take participants all the way from the basics up to Python through to using discrete event simulation, geographic optimization, machine learning, agent-based simulation, and much more. You can find out more about the programme on our website.

But don't fret if you're not able to apply formally to the course - you can follow along with everything here, and our Youtube Channel houses the the lectures that go with each of these repositories.

All of our training materials are made available Free and Open Source, with most of the content provided under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International [cc-by-nc-sa] License, meaning you are welcome to copy, share and adapt most of our materials - though it's worth checking the individual licence on the repositories.

HSMA has now run for several rounds - archived repositories relate to an earlier run of the programme, but are perfectly fine to refer to if there isn't an active repository covering the same topic!

HSMA Books

We are also producing ebooks of some of our course content.

Check out our Python book, which is designed for absolute beginners to programming in the Python programming language. It will take you from your first code, through data structures, conditional logic, loops, tabular data manipulation and making graphs. It can also be a useful resource for intermediate programmers who haven't previously done object-oriented programming - making it a good primer before going onto our DES book, where we will be writing object-oriented code.

You can check out the Discrete event simulation book to find out all about what discrete event simulation is and how to use the simpy package to create your first simulation model in Python. The book then covers a range of advanced concepts that you may need for real-world models.

Our geographic visualisation and optimization book is in its early stages of development as well - it covers plotting in QGIS and Python, as well as facility location problems, but check back in late 2024 for chapters on multiobjective optimization algorithms and geospatial statistics and outlier detection.

You can also check out our collection of example notebooks on the topic of machine learning.

Finally, our Streamlit Book introduces you to writing and deploying web apps using the beginner-friendly but powerful Streamlit framework - you'll have an interactive and professional-looking web app up in no time!

HSMA Projects

HSMA is all about upskilling people to be able to undertake their own applied data science and operational modelling projects - below are just a handful of the projects our fabulous HSMAs have produced over the years!

Project Code Link Video Link App Link Tags
A Web App for Reducing Travel Times to Treatment for Cardiac Patients in South East England Repository Video App Streamlit; Travel Times
A Discrete Event Simulation tool to model the bottlenecks in an acute medical unit pathway Repository Video Streamlit; Discrete Event Simulation
A tool to automatically generate health equity audits for Community Diagnostic Centres Repository Video Automation
A Service Planning Decision Support Tool to Tackle Inequalities & Minimise Carbon Output Repository Video Automation; Machine Learning
Using Discrete Event Simulation to explore the role of Patient Initiated Follow-Up and 'Digital Outpatients' in supporting the elective recovery Repository Video Discrete Event Simulation
Investigating factors impacting NHS workforce retention Repository Video Automation; Data Cleaning; Regression; Plotly Dash
An open source tool to model waiting lists for elective surgery Repository Video App Streamlit; Discrete Event Simulation
An open source tool to help ICBs allocate additional discretionary funding to GP surgeries consistently and equitably Repository App Streamlit; Automation; Health Equity

You can find out more about our projects on Youtube for HSMA 3, HSMA 4 or HSMA 5, or read about them on our projects page.

Acknowledgements

HSMA is a programme that is conceived, developed, and is supported by the NIHR Applied Research Collaboration South West Peninsula (PenARC) and supported by funding from the NHS Digital Academy.

Pinned Loading

  1. Teaching_DES_Concepts_Streamlit Teaching_DES_Concepts_Streamlit Public

    A streamlit app (running from github pages using the stlite package) for teaching concepts of discrete event simulation, including animated entity flow plots created in Plotly. IMPORTANT NOTE: Work…

    Python 10 5

  2. hsma6_des_book hsma6_des_book Public

    A book summarising the content of the DES module in the HSMA programme and covering additional concepts that wouldn't fit in the course **Work In Progress**

    TeX 2

  3. hsma6_intro_to_python_book hsma6_intro_to_python_book Public

    An ebook covering programming in Python - can be used as a standalone course or as a reference guide for those who are learning python

    HTML

  4. dan_invaders dan_invaders Public

    Destroy the ultimate menace - Dan - in this reimagining of the 1978 Taito arcade classic...

    Python

  5. simpy_visualisation simpy_visualisation Public

    Code for visualising discrete event simulations in python, along with several healthcare-focussed example DES models in simpy

    Python 3 4

  6. hsma6_geographic_optimisation_and_visualisation_book hsma6_geographic_optimisation_and_visualisation_book Public

    A book summarising the content of the geographic optimization and visualision module in the HSMA programme **Work In Progress**

    Jupyter Notebook 3 1

Repositories

Showing 10 of 85 repositories
  • hsma-programme/hsma_site’s past year of commit activity
    EJS 0 1 19 0 Updated Nov 20, 2024
  • hsma6_intro_to_python_book Public

    An ebook covering programming in Python - can be used as a standalone course or as a reference guide for those who are learning python

    hsma-programme/hsma6_intro_to_python_book’s past year of commit activity
    HTML 0 0 0 0 Updated Oct 23, 2024
  • .github Public
    hsma-programme/.github’s past year of commit activity
    0 0 0 0 Updated Oct 23, 2024
  • 8a_quarto_and_reproducible_reporting Public template

    Click on the link below to view instructions for checking your local Quarto install. Alternatively, use 'Use This Template --> Open in a Codespace' to open the examples and exercises in a browser-based version of VSCode.

    hsma-programme/8a_quarto_and_reproducible_reporting’s past year of commit activity
    HTML 0 0 2 0 Updated Oct 16, 2024
  • hsma_project_handbook Public

    Phase 2 (Project) Handbook for HSMA Programme

    hsma-programme/hsma_project_handbook’s past year of commit activity
    HTML 0 1 8 0 Updated Oct 9, 2024
  • h6_7c_web_apps_2 Public template
    hsma-programme/h6_7c_web_apps_2’s past year of commit activity
    Jupyter Notebook 0 0 0 0 Updated Oct 9, 2024
  • 8b_forecasting Public template
    hsma-programme/8b_forecasting’s past year of commit activity
    Jupyter Notebook 0 0 0 0 Updated Oct 1, 2024
  • h6_7b_web_apps_1 Public template

    Click on the website link to view instructions on how to check your Streamlit setup

    hsma-programme/h6_7b_web_apps_1’s past year of commit activity
    HTML 0 2 0 0 Updated Sep 25, 2024
  • h6_6c_abs_part_2 Public

    Materials for HSMA 6 Session 6C

    hsma-programme/h6_6c_abs_part_2’s past year of commit activity
    Python 0 3 0 0 Updated Sep 11, 2024
  • h6_5c_sentiment_analysis Public

    Materials for HSMA 6 Session 5C

    hsma-programme/h6_5c_sentiment_analysis’s past year of commit activity
    Python 0 2 1 0 Updated Aug 12, 2024

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…