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.composite.AnnotationDt;
042import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
043import ca.uhn.fhir.model.dstu2.resource.Appointment;
044import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
045import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
046import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
047import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
048import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
049import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
050import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
053import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
054import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
055import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
056import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
057import ca.uhn.fhir.model.dstu2.resource.BodySite;
058import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
059import ca.uhn.fhir.model.dstu2.resource.CarePlan;
060import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
061import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
062import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
063import ca.uhn.fhir.model.dstu2.resource.Claim;
064import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
065import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
066import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
067import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
068import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
069import ca.uhn.fhir.model.dstu2.composite.CodingDt;
070import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
071import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
072import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
073import ca.uhn.fhir.model.dstu2.resource.Composition;
074import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
075import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
076import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
077import ca.uhn.fhir.model.dstu2.resource.Condition;
078import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
079import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
080import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
081import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
082import ca.uhn.fhir.model.dstu2.resource.Conformance;
083import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
084import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
085import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
086import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
087import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
088import ca.uhn.fhir.model.dstu2.resource.Contract;
089import ca.uhn.fhir.model.dstu2.resource.Coverage;
090import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
091import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
092import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
093import ca.uhn.fhir.model.dstu2.resource.Device;
094import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
095import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
096import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
097import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
098import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
099import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
100import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
101import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
102import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
103import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
104import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
105import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
106import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
107import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
108import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
109import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
110import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
111import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
112import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
113import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
114import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
115import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
116import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
117import ca.uhn.fhir.model.dstu2.resource.Encounter;
118import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
119import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
120import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
121import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
122import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
123import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
124import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
125import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
126import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
127import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
128import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
129import ca.uhn.fhir.model.dstu2.resource.Goal;
130import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
131import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
132import ca.uhn.fhir.model.dstu2.resource.Group;
133import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
134import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
135import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
136import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
137import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
138import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
139import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
140import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
141import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
142import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
143import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
144import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
145import ca.uhn.fhir.model.dstu2.resource.Immunization;
146import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
147import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
148import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
149import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
150import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
151import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
152import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
153import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
154import ca.uhn.fhir.model.dstu2.resource.Location;
155import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
156import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
157import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
158import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
159import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
160import ca.uhn.fhir.model.dstu2.resource.Media;
161import ca.uhn.fhir.model.dstu2.resource.Medication;
162import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
163import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
164import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
165import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
166import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
167import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
168import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
169import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
170import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
171import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
172import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
173import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
174import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
175import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
176import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
177import ca.uhn.fhir.model.dstu2.resource.Observation;
178import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
179import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
180import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
181import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
182import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
183import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
184import ca.uhn.fhir.model.dstu2.resource.Order;
185import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
186import ca.uhn.fhir.model.dstu2.resource.Organization;
187import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
188import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
189import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
190import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
191import ca.uhn.fhir.model.dstu2.resource.Patient;
192import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
193import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
194import ca.uhn.fhir.model.dstu2.resource.Person;
195import ca.uhn.fhir.model.dstu2.resource.Practitioner;
196import ca.uhn.fhir.model.dstu2.resource.Procedure;
197import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
198import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
199import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
200import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
201import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
202import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
203import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
204import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
205import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
206import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
207import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
208import ca.uhn.fhir.model.dstu2.composite.RangeDt;
209import ca.uhn.fhir.model.dstu2.composite.RatioDt;
210import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
211import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
212import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
213import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
214import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
215import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
216import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
217import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
218import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
219import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
220import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
221import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
222import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
223import ca.uhn.fhir.model.dstu2.resource.Schedule;
224import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
225import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
226import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
227import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
228import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
229import ca.uhn.fhir.model.dstu2.resource.Slot;
230import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
231import ca.uhn.fhir.model.dstu2.resource.Specimen;
232import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
233import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
234import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
235import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
236import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
237import ca.uhn.fhir.model.dstu2.resource.Substance;
238import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
239import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
240import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
241import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
242import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
243import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
244import ca.uhn.fhir.model.dstu2.composite.TimingDt;
245import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
246import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
247import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
248import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
249import ca.uhn.fhir.model.dstu2.resource.ValueSet;
250import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
251import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
252import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
253import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
254import ca.uhn.fhir.model.api.IResource;
255import ca.uhn.fhir.model.dstu2.composite.AgeDt;
256import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
257import ca.uhn.fhir.model.dstu2.composite.DurationDt;
258import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
259import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
260import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
261import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
262import ca.uhn.fhir.model.primitive.Base64BinaryDt;
263import ca.uhn.fhir.model.primitive.BooleanDt;
264import ca.uhn.fhir.model.primitive.BoundCodeDt;
265import ca.uhn.fhir.model.primitive.CodeDt;
266import ca.uhn.fhir.model.primitive.DateDt;
267import ca.uhn.fhir.model.primitive.DateTimeDt;
268import ca.uhn.fhir.model.primitive.DecimalDt;
269import ca.uhn.fhir.model.primitive.IdDt;
270import ca.uhn.fhir.model.primitive.InstantDt;
271import ca.uhn.fhir.model.primitive.IntegerDt;
272import ca.uhn.fhir.model.primitive.OidDt;
273import ca.uhn.fhir.model.primitive.PositiveIntDt;
274import ca.uhn.fhir.model.primitive.StringDt;
275import ca.uhn.fhir.model.primitive.TimeDt;
276import ca.uhn.fhir.model.primitive.UnsignedIntDt;
277import ca.uhn.fhir.model.primitive.UriDt;
278
279
280/**
281 * HAPI/FHIR <b>EnrollmentRequest</b> Resource
282 * ()
283 *
284 * <p>
285 * <b>Definition:</b>
286 * This resource provides the insurance enrollment details to the insurer regarding a specified coverage.
287 * </p> 
288 *
289 * <p>
290 * <b>Requirements:</b>
291 * 
292 * </p> 
293 *
294 * <p>
295 * <b>Profile Definition:</b>
296 * <a href="http://hl7.org/fhir/profiles/EnrollmentRequest">http://hl7.org/fhir/profiles/EnrollmentRequest</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="EnrollmentRequest", profile="http://hl7.org/fhir/profiles/EnrollmentRequest", id="enrollmentrequest")
301public class EnrollmentRequest extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource 
303    {
304
305        /**
306         * Search parameter constant for <b>identifier</b>
307         * <p>
308         * Description: <b>The business identifier of the Enrollment</b><br>
309         * Type: <b>token</b><br>
310         * Path: <b>EnrollmentRequest.identifier</b><br>
311         * </p>
312         */
313        @SearchParamDefinition(name="identifier", path="EnrollmentRequest.identifier", description="The business identifier of the Enrollment", type="token" 
314 )
315        public static final String SP_IDENTIFIER = "identifier";
316
317        /**
318         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
319         * <p>
320         * Description: <b>The business identifier of the Enrollment</b><br>
321         * Type: <b>token</b><br>
322         * Path: <b>EnrollmentRequest.identifier</b><br>
323         * </p>
324         */
325        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
326
327        /**
328         * Search parameter constant for <b>subject</b>
329         * <p>
330         * Description: <b>The party to be enrolled</b><br>
331         * Type: <b>reference</b><br>
332         * Path: <b>EnrollmentRequest.subject</b><br>
333         * </p>
334         */
335        @SearchParamDefinition(name="subject", path="EnrollmentRequest.subject", description="The party to be enrolled", type="reference" 
336, providesMembershipIn={
337 @Compartment(name="Patient")   }
338 )
339        public static final String SP_SUBJECT = "subject";
340
341        /**
342         * <b>Fluent Client</b> search parameter constant for <b>subject</b>
343         * <p>
344         * Description: <b>The party to be enrolled</b><br>
345         * Type: <b>reference</b><br>
346         * Path: <b>EnrollmentRequest.subject</b><br>
347         * </p>
348         */
349        public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
350
351        /**
352         * Search parameter constant for <b>patient</b>
353         * <p>
354         * Description: <b>The party to be enrolled</b><br>
355         * Type: <b>reference</b><br>
356         * Path: <b>EnrollmentRequest.subject</b><br>
357         * </p>
358         */
359        @SearchParamDefinition(name="patient", path="EnrollmentRequest.subject", description="The party to be enrolled", type="reference" 
360 )
361        public static final String SP_PATIENT = "patient";
362
363        /**
364         * <b>Fluent Client</b> search parameter constant for <b>patient</b>
365         * <p>
366         * Description: <b>The party to be enrolled</b><br>
367         * Type: <b>reference</b><br>
368         * Path: <b>EnrollmentRequest.subject</b><br>
369         * </p>
370         */
371        public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
372
373
374        /**
375         * Constant for fluent queries to be used to add include statements. Specifies
376         * the path value of "<b>EnrollmentRequest:patient</b>".
377         */
378        public static final Include INCLUDE_PATIENT = new Include("EnrollmentRequest:patient");
379
380        /**
381         * Constant for fluent queries to be used to add include statements. Specifies
382         * the path value of "<b>EnrollmentRequest:subject</b>".
383         */
384        public static final Include INCLUDE_SUBJECT = new Include("EnrollmentRequest:subject");
385
386
387        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)      
388        @Description(
389                shortDefinition="",
390                formalDefinition="The Response business identifier"
391        )
392        private java.util.List<IdentifierDt> myIdentifier;
393        
394        @Child(name="ruleset", type=CodingDt.class, order=1, min=0, max=1, summary=false, modifier=false)       
395        @Description(
396                shortDefinition="",
397                formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources."
398        )
399        private CodingDt myRuleset;
400        
401        @Child(name="originalRuleset", type=CodingDt.class, order=2, min=0, max=1, summary=false, modifier=false)       
402        @Description(
403                shortDefinition="",
404                formalDefinition="The style (standard) and version of the original material which was converted into this resource."
405        )
406        private CodingDt myOriginalRuleset;
407        
408        @Child(name="created", type=DateTimeDt.class, order=3, min=0, max=1, summary=false, modifier=false)     
409        @Description(
410                shortDefinition="",
411                formalDefinition="The date when this resource was created."
412        )
413        private DateTimeDt myCreated;
414        
415        @Child(name="target", order=4, min=0, max=1, summary=false, modifier=false, type={
416                ca.uhn.fhir.model.dstu2.resource.Organization.class
417        })
418        @Description(
419                shortDefinition="",
420                formalDefinition="The Insurer who is target  of the request."
421        )
422        private ResourceReferenceDt myTarget;
423        
424        @Child(name="provider", order=5, min=0, max=1, summary=false, modifier=false, type={
425                ca.uhn.fhir.model.dstu2.resource.Practitioner.class
426        })
427        @Description(
428                shortDefinition="",
429                formalDefinition="The practitioner who is responsible for the services rendered to the patient."
430        )
431        private ResourceReferenceDt myProvider;
432        
433        @Child(name="organization", order=6, min=0, max=1, summary=false, modifier=false, type={
434                ca.uhn.fhir.model.dstu2.resource.Organization.class
435        })
436        @Description(
437                shortDefinition="",
438                formalDefinition="The organization which is responsible for the services rendered to the patient."
439        )
440        private ResourceReferenceDt myOrganization;
441        
442        @Child(name="subject", order=7, min=1, max=1, summary=false, modifier=false, type={
443                ca.uhn.fhir.model.dstu2.resource.Patient.class
444        })
445        @Description(
446                shortDefinition="",
447                formalDefinition="Patient Resource"
448        )
449        private ResourceReferenceDt mySubject;
450        
451        @Child(name="coverage", order=8, min=1, max=1, summary=false, modifier=false, type={
452                ca.uhn.fhir.model.dstu2.resource.Coverage.class
453        })
454        @Description(
455                shortDefinition="",
456                formalDefinition="Reference to the program or plan identification, underwriter or payor."
457        )
458        private ResourceReferenceDt myCoverage;
459        
460        @Child(name="relationship", type=CodingDt.class, order=9, min=1, max=1, summary=false, modifier=false)  
461        @Description(
462                shortDefinition="",
463                formalDefinition="The relationship of the patient to the subscriber"
464        )
465        private CodingDt myRelationship;
466        
467
468        @Override
469        public boolean isEmpty() {
470                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myRuleset,  myOriginalRuleset,  myCreated,  myTarget,  myProvider,  myOrganization,  mySubject,  myCoverage,  myRelationship);
471        }
472        
473        @Override
474        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
475                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRuleset, myOriginalRuleset, myCreated, myTarget, myProvider, myOrganization, mySubject, myCoverage, myRelationship);
476        }
477
478        /**
479         * Gets the value(s) for <b>identifier</b> ().
480         * creating it if it does
481         * not exist. Will not return <code>null</code>.
482         *
483     * <p>
484     * <b>Definition:</b>
485     * The Response business identifier
486     * </p> 
487         */
488        public java.util.List<IdentifierDt> getIdentifier() {  
489                if (myIdentifier == null) {
490                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
491                }
492                return myIdentifier;
493        }
494
495        /**
496         * Sets the value(s) for <b>identifier</b> ()
497         *
498     * <p>
499     * <b>Definition:</b>
500     * The Response business identifier
501     * </p> 
502         */
503        public EnrollmentRequest setIdentifier(java.util.List<IdentifierDt> theValue) {
504                myIdentifier = theValue;
505                return this;
506        }
507        
508        
509
510        /**
511         * Adds and returns a new value for <b>identifier</b> ()
512         *
513     * <p>
514     * <b>Definition:</b>
515     * The Response business identifier
516     * </p> 
517         */
518        public IdentifierDt addIdentifier() {
519                IdentifierDt newType = new IdentifierDt();
520                getIdentifier().add(newType);
521                return newType; 
522        }
523
524        /**
525         * Adds a given new value for <b>identifier</b> ()
526         *
527         * <p>
528         * <b>Definition:</b>
529         * The Response business identifier
530         * </p>
531         * @param theValue The identifier to add (must not be <code>null</code>)
532         */
533        public EnrollmentRequest addIdentifier(IdentifierDt theValue) {
534                if (theValue == null) {
535                        throw new NullPointerException("theValue must not be null");
536                }
537                getIdentifier().add(theValue);
538                return this;
539        }
540
541        /**
542         * Gets the first repetition for <b>identifier</b> (),
543         * creating it if it does not already exist.
544         *
545     * <p>
546     * <b>Definition:</b>
547     * The Response business identifier
548     * </p> 
549         */
550        public IdentifierDt getIdentifierFirstRep() {
551                if (getIdentifier().isEmpty()) {
552                        return addIdentifier();
553                }
554                return getIdentifier().get(0); 
555        }
556  
557        /**
558         * Gets the value(s) for <b>ruleset</b> ().
559         * creating it if it does
560         * not exist. Will not return <code>null</code>.
561         *
562     * <p>
563     * <b>Definition:</b>
564     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
565     * </p> 
566         */
567        public CodingDt getRuleset() {  
568                if (myRuleset == null) {
569                        myRuleset = new CodingDt();
570                }
571                return myRuleset;
572        }
573
574        /**
575         * Sets the value(s) for <b>ruleset</b> ()
576         *
577     * <p>
578     * <b>Definition:</b>
579     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
580     * </p> 
581         */
582        public EnrollmentRequest setRuleset(CodingDt theValue) {
583                myRuleset = theValue;
584                return this;
585        }
586        
587        
588
589  
590        /**
591         * Gets the value(s) for <b>originalRuleset</b> ().
592         * creating it if it does
593         * not exist. Will not return <code>null</code>.
594         *
595     * <p>
596     * <b>Definition:</b>
597     * The style (standard) and version of the original material which was converted into this resource.
598     * </p> 
599         */
600        public CodingDt getOriginalRuleset() {  
601                if (myOriginalRuleset == null) {
602                        myOriginalRuleset = new CodingDt();
603                }
604                return myOriginalRuleset;
605        }
606
607        /**
608         * Sets the value(s) for <b>originalRuleset</b> ()
609         *
610     * <p>
611     * <b>Definition:</b>
612     * The style (standard) and version of the original material which was converted into this resource.
613     * </p> 
614         */
615        public EnrollmentRequest setOriginalRuleset(CodingDt theValue) {
616                myOriginalRuleset = theValue;
617                return this;
618        }
619        
620        
621
622  
623        /**
624         * Gets the value(s) for <b>created</b> ().
625         * creating it if it does
626         * not exist. Will not return <code>null</code>.
627         *
628     * <p>
629     * <b>Definition:</b>
630     * The date when this resource was created.
631     * </p> 
632         */
633        public DateTimeDt getCreatedElement() {  
634                if (myCreated == null) {
635                        myCreated = new DateTimeDt();
636                }
637                return myCreated;
638        }
639
640        
641        /**
642         * Gets the value(s) for <b>created</b> ().
643         * creating it if it does
644         * not exist. This method may return <code>null</code>.
645         *
646     * <p>
647     * <b>Definition:</b>
648     * The date when this resource was created.
649     * </p> 
650         */
651        public Date getCreated() {  
652                return getCreatedElement().getValue();
653        }
654
655        /**
656         * Sets the value(s) for <b>created</b> ()
657         *
658     * <p>
659     * <b>Definition:</b>
660     * The date when this resource was created.
661     * </p> 
662         */
663        public EnrollmentRequest setCreated(DateTimeDt theValue) {
664                myCreated = theValue;
665                return this;
666        }
667        
668        
669
670        /**
671         * Sets the value for <b>created</b> ()
672         *
673     * <p>
674     * <b>Definition:</b>
675     * The date when this resource was created.
676     * </p> 
677         */
678        public EnrollmentRequest setCreatedWithSecondsPrecision( Date theDate) {
679                myCreated = new DateTimeDt(theDate); 
680                return this; 
681        }
682
683        /**
684         * Sets the value for <b>created</b> ()
685         *
686     * <p>
687     * <b>Definition:</b>
688     * The date when this resource was created.
689     * </p> 
690         */
691        public EnrollmentRequest setCreated( Date theDate,  TemporalPrecisionEnum thePrecision) {
692                myCreated = new DateTimeDt(theDate, thePrecision); 
693                return this; 
694        }
695
696 
697        /**
698         * Gets the value(s) for <b>target</b> ().
699         * creating it if it does
700         * not exist. Will not return <code>null</code>.
701         *
702     * <p>
703     * <b>Definition:</b>
704     * The Insurer who is target  of the request.
705     * </p> 
706         */
707        public ResourceReferenceDt getTarget() {  
708                if (myTarget == null) {
709                        myTarget = new ResourceReferenceDt();
710                }
711                return myTarget;
712        }
713
714        /**
715         * Sets the value(s) for <b>target</b> ()
716         *
717     * <p>
718     * <b>Definition:</b>
719     * The Insurer who is target  of the request.
720     * </p> 
721         */
722        public EnrollmentRequest setTarget(ResourceReferenceDt theValue) {
723                myTarget = theValue;
724                return this;
725        }
726        
727        
728
729  
730        /**
731         * Gets the value(s) for <b>provider</b> ().
732         * creating it if it does
733         * not exist. Will not return <code>null</code>.
734         *
735     * <p>
736     * <b>Definition:</b>
737     * The practitioner who is responsible for the services rendered to the patient.
738     * </p> 
739         */
740        public ResourceReferenceDt getProvider() {  
741                if (myProvider == null) {
742                        myProvider = new ResourceReferenceDt();
743                }
744                return myProvider;
745        }
746
747        /**
748         * Sets the value(s) for <b>provider</b> ()
749         *
750     * <p>
751     * <b>Definition:</b>
752     * The practitioner who is responsible for the services rendered to the patient.
753     * </p> 
754         */
755        public EnrollmentRequest setProvider(ResourceReferenceDt theValue) {
756                myProvider = theValue;
757                return this;
758        }
759        
760        
761
762  
763        /**
764         * Gets the value(s) for <b>organization</b> ().
765         * creating it if it does
766         * not exist. Will not return <code>null</code>.
767         *
768     * <p>
769     * <b>Definition:</b>
770     * The organization which is responsible for the services rendered to the patient.
771     * </p> 
772         */
773        public ResourceReferenceDt getOrganization() {  
774                if (myOrganization == null) {
775                        myOrganization = new ResourceReferenceDt();
776                }
777                return myOrganization;
778        }
779
780        /**
781         * Sets the value(s) for <b>organization</b> ()
782         *
783     * <p>
784     * <b>Definition:</b>
785     * The organization which is responsible for the services rendered to the patient.
786     * </p> 
787         */
788        public EnrollmentRequest setOrganization(ResourceReferenceDt theValue) {
789                myOrganization = theValue;
790                return this;
791        }
792        
793        
794
795  
796        /**
797         * Gets the value(s) for <b>subject</b> ().
798         * creating it if it does
799         * not exist. Will not return <code>null</code>.
800         *
801     * <p>
802     * <b>Definition:</b>
803     * Patient Resource
804     * </p> 
805         */
806        public ResourceReferenceDt getSubject() {  
807                if (mySubject == null) {
808                        mySubject = new ResourceReferenceDt();
809                }
810                return mySubject;
811        }
812
813        /**
814         * Sets the value(s) for <b>subject</b> ()
815         *
816     * <p>
817     * <b>Definition:</b>
818     * Patient Resource
819     * </p> 
820         */
821        public EnrollmentRequest setSubject(ResourceReferenceDt theValue) {
822                mySubject = theValue;
823                return this;
824        }
825        
826        
827
828  
829        /**
830         * Gets the value(s) for <b>coverage</b> ().
831         * creating it if it does
832         * not exist. Will not return <code>null</code>.
833         *
834     * <p>
835     * <b>Definition:</b>
836     * Reference to the program or plan identification, underwriter or payor.
837     * </p> 
838         */
839        public ResourceReferenceDt getCoverage() {  
840                if (myCoverage == null) {
841                        myCoverage = new ResourceReferenceDt();
842                }
843                return myCoverage;
844        }
845
846        /**
847         * Sets the value(s) for <b>coverage</b> ()
848         *
849     * <p>
850     * <b>Definition:</b>
851     * Reference to the program or plan identification, underwriter or payor.
852     * </p> 
853         */
854        public EnrollmentRequest setCoverage(ResourceReferenceDt theValue) {
855                myCoverage = theValue;
856                return this;
857        }
858        
859        
860
861  
862        /**
863         * Gets the value(s) for <b>relationship</b> ().
864         * creating it if it does
865         * not exist. Will not return <code>null</code>.
866         *
867     * <p>
868     * <b>Definition:</b>
869     * The relationship of the patient to the subscriber
870     * </p> 
871         */
872        public CodingDt getRelationship() {  
873                if (myRelationship == null) {
874                        myRelationship = new CodingDt();
875                }
876                return myRelationship;
877        }
878
879        /**
880         * Sets the value(s) for <b>relationship</b> ()
881         *
882     * <p>
883     * <b>Definition:</b>
884     * The relationship of the patient to the subscriber
885     * </p> 
886         */
887        public EnrollmentRequest setRelationship(CodingDt theValue) {
888                myRelationship = theValue;
889                return this;
890        }
891        
892        
893
894  
895
896
897    @Override
898    public String getResourceName() {
899        return "EnrollmentRequest";
900    }
901    
902    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
903        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
904    }
905
906
907}