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>Documentation</b> Resource 320 * () 321 * 322 * <p> 323 * <b>Definition:</b> 324 * This resource provides the supporting information for an insurance related transaction such as a claim of pre-authorization. 325 * </p> 326 * 327 * <p> 328 * <b>Requirements:</b> 329 * 330 * </p> 331 * 332 * <p> 333 * <b>Profile Definition:</b> 334 * <a href="http://hl7.org/fhir/profiles/Documentation">http://hl7.org/fhir/profiles/Documentation</a> 335 * </p> 336 * 337 */ 338@ResourceDef(name="Documentation", profile="http://hl7.org/fhir/profiles/Documentation", id="documentation") 339public class Documentation extends ca.uhn.fhir.model.dstu2.resource.BaseResource 340 implements IResource { 341 342 /** 343 * Search parameter constant for <b>identifier</b> 344 * <p> 345 * Description: <b>The business identifier of the Eligibility</b><br> 346 * Type: <b>token</b><br> 347 * Path: <b>Documentation.identifier</b><br> 348 * </p> 349 */ 350 @SearchParamDefinition(name="identifier", path="Documentation.identifier", description="The business identifier of the Eligibility", type="token" ) 351 public static final String SP_IDENTIFIER = "identifier"; 352 353 /** 354 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 355 * <p> 356 * Description: <b>The business identifier of the Eligibility</b><br> 357 * Type: <b>token</b><br> 358 * Path: <b>Documentation.identifier</b><br> 359 * </p> 360 */ 361 public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); 362 363 /** 364 * Search parameter constant for <b>author</b> 365 * <p> 366 * Description: <b>The person who generated this resource</b><br> 367 * Type: <b>reference</b><br> 368 * Path: <b>Documentation.author</b><br> 369 * </p> 370 */ 371 @SearchParamDefinition(name="author", path="Documentation.author", description="The person who generated this resource", type="reference" ) 372 public static final String SP_AUTHOR = "author"; 373 374 /** 375 * <b>Fluent Client</b> search parameter constant for <b>author</b> 376 * <p> 377 * Description: <b>The person who generated this resource</b><br> 378 * Type: <b>reference</b><br> 379 * Path: <b>Documentation.author</b><br> 380 * </p> 381 */ 382 public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); 383 384 /** 385 * Search parameter constant for <b>subject</b> 386 * <p> 387 * Description: <b>The patient to whom the documents refer</b><br> 388 * Type: <b>reference</b><br> 389 * Path: <b>Documentation.subject</b><br> 390 * </p> 391 */ 392 @SearchParamDefinition(name="subject", path="Documentation.subject", description="The patient to whom the documents refer", 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 patient to whom the documents refer</b><br> 399 * Type: <b>reference</b><br> 400 * Path: <b>Documentation.subject</b><br> 401 * </p> 402 */ 403 public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); 404 405 /** 406 * Search parameter constant for <b>patient</b> 407 * <p> 408 * Description: <b>The patient to whom the documents refer</b><br> 409 * Type: <b>reference</b><br> 410 * Path: <b>Documentation.subject</b><br> 411 * </p> 412 */ 413 @SearchParamDefinition(name="patient", path="Documentation.subject", description="The patient to whom the documents refer", type="reference" ) 414 public static final String SP_PATIENT = "patient"; 415 416 /** 417 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 418 * <p> 419 * Description: <b>The patient to whom the documents refer</b><br> 420 * Type: <b>reference</b><br> 421 * Path: <b>Documentation.subject</b><br> 422 * </p> 423 */ 424 public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); 425 426 427 /** 428 * Constant for fluent queries to be used to add include statements. Specifies 429 * the path value of "<b>Documentation:author</b>". 430 */ 431 public static final Include INCLUDE_AUTHOR = new Include("Documentation:author"); 432 433 /** 434 * Constant for fluent queries to be used to add include statements. Specifies 435 * the path value of "<b>Documentation:patient</b>". 436 */ 437 public static final Include INCLUDE_PATIENT = new Include("Documentation:patient"); 438 439 /** 440 * Constant for fluent queries to be used to add include statements. Specifies 441 * the path value of "<b>Documentation:subject</b>". 442 */ 443 public static final Include INCLUDE_SUBJECT = new Include("Documentation:subject"); 444 445 446 @Child(name="identifier", type=IdentifierDt.class, order=0, min=1, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 447 @Description( 448 shortDefinition="", 449 formalDefinition="The Response business identifier" 450 ) 451 private java.util.List<IdentifierDt> myIdentifier; 452 453 @Child(name="ruleset", type=CodingDt.class, order=1, min=0, max=1, summary=false, modifier=false) 454 @Description( 455 shortDefinition="", 456 formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." 457 ) 458 private CodingDt myRuleset; 459 460 @Child(name="originalRuleset", type=CodingDt.class, order=2, min=0, max=1, summary=false, modifier=false) 461 @Description( 462 shortDefinition="", 463 formalDefinition="The style (standard) and version of the original material which was converted into this resource." 464 ) 465 private CodingDt myOriginalRuleset; 466 467 @Child(name="date", type=DateDt.class, order=3, min=0, max=1, summary=false, modifier=false) 468 @Description( 469 shortDefinition="", 470 formalDefinition="The date when this resource was created." 471 ) 472 private DateDt myDate; 473 474 @Child(name="target", order=4, min=0, max=1, summary=false, modifier=false, type={ 475 ca.uhn.fhir.model.dstu2.resource.Organization.class, ca.uhn.fhir.model.dstu2.resource.Practitioner.class }) 476 @Description( 477 shortDefinition="", 478 formalDefinition="The Insurer, organization or Provider who is target of the submission." 479 ) 480 private ResourceReferenceDt myTarget; 481 482 @Child(name="provider", order=5, min=0, max=1, summary=false, modifier=false, type={ 483 ca.uhn.fhir.model.dstu2.resource.Practitioner.class }) 484 @Description( 485 shortDefinition="", 486 formalDefinition="The practitioner who is responsible for the services rendered to the patient." 487 ) 488 private ResourceReferenceDt myProvider; 489 490 @Child(name="organization", order=6, min=0, max=1, summary=false, modifier=false, type={ 491 ca.uhn.fhir.model.dstu2.resource.Organization.class }) 492 @Description( 493 shortDefinition="", 494 formalDefinition="The organization which is responsible for the services rendered to the patient." 495 ) 496 private ResourceReferenceDt myOrganization; 497 498 @Child(name="requestIdentifier", type=IdentifierDt.class, order=7, min=0, max=1, summary=false, modifier=false) 499 @Description( 500 shortDefinition="", 501 formalDefinition="Original request identifier" 502 ) 503 private IdentifierDt myRequestIdentifier; 504 505 @Child(name="request", order=8, min=0, max=1, summary=false, modifier=false, type={ 506 IResource.class }) 507 @Description( 508 shortDefinition="", 509 formalDefinition="Original request identifier" 510 ) 511 private ResourceReferenceDt myRequest; 512 513 @Child(name="responseIdentifier", type=IdentifierDt.class, order=9, min=0, max=1, summary=false, modifier=false) 514 @Description( 515 shortDefinition="", 516 formalDefinition="Original response identifier" 517 ) 518 private IdentifierDt myResponseIdentifier; 519 520 @Child(name="response", order=10, min=0, max=1, summary=false, modifier=false, type={ 521 IResource.class }) 522 @Description( 523 shortDefinition="", 524 formalDefinition="Original response identifier" 525 ) 526 private ResourceReferenceDt myResponse; 527 528 @Child(name="author", order=11, min=0, max=1, summary=false, modifier=false, type={ 529 ca.uhn.fhir.model.dstu2.resource.Practitioner.class }) 530 @Description( 531 shortDefinition="", 532 formalDefinition="Person who created the submission" 533 ) 534 private ResourceReferenceDt myAuthor; 535 536 @Child(name="subject", order=12, min=0, max=1, summary=false, modifier=false, type={ 537 ca.uhn.fhir.model.dstu2.resource.Patient.class }) 538 @Description( 539 shortDefinition="", 540 formalDefinition="The patient who is directly or indirectly the subject of the supporting information." 541 ) 542 private ResourceReferenceDt mySubject; 543 544 @Child(name="detail", order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 545 @Description( 546 shortDefinition="", 547 formalDefinition="" 548 ) 549 private java.util.List<Detail> myDetail; 550 551 552 @Override 553 public boolean isEmpty() { 554 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myRuleset, myOriginalRuleset, myDate, myTarget, myProvider, myOrganization, myRequestIdentifier, myRequest, myResponseIdentifier, myResponse, myAuthor, mySubject, myDetail); 555 } 556 557 @Override 558 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 559 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRuleset, myOriginalRuleset, myDate, myTarget, myProvider, myOrganization, myRequestIdentifier, myRequest, myResponseIdentifier, myResponse, myAuthor, mySubject, myDetail); 560 } 561 562 /** 563 * Gets the value(s) for <b>identifier</b> (). 564 * creating it if it does 565 * not exist. Will not return <code>null</code>. 566 * 567 * <p> 568 * <b>Definition:</b> 569 * The Response business identifier 570 * </p> 571 */ 572 public java.util.List<IdentifierDt> getIdentifier() { 573 if (myIdentifier == null) { 574 myIdentifier = new java.util.ArrayList<IdentifierDt>(); 575 } 576 return myIdentifier; 577 } 578 579 /** 580 * Sets the value(s) for <b>identifier</b> () 581 * 582 * <p> 583 * <b>Definition:</b> 584 * The Response business identifier 585 * </p> 586 */ 587 public Documentation setIdentifier(java.util.List<IdentifierDt> theValue) { 588 myIdentifier = theValue; 589 return this; 590 } 591 592 593 594 /** 595 * Adds and returns a new value for <b>identifier</b> () 596 * 597 * <p> 598 * <b>Definition:</b> 599 * The Response business identifier 600 * </p> 601 */ 602 public IdentifierDt addIdentifier() { 603 IdentifierDt newType = new IdentifierDt(); 604 getIdentifier().add(newType); 605 return newType; 606 } 607 608 /** 609 * Adds a given new value for <b>identifier</b> () 610 * 611 * <p> 612 * <b>Definition:</b> 613 * The Response business identifier 614 * </p> 615 * @param theValue The identifier to add (must not be <code>null</code>) 616 */ 617 public Documentation addIdentifier(IdentifierDt theValue) { 618 if (theValue == null) { 619 throw new NullPointerException("theValue must not be null"); 620 } 621 getIdentifier().add(theValue); 622 return this; 623 } 624 625 /** 626 * Gets the first repetition for <b>identifier</b> (), 627 * creating it if it does not already exist. 628 * 629 * <p> 630 * <b>Definition:</b> 631 * The Response business identifier 632 * </p> 633 */ 634 public IdentifierDt getIdentifierFirstRep() { 635 if (getIdentifier().isEmpty()) { 636 return addIdentifier(); 637 } 638 return getIdentifier().get(0); 639 } 640 641 /** 642 * Gets the value(s) for <b>ruleset</b> (). 643 * creating it if it does 644 * not exist. Will not return <code>null</code>. 645 * 646 * <p> 647 * <b>Definition:</b> 648 * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. 649 * </p> 650 */ 651 public CodingDt getRuleset() { 652 if (myRuleset == null) { 653 myRuleset = new CodingDt(); 654 } 655 return myRuleset; 656 } 657 658 /** 659 * Sets the value(s) for <b>ruleset</b> () 660 * 661 * <p> 662 * <b>Definition:</b> 663 * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. 664 * </p> 665 */ 666 public Documentation setRuleset(CodingDt theValue) { 667 myRuleset = theValue; 668 return this; 669 } 670 671 672 673 674 /** 675 * Gets the value(s) for <b>originalRuleset</b> (). 676 * creating it if it does 677 * not exist. Will not return <code>null</code>. 678 * 679 * <p> 680 * <b>Definition:</b> 681 * The style (standard) and version of the original material which was converted into this resource. 682 * </p> 683 */ 684 public CodingDt getOriginalRuleset() { 685 if (myOriginalRuleset == null) { 686 myOriginalRuleset = new CodingDt(); 687 } 688 return myOriginalRuleset; 689 } 690 691 /** 692 * Sets the value(s) for <b>originalRuleset</b> () 693 * 694 * <p> 695 * <b>Definition:</b> 696 * The style (standard) and version of the original material which was converted into this resource. 697 * </p> 698 */ 699 public Documentation setOriginalRuleset(CodingDt theValue) { 700 myOriginalRuleset = theValue; 701 return this; 702 } 703 704 705 706 707 /** 708 * Gets the value(s) for <b>date</b> (). 709 * creating it if it does 710 * not exist. Will not return <code>null</code>. 711 * 712 * <p> 713 * <b>Definition:</b> 714 * The date when this resource was created. 715 * </p> 716 */ 717 public DateDt getDateElement() { 718 if (myDate == null) { 719 myDate = new DateDt(); 720 } 721 return myDate; 722 } 723 724 725 /** 726 * Gets the value(s) for <b>date</b> (). 727 * creating it if it does 728 * not exist. Will not return <code>null</code>. 729 * 730 * <p> 731 * <b>Definition:</b> 732 * The date when this resource was created. 733 * </p> 734 */ 735 public Date getDate() { 736 return getDateElement().getValue(); 737 } 738 739 /** 740 * Sets the value(s) for <b>date</b> () 741 * 742 * <p> 743 * <b>Definition:</b> 744 * The date when this resource was created. 745 * </p> 746 */ 747 public Documentation setDate(DateDt theValue) { 748 myDate = theValue; 749 return this; 750 } 751 752 753 754 /** 755 * Sets the value for <b>date</b> () 756 * 757 * <p> 758 * <b>Definition:</b> 759 * The date when this resource was created. 760 * </p> 761 */ 762 public Documentation setDate( Date theDate, TemporalPrecisionEnum thePrecision) { 763 myDate = new DateDt(theDate, thePrecision); 764 return this; 765 } 766 767 /** 768 * Sets the value for <b>date</b> () 769 * 770 * <p> 771 * <b>Definition:</b> 772 * The date when this resource was created. 773 * </p> 774 */ 775 public Documentation setDateWithDayPrecision( Date theDate) { 776 myDate = new DateDt(theDate); 777 return this; 778 } 779 780 781 /** 782 * Gets the value(s) for <b>target</b> (). 783 * creating it if it does 784 * not exist. Will not return <code>null</code>. 785 * 786 * <p> 787 * <b>Definition:</b> 788 * The Insurer, organization or Provider who is target of the submission. 789 * </p> 790 */ 791 public ResourceReferenceDt getTarget() { 792 if (myTarget == null) { 793 myTarget = new ResourceReferenceDt(); 794 } 795 return myTarget; 796 } 797 798 /** 799 * Sets the value(s) for <b>target</b> () 800 * 801 * <p> 802 * <b>Definition:</b> 803 * The Insurer, organization or Provider who is target of the submission. 804 * </p> 805 */ 806 public Documentation setTarget(ResourceReferenceDt theValue) { 807 myTarget = theValue; 808 return this; 809 } 810 811 812 813 814 /** 815 * Gets the value(s) for <b>provider</b> (). 816 * creating it if it does 817 * not exist. Will not return <code>null</code>. 818 * 819 * <p> 820 * <b>Definition:</b> 821 * The practitioner who is responsible for the services rendered to the patient. 822 * </p> 823 */ 824 public ResourceReferenceDt getProvider() { 825 if (myProvider == null) { 826 myProvider = new ResourceReferenceDt(); 827 } 828 return myProvider; 829 } 830 831 /** 832 * Sets the value(s) for <b>provider</b> () 833 * 834 * <p> 835 * <b>Definition:</b> 836 * The practitioner who is responsible for the services rendered to the patient. 837 * </p> 838 */ 839 public Documentation setProvider(ResourceReferenceDt theValue) { 840 myProvider = theValue; 841 return this; 842 } 843 844 845 846 847 /** 848 * Gets the value(s) for <b>organization</b> (). 849 * creating it if it does 850 * not exist. Will not return <code>null</code>. 851 * 852 * <p> 853 * <b>Definition:</b> 854 * The organization which is responsible for the services rendered to the patient. 855 * </p> 856 */ 857 public ResourceReferenceDt getOrganization() { 858 if (myOrganization == null) { 859 myOrganization = new ResourceReferenceDt(); 860 } 861 return myOrganization; 862 } 863 864 /** 865 * Sets the value(s) for <b>organization</b> () 866 * 867 * <p> 868 * <b>Definition:</b> 869 * The organization which is responsible for the services rendered to the patient. 870 * </p> 871 */ 872 public Documentation setOrganization(ResourceReferenceDt theValue) { 873 myOrganization = theValue; 874 return this; 875 } 876 877 878 879 880 /** 881 * Gets the value(s) for <b>requestIdentifier</b> (). 882 * creating it if it does 883 * not exist. Will not return <code>null</code>. 884 * 885 * <p> 886 * <b>Definition:</b> 887 * Original request identifier 888 * </p> 889 */ 890 public IdentifierDt getRequestIdentifier() { 891 if (myRequestIdentifier == null) { 892 myRequestIdentifier = new IdentifierDt(); 893 } 894 return myRequestIdentifier; 895 } 896 897 /** 898 * Sets the value(s) for <b>requestIdentifier</b> () 899 * 900 * <p> 901 * <b>Definition:</b> 902 * Original request identifier 903 * </p> 904 */ 905 public Documentation setRequestIdentifier(IdentifierDt theValue) { 906 myRequestIdentifier = theValue; 907 return this; 908 } 909 910 911 912 913 /** 914 * Gets the value(s) for <b>request</b> (). 915 * creating it if it does 916 * not exist. Will not return <code>null</code>. 917 * 918 * <p> 919 * <b>Definition:</b> 920 * Original request identifier 921 * </p> 922 */ 923 public ResourceReferenceDt getRequest() { 924 if (myRequest == null) { 925 myRequest = new ResourceReferenceDt(); 926 } 927 return myRequest; 928 } 929 930 /** 931 * Sets the value(s) for <b>request</b> () 932 * 933 * <p> 934 * <b>Definition:</b> 935 * Original request identifier 936 * </p> 937 */ 938 public Documentation setRequest(ResourceReferenceDt theValue) { 939 myRequest = theValue; 940 return this; 941 } 942 943 944 945 946 /** 947 * Gets the value(s) for <b>responseIdentifier</b> (). 948 * creating it if it does 949 * not exist. Will not return <code>null</code>. 950 * 951 * <p> 952 * <b>Definition:</b> 953 * Original response identifier 954 * </p> 955 */ 956 public IdentifierDt getResponseIdentifier() { 957 if (myResponseIdentifier == null) { 958 myResponseIdentifier = new IdentifierDt(); 959 } 960 return myResponseIdentifier; 961 } 962 963 /** 964 * Sets the value(s) for <b>responseIdentifier</b> () 965 * 966 * <p> 967 * <b>Definition:</b> 968 * Original response identifier 969 * </p> 970 */ 971 public Documentation setResponseIdentifier(IdentifierDt theValue) { 972 myResponseIdentifier = theValue; 973 return this; 974 } 975 976 977 978 979 /** 980 * Gets the value(s) for <b>response</b> (). 981 * creating it if it does 982 * not exist. Will not return <code>null</code>. 983 * 984 * <p> 985 * <b>Definition:</b> 986 * Original response identifier 987 * </p> 988 */ 989 public ResourceReferenceDt getResponse() { 990 if (myResponse == null) { 991 myResponse = new ResourceReferenceDt(); 992 } 993 return myResponse; 994 } 995 996 /** 997 * Sets the value(s) for <b>response</b> () 998 * 999 * <p> 1000 * <b>Definition:</b> 1001 * Original response identifier 1002 * </p> 1003 */ 1004 public Documentation setResponse(ResourceReferenceDt theValue) { 1005 myResponse = theValue; 1006 return this; 1007 } 1008 1009 1010 1011 1012 /** 1013 * Gets the value(s) for <b>author</b> (). 1014 * creating it if it does 1015 * not exist. Will not return <code>null</code>. 1016 * 1017 * <p> 1018 * <b>Definition:</b> 1019 * Person who created the submission 1020 * </p> 1021 */ 1022 public ResourceReferenceDt getAuthor() { 1023 if (myAuthor == null) { 1024 myAuthor = new ResourceReferenceDt(); 1025 } 1026 return myAuthor; 1027 } 1028 1029 /** 1030 * Sets the value(s) for <b>author</b> () 1031 * 1032 * <p> 1033 * <b>Definition:</b> 1034 * Person who created the submission 1035 * </p> 1036 */ 1037 public Documentation setAuthor(ResourceReferenceDt theValue) { 1038 myAuthor = theValue; 1039 return this; 1040 } 1041 1042 1043 1044 1045 /** 1046 * Gets the value(s) for <b>subject</b> (). 1047 * creating it if it does 1048 * not exist. Will not return <code>null</code>. 1049 * 1050 * <p> 1051 * <b>Definition:</b> 1052 * The patient who is directly or indirectly the subject of the supporting information. 1053 * </p> 1054 */ 1055 public ResourceReferenceDt getSubject() { 1056 if (mySubject == null) { 1057 mySubject = new ResourceReferenceDt(); 1058 } 1059 return mySubject; 1060 } 1061 1062 /** 1063 * Sets the value(s) for <b>subject</b> () 1064 * 1065 * <p> 1066 * <b>Definition:</b> 1067 * The patient who is directly or indirectly the subject of the supporting information. 1068 * </p> 1069 */ 1070 public Documentation setSubject(ResourceReferenceDt theValue) { 1071 mySubject = theValue; 1072 return this; 1073 } 1074 1075 1076 1077 1078 /** 1079 * Gets the value(s) for <b>detail</b> (). 1080 * creating it if it does 1081 * not exist. Will not return <code>null</code>. 1082 * 1083 * <p> 1084 * <b>Definition:</b> 1085 * 1086 * </p> 1087 */ 1088 public java.util.List<Detail> getDetail() { 1089 if (myDetail == null) { 1090 myDetail = new java.util.ArrayList<Detail>(); 1091 } 1092 return myDetail; 1093 } 1094 1095 /** 1096 * Sets the value(s) for <b>detail</b> () 1097 * 1098 * <p> 1099 * <b>Definition:</b> 1100 * 1101 * </p> 1102 */ 1103 public Documentation setDetail(java.util.List<Detail> theValue) { 1104 myDetail = theValue; 1105 return this; 1106 } 1107 1108 1109 1110 /** 1111 * Adds and returns a new value for <b>detail</b> () 1112 * 1113 * <p> 1114 * <b>Definition:</b> 1115 * 1116 * </p> 1117 */ 1118 public Detail addDetail() { 1119 Detail newType = new Detail(); 1120 getDetail().add(newType); 1121 return newType; 1122 } 1123 1124 /** 1125 * Adds a given new value for <b>detail</b> () 1126 * 1127 * <p> 1128 * <b>Definition:</b> 1129 * 1130 * </p> 1131 * @param theValue The detail to add (must not be <code>null</code>) 1132 */ 1133 public Documentation addDetail(Detail theValue) { 1134 if (theValue == null) { 1135 throw new NullPointerException("theValue must not be null"); 1136 } 1137 getDetail().add(theValue); 1138 return this; 1139 } 1140 1141 /** 1142 * Gets the first repetition for <b>detail</b> (), 1143 * creating it if it does not already exist. 1144 * 1145 * <p> 1146 * <b>Definition:</b> 1147 * 1148 * </p> 1149 */ 1150 public Detail getDetailFirstRep() { 1151 if (getDetail().isEmpty()) { 1152 return addDetail(); 1153 } 1154 return getDetail().get(0); 1155 } 1156 1157 /** 1158 * Block class for child element: <b>Documentation.detail</b> () 1159 * 1160 * <p> 1161 * <b>Definition:</b> 1162 * 1163 * </p> 1164 */ 1165 @Block() 1166 public static class Detail 1167 extends BaseIdentifiableElement implements IResourceBlock { 1168 1169 @Child(name="linkId", type=IntegerDt.class, order=0, min=1, max=1, summary=false, modifier=false) 1170 @Description( 1171 shortDefinition="", 1172 formalDefinition="A link Id for the response to reference." 1173 ) 1174 private IntegerDt myLinkId; 1175 1176 @Child(name="content", order=1, min=1, max=1, summary=false, modifier=false, type={ 1177 IResource.class, AttachmentDt.class }) 1178 @Description( 1179 shortDefinition="", 1180 formalDefinition="The attached content." 1181 ) 1182 private IDatatype myContent; 1183 1184 @Child(name="date", type=DateDt.class, order=2, min=0, max=1, summary=false, modifier=false) 1185 @Description( 1186 shortDefinition="", 1187 formalDefinition="The date when the material was created." 1188 ) 1189 private DateDt myDate; 1190 1191 1192 @Override 1193 public boolean isEmpty() { 1194 return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLinkId, myContent, myDate); 1195 } 1196 1197 @Override 1198 public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) { 1199 return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLinkId, myContent, myDate); 1200 } 1201 1202 /** 1203 * Gets the value(s) for <b>linkId</b> (). 1204 * creating it if it does 1205 * not exist. Will not return <code>null</code>. 1206 * 1207 * <p> 1208 * <b>Definition:</b> 1209 * A link Id for the response to reference. 1210 * </p> 1211 */ 1212 public IntegerDt getLinkIdElement() { 1213 if (myLinkId == null) { 1214 myLinkId = new IntegerDt(); 1215 } 1216 return myLinkId; 1217 } 1218 1219 1220 /** 1221 * Gets the value(s) for <b>linkId</b> (). 1222 * creating it if it does 1223 * not exist. Will not return <code>null</code>. 1224 * 1225 * <p> 1226 * <b>Definition:</b> 1227 * A link Id for the response to reference. 1228 * </p> 1229 */ 1230 public Integer getLinkId() { 1231 return getLinkIdElement().getValue(); 1232 } 1233 1234 /** 1235 * Sets the value(s) for <b>linkId</b> () 1236 * 1237 * <p> 1238 * <b>Definition:</b> 1239 * A link Id for the response to reference. 1240 * </p> 1241 */ 1242 public Detail setLinkId(IntegerDt theValue) { 1243 myLinkId = theValue; 1244 return this; 1245 } 1246 1247 1248 1249 /** 1250 * Sets the value for <b>linkId</b> () 1251 * 1252 * <p> 1253 * <b>Definition:</b> 1254 * A link Id for the response to reference. 1255 * </p> 1256 */ 1257 public Detail setLinkId( int theInteger) { 1258 myLinkId = new IntegerDt(theInteger); 1259 return this; 1260 } 1261 1262 1263 /** 1264 * Gets the value(s) for <b>content[x]</b> (). 1265 * creating it if it does 1266 * not exist. Will not return <code>null</code>. 1267 * 1268 * <p> 1269 * <b>Definition:</b> 1270 * The attached content. 1271 * </p> 1272 */ 1273 public IDatatype getContent() { 1274 return myContent; 1275 } 1276 1277 /** 1278 * Sets the value(s) for <b>content[x]</b> () 1279 * 1280 * <p> 1281 * <b>Definition:</b> 1282 * The attached content. 1283 * </p> 1284 */ 1285 public Detail setContent(IDatatype theValue) { 1286 myContent = theValue; 1287 return this; 1288 } 1289 1290 1291 1292 1293 /** 1294 * Gets the value(s) for <b>date</b> (). 1295 * creating it if it does 1296 * not exist. Will not return <code>null</code>. 1297 * 1298 * <p> 1299 * <b>Definition:</b> 1300 * The date when the material was created. 1301 * </p> 1302 */ 1303 public DateDt getDateElement() { 1304 if (myDate == null) { 1305 myDate = new DateDt(); 1306 } 1307 return myDate; 1308 } 1309 1310 1311 /** 1312 * Gets the value(s) for <b>date</b> (). 1313 * creating it if it does 1314 * not exist. Will not return <code>null</code>. 1315 * 1316 * <p> 1317 * <b>Definition:</b> 1318 * The date when the material was created. 1319 * </p> 1320 */ 1321 public Date getDate() { 1322 return getDateElement().getValue(); 1323 } 1324 1325 /** 1326 * Sets the value(s) for <b>date</b> () 1327 * 1328 * <p> 1329 * <b>Definition:</b> 1330 * The date when the material was created. 1331 * </p> 1332 */ 1333 public Detail setDate(DateDt theValue) { 1334 myDate = theValue; 1335 return this; 1336 } 1337 1338 1339 1340 /** 1341 * Sets the value for <b>date</b> () 1342 * 1343 * <p> 1344 * <b>Definition:</b> 1345 * The date when the material was created. 1346 * </p> 1347 */ 1348 public Detail setDate( Date theDate, TemporalPrecisionEnum thePrecision) { 1349 myDate = new DateDt(theDate, thePrecision); 1350 return this; 1351 } 1352 1353 /** 1354 * Sets the value for <b>date</b> () 1355 * 1356 * <p> 1357 * <b>Definition:</b> 1358 * The date when the material was created. 1359 * </p> 1360 */ 1361 public Detail setDateWithDayPrecision( Date theDate) { 1362 myDate = new DateDt(theDate); 1363 return this; 1364 } 1365 1366 1367 1368 1369 } 1370 1371 1372 1373 1374 @Override 1375 public String getResourceName() { 1376 return "Documentation"; 1377 } 1378 1379 public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { 1380 return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; 1381 } 1382 1383 1384}