public Patient(int id) { this.id = id; admissionDate = DateTime.Now; patientData = new PatientData(); patientDescription = new PatientDescription(); dischargeData = new DischargeData(); patientDiagnoses = new PatientDiagnoses(); }
public Patient(DbDataReader dr) { GmDataReader gr = new GmDataReader(dr); id = gr.GetInt32(); passportId = gr.GetInt32(); insuranceId = gr.GetInt32(); patientIdentificationId = gr.GetInt32(); doctorId = gr.GetInt32(); diagnosisId = gr.GetInt32(); patientData = PatientData.Create(gr.GetString()); patientDescription = PatientDescription.Create(gr.GetString()); admissionDate = gr.GetDateTime(); wardId = gr.GetInt32(); patientTypeId = (PatientTypeId)gr.GetInt32(); dischargeTypeId = (DischargeTypeId)gr.GetInt32(); dischargeData = DischargeData.Create(gr.GetString()); dischargeDate = gr.GetDateTime(); patientDiagnoses = PatientDiagnoses.Create(gr.GetString()); dietNumber = gr.GetString(); status = (Status)gr.GetInt32(); }