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>Test</b> Resource
320 * ()
321 *
322 * <p>
323 * <b>Definition:</b>
324 * [Template] Master Definition
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/Test">http://hl7.org/fhir/profiles/Test</a> 
335 * </p>
336 *
337 */
338@ResourceDef(name="Test", profile="http://hl7.org/fhir/profiles/Test", id="test")
339public class Test extends ca.uhn.fhir.model.dstu2.resource.BaseResource
340    implements  IResource     {
341
342
343
344        @Child(name="stringErr", type=StringDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)   
345        @Description(
346                shortDefinition="",
347                formalDefinition=""
348        )
349        private java.util.List<StringDt> myStringErr;
350        
351        @Child(name="stringCorr", type=StringDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)  
352        @Description(
353                shortDefinition="",
354                formalDefinition=""
355        )
356        private java.util.List<StringDt> myStringCorr;
357        
358        @Child(name="booleanErr", type=BooleanDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 
359        @Description(
360                shortDefinition="",
361                formalDefinition=""
362        )
363        private java.util.List<BooleanDt> myBooleanErr;
364        
365        @Child(name="booleanCorr", type=BooleanDt.class, order=3, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)        
366        @Description(
367                shortDefinition="",
368                formalDefinition=""
369        )
370        private java.util.List<BooleanDt> myBooleanCorr;
371        
372        @Child(name="integerErr", type=IntegerDt.class, order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 
373        @Description(
374                shortDefinition="",
375                formalDefinition=""
376        )
377        private java.util.List<IntegerDt> myIntegerErr;
378        
379        @Child(name="integerCorr", type=IntegerDt.class, order=5, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)        
380        @Description(
381                shortDefinition="",
382                formalDefinition=""
383        )
384        private java.util.List<IntegerDt> myIntegerCorr;
385        
386        @Child(name="decimalErr", type=DecimalDt.class, order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 
387        @Description(
388                shortDefinition="",
389                formalDefinition=""
390        )
391        private java.util.List<DecimalDt> myDecimalErr;
392        
393        @Child(name="decimalCorr", type=DecimalDt.class, order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)        
394        @Description(
395                shortDefinition="",
396                formalDefinition=""
397        )
398        private java.util.List<DecimalDt> myDecimalCorr;
399        
400        @Child(name="b64Err", type=Base64BinaryDt.class, order=8, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)        
401        @Description(
402                shortDefinition="",
403                formalDefinition=""
404        )
405        private java.util.List<Base64BinaryDt> myB64Err;
406        
407        @Child(name="b64Corr", type=Base64BinaryDt.class, order=9, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)       
408        @Description(
409                shortDefinition="",
410                formalDefinition=""
411        )
412        private java.util.List<Base64BinaryDt> myB64Corr;
413        
414        @Child(name="instantErr", type=InstantDt.class, order=10, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)        
415        @Description(
416                shortDefinition="",
417                formalDefinition=""
418        )
419        private java.util.List<InstantDt> myInstantErr;
420        
421        @Child(name="instantCorr", type=InstantDt.class, order=11, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)       
422        @Description(
423                shortDefinition="",
424                formalDefinition=""
425        )
426        private java.util.List<InstantDt> myInstantCorr;
427        
428        @Child(name="uriErr", type=UriDt.class, order=12, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)        
429        @Description(
430                shortDefinition="",
431                formalDefinition=""
432        )
433        private java.util.List<UriDt> myUriErr;
434        
435        @Child(name="uriCorr", type=UriDt.class, order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)       
436        @Description(
437                shortDefinition="",
438                formalDefinition=""
439        )
440        private java.util.List<UriDt> myUriCorr;
441        
442
443        @Override
444        public boolean isEmpty() {
445                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myStringErr,  myStringCorr,  myBooleanErr,  myBooleanCorr,  myIntegerErr,  myIntegerCorr,  myDecimalErr,  myDecimalCorr,  myB64Err,  myB64Corr,  myInstantErr,  myInstantCorr,  myUriErr,  myUriCorr);
446        }
447        
448        @Override
449        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
450                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStringErr, myStringCorr, myBooleanErr, myBooleanCorr, myIntegerErr, myIntegerCorr, myDecimalErr, myDecimalCorr, myB64Err, myB64Corr, myInstantErr, myInstantCorr, myUriErr, myUriCorr);
451        }
452
453        /**
454         * Gets the value(s) for <b>stringErr</b> ().
455         * creating it if it does
456         * not exist. Will not return <code>null</code>.
457         *
458     * <p>
459     * <b>Definition:</b>
460     * 
461     * </p> 
462         */
463        public java.util.List<StringDt> getStringErr() {  
464                if (myStringErr == null) {
465                        myStringErr = new java.util.ArrayList<StringDt>();
466                }
467                return myStringErr;
468        }
469
470        /**
471         * Sets the value(s) for <b>stringErr</b> ()
472         *
473     * <p>
474     * <b>Definition:</b>
475     * 
476     * </p> 
477         */
478        public Test setStringErr(java.util.List<StringDt> theValue) {
479                myStringErr = theValue;
480                return this;
481        }
482        
483        
484
485        /**
486         * Adds and returns a new value for <b>stringErr</b> ()
487         *
488     * <p>
489     * <b>Definition:</b>
490     * 
491     * </p> 
492         */
493        public StringDt addStringErr() {
494                StringDt newType = new StringDt();
495                getStringErr().add(newType);
496                return newType; 
497        }
498
499        /**
500         * Adds a given new value for <b>stringErr</b> ()
501         *
502         * <p>
503         * <b>Definition:</b>
504         * 
505         * </p>
506         * @param theValue The stringErr to add (must not be <code>null</code>)
507         */
508        public Test addStringErr(StringDt theValue) {
509                if (theValue == null) {
510                        throw new NullPointerException("theValue must not be null");
511                }
512                getStringErr().add(theValue);
513                return this;
514        }
515
516        /**
517         * Gets the first repetition for <b>stringErr</b> (),
518         * creating it if it does not already exist.
519         *
520     * <p>
521     * <b>Definition:</b>
522     * 
523     * </p> 
524         */
525        public StringDt getStringErrFirstRep() {
526                if (getStringErr().isEmpty()) {
527                        return addStringErr();
528                }
529                return getStringErr().get(0); 
530        }
531        /**
532         * Adds a new value for <b>stringErr</b> ()
533         *
534     * <p>
535     * <b>Definition:</b>
536     * 
537     * </p> 
538     *
539     * @return Returns a reference to this object, to allow for simple chaining.
540         */
541        public Test addStringErr( String theString) {
542                if (myStringErr == null) {
543                        myStringErr = new java.util.ArrayList<StringDt>();
544                }
545                myStringErr.add(new StringDt(theString));
546                return this; 
547        }
548
549 
550        /**
551         * Gets the value(s) for <b>stringCorr</b> ().
552         * creating it if it does
553         * not exist. Will not return <code>null</code>.
554         *
555     * <p>
556     * <b>Definition:</b>
557     * 
558     * </p> 
559         */
560        public java.util.List<StringDt> getStringCorr() {  
561                if (myStringCorr == null) {
562                        myStringCorr = new java.util.ArrayList<StringDt>();
563                }
564                return myStringCorr;
565        }
566
567        /**
568         * Sets the value(s) for <b>stringCorr</b> ()
569         *
570     * <p>
571     * <b>Definition:</b>
572     * 
573     * </p> 
574         */
575        public Test setStringCorr(java.util.List<StringDt> theValue) {
576                myStringCorr = theValue;
577                return this;
578        }
579        
580        
581
582        /**
583         * Adds and returns a new value for <b>stringCorr</b> ()
584         *
585     * <p>
586     * <b>Definition:</b>
587     * 
588     * </p> 
589         */
590        public StringDt addStringCorr() {
591                StringDt newType = new StringDt();
592                getStringCorr().add(newType);
593                return newType; 
594        }
595
596        /**
597         * Adds a given new value for <b>stringCorr</b> ()
598         *
599         * <p>
600         * <b>Definition:</b>
601         * 
602         * </p>
603         * @param theValue The stringCorr to add (must not be <code>null</code>)
604         */
605        public Test addStringCorr(StringDt theValue) {
606                if (theValue == null) {
607                        throw new NullPointerException("theValue must not be null");
608                }
609                getStringCorr().add(theValue);
610                return this;
611        }
612
613        /**
614         * Gets the first repetition for <b>stringCorr</b> (),
615         * creating it if it does not already exist.
616         *
617     * <p>
618     * <b>Definition:</b>
619     * 
620     * </p> 
621         */
622        public StringDt getStringCorrFirstRep() {
623                if (getStringCorr().isEmpty()) {
624                        return addStringCorr();
625                }
626                return getStringCorr().get(0); 
627        }
628        /**
629         * Adds a new value for <b>stringCorr</b> ()
630         *
631     * <p>
632     * <b>Definition:</b>
633     * 
634     * </p> 
635     *
636     * @return Returns a reference to this object, to allow for simple chaining.
637         */
638        public Test addStringCorr( String theString) {
639                if (myStringCorr == null) {
640                        myStringCorr = new java.util.ArrayList<StringDt>();
641                }
642                myStringCorr.add(new StringDt(theString));
643                return this; 
644        }
645
646 
647        /**
648         * Gets the value(s) for <b>booleanErr</b> ().
649         * creating it if it does
650         * not exist. Will not return <code>null</code>.
651         *
652     * <p>
653     * <b>Definition:</b>
654     * 
655     * </p> 
656         */
657        public java.util.List<BooleanDt> getBooleanErr() {  
658                if (myBooleanErr == null) {
659                        myBooleanErr = new java.util.ArrayList<BooleanDt>();
660                }
661                return myBooleanErr;
662        }
663
664        /**
665         * Sets the value(s) for <b>booleanErr</b> ()
666         *
667     * <p>
668     * <b>Definition:</b>
669     * 
670     * </p> 
671         */
672        public Test setBooleanErr(java.util.List<BooleanDt> theValue) {
673                myBooleanErr = theValue;
674                return this;
675        }
676        
677        
678
679        /**
680         * Adds and returns a new value for <b>booleanErr</b> ()
681         *
682     * <p>
683     * <b>Definition:</b>
684     * 
685     * </p> 
686         */
687        public BooleanDt addBooleanErr() {
688                BooleanDt newType = new BooleanDt();
689                getBooleanErr().add(newType);
690                return newType; 
691        }
692
693        /**
694         * Adds a given new value for <b>booleanErr</b> ()
695         *
696         * <p>
697         * <b>Definition:</b>
698         * 
699         * </p>
700         * @param theValue The booleanErr to add (must not be <code>null</code>)
701         */
702        public Test addBooleanErr(BooleanDt theValue) {
703                if (theValue == null) {
704                        throw new NullPointerException("theValue must not be null");
705                }
706                getBooleanErr().add(theValue);
707                return this;
708        }
709
710        /**
711         * Gets the first repetition for <b>booleanErr</b> (),
712         * creating it if it does not already exist.
713         *
714     * <p>
715     * <b>Definition:</b>
716     * 
717     * </p> 
718         */
719        public BooleanDt getBooleanErrFirstRep() {
720                if (getBooleanErr().isEmpty()) {
721                        return addBooleanErr();
722                }
723                return getBooleanErr().get(0); 
724        }
725        /**
726         * Adds a new value for <b>booleanErr</b> ()
727         *
728     * <p>
729     * <b>Definition:</b>
730     * 
731     * </p> 
732     *
733     * @return Returns a reference to this object, to allow for simple chaining.
734         */
735        public Test addBooleanErr( boolean theBoolean) {
736                if (myBooleanErr == null) {
737                        myBooleanErr = new java.util.ArrayList<BooleanDt>();
738                }
739                myBooleanErr.add(new BooleanDt(theBoolean));
740                return this; 
741        }
742
743 
744        /**
745         * Gets the value(s) for <b>booleanCorr</b> ().
746         * creating it if it does
747         * not exist. Will not return <code>null</code>.
748         *
749     * <p>
750     * <b>Definition:</b>
751     * 
752     * </p> 
753         */
754        public java.util.List<BooleanDt> getBooleanCorr() {  
755                if (myBooleanCorr == null) {
756                        myBooleanCorr = new java.util.ArrayList<BooleanDt>();
757                }
758                return myBooleanCorr;
759        }
760
761        /**
762         * Sets the value(s) for <b>booleanCorr</b> ()
763         *
764     * <p>
765     * <b>Definition:</b>
766     * 
767     * </p> 
768         */
769        public Test setBooleanCorr(java.util.List<BooleanDt> theValue) {
770                myBooleanCorr = theValue;
771                return this;
772        }
773        
774        
775
776        /**
777         * Adds and returns a new value for <b>booleanCorr</b> ()
778         *
779     * <p>
780     * <b>Definition:</b>
781     * 
782     * </p> 
783         */
784        public BooleanDt addBooleanCorr() {
785                BooleanDt newType = new BooleanDt();
786                getBooleanCorr().add(newType);
787                return newType; 
788        }
789
790        /**
791         * Adds a given new value for <b>booleanCorr</b> ()
792         *
793         * <p>
794         * <b>Definition:</b>
795         * 
796         * </p>
797         * @param theValue The booleanCorr to add (must not be <code>null</code>)
798         */
799        public Test addBooleanCorr(BooleanDt theValue) {
800                if (theValue == null) {
801                        throw new NullPointerException("theValue must not be null");
802                }
803                getBooleanCorr().add(theValue);
804                return this;
805        }
806
807        /**
808         * Gets the first repetition for <b>booleanCorr</b> (),
809         * creating it if it does not already exist.
810         *
811     * <p>
812     * <b>Definition:</b>
813     * 
814     * </p> 
815         */
816        public BooleanDt getBooleanCorrFirstRep() {
817                if (getBooleanCorr().isEmpty()) {
818                        return addBooleanCorr();
819                }
820                return getBooleanCorr().get(0); 
821        }
822        /**
823         * Adds a new value for <b>booleanCorr</b> ()
824         *
825     * <p>
826     * <b>Definition:</b>
827     * 
828     * </p> 
829     *
830     * @return Returns a reference to this object, to allow for simple chaining.
831         */
832        public Test addBooleanCorr( boolean theBoolean) {
833                if (myBooleanCorr == null) {
834                        myBooleanCorr = new java.util.ArrayList<BooleanDt>();
835                }
836                myBooleanCorr.add(new BooleanDt(theBoolean));
837                return this; 
838        }
839
840 
841        /**
842         * Gets the value(s) for <b>integerErr</b> ().
843         * creating it if it does
844         * not exist. Will not return <code>null</code>.
845         *
846     * <p>
847     * <b>Definition:</b>
848     * 
849     * </p> 
850         */
851        public java.util.List<IntegerDt> getIntegerErr() {  
852                if (myIntegerErr == null) {
853                        myIntegerErr = new java.util.ArrayList<IntegerDt>();
854                }
855                return myIntegerErr;
856        }
857
858        /**
859         * Sets the value(s) for <b>integerErr</b> ()
860         *
861     * <p>
862     * <b>Definition:</b>
863     * 
864     * </p> 
865         */
866        public Test setIntegerErr(java.util.List<IntegerDt> theValue) {
867                myIntegerErr = theValue;
868                return this;
869        }
870        
871        
872
873        /**
874         * Adds and returns a new value for <b>integerErr</b> ()
875         *
876     * <p>
877     * <b>Definition:</b>
878     * 
879     * </p> 
880         */
881        public IntegerDt addIntegerErr() {
882                IntegerDt newType = new IntegerDt();
883                getIntegerErr().add(newType);
884                return newType; 
885        }
886
887        /**
888         * Adds a given new value for <b>integerErr</b> ()
889         *
890         * <p>
891         * <b>Definition:</b>
892         * 
893         * </p>
894         * @param theValue The integerErr to add (must not be <code>null</code>)
895         */
896        public Test addIntegerErr(IntegerDt theValue) {
897                if (theValue == null) {
898                        throw new NullPointerException("theValue must not be null");
899                }
900                getIntegerErr().add(theValue);
901                return this;
902        }
903
904        /**
905         * Gets the first repetition for <b>integerErr</b> (),
906         * creating it if it does not already exist.
907         *
908     * <p>
909     * <b>Definition:</b>
910     * 
911     * </p> 
912         */
913        public IntegerDt getIntegerErrFirstRep() {
914                if (getIntegerErr().isEmpty()) {
915                        return addIntegerErr();
916                }
917                return getIntegerErr().get(0); 
918        }
919        /**
920         * Adds a new value for <b>integerErr</b> ()
921         *
922     * <p>
923     * <b>Definition:</b>
924     * 
925     * </p> 
926     *
927     * @return Returns a reference to this object, to allow for simple chaining.
928         */
929        public Test addIntegerErr( int theInteger) {
930                if (myIntegerErr == null) {
931                        myIntegerErr = new java.util.ArrayList<IntegerDt>();
932                }
933                myIntegerErr.add(new IntegerDt(theInteger));
934                return this; 
935        }
936
937 
938        /**
939         * Gets the value(s) for <b>integerCorr</b> ().
940         * creating it if it does
941         * not exist. Will not return <code>null</code>.
942         *
943     * <p>
944     * <b>Definition:</b>
945     * 
946     * </p> 
947         */
948        public java.util.List<IntegerDt> getIntegerCorr() {  
949                if (myIntegerCorr == null) {
950                        myIntegerCorr = new java.util.ArrayList<IntegerDt>();
951                }
952                return myIntegerCorr;
953        }
954
955        /**
956         * Sets the value(s) for <b>integerCorr</b> ()
957         *
958     * <p>
959     * <b>Definition:</b>
960     * 
961     * </p> 
962         */
963        public Test setIntegerCorr(java.util.List<IntegerDt> theValue) {
964                myIntegerCorr = theValue;
965                return this;
966        }
967        
968        
969
970        /**
971         * Adds and returns a new value for <b>integerCorr</b> ()
972         *
973     * <p>
974     * <b>Definition:</b>
975     * 
976     * </p> 
977         */
978        public IntegerDt addIntegerCorr() {
979                IntegerDt newType = new IntegerDt();
980                getIntegerCorr().add(newType);
981                return newType; 
982        }
983
984        /**
985         * Adds a given new value for <b>integerCorr</b> ()
986         *
987         * <p>
988         * <b>Definition:</b>
989         * 
990         * </p>
991         * @param theValue The integerCorr to add (must not be <code>null</code>)
992         */
993        public Test addIntegerCorr(IntegerDt theValue) {
994                if (theValue == null) {
995                        throw new NullPointerException("theValue must not be null");
996                }
997                getIntegerCorr().add(theValue);
998                return this;
999        }
1000
1001        /**
1002         * Gets the first repetition for <b>integerCorr</b> (),
1003         * creating it if it does not already exist.
1004         *
1005     * <p>
1006     * <b>Definition:</b>
1007     * 
1008     * </p> 
1009         */
1010        public IntegerDt getIntegerCorrFirstRep() {
1011                if (getIntegerCorr().isEmpty()) {
1012                        return addIntegerCorr();
1013                }
1014                return getIntegerCorr().get(0); 
1015        }
1016        /**
1017         * Adds a new value for <b>integerCorr</b> ()
1018         *
1019     * <p>
1020     * <b>Definition:</b>
1021     * 
1022     * </p> 
1023     *
1024     * @return Returns a reference to this object, to allow for simple chaining.
1025         */
1026        public Test addIntegerCorr( int theInteger) {
1027                if (myIntegerCorr == null) {
1028                        myIntegerCorr = new java.util.ArrayList<IntegerDt>();
1029                }
1030                myIntegerCorr.add(new IntegerDt(theInteger));
1031                return this; 
1032        }
1033
1034 
1035        /**
1036         * Gets the value(s) for <b>decimalErr</b> ().
1037         * creating it if it does
1038         * not exist. Will not return <code>null</code>.
1039         *
1040     * <p>
1041     * <b>Definition:</b>
1042     * 
1043     * </p> 
1044         */
1045        public java.util.List<DecimalDt> getDecimalErr() {  
1046                if (myDecimalErr == null) {
1047                        myDecimalErr = new java.util.ArrayList<DecimalDt>();
1048                }
1049                return myDecimalErr;
1050        }
1051
1052        /**
1053         * Sets the value(s) for <b>decimalErr</b> ()
1054         *
1055     * <p>
1056     * <b>Definition:</b>
1057     * 
1058     * </p> 
1059         */
1060        public Test setDecimalErr(java.util.List<DecimalDt> theValue) {
1061                myDecimalErr = theValue;
1062                return this;
1063        }
1064        
1065        
1066
1067        /**
1068         * Adds and returns a new value for <b>decimalErr</b> ()
1069         *
1070     * <p>
1071     * <b>Definition:</b>
1072     * 
1073     * </p> 
1074         */
1075        public DecimalDt addDecimalErr() {
1076                DecimalDt newType = new DecimalDt();
1077                getDecimalErr().add(newType);
1078                return newType; 
1079        }
1080
1081        /**
1082         * Adds a given new value for <b>decimalErr</b> ()
1083         *
1084         * <p>
1085         * <b>Definition:</b>
1086         * 
1087         * </p>
1088         * @param theValue The decimalErr to add (must not be <code>null</code>)
1089         */
1090        public Test addDecimalErr(DecimalDt theValue) {
1091                if (theValue == null) {
1092                        throw new NullPointerException("theValue must not be null");
1093                }
1094                getDecimalErr().add(theValue);
1095                return this;
1096        }
1097
1098        /**
1099         * Gets the first repetition for <b>decimalErr</b> (),
1100         * creating it if it does not already exist.
1101         *
1102     * <p>
1103     * <b>Definition:</b>
1104     * 
1105     * </p> 
1106         */
1107        public DecimalDt getDecimalErrFirstRep() {
1108                if (getDecimalErr().isEmpty()) {
1109                        return addDecimalErr();
1110                }
1111                return getDecimalErr().get(0); 
1112        }
1113        /**
1114         * Adds a new value for <b>decimalErr</b> ()
1115         *
1116     * <p>
1117     * <b>Definition:</b>
1118     * 
1119     * </p> 
1120     *
1121     * @return Returns a reference to this object, to allow for simple chaining.
1122         */
1123        public Test addDecimalErr( long theValue) {
1124                if (myDecimalErr == null) {
1125                        myDecimalErr = new java.util.ArrayList<DecimalDt>();
1126                }
1127                myDecimalErr.add(new DecimalDt(theValue));
1128                return this; 
1129        }
1130
1131        /**
1132         * Adds a new value for <b>decimalErr</b> ()
1133         *
1134     * <p>
1135     * <b>Definition:</b>
1136     * 
1137     * </p> 
1138     *
1139     * @return Returns a reference to this object, to allow for simple chaining.
1140         */
1141        public Test addDecimalErr( double theValue) {
1142                if (myDecimalErr == null) {
1143                        myDecimalErr = new java.util.ArrayList<DecimalDt>();
1144                }
1145                myDecimalErr.add(new DecimalDt(theValue));
1146                return this; 
1147        }
1148
1149        /**
1150         * Adds a new value for <b>decimalErr</b> ()
1151         *
1152     * <p>
1153     * <b>Definition:</b>
1154     * 
1155     * </p> 
1156     *
1157     * @return Returns a reference to this object, to allow for simple chaining.
1158         */
1159        public Test addDecimalErr( java.math.BigDecimal theValue) {
1160                if (myDecimalErr == null) {
1161                        myDecimalErr = new java.util.ArrayList<DecimalDt>();
1162                }
1163                myDecimalErr.add(new DecimalDt(theValue));
1164                return this; 
1165        }
1166
1167 
1168        /**
1169         * Gets the value(s) for <b>decimalCorr</b> ().
1170         * creating it if it does
1171         * not exist. Will not return <code>null</code>.
1172         *
1173     * <p>
1174     * <b>Definition:</b>
1175     * 
1176     * </p> 
1177         */
1178        public java.util.List<DecimalDt> getDecimalCorr() {  
1179                if (myDecimalCorr == null) {
1180                        myDecimalCorr = new java.util.ArrayList<DecimalDt>();
1181                }
1182                return myDecimalCorr;
1183        }
1184
1185        /**
1186         * Sets the value(s) for <b>decimalCorr</b> ()
1187         *
1188     * <p>
1189     * <b>Definition:</b>
1190     * 
1191     * </p> 
1192         */
1193        public Test setDecimalCorr(java.util.List<DecimalDt> theValue) {
1194                myDecimalCorr = theValue;
1195                return this;
1196        }
1197        
1198        
1199
1200        /**
1201         * Adds and returns a new value for <b>decimalCorr</b> ()
1202         *
1203     * <p>
1204     * <b>Definition:</b>
1205     * 
1206     * </p> 
1207         */
1208        public DecimalDt addDecimalCorr() {
1209                DecimalDt newType = new DecimalDt();
1210                getDecimalCorr().add(newType);
1211                return newType; 
1212        }
1213
1214        /**
1215         * Adds a given new value for <b>decimalCorr</b> ()
1216         *
1217         * <p>
1218         * <b>Definition:</b>
1219         * 
1220         * </p>
1221         * @param theValue The decimalCorr to add (must not be <code>null</code>)
1222         */
1223        public Test addDecimalCorr(DecimalDt theValue) {
1224                if (theValue == null) {
1225                        throw new NullPointerException("theValue must not be null");
1226                }
1227                getDecimalCorr().add(theValue);
1228                return this;
1229        }
1230
1231        /**
1232         * Gets the first repetition for <b>decimalCorr</b> (),
1233         * creating it if it does not already exist.
1234         *
1235     * <p>
1236     * <b>Definition:</b>
1237     * 
1238     * </p> 
1239         */
1240        public DecimalDt getDecimalCorrFirstRep() {
1241                if (getDecimalCorr().isEmpty()) {
1242                        return addDecimalCorr();
1243                }
1244                return getDecimalCorr().get(0); 
1245        }
1246        /**
1247         * Adds a new value for <b>decimalCorr</b> ()
1248         *
1249     * <p>
1250     * <b>Definition:</b>
1251     * 
1252     * </p> 
1253     *
1254     * @return Returns a reference to this object, to allow for simple chaining.
1255         */
1256        public Test addDecimalCorr( long theValue) {
1257                if (myDecimalCorr == null) {
1258                        myDecimalCorr = new java.util.ArrayList<DecimalDt>();
1259                }
1260                myDecimalCorr.add(new DecimalDt(theValue));
1261                return this; 
1262        }
1263
1264        /**
1265         * Adds a new value for <b>decimalCorr</b> ()
1266         *
1267     * <p>
1268     * <b>Definition:</b>
1269     * 
1270     * </p> 
1271     *
1272     * @return Returns a reference to this object, to allow for simple chaining.
1273         */
1274        public Test addDecimalCorr( double theValue) {
1275                if (myDecimalCorr == null) {
1276                        myDecimalCorr = new java.util.ArrayList<DecimalDt>();
1277                }
1278                myDecimalCorr.add(new DecimalDt(theValue));
1279                return this; 
1280        }
1281
1282        /**
1283         * Adds a new value for <b>decimalCorr</b> ()
1284         *
1285     * <p>
1286     * <b>Definition:</b>
1287     * 
1288     * </p> 
1289     *
1290     * @return Returns a reference to this object, to allow for simple chaining.
1291         */
1292        public Test addDecimalCorr( java.math.BigDecimal theValue) {
1293                if (myDecimalCorr == null) {
1294                        myDecimalCorr = new java.util.ArrayList<DecimalDt>();
1295                }
1296                myDecimalCorr.add(new DecimalDt(theValue));
1297                return this; 
1298        }
1299
1300 
1301        /**
1302         * Gets the value(s) for <b>b64Err</b> ().
1303         * creating it if it does
1304         * not exist. Will not return <code>null</code>.
1305         *
1306     * <p>
1307     * <b>Definition:</b>
1308     * 
1309     * </p> 
1310         */
1311        public java.util.List<Base64BinaryDt> getB64Err() {  
1312                if (myB64Err == null) {
1313                        myB64Err = new java.util.ArrayList<Base64BinaryDt>();
1314                }
1315                return myB64Err;
1316        }
1317
1318        /**
1319         * Sets the value(s) for <b>b64Err</b> ()
1320         *
1321     * <p>
1322     * <b>Definition:</b>
1323     * 
1324     * </p> 
1325         */
1326        public Test setB64Err(java.util.List<Base64BinaryDt> theValue) {
1327                myB64Err = theValue;
1328                return this;
1329        }
1330        
1331        
1332
1333        /**
1334         * Adds and returns a new value for <b>b64Err</b> ()
1335         *
1336     * <p>
1337     * <b>Definition:</b>
1338     * 
1339     * </p> 
1340         */
1341        public Base64BinaryDt addB64Err() {
1342                Base64BinaryDt newType = new Base64BinaryDt();
1343                getB64Err().add(newType);
1344                return newType; 
1345        }
1346
1347        /**
1348         * Adds a given new value for <b>b64Err</b> ()
1349         *
1350         * <p>
1351         * <b>Definition:</b>
1352         * 
1353         * </p>
1354         * @param theValue The b64Err to add (must not be <code>null</code>)
1355         */
1356        public Test addB64Err(Base64BinaryDt theValue) {
1357                if (theValue == null) {
1358                        throw new NullPointerException("theValue must not be null");
1359                }
1360                getB64Err().add(theValue);
1361                return this;
1362        }
1363
1364        /**
1365         * Gets the first repetition for <b>b64Err</b> (),
1366         * creating it if it does not already exist.
1367         *
1368     * <p>
1369     * <b>Definition:</b>
1370     * 
1371     * </p> 
1372         */
1373        public Base64BinaryDt getB64ErrFirstRep() {
1374                if (getB64Err().isEmpty()) {
1375                        return addB64Err();
1376                }
1377                return getB64Err().get(0); 
1378        }
1379        /**
1380         * Adds a new value for <b>b64Err</b> ()
1381         *
1382     * <p>
1383     * <b>Definition:</b>
1384     * 
1385     * </p> 
1386     *
1387     * @return Returns a reference to this object, to allow for simple chaining.
1388         */
1389        public Test addB64Err( byte[] theBytes) {
1390                if (myB64Err == null) {
1391                        myB64Err = new java.util.ArrayList<Base64BinaryDt>();
1392                }
1393                myB64Err.add(new Base64BinaryDt(theBytes));
1394                return this; 
1395        }
1396
1397 
1398        /**
1399         * Gets the value(s) for <b>b64Corr</b> ().
1400         * creating it if it does
1401         * not exist. Will not return <code>null</code>.
1402         *
1403     * <p>
1404     * <b>Definition:</b>
1405     * 
1406     * </p> 
1407         */
1408        public java.util.List<Base64BinaryDt> getB64Corr() {  
1409                if (myB64Corr == null) {
1410                        myB64Corr = new java.util.ArrayList<Base64BinaryDt>();
1411                }
1412                return myB64Corr;
1413        }
1414
1415        /**
1416         * Sets the value(s) for <b>b64Corr</b> ()
1417         *
1418     * <p>
1419     * <b>Definition:</b>
1420     * 
1421     * </p> 
1422         */
1423        public Test setB64Corr(java.util.List<Base64BinaryDt> theValue) {
1424                myB64Corr = theValue;
1425                return this;
1426        }
1427        
1428        
1429
1430        /**
1431         * Adds and returns a new value for <b>b64Corr</b> ()
1432         *
1433     * <p>
1434     * <b>Definition:</b>
1435     * 
1436     * </p> 
1437         */
1438        public Base64BinaryDt addB64Corr() {
1439                Base64BinaryDt newType = new Base64BinaryDt();
1440                getB64Corr().add(newType);
1441                return newType; 
1442        }
1443
1444        /**
1445         * Adds a given new value for <b>b64Corr</b> ()
1446         *
1447         * <p>
1448         * <b>Definition:</b>
1449         * 
1450         * </p>
1451         * @param theValue The b64Corr to add (must not be <code>null</code>)
1452         */
1453        public Test addB64Corr(Base64BinaryDt theValue) {
1454                if (theValue == null) {
1455                        throw new NullPointerException("theValue must not be null");
1456                }
1457                getB64Corr().add(theValue);
1458                return this;
1459        }
1460
1461        /**
1462         * Gets the first repetition for <b>b64Corr</b> (),
1463         * creating it if it does not already exist.
1464         *
1465     * <p>
1466     * <b>Definition:</b>
1467     * 
1468     * </p> 
1469         */
1470        public Base64BinaryDt getB64CorrFirstRep() {
1471                if (getB64Corr().isEmpty()) {
1472                        return addB64Corr();
1473                }
1474                return getB64Corr().get(0); 
1475        }
1476        /**
1477         * Adds a new value for <b>b64Corr</b> ()
1478         *
1479     * <p>
1480     * <b>Definition:</b>
1481     * 
1482     * </p> 
1483     *
1484     * @return Returns a reference to this object, to allow for simple chaining.
1485         */
1486        public Test addB64Corr( byte[] theBytes) {
1487                if (myB64Corr == null) {
1488                        myB64Corr = new java.util.ArrayList<Base64BinaryDt>();
1489                }
1490                myB64Corr.add(new Base64BinaryDt(theBytes));
1491                return this; 
1492        }
1493
1494 
1495        /**
1496         * Gets the value(s) for <b>instantErr</b> ().
1497         * creating it if it does
1498         * not exist. Will not return <code>null</code>.
1499         *
1500     * <p>
1501     * <b>Definition:</b>
1502     * 
1503     * </p> 
1504         */
1505        public java.util.List<InstantDt> getInstantErr() {  
1506                if (myInstantErr == null) {
1507                        myInstantErr = new java.util.ArrayList<InstantDt>();
1508                }
1509                return myInstantErr;
1510        }
1511
1512        /**
1513         * Sets the value(s) for <b>instantErr</b> ()
1514         *
1515     * <p>
1516     * <b>Definition:</b>
1517     * 
1518     * </p> 
1519         */
1520        public Test setInstantErr(java.util.List<InstantDt> theValue) {
1521                myInstantErr = theValue;
1522                return this;
1523        }
1524        
1525        
1526
1527        /**
1528         * Adds and returns a new value for <b>instantErr</b> ()
1529         *
1530     * <p>
1531     * <b>Definition:</b>
1532     * 
1533     * </p> 
1534         */
1535        public InstantDt addInstantErr() {
1536                InstantDt newType = new InstantDt();
1537                getInstantErr().add(newType);
1538                return newType; 
1539        }
1540
1541        /**
1542         * Adds a given new value for <b>instantErr</b> ()
1543         *
1544         * <p>
1545         * <b>Definition:</b>
1546         * 
1547         * </p>
1548         * @param theValue The instantErr to add (must not be <code>null</code>)
1549         */
1550        public Test addInstantErr(InstantDt theValue) {
1551                if (theValue == null) {
1552                        throw new NullPointerException("theValue must not be null");
1553                }
1554                getInstantErr().add(theValue);
1555                return this;
1556        }
1557
1558        /**
1559         * Gets the first repetition for <b>instantErr</b> (),
1560         * creating it if it does not already exist.
1561         *
1562     * <p>
1563     * <b>Definition:</b>
1564     * 
1565     * </p> 
1566         */
1567        public InstantDt getInstantErrFirstRep() {
1568                if (getInstantErr().isEmpty()) {
1569                        return addInstantErr();
1570                }
1571                return getInstantErr().get(0); 
1572        }
1573        /**
1574         * Adds a new value for <b>instantErr</b> ()
1575         *
1576     * <p>
1577     * <b>Definition:</b>
1578     * 
1579     * </p> 
1580     *
1581     * @return Returns a reference to this object, to allow for simple chaining.
1582         */
1583        public Test addInstantErr( Date theDate) {
1584                if (myInstantErr == null) {
1585                        myInstantErr = new java.util.ArrayList<InstantDt>();
1586                }
1587                myInstantErr.add(new InstantDt(theDate));
1588                return this; 
1589        }
1590
1591        /**
1592         * Adds a new value for <b>instantErr</b> ()
1593         *
1594     * <p>
1595     * <b>Definition:</b>
1596     * 
1597     * </p> 
1598     *
1599     * @return Returns a reference to this object, to allow for simple chaining.
1600         */
1601        public Test addInstantErr( Date theDate,  TemporalPrecisionEnum thePrecision) {
1602                if (myInstantErr == null) {
1603                        myInstantErr = new java.util.ArrayList<InstantDt>();
1604                }
1605                myInstantErr.add(new InstantDt(theDate, thePrecision));
1606                return this; 
1607        }
1608
1609 
1610        /**
1611         * Gets the value(s) for <b>instantCorr</b> ().
1612         * creating it if it does
1613         * not exist. Will not return <code>null</code>.
1614         *
1615     * <p>
1616     * <b>Definition:</b>
1617     * 
1618     * </p> 
1619         */
1620        public java.util.List<InstantDt> getInstantCorr() {  
1621                if (myInstantCorr == null) {
1622                        myInstantCorr = new java.util.ArrayList<InstantDt>();
1623                }
1624                return myInstantCorr;
1625        }
1626
1627        /**
1628         * Sets the value(s) for <b>instantCorr</b> ()
1629         *
1630     * <p>
1631     * <b>Definition:</b>
1632     * 
1633     * </p> 
1634         */
1635        public Test setInstantCorr(java.util.List<InstantDt> theValue) {
1636                myInstantCorr = theValue;
1637                return this;
1638        }
1639        
1640        
1641
1642        /**
1643         * Adds and returns a new value for <b>instantCorr</b> ()
1644         *
1645     * <p>
1646     * <b>Definition:</b>
1647     * 
1648     * </p> 
1649         */
1650        public InstantDt addInstantCorr() {
1651                InstantDt newType = new InstantDt();
1652                getInstantCorr().add(newType);
1653                return newType; 
1654        }
1655
1656        /**
1657         * Adds a given new value for <b>instantCorr</b> ()
1658         *
1659         * <p>
1660         * <b>Definition:</b>
1661         * 
1662         * </p>
1663         * @param theValue The instantCorr to add (must not be <code>null</code>)
1664         */
1665        public Test addInstantCorr(InstantDt theValue) {
1666                if (theValue == null) {
1667                        throw new NullPointerException("theValue must not be null");
1668                }
1669                getInstantCorr().add(theValue);
1670                return this;
1671        }
1672
1673        /**
1674         * Gets the first repetition for <b>instantCorr</b> (),
1675         * creating it if it does not already exist.
1676         *
1677     * <p>
1678     * <b>Definition:</b>
1679     * 
1680     * </p> 
1681         */
1682        public InstantDt getInstantCorrFirstRep() {
1683                if (getInstantCorr().isEmpty()) {
1684                        return addInstantCorr();
1685                }
1686                return getInstantCorr().get(0); 
1687        }
1688        /**
1689         * Adds a new value for <b>instantCorr</b> ()
1690         *
1691     * <p>
1692     * <b>Definition:</b>
1693     * 
1694     * </p> 
1695     *
1696     * @return Returns a reference to this object, to allow for simple chaining.
1697         */
1698        public Test addInstantCorr( Date theDate) {
1699                if (myInstantCorr == null) {
1700                        myInstantCorr = new java.util.ArrayList<InstantDt>();
1701                }
1702                myInstantCorr.add(new InstantDt(theDate));
1703                return this; 
1704        }
1705
1706        /**
1707         * Adds a new value for <b>instantCorr</b> ()
1708         *
1709     * <p>
1710     * <b>Definition:</b>
1711     * 
1712     * </p> 
1713     *
1714     * @return Returns a reference to this object, to allow for simple chaining.
1715         */
1716        public Test addInstantCorr( Date theDate,  TemporalPrecisionEnum thePrecision) {
1717                if (myInstantCorr == null) {
1718                        myInstantCorr = new java.util.ArrayList<InstantDt>();
1719                }
1720                myInstantCorr.add(new InstantDt(theDate, thePrecision));
1721                return this; 
1722        }
1723
1724 
1725        /**
1726         * Gets the value(s) for <b>uriErr</b> ().
1727         * creating it if it does
1728         * not exist. Will not return <code>null</code>.
1729         *
1730     * <p>
1731     * <b>Definition:</b>
1732     * 
1733     * </p> 
1734         */
1735        public java.util.List<UriDt> getUriErr() {  
1736                if (myUriErr == null) {
1737                        myUriErr = new java.util.ArrayList<UriDt>();
1738                }
1739                return myUriErr;
1740        }
1741
1742        /**
1743         * Sets the value(s) for <b>uriErr</b> ()
1744         *
1745     * <p>
1746     * <b>Definition:</b>
1747     * 
1748     * </p> 
1749         */
1750        public Test setUriErr(java.util.List<UriDt> theValue) {
1751                myUriErr = theValue;
1752                return this;
1753        }
1754        
1755        
1756
1757        /**
1758         * Adds and returns a new value for <b>uriErr</b> ()
1759         *
1760     * <p>
1761     * <b>Definition:</b>
1762     * 
1763     * </p> 
1764         */
1765        public UriDt addUriErr() {
1766                UriDt newType = new UriDt();
1767                getUriErr().add(newType);
1768                return newType; 
1769        }
1770
1771        /**
1772         * Adds a given new value for <b>uriErr</b> ()
1773         *
1774         * <p>
1775         * <b>Definition:</b>
1776         * 
1777         * </p>
1778         * @param theValue The uriErr to add (must not be <code>null</code>)
1779         */
1780        public Test addUriErr(UriDt theValue) {
1781                if (theValue == null) {
1782                        throw new NullPointerException("theValue must not be null");
1783                }
1784                getUriErr().add(theValue);
1785                return this;
1786        }
1787
1788        /**
1789         * Gets the first repetition for <b>uriErr</b> (),
1790         * creating it if it does not already exist.
1791         *
1792     * <p>
1793     * <b>Definition:</b>
1794     * 
1795     * </p> 
1796         */
1797        public UriDt getUriErrFirstRep() {
1798                if (getUriErr().isEmpty()) {
1799                        return addUriErr();
1800                }
1801                return getUriErr().get(0); 
1802        }
1803        /**
1804         * Adds a new value for <b>uriErr</b> ()
1805         *
1806     * <p>
1807     * <b>Definition:</b>
1808     * 
1809     * </p> 
1810     *
1811     * @return Returns a reference to this object, to allow for simple chaining.
1812         */
1813        public Test addUriErr( String theUri) {
1814                if (myUriErr == null) {
1815                        myUriErr = new java.util.ArrayList<UriDt>();
1816                }
1817                myUriErr.add(new UriDt(theUri));
1818                return this; 
1819        }
1820
1821 
1822        /**
1823         * Gets the value(s) for <b>uriCorr</b> ().
1824         * creating it if it does
1825         * not exist. Will not return <code>null</code>.
1826         *
1827     * <p>
1828     * <b>Definition:</b>
1829     * 
1830     * </p> 
1831         */
1832        public java.util.List<UriDt> getUriCorr() {  
1833                if (myUriCorr == null) {
1834                        myUriCorr = new java.util.ArrayList<UriDt>();
1835                }
1836                return myUriCorr;
1837        }
1838
1839        /**
1840         * Sets the value(s) for <b>uriCorr</b> ()
1841         *
1842     * <p>
1843     * <b>Definition:</b>
1844     * 
1845     * </p> 
1846         */
1847        public Test setUriCorr(java.util.List<UriDt> theValue) {
1848                myUriCorr = theValue;
1849                return this;
1850        }
1851        
1852        
1853
1854        /**
1855         * Adds and returns a new value for <b>uriCorr</b> ()
1856         *
1857     * <p>
1858     * <b>Definition:</b>
1859     * 
1860     * </p> 
1861         */
1862        public UriDt addUriCorr() {
1863                UriDt newType = new UriDt();
1864                getUriCorr().add(newType);
1865                return newType; 
1866        }
1867
1868        /**
1869         * Adds a given new value for <b>uriCorr</b> ()
1870         *
1871         * <p>
1872         * <b>Definition:</b>
1873         * 
1874         * </p>
1875         * @param theValue The uriCorr to add (must not be <code>null</code>)
1876         */
1877        public Test addUriCorr(UriDt theValue) {
1878                if (theValue == null) {
1879                        throw new NullPointerException("theValue must not be null");
1880                }
1881                getUriCorr().add(theValue);
1882                return this;
1883        }
1884
1885        /**
1886         * Gets the first repetition for <b>uriCorr</b> (),
1887         * creating it if it does not already exist.
1888         *
1889     * <p>
1890     * <b>Definition:</b>
1891     * 
1892     * </p> 
1893         */
1894        public UriDt getUriCorrFirstRep() {
1895                if (getUriCorr().isEmpty()) {
1896                        return addUriCorr();
1897                }
1898                return getUriCorr().get(0); 
1899        }
1900        /**
1901         * Adds a new value for <b>uriCorr</b> ()
1902         *
1903     * <p>
1904     * <b>Definition:</b>
1905     * 
1906     * </p> 
1907     *
1908     * @return Returns a reference to this object, to allow for simple chaining.
1909         */
1910        public Test addUriCorr( String theUri) {
1911                if (myUriCorr == null) {
1912                        myUriCorr = new java.util.ArrayList<UriDt>();
1913                }
1914                myUriCorr.add(new UriDt(theUri));
1915                return this; 
1916        }
1917
1918 
1919
1920
1921    @Override
1922    public String getResourceName() {
1923        return "Test";
1924    }
1925    
1926    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1927        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1928    }
1929
1930
1931}