// dob Add(Sex($row['sex'])); // gender Add(""); // notes Add($row['street']); // address 1 Add(""); // address2 Add($row['city']); // city Add($row['state']); // state Add($row['postal_code']); // zip Add(Digits($row['phone_home'])); // home phone // Guarantor Section. OpenEMR does not have guarantors so we use the primary // insurance subscriber if there is one, otherwise the patient. // if (trim($row['lname1'])) { Add($row['lname1']); Add($row['fname1']); Add(substr($row['mname1'], 0, 1)); Add($row['sstreet1']); Add(""); Add($row['scity1']); Add($row['sstate1']); Add($row['szip1']); } else { Add($row['lname']);
Add("lname", $row['lname']); Add("fname", $row['fname']); Add("mname", $row['mname']); Add("title", $row['title']); Add("ss", Digits($row['ss'])); Add("dob", LWDate($row['DOB'])); Add("sex", Sex($row['sex'])); Add("street", $row['street']); Add("city", $row['city']); Add("state", $row['state']); Add("zip", $row['postal_code']); Add("country", $row['country_code']); Add("phone_home", Digits($row['phone_home'])); Add("phone_biz", Digits($row['phone_biz'])); Add("phone_contact", Digits($row['phone_contact'])); Add("phone_cell", Digits($row['phone_cell'])); Add("occupation", $row['occupation']); Add("status", $row['status']); Add("contact_relationship", $row['contact_relationship']); Add("referrer", $row['referrer']); Add("referrerID", $row['referrerID']); Add("email", $row['email']); Add("language", $row['language']); Add("ethnoracial", $row['ethnoracial']); Add("interpreter", $row['interpretter']); Add("migrantseasonal", $row['migrantseasonal']); Add("family_size", $row['family_size']); Add("monthly_income", $row['monthly_income']); Add("homeless", $row['homeless']); Add("financial_review", LWDate(substr($row['financial_review'], 0, 10))); Add("genericname1", $row['genericname1']);