SELECT A.* FROM Interview AS A, Interview AS B
WHERE
A.UniqueID=B.UniqueID and
A.Date between '2019-09-01' and '2019-11-15' and
A.INpatient=1 and B.INpatient=1 AND
A.Date < B.Date AND
DATEDIFF( B.Date, A.DischargeDate) <= 28
UNION
SELECT B.* FROM Interview AS A, Interview AS B
WHERE
A.UniqueID=B.UniqueID and
A.Date between '2019-09-01' and '2019-11-15' and
A.INpatient=1 and B.INpatient=1 AND
B.Date > A.Date AND
DATEDIFF(B.Date, A.DischargeDate) <= 28
ORDER BY `UniqueID`, `Date` ASC