Hi there,
I am creating a database for calculating waiting times for patients. I would like to separate out inpatient (IP) and outpatient (OP) waiting times and calculate the times based on different conditions. I have attached an example database.
The different conditions are:
1. If the patient is an IP (column B) and has both a referral date (column C) and an appointment date (column E), then their waiting time (column F) is the time between the 2 dates (see Robin Hood). If the IP has a referral date, but not yet an appointment date then the waiting time is from the referral date to present time (Jon Carrot). If the IP does not have a referral date or an appt date then I would like their waiting time cell to remain blank (Susie Bone). And finally, in the IP waiting time column I only want waiting times for the IP's, for any OP's I would like the cells in this column to remain blank.
2. If the patient is an OP and has both an opt in date (column D) and an appointment date, then their waiting time is the time between the 2 dates (Jane Kane). If the OP has an opt in date, but not yet an appointment date then the waiting time is from the referral date to present time (Des Line) If the OP does not have an opt in date or an appt date then I would like their waiting time cell to remain blank. (Chip Smith). And finally, in the OP waiting time column I only want waiting times for the OP's, for any IP's I would like the cells in this column to remain blank.
Thanks very much
Sophy
Bookmarks