diff --git a/NEWS.md b/NEWS.md index c999345..758ead1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -11,8 +11,8 @@ and `diagnosis_end` and take advantage of clinical systems such as problem lists variables if present - Changed the `inpatient_diagnoses` mock dataset to removed episode start and end fields [#103](https://github.com/ramses-antibiotics/ramses-package/issues/103) which duplicated information in `inpatient_episodes` -- Changed bridge table functions to include a field `antiinfective_type` [#76](https://github.com/ramses-antibiotics/ramses-package/issues/76) and -prevent some issues [#104](https://github.com/ramses-antibiotics/ramses-package/issues/104) +- Changed `bridge_*()` functions to add a field `antiinfective_type` to bridge tables [#76](https://github.com/ramses-antibiotics/ramses-package/issues/76) and prevent +unrelated generation issues [#104](https://github.com/ramses-antibiotics/ramses-package/issues/104) - General code maintenance and adaptation to ongoing changes to the `dplyr` data masking approach [#105](https://github.com/ramses-antibiotics/ramses-package/issues/105). diff --git a/R/validate_data.R b/R/validate_data.R index aff21e5..e56013f 100644 --- a/R/validate_data.R +++ b/R/validate_data.R @@ -648,7 +648,7 @@ validate_inpatient_episodes <- function(patients, #' \item{\code{category_description}}{full text descriptions of three-character heading codes} #' } #' -#' *Note*: \code{\link[Ramses]{import_icd}()} can produce this lookup data frame from +#' \strong{Note}: \code{\link[Ramses]{import_icd}()} can produce this lookup data frame from #' a standard ICD release archive file. #' #' @return A logical value indicating success diff --git a/data-raw/inpatient_episodes.R b/data-raw/inpatient_episodes.R index e6bab6b..d1783f9 100644 --- a/data-raw/inpatient_episodes.R +++ b/data-raw/inpatient_episodes.R @@ -48,7 +48,9 @@ inpatient_episodes <- dplyr::select( -surname, -sex, -ethnic_group, - -age_on_admission + -age_on_admission, + -date_of_birth, + -date_of_death ) for (i in which(vapply(inpatient_episodes, is, class2 = "POSIXct", FUN.VALUE = logical(1)))) { diff --git a/data/inpatient_episodes.rda b/data/inpatient_episodes.rda index 2d09771..66cc3cc 100644 Binary files a/data/inpatient_episodes.rda and b/data/inpatient_episodes.rda differ diff --git a/man/validate_inpatient_diagnoses.Rd b/man/validate_inpatient_diagnoses.Rd index f3fc4c7..8a8a2a4 100644 --- a/man/validate_inpatient_diagnoses.Rd +++ b/man/validate_inpatient_diagnoses.Rd @@ -66,7 +66,7 @@ will use episode start and end dates from the \code{inpatient_episodes} table in \item{\code{category_description}}{full text descriptions of three-character heading codes} } -*Note*: \code{\link[Ramses]{import_icd}()} can produce this lookup data frame from +\strong{Note}: \code{\link[Ramses]{import_icd}()} can produce this lookup data frame from a standard ICD release archive file. }