예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DensAsiPatientProfileSection"/> class.
 /// </summary>
 /// <param name="interviewDate">The interview date.</param>
 /// <param name="interviewDateNote">The interview date note.</param>
 /// <param name="densAsiInterviewClass">The dens asi interview class.</param>
 /// <param name="densAsiInterviewClassNote">The dens asi interview class note.</param>
 /// <param name="densAsiInterviewContactType">Type of the dens asi interview contact.</param>
 /// <param name="densAsiInterviewContactTypeNote">The dens asi interview contact type note.</param>
 /// <param name="yearsAndMonthsAtCurrentAddressTimeSpan">The years and months at current address time span.</param>
 /// <param name="yearsAndMonthsAtCurrentAddressTimeSpanNote">The years and months at current address time span note.</param>
 /// <param name="residenceOwnedByYouOrFamilyIndicator">The residence owned by you or family indicator.</param>
 /// <param name="residenceOwnedByYouOrFamilyIndicatorNote">The residence owned by you or family indicator note.</param>
 /// <param name="preferredDensAsiReligion">The preferred dens asi religion.</param>
 /// <param name="preferredDensAsiReligionNote">The preferred dens asi religion note.</param>
 /// <param name="lastThirtyDaysDensAsiControlledEnvironment">The last thirty days dens asi controlled environment.</param>
 /// <param name="lastThirtyDaysDensAsiControlledEnvironmentNote">The last thirty days dens asi controlled environment note.</param>
 /// <param name="lastThirtyDaysControlledEnvironmentDayCount">The last thirty days controlled environment day count.</param>
 /// <param name="lastThirtyDaysControlledEnvironmentDayCountNote">The last thirty days controlled environment day count note.</param>
 /// <param name="christianReligionIndicator">The christian religion indicator.</param>
 /// <param name="christianReligionIndicatorNote">The christian religion indicator note.</param>
 /// <param name="buddhismReligionIndicator">The buddhism religion indicator.</param>
 /// <param name="buddhismReligionIndicatorNote">The buddhism religion indicator note.</param>
 /// <param name="noParticularReligiousSectIndicator">The no particular religious sect indicator.</param>
 /// <param name="noParticularReligiousSectIndicatorNote">The no particular religious sect indicator note.</param>
 public DensAsiPatientProfileSection(
     DateTime?interviewDate,
     string interviewDateNote,
     DensAsiInterviewClass densAsiInterviewClass,
     string densAsiInterviewClassNote,
     DensAsiNonResponseType <DensAsiInterviewContactType> densAsiInterviewContactType,
     string densAsiInterviewContactTypeNote,
     DensAsiNonResponseType <TimeSpan?> yearsAndMonthsAtCurrentAddressTimeSpan,
     string yearsAndMonthsAtCurrentAddressTimeSpanNote,
     DensAsiNonResponseType <bool?> residenceOwnedByYouOrFamilyIndicator,
     string residenceOwnedByYouOrFamilyIndicatorNote,
     DensAsiNonResponseType <DensAsiReligion> preferredDensAsiReligion,
     string preferredDensAsiReligionNote,
     DensAsiNonResponseType <DensAsiControlledEnvironment> lastThirtyDaysDensAsiControlledEnvironment,
     string lastThirtyDaysDensAsiControlledEnvironmentNote,
     DensAsiNonResponseType <int?> lastThirtyDaysControlledEnvironmentDayCount,
     string lastThirtyDaysControlledEnvironmentDayCountNote,
     DensAsiNonResponseType <bool?> christianReligionIndicator,
     string christianReligionIndicatorNote,
     DensAsiNonResponseType <bool?> buddhismReligionIndicator,
     string buddhismReligionIndicatorNote,
     DensAsiNonResponseType <bool?> noParticularReligiousSectIndicator,
     string noParticularReligiousSectIndicatorNote)
 {
     if (densAsiInterviewContactType.DensAsiNonResponse != null && !GetPossibleDensAsiNonResponseWellKnownNames(() => DensAsiInterviewContactType).Contains(densAsiInterviewContactType.DensAsiNonResponse.WellKnownName))
     {
         throw new ArgumentException("DensAsiInterviewContactType DensAsiNonResponse value '" + densAsiInterviewContactType.DensAsiNonResponse.WellKnownName + "' is not valid.");
     }
     if (yearsAndMonthsAtCurrentAddressTimeSpan.DensAsiNonResponse != null && !GetPossibleDensAsiNonResponseWellKnownNames(() => YearsAndMonthsAtCurrentAddressTimeSpan).Contains(yearsAndMonthsAtCurrentAddressTimeSpan.DensAsiNonResponse.WellKnownName))
     {
         throw new ArgumentException("YearsAndMonthsAtCurrentAddressTimeSpan DensAsiNonResponse value '" + yearsAndMonthsAtCurrentAddressTimeSpan.DensAsiNonResponse.WellKnownName + "' is not valid.");
     }
     if (residenceOwnedByYouOrFamilyIndicator.DensAsiNonResponse != null && !GetPossibleDensAsiNonResponseWellKnownNames(() => ResidenceOwnedByYouOrFamilyIndicator).Contains(residenceOwnedByYouOrFamilyIndicator.DensAsiNonResponse.WellKnownName))
     {
         throw new ArgumentException("ResidenceOwnedByYouOrFamilyIndicator DensAsiNonResponse value '" + residenceOwnedByYouOrFamilyIndicator.DensAsiNonResponse.WellKnownName + "' is not valid.");
     }
     if (preferredDensAsiReligion.DensAsiNonResponse != null && !GetPossibleDensAsiNonResponseWellKnownNames(() => PreferredDensAsiReligion).Contains(preferredDensAsiReligion.DensAsiNonResponse.WellKnownName))
     {
         throw new ArgumentException("PreferredDensAsiReligion DensAsiNonResponse value '" + preferredDensAsiReligion.DensAsiNonResponse.WellKnownName + "' is not valid.");
     }
     if (lastThirtyDaysDensAsiControlledEnvironment.DensAsiNonResponse != null && !GetPossibleDensAsiNonResponseWellKnownNames(() => LastThirtyDaysDensAsiControlledEnvironment).Contains(lastThirtyDaysDensAsiControlledEnvironment.DensAsiNonResponse.WellKnownName))
     {
         throw new ArgumentException("LastThirtyDaysDensAsiControlledEnvironment DensAsiNonResponse value '" + lastThirtyDaysDensAsiControlledEnvironment.DensAsiNonResponse.WellKnownName + "' is not valid.");
     }
     if (lastThirtyDaysControlledEnvironmentDayCount.DensAsiNonResponse != null && !GetPossibleDensAsiNonResponseWellKnownNames(() => LastThirtyDaysControlledEnvironmentDayCount).Contains(lastThirtyDaysControlledEnvironmentDayCount.DensAsiNonResponse.WellKnownName))
     {
         throw new ArgumentException("LastThirtyDaysControlledEnvironmentDayCount DensAsiNonResponse value '" + lastThirtyDaysControlledEnvironmentDayCount.DensAsiNonResponse.WellKnownName + "' is not valid.");
     }
     if (christianReligionIndicator.DensAsiNonResponse != null && !GetPossibleDensAsiNonResponseWellKnownNames(() => ChristianReligionIndicator).Contains(christianReligionIndicator.DensAsiNonResponse.WellKnownName))
     {
         throw new ArgumentException("ChristianReligionIndicator DensAsiNonResponse value '" + christianReligionIndicator.DensAsiNonResponse.WellKnownName + "' is not valid.");
     }
     if (buddhismReligionIndicator.DensAsiNonResponse != null && !GetPossibleDensAsiNonResponseWellKnownNames(() => BuddhismReligionIndicator).Contains(buddhismReligionIndicator.DensAsiNonResponse.WellKnownName))
     {
         throw new ArgumentException("BuddhismReligionIndicator DensAsiNonResponse value '" + buddhismReligionIndicator.DensAsiNonResponse.WellKnownName + "' is not valid.");
     }
     if (noParticularReligiousSectIndicator.DensAsiNonResponse != null && !GetPossibleDensAsiNonResponseWellKnownNames(() => NoParticularReligiousSectIndicator).Contains(noParticularReligiousSectIndicator.DensAsiNonResponse.WellKnownName))
     {
         throw new ArgumentException("NoParticularReligiousSectIndicator DensAsiNonResponse value '" + noParticularReligiousSectIndicator.DensAsiNonResponse.WellKnownName + "' is not valid.");
     }
     _interviewDate                                   = interviewDate;
     _interviewDateNote                               = interviewDateNote;
     _densAsiInterviewClass                           = densAsiInterviewClass;
     _densAsiInterviewClassNote                       = densAsiInterviewClassNote;
     _densAsiInterviewContactType                     = densAsiInterviewContactType;
     _densAsiInterviewContactTypeNote                 = densAsiInterviewContactTypeNote;
     _yearsAndMonthsAtCurrentAddressTimeSpan          = yearsAndMonthsAtCurrentAddressTimeSpan;
     _yearsAndMonthsAtCurrentAddressTimeSpanNote      = yearsAndMonthsAtCurrentAddressTimeSpanNote;
     _residenceOwnedByYouOrFamilyIndicator            = residenceOwnedByYouOrFamilyIndicator;
     _residenceOwnedByYouOrFamilyIndicatorNote        = residenceOwnedByYouOrFamilyIndicatorNote;
     _preferredDensAsiReligion                        = preferredDensAsiReligion;
     _preferredDensAsiReligionNote                    = preferredDensAsiReligionNote;
     _lastThirtyDaysDensAsiControlledEnvironment      = lastThirtyDaysDensAsiControlledEnvironment;
     _lastThirtyDaysDensAsiControlledEnvironmentNote  = lastThirtyDaysDensAsiControlledEnvironmentNote;
     _lastThirtyDaysControlledEnvironmentDayCount     = lastThirtyDaysControlledEnvironmentDayCount;
     _lastThirtyDaysControlledEnvironmentDayCountNote = lastThirtyDaysControlledEnvironmentDayCountNote;
     _christianReligionIndicator                      = christianReligionIndicator;
     _christianReligionIndicatorNote                  = christianReligionIndicatorNote;
     _buddhismReligionIndicator                       = buddhismReligionIndicator;
     _buddhismReligionIndicatorNote                   = buddhismReligionIndicatorNote;
     _noParticularReligiousSectIndicator              = noParticularReligiousSectIndicator;
     _noParticularReligiousSectIndicatorNote          = noParticularReligiousSectIndicatorNote;
 }
 /// <summary>
 /// Assigns the DensAsi interview class.
 /// </summary>
 /// <param name="densAsiInterviewClass">The DensAsi interview class.</param>
 /// <returns><see cref="T:Rem.Domain.Clinical.DensAsiModule.DensAsiMedicalStatusSectionBuilder">A DensAsiMedicalStatusSectionBuilder.</see></returns>
 public DensAsiPatientProfileSectionBuilder WithDensAsiInterviewClass(DensAsiInterviewClass densAsiInterviewClass)
 {
     _densAsiInterviewClass = densAsiInterviewClass;
     return this;
 }
 /// <summary>
 /// Assigns the DensAsi interview class.
 /// </summary>
 /// <param name="densAsiInterviewClass">The DensAsi interview class.</param>
 /// <returns><see cref="T:Rem.Domain.Clinical.DensAsiModule.DensAsiMedicalStatusSectionBuilder">A DensAsiMedicalStatusSectionBuilder.</see></returns>
 public DensAsiPatientProfileSectionBuilder WithDensAsiInterviewClass(DensAsiInterviewClass densAsiInterviewClass)
 {
     _densAsiInterviewClass = densAsiInterviewClass;
     return(this);
 }