Exemplo n.º 1
0
        public void Execute()
        {
            try
            {
                Guard.ArgumentNotNull(_change, "_change");

                Guard.ArgumentNotNull(_change.OriginalPatientId, "_change.OriginalPatientId");
                Guard.ArgumentNotNull(_change.PatientId, "_change.PatientId");
                Guard.ArgumentNotNull(_change.Name, "_change.Name");
                Guard.ArgumentNotNull(_change.Name.FullDicomEncoded, "_change.Name.FullDicomEncoded");
                Guard.ArgumentNotNull(_change.Sex, "_change.Sex");

                NActionClient.ChangePatient(_change, _change.Operator);
            }
            catch (Exception ex)
            {
                //if status == DicomCommandStatusType.AttributeOutOfRange;
                //error message = "Original Patient ID does not exist in database";
                if (ex.Message.ToLower().Contains("attributeoutofrange"))
                {
                    throw new Exception("Original Patient ID does not exist in database");
                }
                throw;
            }
        }
Exemplo n.º 2
0
        public void Execute()
        {
            Guard.ArgumentNotNull(_merge, "_merge");

            Guard.ArgumentNotNull(_merge.PatientId, "_merge.PatientId");
            Guard.ArgumentNotNull(_merge.PatientToMerge, "_merge.PatientToMerge");
            Guard.ArgumentNotNull(_merge.PatientToMerge[0].PatientId, "_merge.PatientToMerge[0].PatientId");

            NActionClient.MergePatient(_merge, _merge.Operator);
        }
Exemplo n.º 3
0
        public void Execute()
        {
            Guard.ArgumentNotNull(_change, "_change");

            Guard.ArgumentNotNull(_change.OriginalPatientId, "_change.OriginalPatientId");
            Guard.ArgumentNotNull(_change.PatientId, "_change.PatientId");
            Guard.ArgumentNotNull(_change.Name, "_change.Name");
            Guard.ArgumentNotNull(_change.Name.FullDicomEncoded, "_change.Name.FullDicomEncoded");
            Guard.ArgumentNotNull(_change.Sex, "_change.Sex");

            NActionClient.ChangePatient(_change, _change.Operator);
        }