/// <summary>
        /// Processes the single aggregate.
        /// </summary>
        /// <param name="dto">The dto to process.</param>
        /// <param name="entity">The entity.</param>
        /// <returns>A <see cref="System.Boolean"/></returns>
        protected override bool ProcessSingleAggregate(MailAttachmentPatientDocumentDto dto, PatientDocument entity)
        {
            var patientDocumentType = _mappingHelper.MapLookupField <PatientDocumentType>(dto.PatientDocumentType);
            var clinicalDateRange   = new DateRange(dto.ClinicalStartDate, dto.ClinicalEndDate);

            entity.RevisePatientDocumentType(patientDocumentType);
            entity.ReviseClinicalDateRange(clinicalDateRange);
            entity.ReviseDescription(dto.Description);
            entity.ReviseDocumentProviderName(dto.DocumentProviderName);
            entity.ReviseOtherDocumentTypeName(dto.OtherDocumentTypeName);

            return(true);
        }
Beispiel #2
0
        private bool MapProperties(PatientDocumentDto dto, PatientDocument entity)
        {
            var patientDocumentType = _mappingHelper.MapLookupField <PatientDocumentType> (dto.PatientDocumentType);
            var clinicalDateRange   = new DateRange(dto.ClinicalStartDate, dto.ClinicalEndDate);

            entity.RevisePatientDocumentType(patientDocumentType);
            entity.ReviseClinicalDateRange(clinicalDateRange);
            entity.ReviseDescription(dto.Description);
            entity.ReviseDocumentProviderName(dto.DocumentProviderName);
            entity.ReviseOtherDocumentTypeName(dto.OtherDocumentTypeName);

            return(true);
        }