Skip to content

Question: Why the ICD-10 codes did not get properly handled? #11

@XuejingJiang

Description

@XuejingJiang

Dear Adam,

I was trying to apply the cat_trauma function on a wide-shaped, properly-prefixed dataset with only ICD-10 codes. But I keep running into an issue that none of the ICD-10 codes has returned a valid issbr, and therefore result in RISS to be zero for all the observations/patients.

For example, the following code was applied to my dataset:
dad_01 <- cat_trauma(df=temp,dx_pre = "DIAG_CODE_" ,calc_method = 1, icd10 = T,i10_iss_method = "roc_max")

Note that, all the ICD-10 codes in my dataset are formatted with no decimal points nor letter "A" in the eighth position. An example of the codes of my data is shown in the following picture.
image

In order to troubleshoot this issue, I made the following effort:

  • manually formating the ICD-10 codes to have decimal point on the 4th place, "A" on the 8th place, and re-run the cat_trauma function on the altered dataset. This did not help me to clear the problem (as attached below: row3 and row4 have exactly the same information as row1 and row2 with the ICD-10 codes formatted as wanted)
    image

  • I have made sure that all the ICD-10 codes are recorded as characters (not factors)

  • tried different parameters for the cat_trauma function (e.g. let i10_iss_method = "roc_max"/"gen_min"/"gen_max"); again nothing helped

Could you please help me to figure out what I missed to result in such issue, or what steps I can take to deal with this issue?

Thank you a lot,
Xuejing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions