Example #1
0
        public static Appointment FromRAppointment(this Appointment appt, RA.Patient patient)
        {
            appt.Address1 = patient.address1;
            appt.Address2 = patient.address2;
            appt.Cellphone = patient.cellphone;
            appt.City = patient.city;
            appt.Country = patient.country;
            appt.Education = patient.educationLevel;
            appt.EmailAddress = patient.emailAddress;
            appt.Gender = patient.gender;
            appt.Homephone = patient.homephone;
            appt.Maritalstatus = patient.maritalstatus;
            appt.Occupation = patient.occupation;
            appt.Patient_Comment = patient.comment;//mapping needs to verify

            appt.RefPhysician = GetrefPhysProviderId(patient);
            appt.PCP = GetrefPCPProviderId(patient);
            appt.State = patient.state;
            appt.Workphone = patient.workphone;
            appt.Zip = patient.zip;

            return appt;
        }
Example #2
0
 private static int GetrefPhysProviderId(RA.Patient patient)
 {
     return 0;
     /*
     if (patient.Providers.Count > 0 && patient.Providers.FirstOrDefault(x => x.refPhys == true) != null)
         return patient.Providers.FirstOrDefault(x => x.refPhys == true).providerID;
     else return 0;
      */
 }