Dear Statalist users
I have a question regarding the user written charlson program in Stata which I haven't been able to find answer for using the search function.
I have recordings from a database/register regarding admissions and diagnosis related to the admissions. Data are uniquely seperated by a Patient ID (social security number) and date of admission. Patients can be admitted more than once and can have different diagnosis each admission.
If I use -charlson- command it will calculate the total comorbidity index for each unique Patient ID. I would like to calculcate the specific comorbidity index for each admission.
Example:
Patient A admitted 01.01.01 diagnosed with Acute myocardial infarction.
(charlson comorbidity index at this date should be calculcated from all admissions prior to 01.01.01)
Patient A admitted 02.02.02 diagnosed with urinary tract infection.
(charlson comorbidity index at this date should be calculcated from all admissions prior to 02.02.02 and is therefore a higher value than the charlson index for admission 01.01.01)
Is there a way to calculate seperate charlson comorbidity index for each admission?
Hope someone can help me.
I have a question regarding the user written charlson program in Stata which I haven't been able to find answer for using the search function.
I have recordings from a database/register regarding admissions and diagnosis related to the admissions. Data are uniquely seperated by a Patient ID (social security number) and date of admission. Patients can be admitted more than once and can have different diagnosis each admission.
If I use -charlson- command it will calculate the total comorbidity index for each unique Patient ID. I would like to calculcate the specific comorbidity index for each admission.
Example:
Patient A admitted 01.01.01 diagnosed with Acute myocardial infarction.
(charlson comorbidity index at this date should be calculcated from all admissions prior to 01.01.01)
Patient A admitted 02.02.02 diagnosed with urinary tract infection.
(charlson comorbidity index at this date should be calculcated from all admissions prior to 02.02.02 and is therefore a higher value than the charlson index for admission 01.01.01)
Is there a way to calculate seperate charlson comorbidity index for each admission?
Hope someone can help me.
Comment