The-Strategy-Unit / The-Strategy-Unit/nhp_data
Treatment/Investigation codes flipped in A&E "Is Discharged with No Treatment or Investigations"
Open
@tomjemmett is already working on this.
Since Sep 16, 2026.
bug
priority: should
- Dominant language
- Python
- Stars
- 2
- Forks
- 3
- Avg merge
- 17h 57m
- Merged PRs (30d)
- 7
Description
| Code | Treatment | Investigation |
|---|---|---|
| 22 | Guidance/advice only | Dental investigation |
| 24 | Tetanus | None |
| 99 | None | Other |
should be
df_treatments = (
spark.read.table(table_names.hes_aae_treatments)
.filter(~F.col("treatment").isin(["22", "99"])
.select("aekey", "fyear", "procode3")
)
df_investigations = (
spark.read.table(table_names.hes_aae_investigations)
.filter(F.col("investigation") != "24")
.select("aekey", "fyear", "procode3")
)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.