Hello,
I am trying to calculate a person's total hospital stay but there are multiple encounters (claims) that take place within the same date window.
claim person date1 date2
1 789 2012-02-05 2012-02-08
2 789 2012-02-06 2012-02-07
3 789 2012-02-27 2012-02-29
Person 789 has an encounter that takes place from 2.5.2012 to 2.8.2012 = 4 days. However there is an additional claim that takes place during that time period. I don't want to count Claim 2, as those dates are already captured in Claim 1.
Person 789 has a hospital stay during Claim 3, from 2.27.12 - 2.29.12 = 3 days.
My goal is to calculate a total number of days -- therefore I do not want to count Claim 2 (2 days).
Thanks for any advice.
Related Posts with Calculating total length of stay with concurrent encounters
Continuous vs binary independent variable in logistic regressionI'm new to statistics and coding so apologize if this is a dumb question but here it goes: I'm runni…
Workaround for suest restriction on brr [r(322)]?Hi Everyone, I have survey data that uses brr for its error estimation. I would like to compare the…
How to create a new binary variable (0-1) based on some conditions in Stata?input id t1 t2 t3 1 1.5 1.4 1.6 2 1.5 . 1.9 3 . 2.0 1.6 4 . . 2.2 5 1.9 2.1 2 6 1.8 2.0 1.9 7 . . . …
How to create a varaible based on each value of existing variable in did_imputation?I have the Syntax of did_imputation is as below Array I am wondering how to create the variable Ei.…
How to convert the reg command to reghdfe code in controlling three dimensions?How to convert this code controlling for three ways fixed effect to reghdfe code? Code: reg y x i.…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating total length of stay with concurrent encounters
Post a Comment