| Literature DB >> 34141876 |
Yi-Ju Tseng1,2, Hsiang-Ju Chiu3, Chun Ju Chen3,4.
Abstract
BACKGROUND: Enriched electronic health records (EHRs) contain crucial information related to disease progression, and this information can help with decision-making in the health care field. Data analytics in health care is deemed as one of the essential processes that help accelerate the progress of clinical research. However, processing and analyzing EHR data are common bottlenecks in health care data analytics.Entities:
Keywords: Analysis-ready data; Electronic health records; Exploratory data analysis; R package
Year: 2021 PMID: 34141876 PMCID: PMC8176530 DOI: 10.7717/peerj-cs.520
Source DB: PubMed Journal: PeerJ Comput Sci ISSN: 2376-5992
Figure 1Overview of the dxpr package.
The first five diagnosis records of the sample dataset.
| A2 | Z992 | 2020-05-22 |
| A5 | Z992 | 2020-01-24 |
| A8 | Z992 | 2015-10-27 |
| A13 | Z992 | 2020-04-26 |
| A13 | Z992 | 2025-02-02 |
Grouping results from grouping functions—icdDxToCCS.
| Short | ccs_categories_description | |||
|---|---|---|---|---|
| 78550 | A | 78550 | 2014/10/01 | Shock |
| 78552 | A | 78552 | 2013/10/01 | Shock |
| 78559 | A | 785.59 | 2013/09/01 | Shock |
| 78552 | B | 78552 | 2013/09/01 | Shock |
| 25000 | B | 250.00 | 2012/07/01 | Diabetes mellitus without complication |
| 25000 | B | 250.00 | 2012/05/01 | Diabetes mellitus without complication |
Summarized results from grouping functions—icdDxToCCS.
| ID | Categories | FirstCaseDate | EndCaseDate | Count | Period |
|---|---|---|---|---|---|
| A | Shock | 2013/09/01 | 2014/10/01 | 3 | 395 days |
| B | Diabetes mellitus without complication | 2012/05/01 | 2012/07/01 | 2 | 62 days |
| B | Shock | 2013/09/01 | 2013/09/01 | 1 | 0 days |
Figure 2Bar chart to visualize the statistically significant difference of diagnostic categories between patients with and without PDA, grouped by the AHRQ-defined comorbidities.
PDA, patent ductus arteriosus; AHRQ, Agency for Healthcare Research and Quality; FluidsLytes, Fluid and electrolyte disorders; Valvular: valvular disease; CHF, congestive heart failure; HTN, hypertension, uncomplicated; Hypothyroid: hypothyroidism; NeuroOther, other neurological disorders; PHTN, pulmonary circulation disorders.
Summary of AHRQ-defined comorbidities based on the tableone package using the integrated data generated by the dxpr package.
| 7452 | 381 | ||
| Coagulopathy (%) | 7 (0.1) | 4 (1.0) | <0.001 |
| Congestive heart failure (%) | 4 (0.1) | 9 (2.4) | <0.001 |
| Deficiency anemias (%) | 2 (0.0) | 1 (0.3) | 0.342 |
| Depression (%) | 1 (0.0) | 0 (0.0) | 1 |
| Diabetes, complicated (%) | 2 (0.0) | 0 (0.0) | 1 |
| Fluid and electrolye disorders (%) | 43 (0.6) | 19 (5.0) | <0.001 |
| Hypertension, complicated (%) | 2 (0.0) | 0 (0.0) | 1 |
| Hypertension, uncomplicated (%) | 6 (0.1) | 6 (1.6) | <0.001 |
| Hypothyroidism (%) | 5 (0.1) | 5 (1.3) | <0.001 |
| Other neurological disorders (%) | 4 (0.1) | 4 (1.0) | <0.001 |
| Peripheral vascular disorders (%) | 1 (0.0) | 0 (0.0) | 1 |
| Pulmonary circulation disorders (%) | 1 (0.0) | 3 (0.8) | <0.001 |
| Renal failure (%) | 1 (0.0) | 0 (0.0) | 1 |
| Solid tumor without metastasis (%) | 1 (0.0) | 0 (0.0) | 1 |
| Valvular disease (%) | 10 (0.1) | 5 (1.3) | <0.001 |
| Weight loss (%) | 2 (0.0) | 0 (0.0) | 1 |
Notes.
AHRQ: Agency for Healthcare Research and Quality.
PDA: patent ductus arteriosus.
Functions in the dxpr package.
| icdDxShortToDecimal | Transform ICD |
| icdDxDecimalToShort | Transform ICD diagnostic codes into short format |
| icdDxToCCS | Group ICD diagnostic codes into single CCS |
| icdDxToCCSLvl | Group ICD diagnostic codes into multiple CCS category |
| icdDxToComorbid | Group ICD diagnostic codes into comorbidity category (Elixhauser, Charlson, and AHRQ) |
| icdDxToPheWAS | Group ICD diagnostic codes into PheWAS |
| icdDxToCustom | Group ICD diagnostic codes into customized grouping category based on precise method |
| icdDxToCustomGrep | Group ICD diagnostic codes into customized grouping category based on fuzzy method |
| selectCases | Query matching cases in the EHR |
| splitDataByDate | Query data by a clinical event |
| patientRecordDate | Query the earliest/latest admission date for each patient. |
| getConditionEra | Calculate condition era by grouped categories of each patient. |
| groupedDataLongToWide | Convert long format of grouped data into wide format for analytical and plotting functions |
| plotICDError | Pareto chart of error ICD list |
| plotDiagCat | Bar chart of diagnostic categories |
| icdPrToCCS | Group ICD procedure codes into single CCS category |
| icdPrToCCSLvl | Group ICD procedure codes into multiple CCS category |
| icdPrToProcedureClass | Group ICD procedure codes into procedure class category |
Notes.
ICD, International Classification of Diseases.
CCS, Clinical Classifications Software.
PheWAS, Phenome Wide Association Studies.
EHR, Electronic Health Record.