/// <summary>
 /// Initializes a new instance of the <see cref="GpraFamilyLivingConditionsSection"/> class.
 /// </summary>
 /// <param name="childCount">The child count.</param>
 /// <param name="childrenInChildProtectionIndicator">The children in child protection indicator.</param>
 /// <param name="childrenInChildProtectionCount">The children in child protection count.</param>
 /// <param name="childrenIndicator">The children indicator.</param>
 /// <param name="emotionalProblemsGpraEffectDueToDrugUse">The emotional problems gpra effect due to drug use.</param>
 /// <param name="giveUpImportantActivitiesGpraEffectDueToDrugUse">The give up important activities gpra effect due to drug use.</param>
 /// <param name="gpraHousingType">Type of the gpra housing.</param>
 /// <param name="mostTimeGpraPlaceToLive">The most time gpra place to live.</param>
 /// <param name="otherHousingTypeSpecificationNote">The other housing type specification note.</param>
 /// <param name="patientLostParentalRightsChildCount">The patient lost parental rights child count.</param>
 /// <param name="pregnancyIndicator">The pregnancy indicator.</param>
 /// <param name="stressGpraEffectDueToDrugUse">The stress gpra effect due to drug use.</param>
 public GpraFamilyLivingConditionsSection(GpraNonResponseType <int?> childCount,
                                          GpraNonResponseType <bool?> childrenInChildProtectionIndicator,
                                          GpraNonResponseType <int?> childrenInChildProtectionCount,
                                          GpraNonResponseType <bool?> childrenIndicator,
                                          GpraNonResponseType <GpraEffectDueToDrugUse> emotionalProblemsGpraEffectDueToDrugUse,
                                          GpraNonResponseType <GpraEffectDueToDrugUse> giveUpImportantActivitiesGpraEffectDueToDrugUse,
                                          GpraNonResponseType <GpraHousingType> gpraHousingType,
                                          GpraNonResponseType <GpraPlaceToLive> mostTimeGpraPlaceToLive,
                                          string otherHousingTypeSpecificationNote,
                                          GpraNonResponseType <int?> patientLostParentalRightsChildCount,
                                          GpraNonResponseType <bool?> pregnancyIndicator,
                                          GpraNonResponseType <GpraEffectDueToDrugUse> stressGpraEffectDueToDrugUse)
 {
     if (gpraHousingType.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => GpraHousingType).Contains(gpraHousingType.GpraNonResponse.WellKnownName))
     {
         throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Gpra Housing Type.", gpraHousingType.GpraNonResponse.Name), "GpraHousingType");
     }
     _childCount = childCount;
     _childrenInChildProtectionIndicator = childrenInChildProtectionIndicator;
     _childrenInChildProtectionCount     = childrenInChildProtectionCount;
     _childrenIndicator = childrenIndicator;
     _emotionalProblemsGpraEffectDueToDrugUse         = emotionalProblemsGpraEffectDueToDrugUse;
     _giveUpImportantActivitiesGpraEffectDueToDrugUse = giveUpImportantActivitiesGpraEffectDueToDrugUse;
     _gpraHousingType                     = gpraHousingType;
     _mostTimeGpraPlaceToLive             = mostTimeGpraPlaceToLive;
     _otherHousingTypeSpecificationNote   = otherHousingTypeSpecificationNote;
     _patientLostParentalRightsChildCount = patientLostParentalRightsChildCount;
     _pregnancyIndicator                  = pregnancyIndicator;
     _stressGpraEffectDueToDrugUse        = stressGpraEffectDueToDrugUse;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GpraProfessionalInformationSection"/> class.
 /// </summary>
 /// <param name="gpraJobTrainingProgram">The gpra job training program.</param>
 /// <param name="otherJobTrainingProgramSpecificationNote">The other job training program specification note.</param>
 /// <param name="highestGpraEducationLevel">The highest gpra education level.</param>
 /// <param name="gpraEmploymentStatus">The gpra employment status.</param>
 /// <param name="otherEmploymentTypeSpecificationNote">The other employment type specification note.</param>
 /// <param name="wagesPretaxIncomeAmount">The wages pretax income amount.</param>
 /// <param name="publicAssistancePretaxIncomeAmount">The public assistance pretax income amount.</param>
 /// <param name="retirementPretaxIncomeAmount">The retirement pretax income amount.</param>
 /// <param name="disabilityPretaxIncomeAmount">The disability pretax income amount.</param>
 /// <param name="nonLegalPretaxIncomeAmount">The non legal pretax income amount.</param>
 /// <param name="familyFriendsPretaxIncomeAmount">The family friends pretax income amount.</param>
 /// <param name="otherPretaxIncomeAmount">The other pretax income amount.</param>
 /// <param name="otherPretaxIncomeSpecificationNote">The other pretax income specification note.</param>
 public GpraProfessionalInformationSection(GpraNonResponseType <GpraJobTrainingProgram> gpraJobTrainingProgram,
                                           string otherJobTrainingProgramSpecificationNote,
                                           GpraNonResponseType <GpraEducationLevel> highestGpraEducationLevel,
                                           GpraNonResponseType <GpraEmploymentStatus> gpraEmploymentStatus,
                                           string otherEmploymentTypeSpecificationNote,
                                           GpraNonResponseType <int?> wagesPretaxIncomeAmount,
                                           GpraNonResponseType <int?> publicAssistancePretaxIncomeAmount,
                                           GpraNonResponseType <int?> retirementPretaxIncomeAmount,
                                           GpraNonResponseType <int?> disabilityPretaxIncomeAmount,
                                           GpraNonResponseType <int?> nonLegalPretaxIncomeAmount,
                                           GpraNonResponseType <int?> familyFriendsPretaxIncomeAmount,
                                           GpraNonResponseType <int?> otherPretaxIncomeAmount,
                                           string otherPretaxIncomeSpecificationNote)
 {
     _gpraJobTrainingProgram = gpraJobTrainingProgram;
     _otherJobTrainingProgramSpecificationNote = otherJobTrainingProgramSpecificationNote;
     _highestGpraEducationLevel            = highestGpraEducationLevel;
     _gpraEmploymentStatus                 = gpraEmploymentStatus;
     _otherEmploymentTypeSpecificationNote = otherEmploymentTypeSpecificationNote;
     _wagesPretaxIncomeAmount              = wagesPretaxIncomeAmount;
     _publicAssistancePretaxIncomeAmount   = publicAssistancePretaxIncomeAmount;
     _retirementPretaxIncomeAmount         = retirementPretaxIncomeAmount;
     _disabilityPretaxIncomeAmount         = disabilityPretaxIncomeAmount;
     _nonLegalPretaxIncomeAmount           = nonLegalPretaxIncomeAmount;
     _familyFriendsPretaxIncomeAmount      = familyFriendsPretaxIncomeAmount;
     _otherPretaxIncomeAmount              = otherPretaxIncomeAmount;
     _otherPretaxIncomeSpecificationNote   = otherPretaxIncomeSpecificationNote;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GpraCrimeCriminalJusticeSection"/> class.
 /// </summary>
 /// <param name="arrestedCount">The arrested count.</param>
 /// <param name="arrestedDrugCount">The arrested drug count.</param>
 /// <param name="awaitingTrialIndicator">The awaiting trial indicator.</param>
 /// <param name="crimeCount">The crime count.</param>
 /// <param name="nightsConfinedCount">The nights confined count.</param>
 /// <param name="paroleProbationIndicator">The parole probation indicator.</param>
 public GpraCrimeCriminalJusticeSection(GpraNonResponseType <int?> arrestedCount,
                                        GpraNonResponseType <int?> arrestedDrugCount,
                                        GpraNonResponseType <bool?> awaitingTrialIndicator,
                                        GpraNonResponseType <int?> crimeCount,
                                        GpraNonResponseType <int?> nightsConfinedCount,
                                        GpraNonResponseType <bool?> paroleProbationIndicator)
 {
     _arrestedCount            = arrestedCount;
     _arrestedDrugCount        = arrestedDrugCount;
     _awaitingTrialIndicator   = awaitingTrialIndicator;
     _crimeCount               = crimeCount;
     _nightsConfinedCount      = nightsConfinedCount;
     _paroleProbationIndicator = paroleProbationIndicator;
 }
Пример #4
0
        bool IEquatable <GpraNonResponseType <T> > .Equals(GpraNonResponseType <T> other)
        {
            if (GetType() != other.GetType())
            {
                return(false);
            }

            if (Equals(Value, other.Value) && Equals(GpraNonResponse, other.GpraNonResponse))
            {
                return(true);
            }

            return(false);
        }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GpraSocialConnectednessSection"/> class.
 /// </summary>
 /// <param name="attendOtherGroupsCount">The attend other groups count.</param>
 /// <param name="attendOtherGroupsIndicator">The attend other groups indicator.</param>
 /// <param name="attendReligiousGroupsCount">The attend religious groups count.</param>
 /// <param name="attendReligiousGroupsIndicator">The attend religious groups indicator.</param>
 /// <param name="attendVoluntaryGroupsCount">The attend voluntary groups count.</param>
 /// <param name="attendVoluntaryGroupsIndicator">The attend voluntary groups indicator.</param>
 /// <param name="gpraTroubleContact">The Gpra trouble contact.</param>
 /// <param name="gpraTroubleContactSpecificationNote">The Gpra trouble contact specification note.</param>
 /// <param name="interactFamilyFriendsIndicator">The interact family friends indicator.</param>
 public GpraSocialConnectednessSection(GpraNonResponseType <int?> attendOtherGroupsCount,
                                       GpraNonResponseType <bool?> attendOtherGroupsIndicator,
                                       GpraNonResponseType <int?> attendReligiousGroupsCount,
                                       GpraNonResponseType <bool?> attendReligiousGroupsIndicator,
                                       GpraNonResponseType <int?> attendVoluntaryGroupsCount,
                                       GpraNonResponseType <bool?> attendVoluntaryGroupsIndicator,
                                       GpraNonResponseType <GpraTroubleContact> gpraTroubleContact,
                                       string gpraTroubleContactSpecificationNote,
                                       GpraNonResponseType <bool?> interactFamilyFriendsIndicator
                                       )
 {
     _attendOtherGroupsCount              = attendOtherGroupsCount;
     _attendOtherGroupsIndicator          = attendOtherGroupsIndicator;
     _attendReligiousGroupsCount          = attendReligiousGroupsCount;
     _attendReligiousGroupsIndicator      = attendReligiousGroupsIndicator;
     _attendVoluntaryGroupsCount          = attendVoluntaryGroupsCount;
     _attendVoluntaryGroupsIndicator      = attendVoluntaryGroupsIndicator;
     _gpraTroubleContact                  = gpraTroubleContact;
     _gpraTroubleContactSpecificationNote = gpraTroubleContactSpecificationNote;
     _interactFamilyFriendsIndicator      = interactFamilyFriendsIndicator;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GpraProblemsTreatmentRecoverySection"/> class.
 /// </summary>
 /// <param name="anxietyDayCount">The anxiety day count.</param>
 /// <param name="brainMisfunctionDayCount">The brain misfunction day count.</param>
 /// <param name="depressionDayCount">The depression day count.</param>
 /// <param name="erMentalEmotionalDifficultiesTimeCount">The er mental emotional difficulties time count.</param>
 /// <param name="erPhysicalComplaintIndicator">The er physical complaint indicator.</param>
 /// <param name="erPhysicalComplaintTimeCount">The er physical complaint time count.</param>
 /// <param name="erAlcoholSubstanceAbuseIndicator">The er alcohol substance abuse indicator.</param>
 /// <param name="erAlcoholSubstanceAbuseTimeCount">The er alcohol substance abuse time count.</param>
 /// <param name="erMentalEmotionalDifficultiesIndicator">The er mental emotional difficulties indicator.</param>
 /// <param name="gpraOverallHealth">The gpra overall health.</param>
 /// <param name="gpraPsychologicalImpact">The gpra psychological impact.</param>
 /// <param name="gpraSexualActivity">The gpra sexual activity.</param>
 /// <param name="hallucinationsDayCount">The hallucinations day count.</param>
 /// <param name="hivTestIndicator">The hiv test indicator.</param>
 /// <param name="hivTestResultsKnownIndicator">The hiv test results known indicator.</param>
 /// <param name="inpatientAlcoholSubstanceAbuseIndicator">The inpatient alcohol substance abuse indicator.</param>
 /// <param name="inpatientAlcoholSubstanceAbuseNightCount">The inpatient alcohol substance abuse night count.</param>
 /// <param name="inpatientMentalEmotionalDifficultiesIndicator">The inpatient mental emotional difficulties indicator.</param>
 /// <param name="inpatientMentalEmotionalDifficultiesNightCount">The inpatient mental emotional difficulties night count.</param>
 /// <param name="inpatientPhysicalComplaintIndicator">The inpatient physical complaint indicator.</param>
 /// <param name="inpatientPhysicalComplaintNightCount">The inpatient physical complaint night count.</param>
 /// <param name="outpatientAlcoholSubstanceAbuseIndicator">The outpatient alcohol substance abuse indicator.</param>
 /// <param name="outpatientAlcoholSubstanceAbuseTimeCount">The outpatient alcohol substance abuse time count.</param>
 /// <param name="outpatientMentalEmotionalDifficultiesIndicator">The outpatient mental emotional difficulties indicator.</param>
 /// <param name="outpatientMentalEmotionalDifficultiesTimeCount">The outpatient mental emotional difficulties time count.</param>
 /// <param name="outpatientPhysicalComplaintIndicator">The outpatient physical complaint indicator.</param>
 /// <param name="outpatientPhysicalComplaintTimeCount">The outpatient physical complaint time count.</param>
 /// <param name="psychologicalEmotionalMedicationDayCount">The psychological emotional medication day count.</param>
 /// <param name="sexualContactsCount">The sexual contacts count.</param>
 /// <param name="suicideDayCount">The suicide day count.</param>
 /// <param name="unprotectedSexualContactsCount">The unprotected sexual contacts count.</param>
 /// <param name="unprotectedSexualHighSaContactsCount">The unprotected sexual high sa contacts count.</param>
 /// <param name="unprotectedSexualHivContactsCount">The unprotected sexual hiv contacts count.</param>
 /// <param name="unprotectedSexualInjectionDrugContactsCount">The unprotected sexual injection drug contacts count.</param>
 /// <param name="violentBehaviorDayCount">The violent behavior day count.</param>
 public GpraProblemsTreatmentRecoverySection(GpraNonResponseType <int?> anxietyDayCount,
                                             GpraNonResponseType <int?> brainMisfunctionDayCount,
                                             GpraNonResponseType <int?> depressionDayCount,
                                             GpraNonResponseType <int?> erMentalEmotionalDifficultiesTimeCount,
                                             bool?erPhysicalComplaintIndicator,
                                             GpraNonResponseType <int?> erPhysicalComplaintTimeCount,
                                             bool?erAlcoholSubstanceAbuseIndicator,
                                             GpraNonResponseType <int?> erAlcoholSubstanceAbuseTimeCount,
                                             bool?erMentalEmotionalDifficultiesIndicator,
                                             GpraNonResponseType <GpraOverallHealth> gpraOverallHealth,
                                             GpraNonResponseType <GpraPsychologicalImpact> gpraPsychologicalImpact,
                                             GpraNonResponseType <GpraSexualActivity> gpraSexualActivity,
                                             GpraNonResponseType <int?> hallucinationsDayCount,
                                             GpraNonResponseType <bool?> hivTestIndicator,
                                             bool?hivTestResultsKnownIndicator,
                                             bool?inpatientAlcoholSubstanceAbuseIndicator,
                                             GpraNonResponseType <int?> inpatientAlcoholSubstanceAbuseNightCount,
                                             bool?inpatientMentalEmotionalDifficultiesIndicator,
                                             GpraNonResponseType <int?> inpatientMentalEmotionalDifficultiesNightCount,
                                             bool?inpatientPhysicalComplaintIndicator,
                                             GpraNonResponseType <int?> inpatientPhysicalComplaintNightCount,
                                             bool?outpatientAlcoholSubstanceAbuseIndicator,
                                             GpraNonResponseType <int?> outpatientAlcoholSubstanceAbuseTimeCount,
                                             bool?outpatientMentalEmotionalDifficultiesIndicator,
                                             GpraNonResponseType <int?> outpatientMentalEmotionalDifficultiesTimeCount,
                                             bool?outpatientPhysicalComplaintIndicator,
                                             GpraNonResponseType <int?> outpatientPhysicalComplaintTimeCount,
                                             GpraNonResponseType <int?> psychologicalEmotionalMedicationDayCount,
                                             GpraNonResponseType <int?> sexualContactsCount,
                                             GpraNonResponseType <int?> suicideDayCount,
                                             GpraNonResponseType <int?> unprotectedSexualContactsCount,
                                             GpraNonResponseType <int?> unprotectedSexualHighSaContactsCount,
                                             GpraNonResponseType <int?> unprotectedSexualHivContactsCount,
                                             GpraNonResponseType <int?> unprotectedSexualInjectionDrugContactsCount,
                                             GpraNonResponseType <int?> violentBehaviorDayCount)
 {
     if (hivTestIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => HivTestIndicator).Contains(hivTestIndicator.GpraNonResponse.WellKnownName))
     {
         throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Hiv Test Indicator.", hivTestIndicator.GpraNonResponse.Name), "HivTestIndicator");
     }
     _anxietyDayCount          = anxietyDayCount;
     _brainMisfunctionDayCount = brainMisfunctionDayCount;
     _depressionDayCount       = depressionDayCount;
     _erMentalEmotionalDifficultiesTimeCount = erMentalEmotionalDifficultiesTimeCount;
     _erPhysicalComplaintIndicator           = erPhysicalComplaintIndicator;
     _erPhysicalComplaintTimeCount           = erPhysicalComplaintTimeCount;
     _erAlcoholSubstanceAbuseIndicator       = erAlcoholSubstanceAbuseIndicator;
     _erAlcoholSubstanceAbuseTimeCount       = erAlcoholSubstanceAbuseTimeCount;
     _erMentalEmotionalDifficultiesIndicator = erMentalEmotionalDifficultiesIndicator;
     _gpraOverallHealth                              = gpraOverallHealth;
     _gpraPsychologicalImpact                        = gpraPsychologicalImpact;
     _gpraSexualActivity                             = gpraSexualActivity;
     _hallucinationsDayCount                         = hallucinationsDayCount;
     _hivTestIndicator                               = hivTestIndicator;
     _hivTestResultsKnownIndicator                   = hivTestResultsKnownIndicator;
     _inpatientAlcoholSubstanceAbuseIndicator        = inpatientAlcoholSubstanceAbuseIndicator;
     _inpatientAlcoholSubstanceAbuseNightCount       = inpatientAlcoholSubstanceAbuseNightCount;
     _inpatientMentalEmotionalDifficultiesIndicator  = inpatientMentalEmotionalDifficultiesIndicator;
     _inpatientMentalEmotionalDifficultiesNightCount = inpatientMentalEmotionalDifficultiesNightCount;
     _inpatientPhysicalComplaintIndicator            = inpatientPhysicalComplaintIndicator;
     _inpatientPhysicalComplaintNightCount           = inpatientPhysicalComplaintNightCount;
     _outpatientAlcoholSubstanceAbuseIndicator       = outpatientAlcoholSubstanceAbuseIndicator;
     _outpatientAlcoholSubstanceAbuseTimeCount       = outpatientAlcoholSubstanceAbuseTimeCount;
     _outpatientMentalEmotionalDifficultiesIndicator = outpatientMentalEmotionalDifficultiesIndicator;
     _outpatientMentalEmotionalDifficultiesTimeCount = outpatientMentalEmotionalDifficultiesTimeCount;
     _outpatientPhysicalComplaintIndicator           = outpatientPhysicalComplaintIndicator;
     _outpatientPhysicalComplaintTimeCount           = outpatientPhysicalComplaintTimeCount;
     _psychologicalEmotionalMedicationDayCount       = psychologicalEmotionalMedicationDayCount;
     _sexualContactsCount                            = sexualContactsCount;
     _suicideDayCount = suicideDayCount;
     _unprotectedSexualContactsCount              = unprotectedSexualContactsCount;
     _unprotectedSexualHighSaContactsCount        = unprotectedSexualHighSaContactsCount;
     _unprotectedSexualHivContactsCount           = unprotectedSexualHivContactsCount;
     _unprotectedSexualInjectionDrugContactsCount = unprotectedSexualInjectionDrugContactsCount;
     _violentBehaviorDayCount = violentBehaviorDayCount;
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GpraDrugAlcoholUseSection"/> class.
 /// </summary>
 /// <param name="alcoholIntoxicationFivePlusDrinksDayCount">The alcohol intoxication five plus drinks day count.</param>
 /// <param name="alcoholIntoxicationFourOrFewerDrinksDayCount">The alcohol intoxication four or fewer drinks day count.</param>
 /// <param name="anyAlcoholDayCount">Any alcohol day count.</param>
 /// <param name="barbituratesDayCount">The barbiturates day count.</param>
 /// <param name="barbituratesGpraDrugRoute">The barbiturates gpra drug route.</param>
 /// <param name="benzondiazepinesDayCount">The benzondiazepines day count.</param>
 /// <param name="benzondiazepinesGpraDrugRoute">The benzondiazepines gpra drug route.</param>
 /// <param name="cocaineCrackDayCount">The cocaine crack day count.</param>
 /// <param name="cocaineCrackGpraDrugRoute">The cocaine crack gpra drug route.</param>
 /// <param name="codeineDayCount">The codeine day count.</param>
 /// <param name="codeineGpraDrugRoute">The codeine gpra drug route.</param>
 /// <param name="darvonDayCount">The darvon day count.</param>
 /// <param name="darvonGpraDrugRoute">The darvon gpra drug route.</param>
 /// <param name="dermerolDayCount">The dermerol day count.</param>
 /// <param name="dermerolGpraDrugRoute">The dermerol gpra drug route.</param>
 /// <param name="diluadidDayCount">The diluadid day count.</param>
 /// <param name="diluadidGpraDrugRoute">The diluadid gpra drug route.</param>
 /// <param name="hallucinogensDayCount">The hallucinogens day count.</param>
 /// <param name="hallucinogensGpraDrugRoute">The hallucinogens gpra drug route.</param>
 /// <param name="heroinDayCount">The heroin day count.</param>
 /// <param name="heroinGpraDrugRoute">The heroin gpra drug route.</param>
 /// <param name="illegalDrugsDayCount">The illegal drugs day count.</param>
 /// <param name="inhalantsDayCount">The inhalants day count.</param>
 /// <param name="inhalantsGpraDrugRoute">The inhalants gpra drug route.</param>
 /// <param name="injectedDrugsIndicator">The injected drugs indicator.</param>
 /// <param name="injectionGpraFrequencyOfUseOfUsedItems">The injection gpra frequency of use of used items.</param>
 /// <param name="ketamineDayCount">The ketamine day count.</param>
 /// <param name="ketamineGpraDrugRoute">The ketamine gpra drug route.</param>
 /// <param name="marijuanaHashishDayCount">The marijuana hashish day count.</param>
 /// <param name="marijuanaHashishGpraDrugRoute">The marijuana hashish gpra drug route.</param>
 /// <param name="methamphetamineDayCount">The methamphetamine day count.</param>
 /// <param name="methamphetamineGpraDrugRoute">The methamphetamine gpra drug route.</param>
 /// <param name="morphineDayCount">The morphine day count.</param>
 /// <param name="morphineGpraDrugRoute">The morphine gpra drug route.</param>
 /// <param name="nonPrescriptionGhbDayCount">The non prescription GHB day count.</param>
 /// <param name="nonPrescriptionGhbGpraDrugRoute">The non prescription GHB gpra drug route.</param>
 /// <param name="nonPrescriptionMethadoneDayCount">The non prescription methadone day count.</param>
 /// <param name="nonPrescriptionMethodoneGpraDrugRoute">The non prescription methodone gpra drug route.</param>
 /// <param name="otherIllegalDrugsDayCount">The other illegal drugs day count.</param>
 /// <param name="otherIllegalDrugsGpraDrugRoute">The other illegal drugs gpra drug route.</param>
 /// <param name="otherIllegalDrugsSpecificationNote">The other illegal drugs specification note.</param>
 /// <param name="oxycontinOxycodoneDayCount">The oxycontin oxycodone day count.</param>
 /// <param name="oxycontinOxycodoneGpraDrugRoute">The oxycontin oxycodone gpra drug route.</param>
 /// <param name="percocetDayCount">The percocet day count.</param>
 /// <param name="percocetGpraDrugRoute">The percocet gpra drug route.</param>
 /// <param name="sameDayAlcoholDrugsDayCount">The same day alcohol drugs day count.</param>
 /// <param name="tranquilizersDayCount">The tranquilizers day count.</param>
 /// <param name="tranquilizersGpraDrugRoute">The tranquilizers gpra drug route.</param>
 /// <param name="tylenolDayCount">The tylenol day count.</param>
 /// <param name="tylenolGpraDrugRoute">The tylenol gpra drug route.</param>
 public GpraDrugAlcoholUseSection(GpraNonResponseType <int?> alcoholIntoxicationFivePlusDrinksDayCount,
                                  GpraNonResponseType <int?> alcoholIntoxicationFourOrFewerDrinksDayCount,
                                  GpraNonResponseType <int?> anyAlcoholDayCount,
                                  GpraNonResponseType <int?> barbituratesDayCount,
                                  GpraNonResponseType <GpraDrugRoute> barbituratesGpraDrugRoute,
                                  GpraNonResponseType <int?> benzondiazepinesDayCount,
                                  GpraNonResponseType <GpraDrugRoute> benzondiazepinesGpraDrugRoute,
                                  GpraNonResponseType <int?> cocaineCrackDayCount,
                                  GpraNonResponseType <GpraDrugRoute> cocaineCrackGpraDrugRoute,
                                  GpraNonResponseType <int?> codeineDayCount,
                                  GpraNonResponseType <GpraDrugRoute> codeineGpraDrugRoute,
                                  GpraNonResponseType <int?> darvonDayCount,
                                  GpraNonResponseType <GpraDrugRoute> darvonGpraDrugRoute,
                                  GpraNonResponseType <int?> dermerolDayCount,
                                  GpraNonResponseType <GpraDrugRoute> dermerolGpraDrugRoute,
                                  GpraNonResponseType <int?> diluadidDayCount,
                                  GpraNonResponseType <GpraDrugRoute> diluadidGpraDrugRoute,
                                  GpraNonResponseType <int?> hallucinogensDayCount,
                                  GpraNonResponseType <GpraDrugRoute> hallucinogensGpraDrugRoute,
                                  GpraNonResponseType <int?> heroinDayCount,
                                  GpraNonResponseType <GpraDrugRoute> heroinGpraDrugRoute,
                                  GpraNonResponseType <int?> illegalDrugsDayCount,
                                  GpraNonResponseType <int?> inhalantsDayCount,
                                  GpraNonResponseType <GpraDrugRoute> inhalantsGpraDrugRoute,
                                  GpraNonResponseType <bool?> injectedDrugsIndicator,
                                  GpraNonResponseType <GpraFrequencyOfUseOfUsedItems> injectionGpraFrequencyOfUseOfUsedItems,
                                  GpraNonResponseType <int?> ketamineDayCount,
                                  GpraNonResponseType <GpraDrugRoute> ketamineGpraDrugRoute,
                                  GpraNonResponseType <int?> marijuanaHashishDayCount,
                                  GpraNonResponseType <GpraDrugRoute> marijuanaHashishGpraDrugRoute,
                                  GpraNonResponseType <int?> methamphetamineDayCount,
                                  GpraNonResponseType <GpraDrugRoute> methamphetamineGpraDrugRoute,
                                  GpraNonResponseType <int?> morphineDayCount,
                                  GpraNonResponseType <GpraDrugRoute> morphineGpraDrugRoute,
                                  GpraNonResponseType <int?> nonPrescriptionGhbDayCount,
                                  GpraNonResponseType <GpraDrugRoute> nonPrescriptionGhbGpraDrugRoute,
                                  GpraNonResponseType <int?> nonPrescriptionMethadoneDayCount,
                                  GpraNonResponseType <GpraDrugRoute> nonPrescriptionMethodoneGpraDrugRoute,
                                  GpraNonResponseType <int?> otherIllegalDrugsDayCount,
                                  GpraNonResponseType <GpraDrugRoute> otherIllegalDrugsGpraDrugRoute,
                                  string otherIllegalDrugsSpecificationNote,
                                  GpraNonResponseType <int?> oxycontinOxycodoneDayCount,
                                  GpraNonResponseType <GpraDrugRoute> oxycontinOxycodoneGpraDrugRoute,
                                  GpraNonResponseType <int?> percocetDayCount,
                                  GpraNonResponseType <GpraDrugRoute> percocetGpraDrugRoute,
                                  GpraNonResponseType <int?> sameDayAlcoholDrugsDayCount,
                                  GpraNonResponseType <int?> tranquilizersDayCount,
                                  GpraNonResponseType <GpraDrugRoute> tranquilizersGpraDrugRoute,
                                  GpraNonResponseType <int?> tylenolDayCount,
                                  GpraNonResponseType <GpraDrugRoute> tylenolGpraDrugRoute
                                  )
 {
     _alcoholIntoxicationFivePlusDrinksDayCount    = alcoholIntoxicationFivePlusDrinksDayCount;
     _alcoholIntoxicationFourOrFewerDrinksDayCount = alcoholIntoxicationFourOrFewerDrinksDayCount;
     _anyAlcoholDayCount            = anyAlcoholDayCount;
     _barbituratesDayCount          = barbituratesDayCount;
     _barbituratesGpraDrugRoute     = barbituratesGpraDrugRoute;
     _benzondiazepinesDayCount      = benzondiazepinesDayCount;
     _benzondiazepinesGpraDrugRoute = benzondiazepinesGpraDrugRoute;
     _cocaineCrackDayCount          = cocaineCrackDayCount;
     _cocaineCrackGpraDrugRoute     = cocaineCrackGpraDrugRoute;
     _codeineDayCount                        = codeineDayCount;
     _codeineGpraDrugRoute                   = codeineGpraDrugRoute;
     _darvonDayCount                         = darvonDayCount;
     _darvonGpraDrugRoute                    = darvonGpraDrugRoute;
     _dermerolDayCount                       = dermerolDayCount;
     _dermerolGpraDrugRoute                  = dermerolGpraDrugRoute;
     _diluadidDayCount                       = diluadidDayCount;
     _diluadidGpraDrugRoute                  = diluadidGpraDrugRoute;
     _hallucinogensDayCount                  = hallucinogensDayCount;
     _hallucinogensGpraDrugRoute             = hallucinogensGpraDrugRoute;
     _heroinDayCount                         = heroinDayCount;
     _heroinGpraDrugRoute                    = heroinGpraDrugRoute;
     _illegalDrugsDayCount                   = illegalDrugsDayCount;
     _inhalantsDayCount                      = inhalantsDayCount;
     _inhalantsGpraDrugRoute                 = inhalantsGpraDrugRoute;
     _injectedDrugsIndicator                 = injectedDrugsIndicator;
     _injectionGpraFrequencyOfUseOfUsedItems = injectionGpraFrequencyOfUseOfUsedItems;
     _ketamineDayCount                       = ketamineDayCount;
     _ketamineGpraDrugRoute                  = ketamineGpraDrugRoute;
     _marijuanaHashishDayCount               = marijuanaHashishDayCount;
     _marijuanaHashishGpraDrugRoute          = marijuanaHashishGpraDrugRoute;
     _methamphetamineDayCount                = methamphetamineDayCount;
     _methamphetamineGpraDrugRoute           = methamphetamineGpraDrugRoute;
     _morphineDayCount                       = morphineDayCount;
     _morphineGpraDrugRoute                  = morphineGpraDrugRoute;
     _nonPrescriptionGhbDayCount             = nonPrescriptionGhbDayCount;
     _nonPrescriptionGhbGpraDrugRoute        = nonPrescriptionGhbGpraDrugRoute;
     _nonPrescriptionMethadoneDayCount       = nonPrescriptionMethadoneDayCount;
     _nonPrescriptionMethodoneGpraDrugRoute  = nonPrescriptionMethodoneGpraDrugRoute;
     _otherIllegalDrugsDayCount              = otherIllegalDrugsDayCount;
     _otherIllegalDrugsGpraDrugRoute         = otherIllegalDrugsGpraDrugRoute;
     _otherIllegalDrugsSpecificationNote     = otherIllegalDrugsSpecificationNote;
     _oxycontinOxycodoneDayCount             = oxycontinOxycodoneDayCount;
     _oxycontinOxycodoneGpraDrugRoute        = oxycontinOxycodoneGpraDrugRoute;
     _percocetDayCount                       = percocetDayCount;
     _percocetGpraDrugRoute                  = percocetGpraDrugRoute;
     _sameDayAlcoholDrugsDayCount            = sameDayAlcoholDrugsDayCount;
     _tranquilizersDayCount                  = tranquilizersDayCount;
     _tranquilizersGpraDrugRoute             = tranquilizersGpraDrugRoute;
     _tylenolDayCount                        = tylenolDayCount;
     _tylenolGpraDrugRoute                   = tylenolGpraDrugRoute;
 }
Пример #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GpraDemographicsSection"/> class.
        /// </summary>
        /// <param name="birthDate">The birth date.</param>
        /// <param name="ethnicGroupCentralAmericanIndicator">The ethnic group central american indicator.</param>
        /// <param name="ethnicGroupCubanIndicator">The ethnic group cuban indicator.</param>
        /// <param name="ethnicGroupDominicanIndicator">The ethnic group dominican indicator.</param>
        /// <param name="ethnicGroupMexicanIndicator">The ethnic group mexican indicator.</param>
        /// <param name="ethnicGroupOtherIndicator">The ethnic group other indicator.</param>
        /// <param name="ethnicGroupPuertoRicanIndicator">The ethnic group puerto rican indicator.</param>
        /// <param name="ethnicGroupSouthAmericanIndicator">The ethnic group south american indicator.</param>
        /// <param name="ethnicGroupSpecificationNote">The ethnic group specification note.</param>
        /// <param name="gpraPatientGender">The gpra patient gender.</param>
        /// <param name="gpraPatientGenderSpecificationNote">The gpra patient gender specification note.</param>
        /// <param name="hispanicLatinoIndicator">The hispanic latino indicator.</param>
        /// <param name="raceAlaskaNativeIndicator">The race alaska native indicator.</param>
        /// <param name="raceAmericanIndianIndicator">The race american indian indicator.</param>
        /// <param name="raceAsianIndicator">The race asian indicator.</param>
        /// <param name="raceBlackAfricanAmericanIndicator">The race black african american indicator.</param>
        /// <param name="raceNativeHawaiianOtherPacificIslanderIndicator">The race native hawaiian other pacific islander indicator.</param>
        /// <param name="raceWhiteIndicator">The race white indicator.</param>
        /// <param name="veteranIndicator">The veteran indicator.</param>
        public GpraDemographicsSection(GpraNonResponseType <DateTime?> birthDate,
                                       GpraNonResponseType <bool?> ethnicGroupCentralAmericanIndicator,
                                       GpraNonResponseType <bool?> ethnicGroupCubanIndicator,
                                       GpraNonResponseType <bool?> ethnicGroupDominicanIndicator,
                                       GpraNonResponseType <bool?> ethnicGroupMexicanIndicator,
                                       GpraNonResponseType <bool?> ethnicGroupOtherIndicator,
                                       GpraNonResponseType <bool?> ethnicGroupPuertoRicanIndicator,
                                       GpraNonResponseType <bool?> ethnicGroupSouthAmericanIndicator,
                                       string ethnicGroupSpecificationNote,
                                       GpraNonResponseType <GpraPatientGender> gpraPatientGender,
                                       string gpraPatientGenderSpecificationNote,
                                       GpraNonResponseType <bool?> hispanicLatinoIndicator,
                                       GpraNonResponseType <bool?> raceAlaskaNativeIndicator,
                                       GpraNonResponseType <bool?> raceAmericanIndianIndicator,
                                       GpraNonResponseType <bool?> raceAsianIndicator,
                                       GpraNonResponseType <bool?> raceBlackAfricanAmericanIndicator,
                                       GpraNonResponseType <bool?> raceNativeHawaiianOtherPacificIslanderIndicator,
                                       GpraNonResponseType <bool?> raceWhiteIndicator,
                                       GpraNonResponseType <bool?> veteranIndicator)
        {
            _birthDate = birthDate;

            if (ethnicGroupCentralAmericanIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => EthnicGroupCentralAmericanIndicator).Contains(ethnicGroupCentralAmericanIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Ethnic Group Central American Indicator.", ethnicGroupCentralAmericanIndicator.GpraNonResponse.Name), "EthnicGroupCentralAmericanIndicator");
            }
            _ethnicGroupCentralAmericanIndicator = ethnicGroupCentralAmericanIndicator;

            if (ethnicGroupCubanIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => EthnicGroupCubanIndicator).Contains(ethnicGroupCubanIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Ethnic Group Cuban Indicator.", ethnicGroupCubanIndicator.GpraNonResponse.Name), "EthnicGroupCubanIndicator");
            }
            _ethnicGroupCubanIndicator = ethnicGroupCubanIndicator;

            if (ethnicGroupDominicanIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => EthnicGroupCubanIndicator).Contains(ethnicGroupDominicanIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Ethnic Group Dominican Indicator.", ethnicGroupDominicanIndicator.GpraNonResponse.Name), "EthnicGroupDominicanIndicator");
            }
            _ethnicGroupDominicanIndicator = ethnicGroupDominicanIndicator;

            if (ethnicGroupMexicanIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => EthnicGroupMexicanIndicator).Contains(ethnicGroupMexicanIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Ethnic Group Mexican Indicator.", ethnicGroupMexicanIndicator.GpraNonResponse.Name), "EthnicGroupMexicanIndicator");
            }
            _ethnicGroupMexicanIndicator = ethnicGroupMexicanIndicator;

            if (ethnicGroupOtherIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => EthnicGroupOtherIndicator).Contains(ethnicGroupOtherIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Ethnic Group Other Indicator.", ethnicGroupOtherIndicator.GpraNonResponse.Name), "EthnicGroupOtherIndicator");
            }
            _ethnicGroupOtherIndicator = ethnicGroupOtherIndicator;

            if (ethnicGroupPuertoRicanIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => EthnicGroupPuertoRicanIndicator).Contains(ethnicGroupPuertoRicanIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Ethnic Group Puerto Rican Indicator.", ethnicGroupPuertoRicanIndicator.GpraNonResponse.Name), "EthnicGroupPuertoRicanIndicator");
            }
            _ethnicGroupPuertoRicanIndicator = ethnicGroupPuertoRicanIndicator;

            if (ethnicGroupSouthAmericanIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => EthnicGroupSouthAmericanIndicator).Contains(ethnicGroupSouthAmericanIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Ethnic Group South Asian Indicator.", ethnicGroupSouthAmericanIndicator.GpraNonResponse.Name), "EthnicGroupSouthAsianIndicator");
            }
            _ethnicGroupSouthAmericanIndicator = ethnicGroupSouthAmericanIndicator;

            _ethnicGroupSpecificationNote       = ethnicGroupSpecificationNote;
            _gpraPatientGender                  = gpraPatientGender;
            _gpraPatientGenderSpecificationNote = gpraPatientGenderSpecificationNote;

            if (hispanicLatinoIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => HispanicLatinoIndicator).Contains(hispanicLatinoIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Hispanic Latino Indicator.", hispanicLatinoIndicator.GpraNonResponse.Name), "HispanicLatinoIndicator");
            }
            _hispanicLatinoIndicator = hispanicLatinoIndicator;

            if (raceAlaskaNativeIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => RaceAlaskaNativeIndicator).Contains(raceAlaskaNativeIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Race Alaska Native Indicator.", raceAlaskaNativeIndicator.GpraNonResponse.Name), "RaceAlaskaNativeIndicator");
            }
            _raceAlaskaNativeIndicator = raceAlaskaNativeIndicator;

            if (raceAmericanIndianIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => RaceAmericanIndianIndicator).Contains(raceAmericanIndianIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Race American Indian Indicator.", raceAmericanIndianIndicator.GpraNonResponse.Name), "RaceAmericanIndianIndicator");
            }
            _raceAmericanIndianIndicator = raceAmericanIndianIndicator;

            if (raceAsianIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => RaceAsianIndicator).Contains(raceAsianIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Race Asian Indicator.", raceAsianIndicator.GpraNonResponse.Name), "RaceAsianIndicator");
            }
            _raceAsianIndicator = raceAsianIndicator;

            if (raceBlackAfricanAmericanIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => RaceBlackAfricanAmericanIndicator).Contains(raceBlackAfricanAmericanIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Race Black African American Indicator.", raceBlackAfricanAmericanIndicator.GpraNonResponse.Name), "RaceBlackAfricanAmericanIndicator");
            }
            _raceBlackAfricanAmericanIndicator = raceBlackAfricanAmericanIndicator;

            if (raceNativeHawaiianOtherPacificIslanderIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => RaceNativeHawaiianOtherPacificIslanderIndicator).Contains(raceNativeHawaiianOtherPacificIslanderIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Race Native Hawaiian Other Pacific Islander Indicator.", raceNativeHawaiianOtherPacificIslanderIndicator.GpraNonResponse.Name), "RaceNativeHawaiianOtherPacificIslanderIndicator");
            }
            _raceNativeHawaiianOtherPacificIslanderIndicator = raceNativeHawaiianOtherPacificIslanderIndicator;

            if (raceWhiteIndicator.GpraNonResponse != null && !GetPossibleGpraNonResponseWellKnownNames(() => RaceWhiteIndicator).Contains(raceWhiteIndicator.GpraNonResponse.WellKnownName))
            {
                throw new ArgumentException(string.Format("NonResponse of {0} is not a valid option for Race White Indicator.", raceWhiteIndicator.GpraNonResponse.Name), "RaceWhiteIndicator");
            }
            _raceWhiteIndicator = raceWhiteIndicator;

            _veteranIndicator = veteranIndicator;
        }