Exemple #1
0
        public void UpdatePatientAttachment(PatientAttachment attachment, AttachmentSummary summary, IPersistenceContext context)
        {
            AttachedDocumentAssembler attachedDocAssembler = new AttachedDocumentAssembler();

            attachment.Category = EnumUtils.GetEnumValue <PatientAttachmentCategoryEnum>(summary.Category, context);
            attachedDocAssembler.UpdateAttachedDocumentSummary(attachment.Document, summary.Document);
        }
Exemple #2
0
        public AttachmentSummary CreatePatientAttachmentSummary(PatientAttachment attachment, IPersistenceContext context)
        {
            AttachedDocumentAssembler attachedDocAssembler = new AttachedDocumentAssembler();
            StaffAssembler            staffAssembler       = new StaffAssembler();

            return(new AttachmentSummary(
                       EnumUtils.GetEnumValueInfo(attachment.Category),
                       staffAssembler.CreateStaffSummary(attachment.AttachedBy, context),
                       attachment.AttachedTime,
                       attachedDocAssembler.CreateAttachedDocumentSummary(attachment.Document)));
        }