Skip to content

Commit

Permalink
Update deaths_cause_of_death.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-stevenson authored Nov 21, 2024
1 parent 840c2b8 commit b4bf2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/curated_assets/deaths_cause_of_death.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permalink: /curated_assets/deaths/deaths_cause_of_death
# Deaths - Cause of Death
<a href="https://github.com/BHFDSC/hds_curated_assets/blob/main/D09-deaths.py" class="btn btn-primary fs-5 mb-4 mb-md-0 mr-2" target="_blank">View code on GitHub</a>

The *deaths_cause_of_death* table is a long format dataframe compiled from the [deaths_single]({% link docs/curated_data/deaths_single.md %}) table. Curation steps are applied such that the final table includes the categorisation of the causes of death (either **underlying** [from S_UNDERLYING_COD_ICD10] or **contributory** [from S_COD_CODE_1,…, S_COD_CODE_15]), and the 3-digit (broad category) and 4-digit (specific category) ICD-10 cause of death codes for the cause of death recorded for each individual. Non-alphanumeric characters are removed from the cause of death codes, and rows where the code column is null, or an empty string, are filtered out, ensuring only valid codes are retained.
The *deaths_cause_of_death* table is a long format dataframe compiled from the [deaths_single]({% link docs/curated_assets/deaths_single.md %}) table. Curation steps are applied such that the final table includes the categorisation of the causes of death (either **underlying** [from S_UNDERLYING_COD_ICD10] or **contributory** [from S_COD_CODE_1,…, S_COD_CODE_15]), and the 3-digit (broad category) and 4-digit (specific category) ICD-10 cause of death codes for the cause of death recorded for each individual. Non-alphanumeric characters are removed from the cause of death codes, and rows where the code column is null, or an empty string, are filtered out, ensuring only valid codes are retained.

The output table includes 5 columns:
- **person_id**
Expand Down

0 comments on commit b4bf2f9

Please sign in to comment.