Skip to content

Commit

Permalink
Merge pull request #115 from OxfordIHTM/dev
Browse files Browse the repository at this point in the history
standardise cause-of-death spelling: fix #114
  • Loading branch information
ernestguevarra authored Jul 4, 2024
2 parents f11f3dd + 8204b25 commit cbfaaf6
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion R/cod_check_age.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#'
#' Check age values in cause of death data based on CoDEdit rules
#' Check age values in cause-of-death data based on CoDEdit rules
#'
#' @param age_value An integer value or vector of values for age based on the
#' CoDEdit rules.
Expand Down
6 changes: 3 additions & 3 deletions R/cod_check_code.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#'
#' Check cause of death code for code entry mistakes and/or code completeness
#' Check cause-of-death code for code entry mistakes and/or code completeness
#'
#' @param cod A character value or vector of values for cause of death code/s.
#' @param cod A character value or vector of values for cause-of-death code/s.
#' @param version A character value for ICD version used. This should be either
#' *"icd10"* or *"icd11"*. Default is *"icd10"*.
#' @param sex A character value or vector of values for sex of individual
Expand All @@ -10,7 +10,7 @@
#' individual.
#'
#' @returns A tibble with 2 columns/fields. First is an integer value indicating
#' whether there is an issue with the cause of death code provided in relation
#' whether there is an issue with the cause-of-death code provided in relation
#' to a potential code entry mistake and/or and issue of code completeness.
#'
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion R/cod_check_dod.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#'
#' Check date of death value in cause of death data based on CoDEdit rules
#' Check date of death value in cause-of-death data based on CoDEdit rules
#'
#' @param dod Date of death value expressed in terms of the year death
#' occurred.
Expand Down
2 changes: 1 addition & 1 deletion R/cod_check_sex.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#'
#' Check sex values in cause of death data based on CoDEdit rules
#' Check sex values in cause-of-death data based on CoDEdit rules
#'
#' @param sex_value An integer value or vector of values for age based on the
#' CoDEdit rules.
Expand Down
2 changes: 1 addition & 1 deletion R/cod_recode_age_type.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#'
#' Recode age type of cause of death data based on CoDEdit rules
#' Recode age type of cause-of-death data based on CoDEdit rules
#'
#' @param age_type A vector of values for age type based on the CoDEdit rules.
#' This should either be "D" for age in days, "M" for age
Expand Down
2 changes: 1 addition & 1 deletion R/cod_recode_sex.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#'
#' Recode sex value of cause of death data based on CoDEdit rules
#' Recode sex value of cause-of-death data based on CoDEdit rules
#'
#' @param sex_value A character or integer value or vector of values signifying
#' the sex.
Expand Down
12 changes: 6 additions & 6 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@


#'
#' Example raw cause of death dataset
#' Example raw cause-of-death dataset
#'
#' @format A data frame with 6 columns and 20 rows:
#'
Expand All @@ -130,7 +130,7 @@
#' | *id* | Unique identifier |
#' | *sex* | Sex of deceased |
#' | *age* | Age of diseased in years |
#' | *code* | ICD 11 cause of death code |
#' | *code* | ICD 11 cause-of-death code |
#' | *dod* | Date of death |
#' | *dob* | Date of birth |
#'
Expand All @@ -141,7 +141,7 @@


#'
#' Neonate-specific cause of death for ICD 10
#' Neonate-specific cause-of-death for ICD 10
#'
#' @format A data frame with 2 columns and 42 rows:
#'
Expand All @@ -160,7 +160,7 @@


#'
#' Neonate-specific cause of death for ICD 11
#' Neonate-specific cause-of-death for ICD 11
#'
#' @format A data frame with 2 columns and 50 rows:
#'
Expand All @@ -178,7 +178,7 @@


#'
#' Child-specific cause of death for ICD 10
#' Child-specific cause-of-death for ICD 10
#'
#' @format A data frame with 2 columns and 122 rows:
#'
Expand All @@ -197,7 +197,7 @@


#'
#' Child-specific cause of death for ICD 11
#' Child-specific cause-of-death for ICD 11
#'
#' @format A data frame with 2 columns and 149 rows:
#'
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ get_score_combo <- function(scores, labels) {
#' List ill-defined ICD 11 codes
#'
#' @returns An character vector of ICD 11 codes classified as ill-defined for
#' cause of death
#' cause-of-death
#'
#' @examples
#' list_ill_defined_icd11()
Expand Down
4 changes: 2 additions & 2 deletions man/cod_check_age.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/cod_check_code.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/cod_check_dod.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/cod_check_sex.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/cod_data_raw_example.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/cod_recode_age_type.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/cod_recode_sex.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/icd10_cod_child.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/icd10_cod_neonate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/icd11_cod_child.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/icd11_cod_neonate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/list_ill_defined_icd11.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cbfaaf6

Please sign in to comment.