Ejemplo n.º 1
0
        public string AddPatient(string userName, WorklistPatient patient)
        {
            MWLDataset ds = new MWLDataset();

            ds.AddPatient(patient);
            _DataAccessAgent.UpdateMWL(ds);
            return(patient.PatientID);
        }
Ejemplo n.º 2
0
        public void AddPatient(WCFPatient patient, MWLDataset ds)
        {
            Guard.ArgumentNotNullOrEmpty(patient.PatientID, "PatientID");
            Guard.ArgumentNotNullOrEmpty(patient.IssuerOfPatientID, "IssuerOfPatientID");
            Guard.ArgumentNotNullOrEmpty(patient.PatientNameFamilyName + patient.PatientNameGivenName +
                                         patient.PatientNameMiddleName, "Patient Name");

            NullTheEmpty(patient);

            ds.AddPatient(patient);
        }
Ejemplo n.º 3
0
        public void AddPatient(WCFPatient patient)
        {
            Guard.ArgumentNotNullOrEmpty(patient.PatientID, "PatientID");
            Guard.ArgumentNotNullOrEmpty(patient.IssuerOfPatientID, "IssuerOfPatientID");
            Guard.ArgumentNotNullOrEmpty(patient.PatientNameFamilyName + patient.PatientNameGivenName +
                                         patient.PatientNameMiddleName, "Patient Name");

            NullTheEmpty(patient);

            using (MWLDataset ds = new MWLDataset())
            {
                ds.AddPatient(patient);
                DB.DataAccess.UpdateMWL(ds);
            }
        }