Skip to content

This repository contains the code and the reference tables used in the project, "Classifying Outpatient Activity by Function".

License

Notifications You must be signed in to change notification settings

The-Strategy-Unit/752_classify_op_activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Classifying Outpatient Activity by Function

This repository contains the SQL code, R code, and reference tables used in the Midlands Decision Support Network (MDSN) project, "Classifying Outpatient Activity by Function".

New - To use on SUS tables with SQL

  1. Extract these files to folder on local machine.
  2. Modify (as necessary) and run: sql_option_op.sql and sql_option_ip.sql.
  3. Run 752_master_sql_option.R script.

Outputs a demo csv file (when this parameter set is set as TRUE in 752_master_sql_option.R).

For NCDR

"Master.R" contains instructions and executes other necessary scripts.

Given the relative simplicity of the algorithm, we suggest it could - with moderate effort - be re-written in SQL or in Python. See https://www.midlandsdecisionsupport.nhs.uk/wp-content/uploads/2021/10/dsu_classify_op_appendix_v0.1.pdf for methods.

About

This repository contains the code and the reference tables used in the project, "Classifying Outpatient Activity by Function".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published