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
Testing for autocorrelation in a logistic regression analysis with panel dataI am trying scrutinize the relationship between regimetypes (political regimes eg. closed autocracy,…
Spatial matrix user definesDear All, I would like to generate a spatial matrix defined by myself. I have the following data: …
Merger of datasets with different data frequencyHi everyone, I have to merge two datasets: "Monthly data" and "Fundamentals quarterly". The first …
Difference between Intraclass Correlation and Within R-SquaredHi, I am running the following fixed effects model: xtset acode qdate xtreg recycling loginc logpop…
Multilevel Model with ESS Data (Survey Data) doesn't convergeTo whom it may concern, I try to calculate a multilevel model for the effect of migration integrati…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating total length of stay with concurrent encounters
Post a Comment