+ Reply to Thread
Results 1 to 8 of 8

Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model

  1. #1
    Registered User
    Join Date
    04-30-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    4

    Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model

    Hi Guys,
    I am actually struggling to create a calculated column "Readmitted (Y/N)" for the list of patients who are admitted to a specific care unit, in a hospital-setting for a specific time period (Say: 01Jan2018 to 31March2018). The Criteria for readmitted (Yes) is: If the Patient is admitted to the care Unit more than once, during the same hospital stay (meaning: Hospital Admit Date remain the same, whilst Care Unit Admit Date are multiple).

    For instance: I have 2 tables- one an identifier table with unique lists of PatientID(dIdentifiers) and a fact table (fDATA) with the list of admissions to a unit/department within a hospital. The tables are linked together with the common column "PATIENTID", and the table looks like this:

    PATIENTID__________________HospitalAdmitDate____CareUnitAdmitDate___CareUnitDischargeDate____HospitalDischargeDate_______Readmitted (Y/N)
    3________________________25-01-18 9:30_______25-01-18 10:02______27-01-18 10:49_________ 05-02-18 11:15
    2_________________________20-03-18 18:46______20-03-18 19:01______21-03-18 13:40_________21-03-18 13:40
    1_________________________15-02-18 14:34______17-02-18 11:30______18-02-18 18:00_________18-02-18 18:00
    5________________________05-01-18 0:43________13-01-18 16:00______17-01-18 13:41________19-03-18 16:15
    5________________________05-01-18 0:43________27-01-18 21:43______29-01-18 13:16________19-03-18 16:15
    4_________________________23-11-17 21:45_______17-01-18 15:07______19-01-18 15:30_________26-01-18 17:10
    8_________________________13-02-18 19:27_______22-02-18 14:15______24-02-18 12:08_________27-02-18 14:00
    8_________________________30-01-18 11:55_______24-02-18 10:27______26-02-18 10:43_________06-04-18 9:04
    7_______________________23-01-18 12:58_______23-01-18 17:00______25-01-18 14:02_________27-01-18 17:45
    10________________________22-01-18 6:41________23-01-18 12:15______24-01-18 14:30_________31-01-18 12:40
    10________________________22-01-18 6:41________22-01-18 12:50______23-01-18 10:00_________23-01-18 10:20
    11_______________________08-02-18 13:44_______09-02-18 14:26______12-02-18 15:40_________16-02-18 20:30
    9_______________________27-02-18 11:14_______27-02-18 18:07______01-03-18 7:04___________02-03-18 15:28

    Now, I want to create a separate calculated column "Readmitted(Y/N)" based on the criteria that if a case of admission (represented by each row) occurs more than once, during the same hospital stay (rows having the same hospital admit date, but a varying CareUnitAdmitDate, which is after the HospitalAdmitDate). In above table, the latter rows of Patient ID 5 (Anthony) and Patient ID 10 (Christi) are 'readmit cases' as they reappear under the same patient within the same "HospitalAdmitDate". I tried creating few 'measures', and a calculated column using the 'CALCULATE, FILTER Functions', but still couldn't get the value (Y=For Readmit case/row,N=For non-readmit case/row) for the "Readmitted" calculated column.
    Could anyone have a solution to this please?
    Last edited by kam77; 05-09-2018 at 05:37 AM. Reason: To improve the display of table's contents

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model

    Not saying I'll answer this but that table's difficult to read.

    Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    04-30-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model

    Hi Special-K,
    Thank you for your initiative for a help. Now, I have somewhat tried to make the table look better, by using "_". I tried uploading the spreadsheet, but for some reason, couldn't get thru getting it uploaded in this forum. Nonetheless, I would really appreciate, if you could help on solving my issue (ie, to create a new calculated column-"readmitted (Y/N)" in an excel (?using 'data model') based on the SAMPLE table I have shared above).
    Thanks in advance.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Quang PT

  5. #5
    Registered User
    Join Date
    04-30-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model

    Hi Guys,
    I am actually struggling to create a calculated column "Readmitted (Y/N)" for the list of patients who are admitted to a specific care unit, in a hospital-setting for a specific time period (Say: 01Jan2018 to 31March2018). The Criteria for readmitted (Yes) is: If the Patient is admitted to the care Unit more than once, during the same hospital stay (meaning: Hospital Admit Date remain the same, whilst Care Unit Admit Date are multiple).

    For instance: I have 2 tables- one an identifier table with unique lists of PatientID(dIdentifiers) and a fact table (fDATA) with the list of admissions to a unit/department within a hospital. The tables are to be linked together with the common column "PATIENTID" (Primary key on table "dIdentifers"). The SAMPLE table (with de-identified data) is attached (.xls file):

    Now, I want to create a separate calculated column "Readmitted(Y/N)" based on the criteria that if an episode of admission (represented by each row) occurs more than once, during the same hospital stay (rows having the same hospital admit date, but a varying CareUnitAdmitDate after the HospitalAdmitDate) then, its considered 'readmitted'. I tried creating few 'measures', and a calculated column using the 'CALCULATE, FILTER Functions', but still couldn't get the value (Y=For Readmit case/row,N=For non-readmit case/row) for the "Readmitted" calculated column.

    Would like to request for a solution please.

    Thank you
    Last edited by kam77; 05-12-2018 at 10:01 PM.

  6. #6
    Registered User
    Join Date
    04-30-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model

    Quote Originally Posted by bebo021999 View Post
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Hi Quang PT,
    I have uploaded the sheet as suggested. Now Looking forward for the help.
    Thanks,
    Kamal

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model

    Hi kam77. Welcome to the forum.

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Please see next post.
    Last edited by FlameRetired; 05-09-2018 at 07:55 PM.
    Dave

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Generate a calculated column to capture patient "Readmitted (Y/N)", in a data Model

    I needed to read the instructions more carefully.

    There are two thought errors in my previous formula. It needs an extra test.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 10-19-2017, 10:37 AM
  2. Replies: 11
    Last Post: 09-24-2017, 11:53 AM
  3. Replies: 0
    Last Post: 05-30-2017, 04:48 PM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. Replies: 1
    Last Post: 08-20-2016, 01:59 AM
  6. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  7. Replies: 9
    Last Post: 09-05-2012, 10:23 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1