/// <summary>
        /// Processes the single aggregate.
        /// </summary>
        /// <param name="dto">The dto to process.</param>
        /// <param name="patient">The patient.</param>
        /// <returns>A <see cref="System.Boolean"/></returns>
        protected override bool ProcessSingleAggregate(PatientLegalStatusDto dto, Patient patient)
        {
            var citizenshipCountry = _mappingHelper.MapLookupField <Country> (dto.CitizenshipCountry);
            var immigrationStatus  = _mappingHelper.MapLookupField <ImmigrationStatus> (dto.ImmigrationStatus);
            var custodialStatus    = _mappingHelper.MapLookupField <CustodialStatus> (dto.CustodialStatus);

            var patientLegalInfo = new PatientLegalInfo(citizenshipCountry, immigrationStatus, custodialStatus);

            patient.ReviseLegalInfo(patientLegalInfo);

            return(true);
        }
Example #2
0
 /// <summary>
 /// Revises the legal info.
 /// </summary>
 /// <param name="patientLegalInfo">The patient legal info.</param>
 public virtual void ReviseLegalInfo(PatientLegalInfo patientLegalInfo)
 {
     _legalInfo = patientLegalInfo;
 }