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>ProcessRequest</b> Resource
320 * ()
321 *
322 * <p>
323 * <b>Definition:</b>
324 * This resource provides the target, request and response, and action details for an action to be performed by the target on or about existing resources.
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/ProcessRequest">http://hl7.org/fhir/profiles/ProcessRequest</a> 
335 * </p>
336 *
337 */
338@ResourceDef(name="ProcessRequest", profile="http://hl7.org/fhir/profiles/ProcessRequest", id="processrequest")
339public class ProcessRequest 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 ProcessRequest</b><br>
346         * Type: <b>token</b><br>
347         * Path: <b>ProcessRequest.identifier</b><br>
348         * </p>
349         */
350        @SearchParamDefinition(name="identifier", path="ProcessRequest.identifier", description="The business identifier of the ProcessRequest", 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 ProcessRequest</b><br>
357         * Type: <b>token</b><br>
358         * Path: <b>ProcessRequest.identifier</b><br>
359         * </p>
360         */
361        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
362
363        /**
364         * Search parameter constant for <b>organization</b>
365         * <p>
366         * Description: <b>The organization who generated this request</b><br>
367         * Type: <b>reference</b><br>
368         * Path: <b>ProcessRequest.organization</b><br>
369         * </p>
370         */
371        @SearchParamDefinition(name="organization", path="ProcessRequest.organization", description="The organization who generated this request", type="reference"  )
372        public static final String SP_ORGANIZATION = "organization";
373
374        /**
375         * <b>Fluent Client</b> search parameter constant for <b>organization</b>
376         * <p>
377         * Description: <b>The organization who generated this request</b><br>
378         * Type: <b>reference</b><br>
379         * Path: <b>ProcessRequest.organization</b><br>
380         * </p>
381         */
382        public static final ReferenceClientParam ORGANIZATION = new ReferenceClientParam(SP_ORGANIZATION);
383
384        /**
385         * Search parameter constant for <b>provider</b>
386         * <p>
387         * Description: <b>The provider who regenerated this request</b><br>
388         * Type: <b>reference</b><br>
389         * Path: <b>ProcessRequest.provider</b><br>
390         * </p>
391         */
392        @SearchParamDefinition(name="provider", path="ProcessRequest.provider", description="The provider who regenerated this request", type="reference"  )
393        public static final String SP_PROVIDER = "provider";
394
395        /**
396         * <b>Fluent Client</b> search parameter constant for <b>provider</b>
397         * <p>
398         * Description: <b>The provider who regenerated this request</b><br>
399         * Type: <b>reference</b><br>
400         * Path: <b>ProcessRequest.provider</b><br>
401         * </p>
402         */
403        public static final ReferenceClientParam PROVIDER = new ReferenceClientParam(SP_PROVIDER);
404
405        /**
406         * Search parameter constant for <b>action</b>
407         * <p>
408         * Description: <b>The action requested by this resource</b><br>
409         * Type: <b>token</b><br>
410         * Path: <b>ProcessRequest.action</b><br>
411         * </p>
412         */
413        @SearchParamDefinition(name="action", path="ProcessRequest.action", description="The action requested by this resource", type="token"  )
414        public static final String SP_ACTION = "action";
415
416        /**
417         * <b>Fluent Client</b> search parameter constant for <b>action</b>
418         * <p>
419         * Description: <b>The action requested by this resource</b><br>
420         * Type: <b>token</b><br>
421         * Path: <b>ProcessRequest.action</b><br>
422         * </p>
423         */
424        public static final TokenClientParam ACTION = new TokenClientParam(SP_ACTION);
425
426
427        /**
428         * Constant for fluent queries to be used to add include statements. Specifies
429         * the path value of "<b>ProcessRequest:organization</b>".
430         */
431        public static final Include INCLUDE_ORGANIZATION = new Include("ProcessRequest:organization");
432
433        /**
434         * Constant for fluent queries to be used to add include statements. Specifies
435         * the path value of "<b>ProcessRequest:provider</b>".
436         */
437        public static final Include INCLUDE_PROVIDER = new Include("ProcessRequest:provider");
438
439
440        @Child(name="action", type=CodeDt.class, order=0, min=1, max=1, summary=false, modifier=false)  
441        @Description(
442                shortDefinition="",
443                formalDefinition="The type of processing action being requested, for example Reversal, Readjudication, StatusRequest,PendedRequest"
444        )
445        private BoundCodeDt<ActionListEnum> myAction;
446        
447        @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)      
448        @Description(
449                shortDefinition="",
450                formalDefinition="The ProcessRequest business identifier"
451        )
452        private java.util.List<IdentifierDt> myIdentifier;
453        
454        @Child(name="ruleset", type=CodingDt.class, order=2, min=0, max=1, summary=false, modifier=false)       
455        @Description(
456                shortDefinition="",
457                formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources."
458        )
459        private CodingDt myRuleset;
460        
461        @Child(name="originalRuleset", type=CodingDt.class, order=3, min=0, max=1, summary=false, modifier=false)       
462        @Description(
463                shortDefinition="",
464                formalDefinition="The style (standard) and version of the original material which was converted into this resource."
465        )
466        private CodingDt myOriginalRuleset;
467        
468        @Child(name="created", type=DateTimeDt.class, order=4, min=0, max=1, summary=false, modifier=false)     
469        @Description(
470                shortDefinition="",
471                formalDefinition="The date when this resource was created."
472        )
473        private DateTimeDt myCreated;
474        
475        @Child(name="target", order=5, min=0, max=1, summary=false, modifier=false, type={
476                ca.uhn.fhir.model.dstu2.resource.Organization.class     })
477        @Description(
478                shortDefinition="",
479                formalDefinition="The organization which is the target of the request."
480        )
481        private ResourceReferenceDt myTarget;
482        
483        @Child(name="provider", order=6, min=0, max=1, summary=false, modifier=false, type={
484                ca.uhn.fhir.model.dstu2.resource.Practitioner.class     })
485        @Description(
486                shortDefinition="",
487                formalDefinition="The practitioner who is responsible for the action specified in thise request."
488        )
489        private ResourceReferenceDt myProvider;
490        
491        @Child(name="organization", order=7, min=0, max=1, summary=false, modifier=false, type={
492                ca.uhn.fhir.model.dstu2.resource.Organization.class     })
493        @Description(
494                shortDefinition="",
495                formalDefinition="The organization which is responsible for the action speccified in thise request."
496        )
497        private ResourceReferenceDt myOrganization;
498        
499        @Child(name="request", order=8, min=0, max=1, summary=false, modifier=false, type={
500                IResource.class })
501        @Description(
502                shortDefinition="",
503                formalDefinition="Reference of resource which is the target or subject of this action."
504        )
505        private ResourceReferenceDt myRequest;
506        
507        @Child(name="response", order=9, min=0, max=1, summary=false, modifier=false, type={
508                IResource.class })
509        @Description(
510                shortDefinition="",
511                formalDefinition="Reference of a prior response to resource which is the target or subject of this action."
512        )
513        private ResourceReferenceDt myResponse;
514        
515        @Child(name="nullify", type=BooleanDt.class, order=10, min=0, max=1, summary=false, modifier=false)     
516        @Description(
517                shortDefinition="",
518                formalDefinition="If true remove all history excluding audit."
519        )
520        private BooleanDt myNullify;
521        
522        @Child(name="reference", type=StringDt.class, order=11, min=0, max=1, summary=false, modifier=false)    
523        @Description(
524                shortDefinition="",
525                formalDefinition="A reference to supply which authenticates the process."
526        )
527        private StringDt myReference;
528        
529        @Child(name="item", order=12, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)    
530        @Description(
531                shortDefinition="",
532                formalDefinition="List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated."
533        )
534        private java.util.List<Item> myItem;
535        
536        @Child(name="include", type=StringDt.class, order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)    
537        @Description(
538                shortDefinition="",
539                formalDefinition="Names of resource types to include"
540        )
541        private java.util.List<StringDt> myInclude;
542        
543        @Child(name="exclude", type=StringDt.class, order=14, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)    
544        @Description(
545                shortDefinition="",
546                formalDefinition="Names of resource types to exclude"
547        )
548        private java.util.List<StringDt> myExclude;
549        
550        @Child(name="period", type=PeriodDt.class, order=15, min=0, max=1, summary=false, modifier=false)       
551        @Description(
552                shortDefinition="",
553                formalDefinition="A period of time during which the fulfilling resources would have been created."
554        )
555        private PeriodDt myPeriod;
556        
557
558        @Override
559        public boolean isEmpty() {
560                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myAction,  myIdentifier,  myRuleset,  myOriginalRuleset,  myCreated,  myTarget,  myProvider,  myOrganization,  myRequest,  myResponse,  myNullify,  myReference,  myItem,  myInclude,  myExclude,  myPeriod);
561        }
562        
563        @Override
564        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
565                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myAction, myIdentifier, myRuleset, myOriginalRuleset, myCreated, myTarget, myProvider, myOrganization, myRequest, myResponse, myNullify, myReference, myItem, myInclude, myExclude, myPeriod);
566        }
567
568        /**
569         * Gets the value(s) for <b>action</b> ().
570         * creating it if it does
571         * not exist. Will not return <code>null</code>.
572         *
573     * <p>
574     * <b>Definition:</b>
575     * The type of processing action being requested, for example Reversal, Readjudication, StatusRequest,PendedRequest
576     * </p> 
577         */
578        public BoundCodeDt<ActionListEnum> getActionElement() {  
579                if (myAction == null) {
580                        myAction = new BoundCodeDt<ActionListEnum>(ActionListEnum.VALUESET_BINDER);
581                }
582                return myAction;
583        }
584
585        
586        /**
587         * Gets the value(s) for <b>action</b> ().
588         * creating it if it does
589         * not exist. Will not return <code>null</code>.
590         *
591     * <p>
592     * <b>Definition:</b>
593     * The type of processing action being requested, for example Reversal, Readjudication, StatusRequest,PendedRequest
594     * </p> 
595         */
596        public String getAction() {  
597                return getActionElement().getValue();
598        }
599
600        /**
601         * Sets the value(s) for <b>action</b> ()
602         *
603     * <p>
604     * <b>Definition:</b>
605     * The type of processing action being requested, for example Reversal, Readjudication, StatusRequest,PendedRequest
606     * </p> 
607         */
608        public ProcessRequest setAction(BoundCodeDt<ActionListEnum> theValue) {
609                myAction = theValue;
610                return this;
611        }
612        
613        
614
615        /**
616         * Sets the value(s) for <b>action</b> ()
617         *
618     * <p>
619     * <b>Definition:</b>
620     * The type of processing action being requested, for example Reversal, Readjudication, StatusRequest,PendedRequest
621     * </p> 
622         */
623        public ProcessRequest setAction(ActionListEnum theValue) {
624                setAction(new BoundCodeDt<ActionListEnum>(ActionListEnum.VALUESET_BINDER, theValue));
625                
626/*
627                getActionElement().setValueAsEnum(theValue);
628*/
629                return this;
630        }
631
632  
633        /**
634         * Gets the value(s) for <b>identifier</b> ().
635         * creating it if it does
636         * not exist. Will not return <code>null</code>.
637         *
638     * <p>
639     * <b>Definition:</b>
640     * The ProcessRequest business identifier
641     * </p> 
642         */
643        public java.util.List<IdentifierDt> getIdentifier() {  
644                if (myIdentifier == null) {
645                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
646                }
647                return myIdentifier;
648        }
649
650        /**
651         * Sets the value(s) for <b>identifier</b> ()
652         *
653     * <p>
654     * <b>Definition:</b>
655     * The ProcessRequest business identifier
656     * </p> 
657         */
658        public ProcessRequest setIdentifier(java.util.List<IdentifierDt> theValue) {
659                myIdentifier = theValue;
660                return this;
661        }
662        
663        
664
665        /**
666         * Adds and returns a new value for <b>identifier</b> ()
667         *
668     * <p>
669     * <b>Definition:</b>
670     * The ProcessRequest business identifier
671     * </p> 
672         */
673        public IdentifierDt addIdentifier() {
674                IdentifierDt newType = new IdentifierDt();
675                getIdentifier().add(newType);
676                return newType; 
677        }
678
679        /**
680         * Adds a given new value for <b>identifier</b> ()
681         *
682         * <p>
683         * <b>Definition:</b>
684         * The ProcessRequest business identifier
685         * </p>
686         * @param theValue The identifier to add (must not be <code>null</code>)
687         */
688        public ProcessRequest addIdentifier(IdentifierDt theValue) {
689                if (theValue == null) {
690                        throw new NullPointerException("theValue must not be null");
691                }
692                getIdentifier().add(theValue);
693                return this;
694        }
695
696        /**
697         * Gets the first repetition for <b>identifier</b> (),
698         * creating it if it does not already exist.
699         *
700     * <p>
701     * <b>Definition:</b>
702     * The ProcessRequest business identifier
703     * </p> 
704         */
705        public IdentifierDt getIdentifierFirstRep() {
706                if (getIdentifier().isEmpty()) {
707                        return addIdentifier();
708                }
709                return getIdentifier().get(0); 
710        }
711  
712        /**
713         * Gets the value(s) for <b>ruleset</b> ().
714         * creating it if it does
715         * not exist. Will not return <code>null</code>.
716         *
717     * <p>
718     * <b>Definition:</b>
719     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
720     * </p> 
721         */
722        public CodingDt getRuleset() {  
723                if (myRuleset == null) {
724                        myRuleset = new CodingDt();
725                }
726                return myRuleset;
727        }
728
729        /**
730         * Sets the value(s) for <b>ruleset</b> ()
731         *
732     * <p>
733     * <b>Definition:</b>
734     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
735     * </p> 
736         */
737        public ProcessRequest setRuleset(CodingDt theValue) {
738                myRuleset = theValue;
739                return this;
740        }
741        
742        
743
744  
745        /**
746         * Gets the value(s) for <b>originalRuleset</b> ().
747         * creating it if it does
748         * not exist. Will not return <code>null</code>.
749         *
750     * <p>
751     * <b>Definition:</b>
752     * The style (standard) and version of the original material which was converted into this resource.
753     * </p> 
754         */
755        public CodingDt getOriginalRuleset() {  
756                if (myOriginalRuleset == null) {
757                        myOriginalRuleset = new CodingDt();
758                }
759                return myOriginalRuleset;
760        }
761
762        /**
763         * Sets the value(s) for <b>originalRuleset</b> ()
764         *
765     * <p>
766     * <b>Definition:</b>
767     * The style (standard) and version of the original material which was converted into this resource.
768     * </p> 
769         */
770        public ProcessRequest setOriginalRuleset(CodingDt theValue) {
771                myOriginalRuleset = theValue;
772                return this;
773        }
774        
775        
776
777  
778        /**
779         * Gets the value(s) for <b>created</b> ().
780         * creating it if it does
781         * not exist. Will not return <code>null</code>.
782         *
783     * <p>
784     * <b>Definition:</b>
785     * The date when this resource was created.
786     * </p> 
787         */
788        public DateTimeDt getCreatedElement() {  
789                if (myCreated == null) {
790                        myCreated = new DateTimeDt();
791                }
792                return myCreated;
793        }
794
795        
796        /**
797         * Gets the value(s) for <b>created</b> ().
798         * creating it if it does
799         * not exist. Will not return <code>null</code>.
800         *
801     * <p>
802     * <b>Definition:</b>
803     * The date when this resource was created.
804     * </p> 
805         */
806        public Date getCreated() {  
807                return getCreatedElement().getValue();
808        }
809
810        /**
811         * Sets the value(s) for <b>created</b> ()
812         *
813     * <p>
814     * <b>Definition:</b>
815     * The date when this resource was created.
816     * </p> 
817         */
818        public ProcessRequest setCreated(DateTimeDt theValue) {
819                myCreated = theValue;
820                return this;
821        }
822        
823        
824
825        /**
826         * Sets the value for <b>created</b> ()
827         *
828     * <p>
829     * <b>Definition:</b>
830     * The date when this resource was created.
831     * </p> 
832         */
833        public ProcessRequest setCreated( Date theDate,  TemporalPrecisionEnum thePrecision) {
834                myCreated = new DateTimeDt(theDate, thePrecision); 
835                return this; 
836        }
837
838        /**
839         * Sets the value for <b>created</b> ()
840         *
841     * <p>
842     * <b>Definition:</b>
843     * The date when this resource was created.
844     * </p> 
845         */
846        public ProcessRequest setCreatedWithSecondsPrecision( Date theDate) {
847                myCreated = new DateTimeDt(theDate); 
848                return this; 
849        }
850
851 
852        /**
853         * Gets the value(s) for <b>target</b> ().
854         * creating it if it does
855         * not exist. Will not return <code>null</code>.
856         *
857     * <p>
858     * <b>Definition:</b>
859     * The organization which is the target of the request.
860     * </p> 
861         */
862        public ResourceReferenceDt getTarget() {  
863                if (myTarget == null) {
864                        myTarget = new ResourceReferenceDt();
865                }
866                return myTarget;
867        }
868
869        /**
870         * Sets the value(s) for <b>target</b> ()
871         *
872     * <p>
873     * <b>Definition:</b>
874     * The organization which is the target of the request.
875     * </p> 
876         */
877        public ProcessRequest setTarget(ResourceReferenceDt theValue) {
878                myTarget = theValue;
879                return this;
880        }
881        
882        
883
884  
885        /**
886         * Gets the value(s) for <b>provider</b> ().
887         * creating it if it does
888         * not exist. Will not return <code>null</code>.
889         *
890     * <p>
891     * <b>Definition:</b>
892     * The practitioner who is responsible for the action specified in thise request.
893     * </p> 
894         */
895        public ResourceReferenceDt getProvider() {  
896                if (myProvider == null) {
897                        myProvider = new ResourceReferenceDt();
898                }
899                return myProvider;
900        }
901
902        /**
903         * Sets the value(s) for <b>provider</b> ()
904         *
905     * <p>
906     * <b>Definition:</b>
907     * The practitioner who is responsible for the action specified in thise request.
908     * </p> 
909         */
910        public ProcessRequest setProvider(ResourceReferenceDt theValue) {
911                myProvider = theValue;
912                return this;
913        }
914        
915        
916
917  
918        /**
919         * Gets the value(s) for <b>organization</b> ().
920         * creating it if it does
921         * not exist. Will not return <code>null</code>.
922         *
923     * <p>
924     * <b>Definition:</b>
925     * The organization which is responsible for the action speccified in thise request.
926     * </p> 
927         */
928        public ResourceReferenceDt getOrganization() {  
929                if (myOrganization == null) {
930                        myOrganization = new ResourceReferenceDt();
931                }
932                return myOrganization;
933        }
934
935        /**
936         * Sets the value(s) for <b>organization</b> ()
937         *
938     * <p>
939     * <b>Definition:</b>
940     * The organization which is responsible for the action speccified in thise request.
941     * </p> 
942         */
943        public ProcessRequest setOrganization(ResourceReferenceDt theValue) {
944                myOrganization = theValue;
945                return this;
946        }
947        
948        
949
950  
951        /**
952         * Gets the value(s) for <b>request</b> ().
953         * creating it if it does
954         * not exist. Will not return <code>null</code>.
955         *
956     * <p>
957     * <b>Definition:</b>
958     * Reference of resource which is the target or subject of this action.
959     * </p> 
960         */
961        public ResourceReferenceDt getRequest() {  
962                if (myRequest == null) {
963                        myRequest = new ResourceReferenceDt();
964                }
965                return myRequest;
966        }
967
968        /**
969         * Sets the value(s) for <b>request</b> ()
970         *
971     * <p>
972     * <b>Definition:</b>
973     * Reference of resource which is the target or subject of this action.
974     * </p> 
975         */
976        public ProcessRequest setRequest(ResourceReferenceDt theValue) {
977                myRequest = theValue;
978                return this;
979        }
980        
981        
982
983  
984        /**
985         * Gets the value(s) for <b>response</b> ().
986         * creating it if it does
987         * not exist. Will not return <code>null</code>.
988         *
989     * <p>
990     * <b>Definition:</b>
991     * Reference of a prior response to resource which is the target or subject of this action.
992     * </p> 
993         */
994        public ResourceReferenceDt getResponse() {  
995                if (myResponse == null) {
996                        myResponse = new ResourceReferenceDt();
997                }
998                return myResponse;
999        }
1000
1001        /**
1002         * Sets the value(s) for <b>response</b> ()
1003         *
1004     * <p>
1005     * <b>Definition:</b>
1006     * Reference of a prior response to resource which is the target or subject of this action.
1007     * </p> 
1008         */
1009        public ProcessRequest setResponse(ResourceReferenceDt theValue) {
1010                myResponse = theValue;
1011                return this;
1012        }
1013        
1014        
1015
1016  
1017        /**
1018         * Gets the value(s) for <b>nullify</b> ().
1019         * creating it if it does
1020         * not exist. Will not return <code>null</code>.
1021         *
1022     * <p>
1023     * <b>Definition:</b>
1024     * If true remove all history excluding audit.
1025     * </p> 
1026         */
1027        public BooleanDt getNullifyElement() {  
1028                if (myNullify == null) {
1029                        myNullify = new BooleanDt();
1030                }
1031                return myNullify;
1032        }
1033
1034        
1035        /**
1036         * Gets the value(s) for <b>nullify</b> ().
1037         * creating it if it does
1038         * not exist. Will not return <code>null</code>.
1039         *
1040     * <p>
1041     * <b>Definition:</b>
1042     * If true remove all history excluding audit.
1043     * </p> 
1044         */
1045        public Boolean getNullify() {  
1046                return getNullifyElement().getValue();
1047        }
1048
1049        /**
1050         * Sets the value(s) for <b>nullify</b> ()
1051         *
1052     * <p>
1053     * <b>Definition:</b>
1054     * If true remove all history excluding audit.
1055     * </p> 
1056         */
1057        public ProcessRequest setNullify(BooleanDt theValue) {
1058                myNullify = theValue;
1059                return this;
1060        }
1061        
1062        
1063
1064        /**
1065         * Sets the value for <b>nullify</b> ()
1066         *
1067     * <p>
1068     * <b>Definition:</b>
1069     * If true remove all history excluding audit.
1070     * </p> 
1071         */
1072        public ProcessRequest setNullify( boolean theBoolean) {
1073                myNullify = new BooleanDt(theBoolean); 
1074                return this; 
1075        }
1076
1077 
1078        /**
1079         * Gets the value(s) for <b>reference</b> ().
1080         * creating it if it does
1081         * not exist. Will not return <code>null</code>.
1082         *
1083     * <p>
1084     * <b>Definition:</b>
1085     * A reference to supply which authenticates the process.
1086     * </p> 
1087         */
1088        public StringDt getReferenceElement() {  
1089                if (myReference == null) {
1090                        myReference = new StringDt();
1091                }
1092                return myReference;
1093        }
1094
1095        
1096        /**
1097         * Gets the value(s) for <b>reference</b> ().
1098         * creating it if it does
1099         * not exist. Will not return <code>null</code>.
1100         *
1101     * <p>
1102     * <b>Definition:</b>
1103     * A reference to supply which authenticates the process.
1104     * </p> 
1105         */
1106        public String getReference() {  
1107                return getReferenceElement().getValue();
1108        }
1109
1110        /**
1111         * Sets the value(s) for <b>reference</b> ()
1112         *
1113     * <p>
1114     * <b>Definition:</b>
1115     * A reference to supply which authenticates the process.
1116     * </p> 
1117         */
1118        public ProcessRequest setReference(StringDt theValue) {
1119                myReference = theValue;
1120                return this;
1121        }
1122        
1123        
1124
1125        /**
1126         * Sets the value for <b>reference</b> ()
1127         *
1128     * <p>
1129     * <b>Definition:</b>
1130     * A reference to supply which authenticates the process.
1131     * </p> 
1132         */
1133        public ProcessRequest setReference( String theString) {
1134                myReference = new StringDt(theString); 
1135                return this; 
1136        }
1137
1138 
1139        /**
1140         * Gets the value(s) for <b>item</b> ().
1141         * creating it if it does
1142         * not exist. Will not return <code>null</code>.
1143         *
1144     * <p>
1145     * <b>Definition:</b>
1146     * List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.
1147     * </p> 
1148         */
1149        public java.util.List<Item> getItem() {  
1150                if (myItem == null) {
1151                        myItem = new java.util.ArrayList<Item>();
1152                }
1153                return myItem;
1154        }
1155
1156        /**
1157         * Sets the value(s) for <b>item</b> ()
1158         *
1159     * <p>
1160     * <b>Definition:</b>
1161     * List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.
1162     * </p> 
1163         */
1164        public ProcessRequest setItem(java.util.List<Item> theValue) {
1165                myItem = theValue;
1166                return this;
1167        }
1168        
1169        
1170
1171        /**
1172         * Adds and returns a new value for <b>item</b> ()
1173         *
1174     * <p>
1175     * <b>Definition:</b>
1176     * List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.
1177     * </p> 
1178         */
1179        public Item addItem() {
1180                Item newType = new Item();
1181                getItem().add(newType);
1182                return newType; 
1183        }
1184
1185        /**
1186         * Adds a given new value for <b>item</b> ()
1187         *
1188         * <p>
1189         * <b>Definition:</b>
1190         * List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.
1191         * </p>
1192         * @param theValue The item to add (must not be <code>null</code>)
1193         */
1194        public ProcessRequest addItem(Item theValue) {
1195                if (theValue == null) {
1196                        throw new NullPointerException("theValue must not be null");
1197                }
1198                getItem().add(theValue);
1199                return this;
1200        }
1201
1202        /**
1203         * Gets the first repetition for <b>item</b> (),
1204         * creating it if it does not already exist.
1205         *
1206     * <p>
1207     * <b>Definition:</b>
1208     * List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.
1209     * </p> 
1210         */
1211        public Item getItemFirstRep() {
1212                if (getItem().isEmpty()) {
1213                        return addItem();
1214                }
1215                return getItem().get(0); 
1216        }
1217  
1218        /**
1219         * Gets the value(s) for <b>include</b> ().
1220         * creating it if it does
1221         * not exist. Will not return <code>null</code>.
1222         *
1223     * <p>
1224     * <b>Definition:</b>
1225     * Names of resource types to include
1226     * </p> 
1227         */
1228        public java.util.List<StringDt> getInclude() {  
1229                if (myInclude == null) {
1230                        myInclude = new java.util.ArrayList<StringDt>();
1231                }
1232                return myInclude;
1233        }
1234
1235        /**
1236         * Sets the value(s) for <b>include</b> ()
1237         *
1238     * <p>
1239     * <b>Definition:</b>
1240     * Names of resource types to include
1241     * </p> 
1242         */
1243        public ProcessRequest setInclude(java.util.List<StringDt> theValue) {
1244                myInclude = theValue;
1245                return this;
1246        }
1247        
1248        
1249
1250        /**
1251         * Adds and returns a new value for <b>include</b> ()
1252         *
1253     * <p>
1254     * <b>Definition:</b>
1255     * Names of resource types to include
1256     * </p> 
1257         */
1258        public StringDt addInclude() {
1259                StringDt newType = new StringDt();
1260                getInclude().add(newType);
1261                return newType; 
1262        }
1263
1264        /**
1265         * Adds a given new value for <b>include</b> ()
1266         *
1267         * <p>
1268         * <b>Definition:</b>
1269         * Names of resource types to include
1270         * </p>
1271         * @param theValue The include to add (must not be <code>null</code>)
1272         */
1273        public ProcessRequest addInclude(StringDt theValue) {
1274                if (theValue == null) {
1275                        throw new NullPointerException("theValue must not be null");
1276                }
1277                getInclude().add(theValue);
1278                return this;
1279        }
1280
1281        /**
1282         * Gets the first repetition for <b>include</b> (),
1283         * creating it if it does not already exist.
1284         *
1285     * <p>
1286     * <b>Definition:</b>
1287     * Names of resource types to include
1288     * </p> 
1289         */
1290        public StringDt getIncludeFirstRep() {
1291                if (getInclude().isEmpty()) {
1292                        return addInclude();
1293                }
1294                return getInclude().get(0); 
1295        }
1296        /**
1297         * Adds a new value for <b>include</b> ()
1298         *
1299     * <p>
1300     * <b>Definition:</b>
1301     * Names of resource types to include
1302     * </p> 
1303     *
1304     * @return Returns a reference to this object, to allow for simple chaining.
1305         */
1306        public ProcessRequest addInclude( String theString) {
1307                if (myInclude == null) {
1308                        myInclude = new java.util.ArrayList<StringDt>();
1309                }
1310                myInclude.add(new StringDt(theString));
1311                return this; 
1312        }
1313
1314 
1315        /**
1316         * Gets the value(s) for <b>exclude</b> ().
1317         * creating it if it does
1318         * not exist. Will not return <code>null</code>.
1319         *
1320     * <p>
1321     * <b>Definition:</b>
1322     * Names of resource types to exclude
1323     * </p> 
1324         */
1325        public java.util.List<StringDt> getExclude() {  
1326                if (myExclude == null) {
1327                        myExclude = new java.util.ArrayList<StringDt>();
1328                }
1329                return myExclude;
1330        }
1331
1332        /**
1333         * Sets the value(s) for <b>exclude</b> ()
1334         *
1335     * <p>
1336     * <b>Definition:</b>
1337     * Names of resource types to exclude
1338     * </p> 
1339         */
1340        public ProcessRequest setExclude(java.util.List<StringDt> theValue) {
1341                myExclude = theValue;
1342                return this;
1343        }
1344        
1345        
1346
1347        /**
1348         * Adds and returns a new value for <b>exclude</b> ()
1349         *
1350     * <p>
1351     * <b>Definition:</b>
1352     * Names of resource types to exclude
1353     * </p> 
1354         */
1355        public StringDt addExclude() {
1356                StringDt newType = new StringDt();
1357                getExclude().add(newType);
1358                return newType; 
1359        }
1360
1361        /**
1362         * Adds a given new value for <b>exclude</b> ()
1363         *
1364         * <p>
1365         * <b>Definition:</b>
1366         * Names of resource types to exclude
1367         * </p>
1368         * @param theValue The exclude to add (must not be <code>null</code>)
1369         */
1370        public ProcessRequest addExclude(StringDt theValue) {
1371                if (theValue == null) {
1372                        throw new NullPointerException("theValue must not be null");
1373                }
1374                getExclude().add(theValue);
1375                return this;
1376        }
1377
1378        /**
1379         * Gets the first repetition for <b>exclude</b> (),
1380         * creating it if it does not already exist.
1381         *
1382     * <p>
1383     * <b>Definition:</b>
1384     * Names of resource types to exclude
1385     * </p> 
1386         */
1387        public StringDt getExcludeFirstRep() {
1388                if (getExclude().isEmpty()) {
1389                        return addExclude();
1390                }
1391                return getExclude().get(0); 
1392        }
1393        /**
1394         * Adds a new value for <b>exclude</b> ()
1395         *
1396     * <p>
1397     * <b>Definition:</b>
1398     * Names of resource types to exclude
1399     * </p> 
1400     *
1401     * @return Returns a reference to this object, to allow for simple chaining.
1402         */
1403        public ProcessRequest addExclude( String theString) {
1404                if (myExclude == null) {
1405                        myExclude = new java.util.ArrayList<StringDt>();
1406                }
1407                myExclude.add(new StringDt(theString));
1408                return this; 
1409        }
1410
1411 
1412        /**
1413         * Gets the value(s) for <b>period</b> ().
1414         * creating it if it does
1415         * not exist. Will not return <code>null</code>.
1416         *
1417     * <p>
1418     * <b>Definition:</b>
1419     * A period of time during which the fulfilling resources would have been created.
1420     * </p> 
1421         */
1422        public PeriodDt getPeriod() {  
1423                if (myPeriod == null) {
1424                        myPeriod = new PeriodDt();
1425                }
1426                return myPeriod;
1427        }
1428
1429        /**
1430         * Sets the value(s) for <b>period</b> ()
1431         *
1432     * <p>
1433     * <b>Definition:</b>
1434     * A period of time during which the fulfilling resources would have been created.
1435     * </p> 
1436         */
1437        public ProcessRequest setPeriod(PeriodDt theValue) {
1438                myPeriod = theValue;
1439                return this;
1440        }
1441        
1442        
1443
1444  
1445        /**
1446         * Block class for child element: <b>ProcessRequest.item</b> ()
1447         *
1448     * <p>
1449     * <b>Definition:</b>
1450     * List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.
1451     * </p> 
1452         */
1453        @Block()        
1454        public static class Item 
1455            extends  BaseIdentifiableElement        implements IResourceBlock {
1456        
1457        @Child(name="sequenceLinkId", type=IntegerDt.class, order=0, min=1, max=1, summary=false, modifier=false)       
1458        @Description(
1459                shortDefinition="",
1460                formalDefinition="A service line number."
1461        )
1462        private IntegerDt mySequenceLinkId;
1463        
1464
1465        @Override
1466        public boolean isEmpty() {
1467                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  mySequenceLinkId);
1468        }
1469        
1470        @Override
1471        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
1472                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySequenceLinkId);
1473        }
1474
1475        /**
1476         * Gets the value(s) for <b>sequenceLinkId</b> ().
1477         * creating it if it does
1478         * not exist. Will not return <code>null</code>.
1479         *
1480     * <p>
1481     * <b>Definition:</b>
1482     * A service line number.
1483     * </p> 
1484         */
1485        public IntegerDt getSequenceLinkIdElement() {  
1486                if (mySequenceLinkId == null) {
1487                        mySequenceLinkId = new IntegerDt();
1488                }
1489                return mySequenceLinkId;
1490        }
1491
1492        
1493        /**
1494         * Gets the value(s) for <b>sequenceLinkId</b> ().
1495         * creating it if it does
1496         * not exist. Will not return <code>null</code>.
1497         *
1498     * <p>
1499     * <b>Definition:</b>
1500     * A service line number.
1501     * </p> 
1502         */
1503        public Integer getSequenceLinkId() {  
1504                return getSequenceLinkIdElement().getValue();
1505        }
1506
1507        /**
1508         * Sets the value(s) for <b>sequenceLinkId</b> ()
1509         *
1510     * <p>
1511     * <b>Definition:</b>
1512     * A service line number.
1513     * </p> 
1514         */
1515        public Item setSequenceLinkId(IntegerDt theValue) {
1516                mySequenceLinkId = theValue;
1517                return this;
1518        }
1519        
1520        
1521
1522        /**
1523         * Sets the value for <b>sequenceLinkId</b> ()
1524         *
1525     * <p>
1526     * <b>Definition:</b>
1527     * A service line number.
1528     * </p> 
1529         */
1530        public Item setSequenceLinkId( int theInteger) {
1531                mySequenceLinkId = new IntegerDt(theInteger); 
1532                return this; 
1533        }
1534
1535 
1536
1537
1538        }
1539
1540
1541
1542
1543    @Override
1544    public String getResourceName() {
1545        return "ProcessRequest";
1546    }
1547    
1548    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1549        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1550    }
1551
1552
1553}