Ejemplo n.º 1
0
        /// <summary>
        /// Processes the single aggregate.
        /// </summary>
        /// <param name="gpraInterviewInformationDto">The gpra interview information dto.</param>
        /// <param name="gpraInterview">The gpra interview.</param>
        /// <returns>A <see cref="System.Boolean"/></returns>
        protected override bool ProcessSingleAggregate(
            GpraInterviewInformationDto gpraInterviewInformationDto, Domain.Clinical.GpraModule.GpraInterview gpraInterview)
        {
            var mappingResult = MappingProperties(gpraInterviewInformationDto, gpraInterview);

            _mappingResult &= mappingResult;

            return(_mappingResult);
        }
Ejemplo n.º 2
0
        private bool MappingProperties(GpraInterviewInformationDto gpraInterviewInformationDto, Domain.Clinical.GpraModule.GpraInterview gpraInterview)
        {
            var gpraPatientType   = _mappingHelper.MapLookupField <GpraPatientType> (gpraInterviewInformationDto.GpraPatientType);
            var gpraInterviewType = _mappingHelper.MapLookupField <GpraInterviewType> (gpraInterviewInformationDto.GpraInterviewType);

            gpraInterview.ReviseGpraInterviewInformation(
                new GpraInterviewInformation(
                    gpraInterviewType,
                    gpraPatientType,
                    gpraInterviewInformationDto.SbirtSbiPositiveIndicator,
                    gpraInterviewInformationDto.SbirtWillingIndicator,
                    gpraInterviewInformationDto.AuditCScore,
                    gpraInterviewInformationDto.CageScore,
                    gpraInterviewInformationDto.DastScore,
                    gpraInterviewInformationDto.Dast10Score,
                    gpraInterviewInformationDto.NiaaaGuideScore,
                    gpraInterviewInformationDto.AssistAlcoholSubScore,
                    gpraInterviewInformationDto.OtherScore,
                    gpraInterviewInformationDto.OtherSpecificationDescription,
                    gpraInterviewInformationDto.ContractGrantIdentifier,
                    gpraInterviewInformationDto.ConductedInterviewIndicator,
                    gpraInterviewInformationDto.CooccuringMhSaScreenerIndicator,
                    gpraInterviewInformationDto.PositiveCooccuringMhSaScreenerIndicator
                    ));

            return(true);
        }