CAPRE for the Classroom
An ICU team can lower a pressure-injury score by editing a lab count. Would the same patient benefit? Compare that edit with a scheduled turning visit in a 75-minute R or Python workshop.
The 75-minute session
| Minutes | Class activity |
|---|---|
| 0–8 | Meet ICU-0486 and name the two proposed changes. |
| 8–20 | Trace the path from severity to testing and injury. |
| 20–32 | Compare four searches and follow a turn through tissue tolerance. |
| 32–42 | Price a shared visit and calculate its effort coordinates. |
| 42–52 | Read learner disagreement and local effective sample size. |
| 52–67 | Work the first four exercises in pairs. Save your predicted changes. |
| 67–75 | Reveal the oracle in exercise 5 and explain one discrepancy. |
Start the student worksheet
Extract the whole kit and choose a language track. Work through exercises 1 to 4 on the 600 simulated stays (seed 20261128) before opening the oracle key.
R workshop
Open r-workshop/student-worksheet.Rmd in RStudio with r-workshop/ as the working directory. Uses standard R and jsonlite.
Python workshop
Open python-workshop/student_workshop.ipynb in Jupyter with python-workshop/ as the kernel directory. Uses NumPy, pandas and scikit-learn.
The cohort and the reveal
Fit the models to the teaching cohort (CSV). The surveillance counts can predict injury because they reflect hidden severity. Their role changes when a search treats them as actions.
After exercise 4: reveal the oracle key and run the automated audit
Match each flagged stay to its oracle answer key (CSV). Check the action, starting risk, threshold and budget. The R solutions and Python solutions work through all five exercises, and the command-line scripts write the full graded tables and comparison plot to output/:
R automated audit
cd r-workshop
Rscript class-lab.R output
Python automated audit
cd python-workshop
python class_lab.py --output-dir output