public int Add(object value) { PatientVisitObj objPatientVisit = value as PatientVisitObj; _ds.V_PATIENT_VISIT.AddV_PATIENT_VISITRow( objPatientVisit.StationID, objPatientVisit.PatientId, objPatientVisit.FirstName, objPatientVisit.MiddleInitial, objPatientVisit.LastName, objPatientVisit.Gender, objPatientVisit.Height, objPatientVisit.Weight, objPatientVisit.BirthDate, objPatientVisit.MedicalRecordNumber, objPatientVisit.SiteID, objPatientVisit.Physician, objPatientVisit.PatientVisitId, objPatientVisit.AdmitDate, objPatientVisit.DischargeDate, objPatientVisit.CareUnitId, objPatientVisit.Room, objPatientVisit.Bed, objPatientVisit.AccountNumber, objPatientVisit.Barcode, objPatientVisit.InMyList, objPatientVisit.HospitalService ); return(1); }
public void Remove(object value) { PatientVisitObj objPatientVisit = value as PatientVisitObj; if (_ds.V_PATIENT_VISIT.Rows.Count > 0) { foreach (PatientVisitDataSet.V_PATIENT_VISITRow row in _ds.V_PATIENT_VISIT.Rows) { if (row.PatientVisitId == objPatientVisit.PatientVisitId) { _ds.V_PATIENT_VISIT.RemoveV_PATIENT_VISITRow(row); break; } } } }
public VisitObj(PatientVisitObj pvo) { _index = 0; _ds = new VisitDataSet(); _ds.V_VISIT.AddV_VISITRow( pvo.PatientVisitId, //PatientVisitId pvo.PatientId, // PatientId pvo.CareUnitId, // CareUnitId pvo.AdmitDate, // AdmitDate pvo.DischargeDate, // DischargeDate pvo.Room, // Room pvo.Bed, // Bed pvo.AccountNumber, // AccountNumber pvo.Barcode, // Barcode pvo.HospitalService // HospitalService ); }