コード例 #1
0
        private bool MappingProperties(GpraPlannedServicesDto gpraPlannedServicesDto, GpraPlannedServices gpraPlannedServices)
        {
            var gpraDetoxificationLocation =
                _mappingHelper.MapLookupField <GpraDetoxificationLocation> (gpraPlannedServicesDto.ModalityGpraDetoxificationLocation);

            AggregateRoot.ReviseGpraPlannedServices(
                new GpraPlannedServicesSection(
                    gpraPlannedServicesDto.AfterCareContinuingCareIndicator,
                    gpraPlannedServicesDto.AfterCareOtherIndicator,
                    gpraPlannedServicesDto.AfterCareRecoveryCoachingIndicator,
                    gpraPlannedServicesDto.AfterCareReplasePreventionIndicator,
                    gpraPlannedServicesDto.AfterCareSelfHelpSupportGroupsIndicator,
                    gpraPlannedServicesDto.AfterCareSpecificationNote,
                    gpraPlannedServicesDto.AfterCareSpiritualSupportIndicator,
                    gpraPlannedServicesDto.CaseMgmtChildCareIndicator,
                    gpraPlannedServicesDto.CaseMgmtEmploymentCoachingIndicator,
                    gpraPlannedServicesDto.CaseMgmtFamilyServicesIndicator,
                    gpraPlannedServicesDto.CaseMgmtHivAidsServiceIndicator,
                    gpraPlannedServicesDto.CaseMgmtIndividualServicesCoordinationIndicator,
                    gpraPlannedServicesDto.CaseMgmtOtherIndicator,
                    gpraPlannedServicesDto.CaseMgmtPreemploymentIndicator,
                    gpraPlannedServicesDto.CaseMgmtSpecificationNote,
                    gpraPlannedServicesDto.CaseMgmtTransitionalDrugFreeHousingIndicator,
                    gpraPlannedServicesDto.CaseMgmtTransportationIndicator,
                    gpraPlannedServicesDto.EducationHivAidsIndicator,
                    gpraPlannedServicesDto.EducationOtherIndicator,
                    gpraPlannedServicesDto.EducationSaIndicator,
                    gpraPlannedServicesDto.EducationSpecificationNote,
                    gpraPlannedServicesDto.MedicalAlcoholDrugTestIndicator,
                    gpraPlannedServicesDto.MedicalCareIndicator,
                    gpraPlannedServicesDto.MedicalHivAidsSupportAndTestingIndicator,
                    gpraPlannedServicesDto.MedicalOtherIndicator,
                    gpraPlannedServicesDto.MedicalSpecificationNote,
                    gpraPlannedServicesDto.ModalityAfterCareIndicator,
                    gpraPlannedServicesDto.ModalityCaseMgmtIndicator,
                    gpraPlannedServicesDto.ModalityDayTreatmentIndicator,
                    gpraDetoxificationLocation,
                    gpraPlannedServicesDto.ModalityInpatientHospitalIndicator,
                    gpraPlannedServicesDto.ModalityIntensiveOutpatientIndicator,
                    gpraPlannedServicesDto.ModalityMethadoneIndicator,
                    gpraPlannedServicesDto.ModalityOtherSpecificationIndicator,
                    gpraPlannedServicesDto.ModalityOutpatientIndicator,
                    gpraPlannedServicesDto.ModalityOutreachIndicator,
                    gpraPlannedServicesDto.ModalityRecoverySupportIndicator,
                    gpraPlannedServicesDto.ModalityResidentialRehabilitationIndicator,
                    gpraPlannedServicesDto.ModalitySpecificationNote,
                    gpraPlannedServicesDto.PeerToPeerRecoverySupportAlcholDrugFreeActivitiesIndicator,
                    gpraPlannedServicesDto.PeerToPeerRecoverySupportCoachingIndicator,
                    gpraPlannedServicesDto.PeerToPeerRecoverySupportHousingIndicator,
                    gpraPlannedServicesDto.PeerToPeerRecoverySupportInformationReferralIndicator,
                    gpraPlannedServicesDto.PeerToPeerRecoverySupportOtherIndicator,
                    gpraPlannedServicesDto.PeerToPeerRecoverySupportSpecificationNote,
                    gpraPlannedServicesDto.TreatmentAssessmentIndicator,
                    gpraPlannedServicesDto.TreatmentBriefInterventionIndicator,
                    gpraPlannedServicesDto.TreatmentBriefTreatmentIndicator,
                    gpraPlannedServicesDto.TreatmentCooccuringTreatmentIndicator,
                    gpraPlannedServicesDto.TreatmentFamilyCounselingIndicator,
                    gpraPlannedServicesDto.TreatmentGroupCounselingIndicator,
                    gpraPlannedServicesDto.TreatmentHivAidsCounselingIndicator,
                    gpraPlannedServicesDto.TreatmentIndividualCounselingIndicator,
                    gpraPlannedServicesDto.TreatmentOtherSpecificationIndicator,
                    gpraPlannedServicesDto.TreatmentPharmacologicalInterventionsIndicator,
                    gpraPlannedServicesDto.TreatmentRecoveryPlanningIndicator,
                    gpraPlannedServicesDto.TreatmentReferralToTreatmentIndicator,
                    gpraPlannedServicesDto.TreatmentScreeningIndicator,
                    gpraPlannedServicesDto.TreatmentSpecificationNote));
            gpraPlannedServicesDto.Key = AggregateRoot.GpraPlannedServices.Key;
            return(true);
        }
コード例 #2
0
        /// <summary>
        /// Processes the single aggregate.
        /// </summary>
        /// <param name="gpraPlannedServicesDto">The gpra planned services dto.</param>
        /// <param name="gpraPlannedServices">The gpra planned services.</param>
        /// <returns>A <see cref="System.Boolean"/></returns>
        protected override bool ProcessSingleAggregate(GpraPlannedServicesDto gpraPlannedServicesDto, GpraPlannedServices gpraPlannedServices)
        {
            var propertyMappingResult = MappingProperties(gpraPlannedServicesDto, gpraPlannedServices);

            _mappingResult &= propertyMappingResult;

            return(_mappingResult);
        }