コード例 #1
0
        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);
        }
コード例 #2
0
        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;
                    }
                }
            }
        }
コード例 #3
0
 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
         );
 }