Example #1
0
        public TriageGroupTO(gov.va.medora.mdo.domain.sm.TriageGroup triageGroup)
        {
            if (triageGroup == null)
            {
                return;
            }

            id          = triageGroup.Id;
            oplock      = triageGroup.Oplock;
            name        = triageGroup.Name;
            description = triageGroup.Description;
            vistaDiv    = triageGroup.VistaDiv;

            if (triageGroup.Clinicians != null && triageGroup.Clinicians.Count > 0)
            {
                clinicians = new SmClinicianTO[triageGroup.Clinicians.Count];
                for (int i = 0; i < triageGroup.Clinicians.Count; i++)
                {
                    clinicians[i] = new SmClinicianTO(triageGroup.Clinicians[i]);
                }
            }

            if (triageGroup.Patients != null && triageGroup.Patients.Count > 0)
            {
                patients = new SmPatientTO[triageGroup.Patients.Count];
                for (int i = 0; i < triageGroup.Patients.Count; i++)
                {
                    patients[i] = new SmPatientTO(triageGroup.Patients[i]);
                }
            }
        }
Example #2
0
        public TriageGroupTO(gov.va.medora.mdo.domain.sm.TriageGroup triageGroup)
        {
            if (triageGroup == null)
            {
                return;
            }

            id = triageGroup.Id;
            oplock = triageGroup.Oplock;
            name = triageGroup.Name;
            description = triageGroup.Description;
            vistaDiv = triageGroup.VistaDiv;

            if (triageGroup.Clinicians != null && triageGroup.Clinicians.Count > 0)
            {
                clinicians = new SmClinicianTO[triageGroup.Clinicians.Count];
                for (int i = 0; i < triageGroup.Clinicians.Count; i++)
                {
                    clinicians[i] = new SmClinicianTO(triageGroup.Clinicians[i]);
                }
            }

            if (triageGroup.Patients != null && triageGroup.Patients.Count > 0)
            {
                patients = new SmPatientTO[triageGroup.Patients.Count];
                for (int i = 0; i < triageGroup.Patients.Count; i++)
                {
                    patients[i] = new SmPatientTO(triageGroup.Patients[i]);
                }
            }
        }
Example #3
0
        public MessageTO(mdo.domain.sm.Message message)
        {
            if (message == null)
            {
                return;
            }

            this.id                          = message.Id;
            this.oplock                      = message.Oplock;
            this.assignedTo                  = new SmClinicianTO(message.AssignedTo);
            this.attachment                  = message.Attachment;
            this.attachmentId                = Convert.ToInt32(message.AttachmentId);
            this.body                        = gov.va.medora.utils.StringUtils.stripInvalidXmlCharacters(message.Body); // quickly found some invalid XML characters
            this.ccRecipientId               = Convert.ToInt32(message.CcRecipientId);
            this.ccRecipientName             = message.CcRecipientName;
            this.checksum                    = gov.va.medora.utils.StringUtils.stripInvalidXmlCharacters(message.Checksum);
            this.completedDate               = message.CompletedDate;
            this.escalatedDate               = message.EscalatedDate;
            this.escalationNotificationDate  = message.EscalationNotificationDate;
            this.escalationNotificationTries = Convert.ToInt32(message.EscalationNotificationTries);
            this.readReceipt                 = message.ReadReceipt;
            this.recipientId                 = Convert.ToInt32(message.RecipientId);
            this.recipientName               = message.RecipientName;
            //this.recipientType = message.RecipientType;
            this.senderId   = Convert.ToInt32(message.SenderId);
            this.senderName = message.SenderName;
            //this.senderType = message.SenderType;
            this.sentDate      = message.SentDate;
            this.sentDateLocal = message.SentDateLocal;
            //this.status = message.Status;
            this.statusSetBy = new SmClinicianTO(message.StatusSetBy);

            if (message.MessageThread != null)
            {
                threadId     = message.MessageThread.Id;
                threadOplock = message.MessageThread.Oplock;
            }
            if (message.Addressees != null && message.Addressees.Count > 0)
            {
                addressees = new AddresseeTO[message.Addressees.Count];
                for (int i = 0; i < message.Addressees.Count; i++)
                {
                    addressees[i] = new AddresseeTO(message.Addressees[i]);
                }
            }
        }
Example #4
0
        public MessageTO(mdo.domain.sm.Message message)
        {
            if (message == null)
            {
                return;
            }

            this.id = message.Id;
            this.oplock = message.Oplock;
            this.assignedTo = new SmClinicianTO(message.AssignedTo);
            this.attachment = message.Attachment;
            this.attachmentId = Convert.ToInt32(message.AttachmentId);
            this.body = gov.va.medora.utils.StringUtils.stripInvalidXmlCharacters(message.Body); // quickly found some invalid XML characters
            this.ccRecipientId = Convert.ToInt32(message.CcRecipientId);
            this.ccRecipientName = message.CcRecipientName;
            this.checksum = gov.va.medora.utils.StringUtils.stripInvalidXmlCharacters(message.Checksum);
            this.completedDate = message.CompletedDate;
            this.escalatedDate = message.EscalatedDate;
            this.escalationNotificationDate = message.EscalationNotificationDate;
            this.escalationNotificationTries = Convert.ToInt32(message.EscalationNotificationTries);
            this.readReceipt = message.ReadReceipt;
            this.recipientId = Convert.ToInt32(message.RecipientId);
            this.recipientName = message.RecipientName;
            //this.recipientType = message.RecipientType;
            this.senderId = Convert.ToInt32(message.SenderId);
            this.senderName = message.SenderName;
            //this.senderType = message.SenderType;
            this.sentDate = message.SentDate;
            this.sentDateLocal = message.SentDateLocal;
            //this.status = message.Status;
            this.statusSetBy = new SmClinicianTO(message.StatusSetBy);

            if (message.MessageThread != null)
            {
                threadId = message.MessageThread.Id;
                threadOplock = message.MessageThread.Oplock;
            }
            if (message.Addressees != null && message.Addressees.Count > 0)
            {
                addressees = new AddresseeTO[message.Addressees.Count];
                for (int i = 0; i < message.Addressees.Count; i++)
                {
                    addressees[i] = new AddresseeTO(message.Addressees[i]);
                }
            }
        }