public List <Domain.PatientPersonalBackgrounds> setPersonalbackgroundsList(models.Patient patient) { List <Domain.PatientPersonalBackgrounds> lstPersonalbackgrounds = new List <Domain.PatientPersonalBackgrounds>(); Domain.PatientPersonalBackgrounds pBackground; if (patient.personalBackground.Length > 0) { foreach (var item in patient.personalBackground) { pBackground = new Domain.PatientPersonalBackgrounds(); pBackground.patientId = patient.id; pBackground.personalBackgrounds = item.name; pBackground.id = item.id; pBackground.isDeleted = item.isDeleted; lstPersonalbackgrounds.Add(pBackground); } } return(lstPersonalbackgrounds); }
public List <Domain.PatientMedicines> setMedicinesList(models.Patient patient) { List <Domain.PatientMedicines> lstMedicines = new List <Domain.PatientMedicines>(); Domain.PatientMedicines medicines; if (patient.medicines.Length > 0) { foreach (var item in patient.medicines) { medicines = new Domain.PatientMedicines(); medicines.patientId = patient.id; medicines.medicines = item.name; medicines.id = item.id; medicines.isDeleted = item.isDeleted; lstMedicines.Add(medicines); } } return(lstMedicines); }
public List <Domain.PatientFatherbackgrounds> setFatherbackgroundsList(models.Patient patient) { List <Domain.PatientFatherbackgrounds> lstFatherbackgrounds = new List <Domain.PatientFatherbackgrounds>(); Domain.PatientFatherbackgrounds fBackground; if (patient.fatherBackground.Length > 0) { foreach (var item in patient.fatherBackground) { fBackground = new Domain.PatientFatherbackgrounds(); fBackground.patientId = patient.id; fBackground.fatherBackgrounds = item.name; fBackground.id = item.id; fBackground.isDeleted = item.isDeleted; lstFatherbackgrounds.Add(fBackground); } } return(lstFatherbackgrounds); }
public List <Domain.PatientAllergies> setAllergyList(models.Patient patient) { List <Domain.PatientAllergies> lstAllergies = new List <Domain.PatientAllergies>(); Domain.PatientAllergies allergies; if (patient.allergies.Length > 0) { foreach (var item in patient.allergies) { allergies = new Domain.PatientAllergies(); allergies.patientId = patient.id; allergies.allergies = item.name; allergies.id = item.id; allergies.isDeleted = item.isDeleted; lstAllergies.Add(allergies); } } return(lstAllergies); }