Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Calculating 30 day hospital readmission rates for unique patients

jcoranx1
5 - Atom

 

MRNAdmitDateDischargeDate
22019-01-052019-01-07
22019-01-302019-02-03
32019-11-202019-11-25
42019-05-122019-05-15
42019-05-192019-05-26
42019-07-292019-08-04
52019-04-082019-04-14
62019-03-092019-03-13
62019-03-182019-03-23
62019-08-012019-08-09

 

I am trying to calculate 30 day readmission rates for unique patients in a large dataset. I am familiar with how to use the datetime difference formula to calculate length of stay or 30 day intervals between a discharge and admit date. Where I am stuck, is how to calculate the 30 day readmission rates with the condition of unique patient identifiers?

 

I included dummy data with similar structure to see if anyone on the forums can assist me. Is anyone able to walk me through the tool or code that can accomplish this?

10 REPLIES 10
joshuaburkhow
ACE Emeritus
ACE Emeritus

When you say "with the condition of unique patient identifiers" What does that mean exactly that you just want to calc the readmissions by individual patient? 

Joshua Burkhow - Alteryx Ace | Global Alteryx Architect @PwC | Blogger @ AlterTricks
jcoranx1
5 - Atom

Correct. I would like to flag (column with a 0 and 1) acute admissions encounters for each 30 day readmission event per unique patient. This will help me identify the total number of readmissions (for network and by patient) when calculated across the entire data set.

afv2688
16 - Nebula
16 - Nebula

Hello @jcoranx1,

 

This gives you the amount of times somebody has been readmitted in the last 30 days. Not perfect but kinda works? lol:

 

Untitled.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

jcoranx1
5 - Atom

This solution was close to what I am looking for, but not quite the exact result. I placed an example of the new column (Readmit30dayFlag) I am trying to create in the table below. It flags the readmit encounter as a 30 day readmission for the unique patient, but it requires the qualifying event to populate a "1" in the readmission flag column. 

 

Qualifying event is an acute hospital admission within 30 days of discharge for the same patient. 

 

MRNAdmitDateDischargeDateReadmit30dayFlag
22019-01-052019-01-070
22019-01-302019-02-031
32019-11-202019-11-250
42019-05-122019-05-150
42019-05-192019-05-261
42019-07-292019-08-040
52019-04-082019-04-140
62019-03-092019-03-130
62019-03-182019-03-231
62019-08-012019-08-090
afv2688
16 - Nebula
16 - Nebula

Hello @jcoranx1 ,

 

Here you go!:

 

Untitled.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

OllieClarke
15 - Aurora
15 - Aurora

Hi @jcoranx1 I think this workflow does what you're after (flagging admittances that are <=30 days since a MRN's last discharge)

OllieClarke_0-1580131367561.png

 

Hope that helps,

 

Ollie

jcoranx1
5 - Atom

This workflow is what I was looking for and is simplified. Will mark as solution. I like the previous discharge date field and will be keeping that in the data model for reporting purposes. 

 

Thanks!

artism
5 - Atom

Thank you! This is very help! How would you include the actual number of days in took for the patient to be read admitted? I would like for the column to have a number instead of a true or false. 

DonnaB
5 - Atom

I'm a student and having a hard time following the pics. Can you provide the formula for the creating the column Readmit 30day Flag?

Labels