001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017package ca.uhn.fhir.model.dstu2.resource; 018 019import java.math.BigDecimal; 020import java.net.URI; 021import java.util.*; 022import ca.uhn.fhir.model.api.*; 023import ca.uhn.fhir.model.api.annotation.*; 024import ca.uhn.fhir.rest.gclient.*; 025 026import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum; 027import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum; 028import ca.uhn.fhir.model.dstu2.composite.AddressDt; 029import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum; 030import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum; 031import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum; 032import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum; 033import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum; 034import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance; 035import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum; 036import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum; 037import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum; 038import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum; 039import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum; 040import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum; 041import ca.uhn.fhir.model.dstu2.valueset.AnimalSpeciesEnum; 042import ca.uhn.fhir.model.dstu2.composite.AnnotationDt; 043import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum; 044import ca.uhn.fhir.model.dstu2.resource.Appointment; 045import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum; 046import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum; 047import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum; 048import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum; 049import ca.uhn.fhir.model.dstu2.composite.AttachmentDt; 050import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum; 051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum; 052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum; 053import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum; 054import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum; 055import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum; 056import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum; 057import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum; 058import ca.uhn.fhir.model.dstu2.resource.BodySite; 059import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum; 060import ca.uhn.fhir.model.dstu2.resource.CarePlan; 061import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityCategoryEnum; 062import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum; 063import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum; 064import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum; 065import ca.uhn.fhir.model.dstu2.resource.Claim; 066import ca.uhn.fhir.model.dstu2.resource.ClaimResponse; 067import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum; 068import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression; 069import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum; 070import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt; 071import ca.uhn.fhir.model.dstu2.composite.CodingDt; 072import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest; 073import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum; 074import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum; 075import ca.uhn.fhir.model.dstu2.resource.Composition; 076import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum; 077import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum; 078import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum; 079import ca.uhn.fhir.model.dstu2.resource.Condition; 080import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum; 081import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum; 082import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum; 083import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum; 084import ca.uhn.fhir.model.dstu2.valueset.ConditionsCodesEnum; 085import ca.uhn.fhir.model.dstu2.resource.Conformance; 086import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum; 087import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum; 088import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum; 089import ca.uhn.fhir.model.dstu2.composite.ContactPointDt; 090import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum; 091import ca.uhn.fhir.model.dstu2.resource.Contract; 092import ca.uhn.fhir.model.dstu2.valueset.ContractActionCodesEnum; 093import ca.uhn.fhir.model.dstu2.valueset.ContractActorRoleCodesEnum; 094import ca.uhn.fhir.model.dstu2.valueset.ContractSubtypeCodesEnum; 095import ca.uhn.fhir.model.dstu2.valueset.ContractTermTypeCodesEnum; 096import ca.uhn.fhir.model.dstu2.valueset.ContractTypeCodesEnum; 097import ca.uhn.fhir.model.dstu2.resource.Coverage; 098import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum; 099import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum; 100import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum; 101import ca.uhn.fhir.model.dstu2.resource.Device; 102import ca.uhn.fhir.model.dstu2.resource.DeviceComponent; 103import ca.uhn.fhir.model.dstu2.resource.DeviceMetric; 104import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum; 105import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum; 106import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum; 107import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum; 108import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum; 109import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum; 110import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest; 111import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum; 112import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum; 113import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder; 114import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum; 115import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum; 116import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport; 117import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum; 118import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum; 119import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum; 120import ca.uhn.fhir.model.dstu2.resource.DocumentReference; 121import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum; 122import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum; 123import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt; 124import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest; 125import ca.uhn.fhir.model.dstu2.resource.Encounter; 126import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum; 127import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum; 128import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum; 129import ca.uhn.fhir.model.dstu2.valueset.EncounterTypeEnum; 130import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest; 131import ca.uhn.fhir.model.dstu2.valueset.EnteralFormulaTypeCodesEnum; 132import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare; 133import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum; 134import ca.uhn.fhir.model.dstu2.valueset.ExceptionCodesEnum; 135import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum; 136import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum; 137import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory; 138import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum; 139import ca.uhn.fhir.model.dstu2.valueset.FlagCategoryCodesEnum; 140import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum; 141import ca.uhn.fhir.model.dstu2.valueset.FluidConsistencyTypeCodesEnum; 142import ca.uhn.fhir.model.dstu2.resource.Goal; 143import ca.uhn.fhir.model.dstu2.valueset.GoalCategoryEnum; 144import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum; 145import ca.uhn.fhir.model.dstu2.valueset.GoalStartEventEnum; 146import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum; 147import ca.uhn.fhir.model.dstu2.valueset.GoalStatusReasonEnum; 148import ca.uhn.fhir.model.dstu2.resource.Group; 149import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum; 150import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum; 151import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum; 152import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum; 153import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum; 154import ca.uhn.fhir.model.dstu2.resource.HealthcareService; 155import ca.uhn.fhir.model.dstu2.composite.HumanNameDt; 156import ca.uhn.fhir.model.dstu2.composite.IdentifierDt; 157import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum; 158import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum; 159import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection; 160import ca.uhn.fhir.model.dstu2.resource.ImagingStudy; 161import ca.uhn.fhir.model.dstu2.resource.Immunization; 162import ca.uhn.fhir.model.dstu2.valueset.ImmunizationReasonCodesEnum; 163import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationDateCriterionCodesEnum; 164import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationStatusCodesEnum; 165import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRouteCodesEnum; 166import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum; 167import ca.uhn.fhir.model.dstu2.valueset.InterventionCodesEnum; 168import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum; 169import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum; 170import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum; 171import ca.uhn.fhir.model.dstu2.valueset.LateralityEnum; 172import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum; 173import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum; 174import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum; 175import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum; 176import ca.uhn.fhir.model.dstu2.resource.Location; 177import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum; 178import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum; 179import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum; 180import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum; 181import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum; 182import ca.uhn.fhir.model.dstu2.resource.Media; 183import ca.uhn.fhir.model.dstu2.resource.Medication; 184import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum; 185import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum; 186import ca.uhn.fhir.model.dstu2.resource.MedicationOrder; 187import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum; 188import ca.uhn.fhir.model.dstu2.resource.MedicationStatement; 189import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum; 190import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum; 191import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum; 192import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum; 193import ca.uhn.fhir.model.dstu2.resource.NamingSystem; 194import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum; 195import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum; 196import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum; 197import ca.uhn.fhir.model.dstu2.valueset.NutrientModifierCodesEnum; 198import ca.uhn.fhir.model.dstu2.resource.NutritionOrder; 199import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum; 200import ca.uhn.fhir.model.dstu2.resource.Observation; 201import ca.uhn.fhir.model.dstu2.valueset.ObservationCategoryCodesEnum; 202import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum; 203import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum; 204import ca.uhn.fhir.model.dstu2.resource.OperationDefinition; 205import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum; 206import ca.uhn.fhir.model.dstu2.resource.OperationOutcome; 207import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum; 208import ca.uhn.fhir.model.dstu2.resource.Order; 209import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum; 210import ca.uhn.fhir.model.dstu2.resource.Organization; 211import ca.uhn.fhir.model.dstu2.valueset.OrganizationTypeEnum; 212import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum; 213import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum; 214import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum; 215import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum; 216import ca.uhn.fhir.model.dstu2.resource.Patient; 217import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum; 218import ca.uhn.fhir.model.dstu2.valueset.PaymentStatusCodesEnum; 219import ca.uhn.fhir.model.dstu2.valueset.PaymentTypeCodesEnum; 220import ca.uhn.fhir.model.dstu2.composite.PeriodDt; 221import ca.uhn.fhir.model.dstu2.resource.Person; 222import ca.uhn.fhir.model.dstu2.resource.Practitioner; 223import ca.uhn.fhir.model.dstu2.valueset.PractitionerRoleEnum; 224import ca.uhn.fhir.model.dstu2.valueset.PractitionerSpecialtyEnum; 225import ca.uhn.fhir.model.dstu2.valueset.PriorityCodesEnum; 226import ca.uhn.fhir.model.dstu2.resource.Procedure; 227import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest; 228import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum; 229import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum; 230import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum; 231import ca.uhn.fhir.model.dstu2.resource.ProcessRequest; 232import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum; 233import ca.uhn.fhir.model.dstu2.composite.QuantityDt; 234import ca.uhn.fhir.model.dstu2.resource.Questionnaire; 235import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse; 236import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum; 237import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum; 238import ca.uhn.fhir.model.dstu2.composite.RangeDt; 239import ca.uhn.fhir.model.dstu2.composite.RatioDt; 240import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum; 241import ca.uhn.fhir.model.dstu2.resource.ReferralRequest; 242import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum; 243import ca.uhn.fhir.model.dstu2.resource.RelatedPerson; 244import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum; 245import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum; 246import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum; 247import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum; 248import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum; 249import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum; 250import ca.uhn.fhir.model.dstu2.resource.RiskAssessment; 251import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum; 252import ca.uhn.fhir.model.dstu2.composite.SampledDataDt; 253import ca.uhn.fhir.model.dstu2.resource.Schedule; 254import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum; 255import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum; 256import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum; 257import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum; 258import ca.uhn.fhir.model.dstu2.composite.SignatureDt; 259import ca.uhn.fhir.model.dstu2.resource.Slot; 260import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum; 261import ca.uhn.fhir.model.dstu2.resource.Specimen; 262import ca.uhn.fhir.model.dstu2.valueset.SpecimenCollectionMethodEnum; 263import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum; 264import ca.uhn.fhir.model.dstu2.resource.StructureDefinition; 265import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum; 266import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum; 267import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum; 268import ca.uhn.fhir.model.dstu2.valueset.SubscriptionTagEnum; 269import ca.uhn.fhir.model.dstu2.resource.Substance; 270import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum; 271import ca.uhn.fhir.model.dstu2.valueset.SupplementTypeCodesEnum; 272import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum; 273import ca.uhn.fhir.model.dstu2.resource.SupplyRequest; 274import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestReasonEnum; 275import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum; 276import ca.uhn.fhir.model.dstu2.valueset.SurfaceCodesEnum; 277import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum; 278import ca.uhn.fhir.model.api.TemporalPrecisionEnum; 279import ca.uhn.fhir.model.dstu2.valueset.TextureModifiedFoodTypeCodesEnum; 280import ca.uhn.fhir.model.dstu2.valueset.TextureModifierCodesEnum; 281import ca.uhn.fhir.model.dstu2.composite.TimingDt; 282import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum; 283import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum; 284import ca.uhn.fhir.model.dstu2.valueset.UDICodesEnum; 285import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum; 286import ca.uhn.fhir.model.dstu2.valueset.UseEnum; 287import ca.uhn.fhir.model.dstu2.resource.ValueSet; 288import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum; 289import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum; 290import ca.uhn.fhir.model.dstu2.resource.VisionPrescription; 291import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum; 292import ca.uhn.fhir.model.api.IResource; 293import ca.uhn.fhir.model.dstu2.composite.AgeDt; 294import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt; 295import ca.uhn.fhir.model.dstu2.composite.DurationDt; 296import ca.uhn.fhir.model.dstu2.composite.MoneyDt; 297import ca.uhn.fhir.model.dstu2.composite.NarrativeDt; 298import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; 299import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt; 300import ca.uhn.fhir.model.primitive.Base64BinaryDt; 301import ca.uhn.fhir.model.primitive.BooleanDt; 302import ca.uhn.fhir.model.primitive.BoundCodeDt; 303import ca.uhn.fhir.model.primitive.CodeDt; 304import ca.uhn.fhir.model.primitive.DateDt; 305import ca.uhn.fhir.model.primitive.DateTimeDt; 306import ca.uhn.fhir.model.primitive.DecimalDt; 307import ca.uhn.fhir.model.primitive.IdDt; 308import ca.uhn.fhir.model.primitive.InstantDt; 309import ca.uhn.fhir.model.primitive.IntegerDt; 310import ca.uhn.fhir.model.primitive.OidDt; 311import ca.uhn.fhir.model.primitive.PositiveIntDt; 312import ca.uhn.fhir.model.primitive.StringDt; 313import ca.uhn.fhir.model.primitive.TimeDt; 314import ca.uhn.fhir.model.primitive.UnsignedIntDt; 315import ca.uhn.fhir.model.primitive.UriDt; 316 317 318/** 319 * HAPI/FHIR <b>QuestionnaireResponse</b> Resource 320 * (infrastructure.information) 321 * 322 * <p> 323 * <b>Definition:</b> 324 * A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions 325 * </p> 326 * 327 * <p> 328 * <b>Requirements:</b> 329 * To support structured, hierarchical registration of data gathered using digital forms and other questionnaires. 330 * </p> 331 * 332 * <p> 333 * <b>Profile Definition:</b> 334 * <a href="http://hl7.org/fhir/profiles/QuestionnaireResponse">http://hl7.org/fhir/profiles/QuestionnaireResponse</a> 335 * </p> 336 * 337 */ 338@ResourceDef(name="QuestionnaireResponse", profile="http://hl7.org/fhir/profiles/QuestionnaireResponse", id="questionnaireresponse") 339public class QuestionnaireResponse extends ca.uhn.fhir.model.dstu2.resource.BaseResource 340 implements IResource { 341 342 /** 343 * Search parameter constant for <b>status</b> 344 * <p> 345 * Description: <b>The status of the questionnaire response</b><br> 346 * Type: <b>token</b><br> 347 * Path: <b>QuestionnaireResponse.status</b><br> 348 * </p> 349 */ 350 @SearchParamDefinition(name="status", path="QuestionnaireResponse.status", description="The status of the questionnaire response", type="token" ) 351 public static final String SP_STATUS = "status"; 352 353 /** 354 * <b>Fluent Client</b> search parameter constant for <b>status</b> 355 * <p> 356 * Description: <b>The status of the questionnaire response</b><br> 357 * Type: <b>token</b><br> 358 * Path: <b>QuestionnaireResponse.status</b><br> 359 * </p> 360 */ 361 public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); 362 363 /** 364 * Search parameter constant for <b>authored</b> 365 * <p> 366 * Description: <b>When the questionnaire was authored</b><br> 367 * Type: <b>date</b><br> 368 * Path: <b>QuestionnaireResponse.authored</b><br> 369 * </p> 370 */ 371 @SearchParamDefinition(name="authored", path="QuestionnaireResponse.authored", description="When the questionnaire was authored", type="date" ) 372 public static final String SP_AUTHORED = "authored"; 373 374 /** 375 * <b>Fluent Client</b> search parameter constant for <b>authored</b> 376 * <p> 377 * Description: <b>When the questionnaire was authored</b><br> 378 * Type: <b>date</b><br> 379 * Path: <b>QuestionnaireResponse.authored</b><br> 380 * </p> 381 */ 382 public static final DateClientParam AUTHORED = new DateClientParam(SP_AUTHORED); 383 384 /** 385 * Search parameter constant for <b>subject</b> 386 * <p> 387 * Description: <b>The subject of the questionnaire</b><br> 388 * Type: <b>reference</b><br> 389 * Path: <b>QuestionnaireResponse.subject</b><br> 390 * </p> 391 */ 392 @SearchParamDefinition(name="subject", path="QuestionnaireResponse.subject", description="The subject of the questionnaire", type="reference" ) 393 public static final String SP_SUBJECT = "subject"; 394 395 /** 396 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 397 * <p> 398 * Description: <b>The subject of the questionnaire</b><br> 399 * Type: <b>reference</b><br> 400 * Path: <b>QuestionnaireResponse.subject</b><br> 401 * </p> 402 */ 403 public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); 404 405 /** 406 * Search parameter constant for <b>author</b> 407 * <p> 408 * Description: <b>The author of the questionnaire</b><br> 409 * Type: <b>reference</b><br> 410 * Path: <b>QuestionnaireResponse.author</b><br> 411 * </p> 412 */ 413 @SearchParamDefinition(name="author", path="QuestionnaireResponse.author", description="The author of the questionnaire", type="reference" ) 414 public static final String SP_AUTHOR = "author"; 415 416 /** 417 * <b>Fluent Client</b> search parameter constant for <b>author</b> 418 * <p> 419 * Description: <b>The author of the questionnaire</b><br> 420 * Type: <b>reference</b><br> 421 * Path: <b>QuestionnaireResponse.author</b><br> 422 * </p> 423 */ 424 public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); 425 426 /** 427 * Search parameter constant for <b>questionnaire</b> 428 * <p> 429 * Description: <b>The questionnaire the answers are provided for</b><br> 430 * Type: <b>reference</b><br> 431 * Path: <b>QuestionnaireResponse.questionnaire</b><br> 432 * </p> 433 */ 434 @SearchParamDefinition(name="questionnaire", path="QuestionnaireResponse.questionnaire", description="The questionnaire the answers are provided for", type="reference" ) 435 public static final String SP_QUESTIONNAIRE = "questionnaire"; 436 437 /** 438 * <b>Fluent Client</b> search parameter constant for <b>questionnaire</b> 439 * <p> 440 * Description: <b>The questionnaire the answers are provided for</b><br> 441 * Type: <b>reference</b><br> 442 * Path: <b>QuestionnaireResponse.questionnaire</b><br> 443 * </p> 444 */ 445 public static final ReferenceClientParam QUESTIONNAIRE = new ReferenceClientParam(SP_QUESTIONNAIRE); 446 447 /** 448 * Search parameter constant for <b>encounter</b> 449 * <p> 450 * Description: <b>Encounter during which questionnaire was authored</b><br> 451 * Type: <b>reference</b><br> 452 * Path: <b>QuestionnaireResponse.encounter</b><br> 453 * </p> 454 */ 455 @SearchParamDefinition(name="encounter", path="QuestionnaireResponse.encounter", description="Encounter during which questionnaire was authored", type="reference" ) 456 public static final String SP_ENCOUNTER = "encounter"; 457 458 /** 459 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 460 * <p> 461 * Description: <b>Encounter during which questionnaire was authored</b><br> 462 * Type: <b>reference</b><br> 463 * Path: <b>QuestionnaireResponse.encounter</b><br> 464 * </p> 465 */ 466 public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); 467 468 /** 469 * Search parameter constant for <b>patient</b> 470 * <p> 471 * Description: <b>The patient that is the subject of the questionnaire</b><br> 472 * Type: <b>reference</b><br> 473 * Path: <b>QuestionnaireResponse.subject</b><br> 474 * </p> 475 */ 476 @SearchParamDefinition(name="patient", path="QuestionnaireResponse.subject", description="The patient that is the subject of the questionnaire", type="reference" ) 477 public static final String SP_PATIENT = "patient"; 478 479 /** 480 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 481 * <p> 482 * Description: <b>The patient that is the subject of the questionnaire</b><br> 483 * Type: <b>reference</b><br> 484 * Path: <b>QuestionnaireResponse.subject</b><br> 485 * </p> 486 */ 487 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 488 489 /** 490 * Search parameter constant for <b>source</b> 491 * <p> 492 * Description: <b></b><br> 493 * Type: <b>reference</b><br> 494 * Path: <b>QuestionnaireResponse.source</b><br> 495 * </p> 496 */ 497 @SearchParamDefinition(name="source", path="QuestionnaireResponse.source", description="", type="reference" ) 498 public static final String SP_SOURCE = "source"; 499 500 /** 501 * <b>Fluent Client</b> search parameter constant for <b>source</b> 502 * <p> 503 * Description: <b></b><br> 504 * Type: <b>reference</b><br> 505 * Path: <b>QuestionnaireResponse.source</b><br> 506 * </p> 507 */ 508 public static final ReferenceClientParam SOURCE = new ReferenceClientParam(SP_SOURCE); 509 510 511 /** 512 * Constant for fluent queries to be used to add include statements. Specifies 513 * the path value of "<b>QuestionnaireResponse:author</b>". 514 */ 515 public static final Include INCLUDE_AUTHOR = new Include("QuestionnaireResponse:author"); 516 517 /** 518 * Constant for fluent queries to be used to add include statements. Specifies 519 * the path value of "<b>QuestionnaireResponse:encounter</b>". 520 */ 521 public static final Include INCLUDE_ENCOUNTER = new Include("QuestionnaireResponse:encounter"); 522 523 /** 524 * Constant for fluent queries to be used to add include statements. Specifies 525 * the path value of "<b>QuestionnaireResponse:patient</b>". 526 */ 527 public static final Include INCLUDE_PATIENT = new Include("QuestionnaireResponse:patient"); 528 529 /** 530 * Constant for fluent queries to be used to add include statements. Specifies 531 * the path value of "<b>QuestionnaireResponse:questionnaire</b>". 532 */ 533 public static final Include INCLUDE_QUESTIONNAIRE = new Include("QuestionnaireResponse:questionnaire"); 534 535 /** 536 * Constant for fluent queries to be used to add include statements. Specifies 537 * the path value of "<b>QuestionnaireResponse:source</b>". 538 */ 539 public static final Include INCLUDE_SOURCE = new Include("QuestionnaireResponse:source"); 540 541 /** 542 * Constant for fluent queries to be used to add include statements. Specifies 543 * the path value of "<b>QuestionnaireResponse:subject</b>". 544 */ 545 public static final Include INCLUDE_SUBJECT = new Include("QuestionnaireResponse:subject"); 546 547 548 @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1, summary=true, modifier=false) 549 @Description( 550 shortDefinition="id", 551 formalDefinition="A business identifier assigned to a particular completed (or partially completed) questionnaire" 552 ) 553 private IdentifierDt myIdentifier; 554 555 @Child(name="questionnaire", order=1, min=0, max=1, summary=true, modifier=false, type={ 556 ca.uhn.fhir.model.dstu2.resource.Questionnaire.class }) 557 @Description( 558 shortDefinition="", 559 formalDefinition="Indicates the Questionnaire resource that defines the form for which answers are being provided" 560 ) 561 private ResourceReferenceDt myQuestionnaire; 562 563 @Child(name="status", type=CodeDt.class, order=2, min=1, max=1, summary=true, modifier=true) 564 @Description( 565 shortDefinition="status", 566 formalDefinition="The lifecycle status of the questionnaire response as a whole." 567 ) 568 private BoundCodeDt<QuestionnaireResponseStatusEnum> myStatus; 569 570 @Child(name="subject", order=3, min=0, max=1, summary=true, modifier=false, type={ 571 IResource.class }) 572 @Description( 573 shortDefinition="who.focus", 574 formalDefinition="The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information" 575 ) 576 private ResourceReferenceDt mySubject; 577 578 @Child(name="author", order=4, min=0, max=1, summary=true, modifier=false, type={ 579 ca.uhn.fhir.model.dstu2.resource.Device.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class }) 580 @Description( 581 shortDefinition="who.author", 582 formalDefinition="Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system" 583 ) 584 private ResourceReferenceDt myAuthor; 585 586 @Child(name="authored", type=DateTimeDt.class, order=5, min=0, max=1, summary=true, modifier=false) 587 @Description( 588 shortDefinition="when.recorded", 589 formalDefinition="The date and/or time that this version of the questionnaire response was authored" 590 ) 591 private DateTimeDt myAuthored; 592 593 @Child(name="source", order=6, min=0, max=1, summary=true, modifier=false, type={ 594 ca.uhn.fhir.model.dstu2.resource.Patient.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class, ca.uhn.fhir.model.dstu2.resource.RelatedPerson.class }) 595 @Description( 596 shortDefinition="who.source", 597 formalDefinition="The person who answered the questions about the subject." 598 ) 599 private ResourceReferenceDt mySource; 600 601 @Child(name="encounter", order=7, min=0, max=1, summary=true, modifier=false, type={ 602 ca.uhn.fhir.model.dstu2.resource.Encounter.class }) 603 @Description( 604 shortDefinition="context", 605 formalDefinition="Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers." 606 ) 607 private ResourceReferenceDt myEncounter; 608 609 @Child(name="group", order=8, min=0, max=1, summary=false, modifier=false) 610 @Description( 611 shortDefinition="", 612 formalDefinition="A group of questions to a possibly similarly grouped set of questions in the questionnaire response" 613 ) 614 private Group myGroup; 615 616 617 @Override 618 public boolean isEmpty() { 619 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myQuestionnaire, myStatus, mySubject, myAuthor, myAuthored, mySource, myEncounter, myGroup); 620 } 621 622 @Override 623 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 624 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myQuestionnaire, myStatus, mySubject, myAuthor, myAuthored, mySource, myEncounter, myGroup); 625 } 626 627 /** 628 * Gets the value(s) for <b>identifier</b> (id). 629 * creating it if it does 630 * not exist. Will not return <code>null</code>. 631 * 632 * <p> 633 * <b>Definition:</b> 634 * A business identifier assigned to a particular completed (or partially completed) questionnaire 635 * </p> 636 */ 637 public IdentifierDt getIdentifier() { 638 if (myIdentifier == null) { 639 myIdentifier = new IdentifierDt(); 640 } 641 return myIdentifier; 642 } 643 644 /** 645 * Sets the value(s) for <b>identifier</b> (id) 646 * 647 * <p> 648 * <b>Definition:</b> 649 * A business identifier assigned to a particular completed (or partially completed) questionnaire 650 * </p> 651 */ 652 public QuestionnaireResponse setIdentifier(IdentifierDt theValue) { 653 myIdentifier = theValue; 654 return this; 655 } 656 657 658 659 660 /** 661 * Gets the value(s) for <b>questionnaire</b> (). 662 * creating it if it does 663 * not exist. Will not return <code>null</code>. 664 * 665 * <p> 666 * <b>Definition:</b> 667 * Indicates the Questionnaire resource that defines the form for which answers are being provided 668 * </p> 669 */ 670 public ResourceReferenceDt getQuestionnaire() { 671 if (myQuestionnaire == null) { 672 myQuestionnaire = new ResourceReferenceDt(); 673 } 674 return myQuestionnaire; 675 } 676 677 /** 678 * Sets the value(s) for <b>questionnaire</b> () 679 * 680 * <p> 681 * <b>Definition:</b> 682 * Indicates the Questionnaire resource that defines the form for which answers are being provided 683 * </p> 684 */ 685 public QuestionnaireResponse setQuestionnaire(ResourceReferenceDt theValue) { 686 myQuestionnaire = theValue; 687 return this; 688 } 689 690 691 692 693 /** 694 * Gets the value(s) for <b>status</b> (status). 695 * creating it if it does 696 * not exist. Will not return <code>null</code>. 697 * 698 * <p> 699 * <b>Definition:</b> 700 * The lifecycle status of the questionnaire response as a whole. 701 * </p> 702 */ 703 public BoundCodeDt<QuestionnaireResponseStatusEnum> getStatusElement() { 704 if (myStatus == null) { 705 myStatus = new BoundCodeDt<QuestionnaireResponseStatusEnum>(QuestionnaireResponseStatusEnum.VALUESET_BINDER); 706 } 707 return myStatus; 708 } 709 710 711 /** 712 * Gets the value(s) for <b>status</b> (status). 713 * creating it if it does 714 * not exist. Will not return <code>null</code>. 715 * 716 * <p> 717 * <b>Definition:</b> 718 * The lifecycle status of the questionnaire response as a whole. 719 * </p> 720 */ 721 public String getStatus() { 722 return getStatusElement().getValue(); 723 } 724 725 /** 726 * Sets the value(s) for <b>status</b> (status) 727 * 728 * <p> 729 * <b>Definition:</b> 730 * The lifecycle status of the questionnaire response as a whole. 731 * </p> 732 */ 733 public QuestionnaireResponse setStatus(BoundCodeDt<QuestionnaireResponseStatusEnum> theValue) { 734 myStatus = theValue; 735 return this; 736 } 737 738 739 740 /** 741 * Sets the value(s) for <b>status</b> (status) 742 * 743 * <p> 744 * <b>Definition:</b> 745 * The lifecycle status of the questionnaire response as a whole. 746 * </p> 747 */ 748 public QuestionnaireResponse setStatus(QuestionnaireResponseStatusEnum theValue) { 749 setStatus(new BoundCodeDt<QuestionnaireResponseStatusEnum>(QuestionnaireResponseStatusEnum.VALUESET_BINDER, theValue)); 750 751/* 752 getStatusElement().setValueAsEnum(theValue); 753*/ 754 return this; 755 } 756 757 758 /** 759 * Gets the value(s) for <b>subject</b> (who.focus). 760 * creating it if it does 761 * not exist. Will not return <code>null</code>. 762 * 763 * <p> 764 * <b>Definition:</b> 765 * The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information 766 * </p> 767 */ 768 public ResourceReferenceDt getSubject() { 769 if (mySubject == null) { 770 mySubject = new ResourceReferenceDt(); 771 } 772 return mySubject; 773 } 774 775 /** 776 * Sets the value(s) for <b>subject</b> (who.focus) 777 * 778 * <p> 779 * <b>Definition:</b> 780 * The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information 781 * </p> 782 */ 783 public QuestionnaireResponse setSubject(ResourceReferenceDt theValue) { 784 mySubject = theValue; 785 return this; 786 } 787 788 789 790 791 /** 792 * Gets the value(s) for <b>author</b> (who.author). 793 * creating it if it does 794 * not exist. Will not return <code>null</code>. 795 * 796 * <p> 797 * <b>Definition:</b> 798 * Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system 799 * </p> 800 */ 801 public ResourceReferenceDt getAuthor() { 802 if (myAuthor == null) { 803 myAuthor = new ResourceReferenceDt(); 804 } 805 return myAuthor; 806 } 807 808 /** 809 * Sets the value(s) for <b>author</b> (who.author) 810 * 811 * <p> 812 * <b>Definition:</b> 813 * Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system 814 * </p> 815 */ 816 public QuestionnaireResponse setAuthor(ResourceReferenceDt theValue) { 817 myAuthor = theValue; 818 return this; 819 } 820 821 822 823 824 /** 825 * Gets the value(s) for <b>authored</b> (when.recorded). 826 * creating it if it does 827 * not exist. Will not return <code>null</code>. 828 * 829 * <p> 830 * <b>Definition:</b> 831 * The date and/or time that this version of the questionnaire response was authored 832 * </p> 833 */ 834 public DateTimeDt getAuthoredElement() { 835 if (myAuthored == null) { 836 myAuthored = new DateTimeDt(); 837 } 838 return myAuthored; 839 } 840 841 842 /** 843 * Gets the value(s) for <b>authored</b> (when.recorded). 844 * creating it if it does 845 * not exist. Will not return <code>null</code>. 846 * 847 * <p> 848 * <b>Definition:</b> 849 * The date and/or time that this version of the questionnaire response was authored 850 * </p> 851 */ 852 public Date getAuthored() { 853 return getAuthoredElement().getValue(); 854 } 855 856 /** 857 * Sets the value(s) for <b>authored</b> (when.recorded) 858 * 859 * <p> 860 * <b>Definition:</b> 861 * The date and/or time that this version of the questionnaire response was authored 862 * </p> 863 */ 864 public QuestionnaireResponse setAuthored(DateTimeDt theValue) { 865 myAuthored = theValue; 866 return this; 867 } 868 869 870 871 /** 872 * Sets the value for <b>authored</b> (when.recorded) 873 * 874 * <p> 875 * <b>Definition:</b> 876 * The date and/or time that this version of the questionnaire response was authored 877 * </p> 878 */ 879 public QuestionnaireResponse setAuthored( Date theDate, TemporalPrecisionEnum thePrecision) { 880 myAuthored = new DateTimeDt(theDate, thePrecision); 881 return this; 882 } 883 884 /** 885 * Sets the value for <b>authored</b> (when.recorded) 886 * 887 * <p> 888 * <b>Definition:</b> 889 * The date and/or time that this version of the questionnaire response was authored 890 * </p> 891 */ 892 public QuestionnaireResponse setAuthoredWithSecondsPrecision( Date theDate) { 893 myAuthored = new DateTimeDt(theDate); 894 return this; 895 } 896 897 898 /** 899 * Gets the value(s) for <b>source</b> (who.source). 900 * creating it if it does 901 * not exist. Will not return <code>null</code>. 902 * 903 * <p> 904 * <b>Definition:</b> 905 * The person who answered the questions about the subject. 906 * </p> 907 */ 908 public ResourceReferenceDt getSource() { 909 if (mySource == null) { 910 mySource = new ResourceReferenceDt(); 911 } 912 return mySource; 913 } 914 915 /** 916 * Sets the value(s) for <b>source</b> (who.source) 917 * 918 * <p> 919 * <b>Definition:</b> 920 * The person who answered the questions about the subject. 921 * </p> 922 */ 923 public QuestionnaireResponse setSource(ResourceReferenceDt theValue) { 924 mySource = theValue; 925 return this; 926 } 927 928 929 930 931 /** 932 * Gets the value(s) for <b>encounter</b> (context). 933 * creating it if it does 934 * not exist. Will not return <code>null</code>. 935 * 936 * <p> 937 * <b>Definition:</b> 938 * Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers. 939 * </p> 940 */ 941 public ResourceReferenceDt getEncounter() { 942 if (myEncounter == null) { 943 myEncounter = new ResourceReferenceDt(); 944 } 945 return myEncounter; 946 } 947 948 /** 949 * Sets the value(s) for <b>encounter</b> (context) 950 * 951 * <p> 952 * <b>Definition:</b> 953 * Encounter during which this set of questionnaire response were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers. 954 * </p> 955 */ 956 public QuestionnaireResponse setEncounter(ResourceReferenceDt theValue) { 957 myEncounter = theValue; 958 return this; 959 } 960 961 962 963 964 /** 965 * Gets the value(s) for <b>group</b> (). 966 * creating it if it does 967 * not exist. Will not return <code>null</code>. 968 * 969 * <p> 970 * <b>Definition:</b> 971 * A group of questions to a possibly similarly grouped set of questions in the questionnaire response 972 * </p> 973 */ 974 public Group getGroup() { 975 if (myGroup == null) { 976 myGroup = new Group(); 977 } 978 return myGroup; 979 } 980 981 /** 982 * Sets the value(s) for <b>group</b> () 983 * 984 * <p> 985 * <b>Definition:</b> 986 * A group of questions to a possibly similarly grouped set of questions in the questionnaire response 987 * </p> 988 */ 989 public QuestionnaireResponse setGroup(Group theValue) { 990 myGroup = theValue; 991 return this; 992 } 993 994 995 996 997 /** 998 * Block class for child element: <b>QuestionnaireResponse.group</b> () 999 * 1000 * <p> 1001 * <b>Definition:</b> 1002 * A group of questions to a possibly similarly grouped set of questions in the questionnaire response 1003 * </p> 1004 */ 1005 @Block() 1006 public static class Group 1007 extends BaseIdentifiableElement implements IResourceBlock { 1008 1009 @Child(name="linkId", type=StringDt.class, order=0, min=0, max=1, summary=false, modifier=false) 1010 @Description( 1011 shortDefinition="", 1012 formalDefinition="Identifies the group from the Questionnaire that corresponds to this group in the QuestionnaireResponse resource." 1013 ) 1014 private StringDt myLinkId; 1015 1016 @Child(name="title", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) 1017 @Description( 1018 shortDefinition="", 1019 formalDefinition="Text that is displayed above the contents of the group" 1020 ) 1021 private StringDt myTitle; 1022 1023 @Child(name="text", type=StringDt.class, order=2, min=0, max=1, summary=false, modifier=false) 1024 @Description( 1025 shortDefinition="", 1026 formalDefinition="Additional text for the group, used for display purposes" 1027 ) 1028 private StringDt myText; 1029 1030 @Child(name="subject", order=3, min=0, max=1, summary=false, modifier=false, type={ 1031 IResource.class }) 1032 @Description( 1033 shortDefinition="", 1034 formalDefinition="More specific subject this section's answers are about, details the subject given in QuestionnaireResponse" 1035 ) 1036 private ResourceReferenceDt mySubject; 1037 1038 @Child(name="group", type=Group.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 1039 @Description( 1040 shortDefinition="", 1041 formalDefinition="A sub-group within a group. The ordering of groups within this group is relevant" 1042 ) 1043 private java.util.List<Group> myGroup; 1044 1045 @Child(name="question", order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 1046 @Description( 1047 shortDefinition="", 1048 formalDefinition="Set of questions within this group. The order of questions within the group is relevant" 1049 ) 1050 private java.util.List<GroupQuestion> myQuestion; 1051 1052 1053 @Override 1054 public boolean isEmpty() { 1055 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLinkId, myTitle, myText, mySubject, myGroup, myQuestion); 1056 } 1057 1058 @Override 1059 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 1060 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLinkId, myTitle, myText, mySubject, myGroup, myQuestion); 1061 } 1062 1063 /** 1064 * Gets the value(s) for <b>linkId</b> (). 1065 * creating it if it does 1066 * not exist. Will not return <code>null</code>. 1067 * 1068 * <p> 1069 * <b>Definition:</b> 1070 * Identifies the group from the Questionnaire that corresponds to this group in the QuestionnaireResponse resource. 1071 * </p> 1072 */ 1073 public StringDt getLinkIdElement() { 1074 if (myLinkId == null) { 1075 myLinkId = new StringDt(); 1076 } 1077 return myLinkId; 1078 } 1079 1080 1081 /** 1082 * Gets the value(s) for <b>linkId</b> (). 1083 * creating it if it does 1084 * not exist. Will not return <code>null</code>. 1085 * 1086 * <p> 1087 * <b>Definition:</b> 1088 * Identifies the group from the Questionnaire that corresponds to this group in the QuestionnaireResponse resource. 1089 * </p> 1090 */ 1091 public String getLinkId() { 1092 return getLinkIdElement().getValue(); 1093 } 1094 1095 /** 1096 * Sets the value(s) for <b>linkId</b> () 1097 * 1098 * <p> 1099 * <b>Definition:</b> 1100 * Identifies the group from the Questionnaire that corresponds to this group in the QuestionnaireResponse resource. 1101 * </p> 1102 */ 1103 public Group setLinkId(StringDt theValue) { 1104 myLinkId = theValue; 1105 return this; 1106 } 1107 1108 1109 1110 /** 1111 * Sets the value for <b>linkId</b> () 1112 * 1113 * <p> 1114 * <b>Definition:</b> 1115 * Identifies the group from the Questionnaire that corresponds to this group in the QuestionnaireResponse resource. 1116 * </p> 1117 */ 1118 public Group setLinkId( String theString) { 1119 myLinkId = new StringDt(theString); 1120 return this; 1121 } 1122 1123 1124 /** 1125 * Gets the value(s) for <b>title</b> (). 1126 * creating it if it does 1127 * not exist. Will not return <code>null</code>. 1128 * 1129 * <p> 1130 * <b>Definition:</b> 1131 * Text that is displayed above the contents of the group 1132 * </p> 1133 */ 1134 public StringDt getTitleElement() { 1135 if (myTitle == null) { 1136 myTitle = new StringDt(); 1137 } 1138 return myTitle; 1139 } 1140 1141 1142 /** 1143 * Gets the value(s) for <b>title</b> (). 1144 * creating it if it does 1145 * not exist. Will not return <code>null</code>. 1146 * 1147 * <p> 1148 * <b>Definition:</b> 1149 * Text that is displayed above the contents of the group 1150 * </p> 1151 */ 1152 public String getTitle() { 1153 return getTitleElement().getValue(); 1154 } 1155 1156 /** 1157 * Sets the value(s) for <b>title</b> () 1158 * 1159 * <p> 1160 * <b>Definition:</b> 1161 * Text that is displayed above the contents of the group 1162 * </p> 1163 */ 1164 public Group setTitle(StringDt theValue) { 1165 myTitle = theValue; 1166 return this; 1167 } 1168 1169 1170 1171 /** 1172 * Sets the value for <b>title</b> () 1173 * 1174 * <p> 1175 * <b>Definition:</b> 1176 * Text that is displayed above the contents of the group 1177 * </p> 1178 */ 1179 public Group setTitle( String theString) { 1180 myTitle = new StringDt(theString); 1181 return this; 1182 } 1183 1184 1185 /** 1186 * Gets the value(s) for <b>text</b> (). 1187 * creating it if it does 1188 * not exist. Will not return <code>null</code>. 1189 * 1190 * <p> 1191 * <b>Definition:</b> 1192 * Additional text for the group, used for display purposes 1193 * </p> 1194 */ 1195 public StringDt getTextElement() { 1196 if (myText == null) { 1197 myText = new StringDt(); 1198 } 1199 return myText; 1200 } 1201 1202 1203 /** 1204 * Gets the value(s) for <b>text</b> (). 1205 * creating it if it does 1206 * not exist. Will not return <code>null</code>. 1207 * 1208 * <p> 1209 * <b>Definition:</b> 1210 * Additional text for the group, used for display purposes 1211 * </p> 1212 */ 1213 public String getText() { 1214 return getTextElement().getValue(); 1215 } 1216 1217 /** 1218 * Sets the value(s) for <b>text</b> () 1219 * 1220 * <p> 1221 * <b>Definition:</b> 1222 * Additional text for the group, used for display purposes 1223 * </p> 1224 */ 1225 public Group setText(StringDt theValue) { 1226 myText = theValue; 1227 return this; 1228 } 1229 1230 1231 1232 /** 1233 * Sets the value for <b>text</b> () 1234 * 1235 * <p> 1236 * <b>Definition:</b> 1237 * Additional text for the group, used for display purposes 1238 * </p> 1239 */ 1240 public Group setText( String theString) { 1241 myText = new StringDt(theString); 1242 return this; 1243 } 1244 1245 1246 /** 1247 * Gets the value(s) for <b>subject</b> (). 1248 * creating it if it does 1249 * not exist. Will not return <code>null</code>. 1250 * 1251 * <p> 1252 * <b>Definition:</b> 1253 * More specific subject this section's answers are about, details the subject given in QuestionnaireResponse 1254 * </p> 1255 */ 1256 public ResourceReferenceDt getSubject() { 1257 if (mySubject == null) { 1258 mySubject = new ResourceReferenceDt(); 1259 } 1260 return mySubject; 1261 } 1262 1263 /** 1264 * Sets the value(s) for <b>subject</b> () 1265 * 1266 * <p> 1267 * <b>Definition:</b> 1268 * More specific subject this section's answers are about, details the subject given in QuestionnaireResponse 1269 * </p> 1270 */ 1271 public Group setSubject(ResourceReferenceDt theValue) { 1272 mySubject = theValue; 1273 return this; 1274 } 1275 1276 1277 1278 1279 /** 1280 * Gets the value(s) for <b>group</b> (). 1281 * creating it if it does 1282 * not exist. Will not return <code>null</code>. 1283 * 1284 * <p> 1285 * <b>Definition:</b> 1286 * A sub-group within a group. The ordering of groups within this group is relevant 1287 * </p> 1288 */ 1289 public java.util.List<Group> getGroup() { 1290 if (myGroup == null) { 1291 myGroup = new java.util.ArrayList<Group>(); 1292 } 1293 return myGroup; 1294 } 1295 1296 /** 1297 * Sets the value(s) for <b>group</b> () 1298 * 1299 * <p> 1300 * <b>Definition:</b> 1301 * A sub-group within a group. The ordering of groups within this group is relevant 1302 * </p> 1303 */ 1304 public Group setGroup(java.util.List<Group> theValue) { 1305 myGroup = theValue; 1306 return this; 1307 } 1308 1309 1310 1311 /** 1312 * Adds and returns a new value for <b>group</b> () 1313 * 1314 * <p> 1315 * <b>Definition:</b> 1316 * A sub-group within a group. The ordering of groups within this group is relevant 1317 * </p> 1318 */ 1319 public Group addGroup() { 1320 Group newType = new Group(); 1321 getGroup().add(newType); 1322 return newType; 1323 } 1324 1325 /** 1326 * Adds a given new value for <b>group</b> () 1327 * 1328 * <p> 1329 * <b>Definition:</b> 1330 * A sub-group within a group. The ordering of groups within this group is relevant 1331 * </p> 1332 * @param theValue The group to add (must not be <code>null</code>) 1333 */ 1334 public Group addGroup(Group theValue) { 1335 if (theValue == null) { 1336 throw new NullPointerException("theValue must not be null"); 1337 } 1338 getGroup().add(theValue); 1339 return this; 1340 } 1341 1342 /** 1343 * Gets the first repetition for <b>group</b> (), 1344 * creating it if it does not already exist. 1345 * 1346 * <p> 1347 * <b>Definition:</b> 1348 * A sub-group within a group. The ordering of groups within this group is relevant 1349 * </p> 1350 */ 1351 public Group getGroupFirstRep() { 1352 if (getGroup().isEmpty()) { 1353 return addGroup(); 1354 } 1355 return getGroup().get(0); 1356 } 1357 1358 /** 1359 * Gets the value(s) for <b>question</b> (). 1360 * creating it if it does 1361 * not exist. Will not return <code>null</code>. 1362 * 1363 * <p> 1364 * <b>Definition:</b> 1365 * Set of questions within this group. The order of questions within the group is relevant 1366 * </p> 1367 */ 1368 public java.util.List<GroupQuestion> getQuestion() { 1369 if (myQuestion == null) { 1370 myQuestion = new java.util.ArrayList<GroupQuestion>(); 1371 } 1372 return myQuestion; 1373 } 1374 1375 /** 1376 * Sets the value(s) for <b>question</b> () 1377 * 1378 * <p> 1379 * <b>Definition:</b> 1380 * Set of questions within this group. The order of questions within the group is relevant 1381 * </p> 1382 */ 1383 public Group setQuestion(java.util.List<GroupQuestion> theValue) { 1384 myQuestion = theValue; 1385 return this; 1386 } 1387 1388 1389 1390 /** 1391 * Adds and returns a new value for <b>question</b> () 1392 * 1393 * <p> 1394 * <b>Definition:</b> 1395 * Set of questions within this group. The order of questions within the group is relevant 1396 * </p> 1397 */ 1398 public GroupQuestion addQuestion() { 1399 GroupQuestion newType = new GroupQuestion(); 1400 getQuestion().add(newType); 1401 return newType; 1402 } 1403 1404 /** 1405 * Adds a given new value for <b>question</b> () 1406 * 1407 * <p> 1408 * <b>Definition:</b> 1409 * Set of questions within this group. The order of questions within the group is relevant 1410 * </p> 1411 * @param theValue The question to add (must not be <code>null</code>) 1412 */ 1413 public Group addQuestion(GroupQuestion theValue) { 1414 if (theValue == null) { 1415 throw new NullPointerException("theValue must not be null"); 1416 } 1417 getQuestion().add(theValue); 1418 return this; 1419 } 1420 1421 /** 1422 * Gets the first repetition for <b>question</b> (), 1423 * creating it if it does not already exist. 1424 * 1425 * <p> 1426 * <b>Definition:</b> 1427 * Set of questions within this group. The order of questions within the group is relevant 1428 * </p> 1429 */ 1430 public GroupQuestion getQuestionFirstRep() { 1431 if (getQuestion().isEmpty()) { 1432 return addQuestion(); 1433 } 1434 return getQuestion().get(0); 1435 } 1436 1437 1438 1439 } 1440 1441 /** 1442 * Block class for child element: <b>QuestionnaireResponse.group.question</b> () 1443 * 1444 * <p> 1445 * <b>Definition:</b> 1446 * Set of questions within this group. The order of questions within the group is relevant 1447 * </p> 1448 */ 1449 @Block() 1450 public static class GroupQuestion 1451 extends BaseIdentifiableElement implements IResourceBlock { 1452 1453 @Child(name="linkId", type=StringDt.class, order=0, min=0, max=1, summary=false, modifier=false) 1454 @Description( 1455 shortDefinition="", 1456 formalDefinition="Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource." 1457 ) 1458 private StringDt myLinkId; 1459 1460 @Child(name="text", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false) 1461 @Description( 1462 shortDefinition="", 1463 formalDefinition="The actual question as shown to the user to prompt them for an answer." 1464 ) 1465 private StringDt myText; 1466 1467 @Child(name="answer", order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 1468 @Description( 1469 shortDefinition="", 1470 formalDefinition="The respondent's answer(s) to the question" 1471 ) 1472 private java.util.List<GroupQuestionAnswer> myAnswer; 1473 1474 1475 @Override 1476 public boolean isEmpty() { 1477 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLinkId, myText, myAnswer); 1478 } 1479 1480 @Override 1481 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 1482 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLinkId, myText, myAnswer); 1483 } 1484 1485 /** 1486 * Gets the value(s) for <b>linkId</b> (). 1487 * creating it if it does 1488 * not exist. Will not return <code>null</code>. 1489 * 1490 * <p> 1491 * <b>Definition:</b> 1492 * Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource. 1493 * </p> 1494 */ 1495 public StringDt getLinkIdElement() { 1496 if (myLinkId == null) { 1497 myLinkId = new StringDt(); 1498 } 1499 return myLinkId; 1500 } 1501 1502 1503 /** 1504 * Gets the value(s) for <b>linkId</b> (). 1505 * creating it if it does 1506 * not exist. Will not return <code>null</code>. 1507 * 1508 * <p> 1509 * <b>Definition:</b> 1510 * Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource. 1511 * </p> 1512 */ 1513 public String getLinkId() { 1514 return getLinkIdElement().getValue(); 1515 } 1516 1517 /** 1518 * Sets the value(s) for <b>linkId</b> () 1519 * 1520 * <p> 1521 * <b>Definition:</b> 1522 * Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource. 1523 * </p> 1524 */ 1525 public GroupQuestion setLinkId(StringDt theValue) { 1526 myLinkId = theValue; 1527 return this; 1528 } 1529 1530 1531 1532 /** 1533 * Sets the value for <b>linkId</b> () 1534 * 1535 * <p> 1536 * <b>Definition:</b> 1537 * Identifies the question from the Questionnaire that corresponds to this question in the QuestionnaireResponse resource. 1538 * </p> 1539 */ 1540 public GroupQuestion setLinkId( String theString) { 1541 myLinkId = new StringDt(theString); 1542 return this; 1543 } 1544 1545 1546 /** 1547 * Gets the value(s) for <b>text</b> (). 1548 * creating it if it does 1549 * not exist. Will not return <code>null</code>. 1550 * 1551 * <p> 1552 * <b>Definition:</b> 1553 * The actual question as shown to the user to prompt them for an answer. 1554 * </p> 1555 */ 1556 public StringDt getTextElement() { 1557 if (myText == null) { 1558 myText = new StringDt(); 1559 } 1560 return myText; 1561 } 1562 1563 1564 /** 1565 * Gets the value(s) for <b>text</b> (). 1566 * creating it if it does 1567 * not exist. Will not return <code>null</code>. 1568 * 1569 * <p> 1570 * <b>Definition:</b> 1571 * The actual question as shown to the user to prompt them for an answer. 1572 * </p> 1573 */ 1574 public String getText() { 1575 return getTextElement().getValue(); 1576 } 1577 1578 /** 1579 * Sets the value(s) for <b>text</b> () 1580 * 1581 * <p> 1582 * <b>Definition:</b> 1583 * The actual question as shown to the user to prompt them for an answer. 1584 * </p> 1585 */ 1586 public GroupQuestion setText(StringDt theValue) { 1587 myText = theValue; 1588 return this; 1589 } 1590 1591 1592 1593 /** 1594 * Sets the value for <b>text</b> () 1595 * 1596 * <p> 1597 * <b>Definition:</b> 1598 * The actual question as shown to the user to prompt them for an answer. 1599 * </p> 1600 */ 1601 public GroupQuestion setText( String theString) { 1602 myText = new StringDt(theString); 1603 return this; 1604 } 1605 1606 1607 /** 1608 * Gets the value(s) for <b>answer</b> (). 1609 * creating it if it does 1610 * not exist. Will not return <code>null</code>. 1611 * 1612 * <p> 1613 * <b>Definition:</b> 1614 * The respondent's answer(s) to the question 1615 * </p> 1616 */ 1617 public java.util.List<GroupQuestionAnswer> getAnswer() { 1618 if (myAnswer == null) { 1619 myAnswer = new java.util.ArrayList<GroupQuestionAnswer>(); 1620 } 1621 return myAnswer; 1622 } 1623 1624 /** 1625 * Sets the value(s) for <b>answer</b> () 1626 * 1627 * <p> 1628 * <b>Definition:</b> 1629 * The respondent's answer(s) to the question 1630 * </p> 1631 */ 1632 public GroupQuestion setAnswer(java.util.List<GroupQuestionAnswer> theValue) { 1633 myAnswer = theValue; 1634 return this; 1635 } 1636 1637 1638 1639 /** 1640 * Adds and returns a new value for <b>answer</b> () 1641 * 1642 * <p> 1643 * <b>Definition:</b> 1644 * The respondent's answer(s) to the question 1645 * </p> 1646 */ 1647 public GroupQuestionAnswer addAnswer() { 1648 GroupQuestionAnswer newType = new GroupQuestionAnswer(); 1649 getAnswer().add(newType); 1650 return newType; 1651 } 1652 1653 /** 1654 * Adds a given new value for <b>answer</b> () 1655 * 1656 * <p> 1657 * <b>Definition:</b> 1658 * The respondent's answer(s) to the question 1659 * </p> 1660 * @param theValue The answer to add (must not be <code>null</code>) 1661 */ 1662 public GroupQuestion addAnswer(GroupQuestionAnswer theValue) { 1663 if (theValue == null) { 1664 throw new NullPointerException("theValue must not be null"); 1665 } 1666 getAnswer().add(theValue); 1667 return this; 1668 } 1669 1670 /** 1671 * Gets the first repetition for <b>answer</b> (), 1672 * creating it if it does not already exist. 1673 * 1674 * <p> 1675 * <b>Definition:</b> 1676 * The respondent's answer(s) to the question 1677 * </p> 1678 */ 1679 public GroupQuestionAnswer getAnswerFirstRep() { 1680 if (getAnswer().isEmpty()) { 1681 return addAnswer(); 1682 } 1683 return getAnswer().get(0); 1684 } 1685 1686 1687 1688 } 1689 1690 /** 1691 * Block class for child element: <b>QuestionnaireResponse.group.question.answer</b> () 1692 * 1693 * <p> 1694 * <b>Definition:</b> 1695 * The respondent's answer(s) to the question 1696 * </p> 1697 */ 1698 @Block() 1699 public static class GroupQuestionAnswer 1700 extends BaseIdentifiableElement implements IResourceBlock { 1701 1702 @Child(name="value", order=0, min=0, max=1, summary=false, modifier=false, type={ 1703 BooleanDt.class, DecimalDt.class, IntegerDt.class, DateDt.class, DateTimeDt.class, InstantDt.class, TimeDt.class, StringDt.class, UriDt.class, AttachmentDt.class, CodingDt.class, QuantityDt.class, IResource.class }) 1704 @Description( 1705 shortDefinition="", 1706 formalDefinition="The answer (or one of the answers) provided by the respondent to the question" 1707 ) 1708 private IDatatype myValue; 1709 1710 @Child(name="group", type=Group.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 1711 @Description( 1712 shortDefinition="", 1713 formalDefinition="Nested group, containing nested question for this question. The order of groups within the question is relevant" 1714 ) 1715 private java.util.List<Group> myGroup; 1716 1717 1718 @Override 1719 public boolean isEmpty() { 1720 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myValue, myGroup); 1721 } 1722 1723 @Override 1724 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 1725 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myValue, myGroup); 1726 } 1727 1728 /** 1729 * Gets the value(s) for <b>value[x]</b> (). 1730 * creating it if it does 1731 * not exist. Will not return <code>null</code>. 1732 * 1733 * <p> 1734 * <b>Definition:</b> 1735 * The answer (or one of the answers) provided by the respondent to the question 1736 * </p> 1737 */ 1738 public IDatatype getValue() { 1739 return myValue; 1740 } 1741 1742 /** 1743 * Sets the value(s) for <b>value[x]</b> () 1744 * 1745 * <p> 1746 * <b>Definition:</b> 1747 * The answer (or one of the answers) provided by the respondent to the question 1748 * </p> 1749 */ 1750 public GroupQuestionAnswer setValue(IDatatype theValue) { 1751 myValue = theValue; 1752 return this; 1753 } 1754 1755 1756 1757 1758 /** 1759 * Gets the value(s) for <b>group</b> (). 1760 * creating it if it does 1761 * not exist. Will not return <code>null</code>. 1762 * 1763 * <p> 1764 * <b>Definition:</b> 1765 * Nested group, containing nested question for this question. The order of groups within the question is relevant 1766 * </p> 1767 */ 1768 public java.util.List<Group> getGroup() { 1769 if (myGroup == null) { 1770 myGroup = new java.util.ArrayList<Group>(); 1771 } 1772 return myGroup; 1773 } 1774 1775 /** 1776 * Sets the value(s) for <b>group</b> () 1777 * 1778 * <p> 1779 * <b>Definition:</b> 1780 * Nested group, containing nested question for this question. The order of groups within the question is relevant 1781 * </p> 1782 */ 1783 public GroupQuestionAnswer setGroup(java.util.List<Group> theValue) { 1784 myGroup = theValue; 1785 return this; 1786 } 1787 1788 1789 1790 /** 1791 * Adds and returns a new value for <b>group</b> () 1792 * 1793 * <p> 1794 * <b>Definition:</b> 1795 * Nested group, containing nested question for this question. The order of groups within the question is relevant 1796 * </p> 1797 */ 1798 public Group addGroup() { 1799 Group newType = new Group(); 1800 getGroup().add(newType); 1801 return newType; 1802 } 1803 1804 /** 1805 * Adds a given new value for <b>group</b> () 1806 * 1807 * <p> 1808 * <b>Definition:</b> 1809 * Nested group, containing nested question for this question. The order of groups within the question is relevant 1810 * </p> 1811 * @param theValue The group to add (must not be <code>null</code>) 1812 */ 1813 public GroupQuestionAnswer addGroup(Group theValue) { 1814 if (theValue == null) { 1815 throw new NullPointerException("theValue must not be null"); 1816 } 1817 getGroup().add(theValue); 1818 return this; 1819 } 1820 1821 /** 1822 * Gets the first repetition for <b>group</b> (), 1823 * creating it if it does not already exist. 1824 * 1825 * <p> 1826 * <b>Definition:</b> 1827 * Nested group, containing nested question for this question. The order of groups within the question is relevant 1828 * </p> 1829 */ 1830 public Group getGroupFirstRep() { 1831 if (getGroup().isEmpty()) { 1832 return addGroup(); 1833 } 1834 return getGroup().get(0); 1835 } 1836 1837 1838 1839 } 1840 1841 1842 1843 1844 1845 1846 @Override 1847 public String getResourceName() { 1848 return "QuestionnaireResponse"; 1849 } 1850 1851 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1852 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1853 } 1854 1855 1856}