Title: Visualization for PheCode Mapping with ICD-9 and ICD-10-CM Codes
Version: 0.1.0
Description: To build a shiny app for visualization of the hierarchy of PheCode Mapping with International Classification of Diseases (ICD). The same PheCode hierarchy is displayed in two ways: as a sunburst plot and as a tree.
License: GPL (≥ 3)
Imports: collapsibleTree, config (≥ 0.3.1), dplyr, DT, golem (≥ 0.3.1), plotly, purrr, readr, rintrojs, shinycssloaders, shinydashboard, shinydashboardPlus
Depends: R (≥ 3.5.0), shiny (≥ 1.6.0), shinyBS
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
URL: https://github.com/celehs/phecodemap
BugReports: https://github.com/celehs/phecodemap/issues
Suggests: rmarkdown, knitr, shinytest, testthat (≥ 3.0.0)
VignetteBuilder: knitr
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2022-01-13 09:43:05 UTC; hui
Author: PARSE LTD [cre, aut]
Maintainer: PARSE LTD <software@parse-health.org>
Repository: CRAN
Date/Publication: 2022-01-15 09:02:44 UTC

Mappings of PheCodes to ICD codes.

Description

A dataset containing the mappings of PheCodes to ICD-9 and ICD-10-cm Codes.

Usage

icdmap

Format

A data frame with 106393 rows and 6 variables:

ICD_version

ICD version, ICD-9 or ICD-10-cm

ICD_id

ICD-9 and ICD-10-cm Codes

ICD_str

Description of ICD Codes

Phecode

PheCode ID

Phenotype

Description of PheCode ID

Rollup

Rollup

Source

https://phewascatalog.org/


Run the Shiny Application

Description

Run the Shiny Application

Usage

run_app(
  onStart = NULL,
  options = list(),
  enableBookmarking = "server",
  uiPattern = "/",
  ...
)

Arguments

onStart

A function that will be called before the app is actually run. This is only needed for shinyAppObj, since in the shinyAppDir case, a global.R file can be used for this purpose.

options

Named options that should be passed to the runApp call (these can be any of the following: "port", "launch.browser", "host", "quiet", "display.mode" and "test.mode"). You can also specify width and height parameters which provide a hint to the embedding environment about the ideal height/width for the app.

enableBookmarking

Can be one of "url", "server", or "disable". The default value, NULL, will respect the setting from any previous calls to enableBookmarking(). See enableBookmarking() for more information on bookmarking your app.

uiPattern

A regular expression that will be applied to each GET request to determine whether the ui should be used to handle the request. Note that the entire request path must match the regular expression in order for the match to be considered successful.

...

arguments to pass to golem_opts. See '?golem::get_golem_options' for more details.

Value

A shiny application.

Examples

if (interactive()) {
  run_app()
}