Referral History

(This would contain all referrals we have send or received.
Referrals would appear in referral history after they have been "Marked completed" in referral slip)

( This shows all of my past referrals )

'; while ($row1 = pg_fetch_row($stmt1)) { $sno = $row1[0]; $refer_to = $row1[1]; $refer_from = $row1[2]; $patient = $row1[3]; $status = $row1[4]; $refer_time = $row1[5]; $date = strtotime($refer_time); $refer_date = date('Y-m-d', $date); $refer_to_name = $row1[6]; $refer_from_name = $row1[7]; $patient_name = $row1[8]; $action_class = ($row1[9] == "internal") ? "call_referral_history" : "view_external_referral"; ?>
Referred from Referred to Patient Date