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); }
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))); }