-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90b8bec
commit 5802e79
Showing
13 changed files
with
195 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Appendix G Diagnoses Defined as Complications or Comorbidities | ||
# | ||
# Diagnoses in Appendix G are considered complications or comorbidities (CC) | ||
# except when used in conjunction with the principal diagnosis in the | ||
# corresponding CC Exclusion List in Appendix C. | ||
|
||
|
||
library(tidyverse) | ||
|
||
path_G <- "C:/Users/Andrew/Desktop/payer_guidelines/data/MSDRG/MSDRGv41.1ICD10_R0_DefinitionsManual_TEXT_0/appendix_G.txt" | ||
|
||
g_file <- readr::read_table( | ||
path_G, | ||
skip = 0, | ||
col_names = FALSE) |> | ||
dplyr::mutate(dx_type = "CC", | ||
X1 = pathologie::add_dot(X1)) |> | ||
tidyr::unite("icd_description", X2:X9, na.rm = TRUE, sep = " ") |> | ||
dplyr::rename(icd_code = X1) | ||
|
||
# Update Pin | ||
board <- pins::board_folder(here::here("inst/extdata/pins")) | ||
|
||
board |> pins::pin_write( | ||
g_file, | ||
name = "msdrg_icd_ccs_41.1", | ||
title = "Appendix G Diagnoses Defined as Complications or Comorbidities 41.1", | ||
description = c( | ||
"Diagnoses in Appendix G are considered complications or comorbidities (CC) except when used in conjunction with the principal diagnosis in the corresponding CC Exclusion List in Appendix C." | ||
), | ||
type = "qs" | ||
) | ||
|
||
board |> pins::write_board_manifest() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Appendix H Diagnoses Defined as Major Complications or Comorbidities | ||
# | ||
# Diagnoses in Appendix H Part I are considered major complications or | ||
# comorbidities (MCC) except when used in conjunction with the principal | ||
# diagnosis in the corresponding CC Exclusion List in Appendix C. In addition to | ||
# the CC exclusion list, the diagnoses in Part II are assigned as a major CC | ||
# only for patients discharged alive, otherwise they will be assigned as a non | ||
# CC. | ||
|
||
|
||
library(tidyverse) | ||
|
||
path_h1 <- "C:/Users/Andrew/Desktop/payer_guidelines/data/MSDRG/MSDRGv41.1ICD10_R0_DefinitionsManual_TEXT_0/appendix_H_1.txt" | ||
|
||
h1_file <- readr::read_table( | ||
path_h1, | ||
skip = 0, | ||
col_names = FALSE) |> | ||
dplyr::mutate(dx_type = "MCC", | ||
X1 = pathologie::add_dot(X1)) |> | ||
tidyr::unite("icd_description", X2:X3, na.rm = TRUE, sep = " ") |> | ||
dplyr::rename(icd_code = X1) | ||
|
||
# Update Pin | ||
board <- pins::board_folder(here::here("inst/extdata/pins")) | ||
|
||
board |> pins::pin_write( | ||
h1_file, | ||
name = "msdrg_icd_mccs_41.1", | ||
title = "Appendix H Diagnoses Defined as Major Complications or Comorbidities 41.1", | ||
description = c( | ||
"Diagnoses in Appendix H Part I are considered major complications or comorbidities (MCC) except when used in conjunction with the principal diagnosis in the corresponding CC Exclusion List in Appendix C. In addition to the CC exclusion list, the diagnoses in Part II are assigned as a major CC only for patients discharged alive, otherwise they will be assigned as a non CC." | ||
), | ||
type = "qs" | ||
) | ||
|
||
board |> pins::write_board_manifest() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
inst/extdata/pins/msdrg_icd_ccs_41.1/20240417T083635Z-0c4a4/data.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
file: msdrg_icd_ccs_41.qs | ||
file_size: 102992 | ||
pin_hash: 0c4a423d52bd6b86 | ||
type: qs | ||
title: Appendix G Diagnoses Defined as Complications or Comorbidities 41.1 | ||
description: Diagnoses in Appendix G are considered complications or comorbidities | ||
(CC) except when used in conjunction with the principal diagnosis in the corresponding | ||
CC Exclusion List in Appendix C. | ||
tags: ~ | ||
urls: ~ | ||
created: 20240417T083635Z | ||
api_version: 1 |
Binary file added
BIN
+101 KB
inst/extdata/pins/msdrg_icd_ccs_41.1/20240417T083635Z-0c4a4/msdrg_icd_ccs_41.qs
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
inst/extdata/pins/msdrg_icd_mccs_41.1/20240417T082757Z-dc7a7/data.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
file: msdrg_icd_mccs_41.qs | ||
file_size: 13433 | ||
pin_hash: dc7a76ff31084a35 | ||
type: qs | ||
title: Appendix H Diagnoses Defined as Major Complications or Comorbidities 41.1 | ||
description: Diagnoses in Appendix H Part I are considered major complications or | ||
comorbidities (MCC) except when used in conjunction with the principal diagnosis | ||
in the corresponding CC Exclusion List in Appendix C. In addition to the CC exclusion | ||
list, the diagnoses in Part II are assigned as a major CC only for patients discharged | ||
alive, otherwise they will be assigned as a non CC. | ||
tags: ~ | ||
urls: ~ | ||
created: 20240417T082757Z | ||
api_version: 1 |
Binary file added
BIN
+13.1 KB
inst/extdata/pins/msdrg_icd_mccs_41.1/20240417T082757Z-dc7a7/msdrg_icd_mccs_41.qs
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.