Example #1
0
        /// <summary>
        /// Processes the single aggregate.
        /// </summary>
        /// <param name="dto">The dto to process.</param>
        /// <param name="aggregateNode">The aggregate node.</param>
        /// <returns>A <see cref="System.Boolean"/></returns>
        protected override bool ProcessSingleAggregate(GpraFollowUpDto dto, GpraFollowUp aggregateNode)
        {
            var propertyMappingResult = MappingProperties(dto, aggregateNode);

            _mappingResult &= propertyMappingResult;

            return(_mappingResult);
        }
Example #2
0
        private bool MappingProperties(GpraFollowUpDto gpraFollowUpDto, GpraFollowUp gpraFollowUp)
        {
            // Map any Lookup Fields first
            var gpraFollowUpStatus = _mappingHelper.MapLookupField <GpraFollowUpStatus> (gpraFollowUpDto.GpraFollowUpStatus);

            AggregateRoot.ReviseGpraFollowUp(
                new GpraFollowUpSection(
                    gpraFollowUpStatus,
                    gpraFollowUpDto.GpraFollowUpStatusOtherDescription,
                    gpraFollowUpDto.PatientReceivingServicesIndicator));
            gpraFollowUpDto.Key = AggregateRoot.GpraFollowUp.Key;
            return(true);
        }