Skip to content

🏥 Compare ICD Code Lists & Generate HTML Report with knitr #2

@dlemas

Description

@dlemas

📌 Issue Description

We need to compare two lists of ICD codes using R and generate an HTML report using knitr to summarize the differences. The report will identify missing codes that need to be requested from the Integrated Data Repository (IDR) (IDR UF Health).

🔹 Task Overview

  1. Input Data:

    • List A: smm_codes_we_have.csv: ICD codes we currently have.
    • List B: smm_codes_oneflorida.csv: ICD codes available from the IDR.
  2. Goal:

    • Identify which codes in List A are not present in List B.
    • Output a formatted HTML report summarizing findings.

📊 Expected Output

  • A structured HTML report containing:
    • Overview of the analysis.
    • Summary table (total and missing ICD codes).
    • A downloadable CSV file of missing codes.
    • code will be uploaded to the "task_02_2025" directory

🔧 Suggested Approach

  1. Load both lists in R (read.csv() or readxl::read_excel()).
  2. Use setdiff() to find missing ICD codes:
    missing_codes <- setdiff(list_a$ICD_Code, list_b$ICD_Code)
    

Metadata

Metadata

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions