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