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>Coverage</b> Resource
282 * ()
283 *
284 * <p>
285 * <b>Definition:</b>
286 * Financial instrument which may be used to pay for or reimburse health care products and services.
287 * </p> 
288 *
289 * <p>
290 * <b>Requirements:</b>
291 * Health care programs and insurers are significant payors of health service costs
292 * </p> 
293 *
294 * <p>
295 * <b>Profile Definition:</b>
296 * <a href="http://hl7.org/fhir/profiles/Coverage">http://hl7.org/fhir/profiles/Coverage</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="Coverage", profile="http://hl7.org/fhir/profiles/Coverage", id="coverage")
301public class Coverage extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource 
303    {
304
305        /**
306         * Search parameter constant for <b>issuer</b>
307         * <p>
308         * Description: <b>The identity of the insurer</b><br>
309         * Type: <b>reference</b><br>
310         * Path: <b>Coverage.issuer</b><br>
311         * </p>
312         */
313        @SearchParamDefinition(name="issuer", path="Coverage.issuer", description="The identity of the insurer", type="reference" 
314 )
315        public static final String SP_ISSUER = "issuer";
316
317        /**
318         * <b>Fluent Client</b> search parameter constant for <b>issuer</b>
319         * <p>
320         * Description: <b>The identity of the insurer</b><br>
321         * Type: <b>reference</b><br>
322         * Path: <b>Coverage.issuer</b><br>
323         * </p>
324         */
325        public static final ReferenceClientParam ISSUER = new ReferenceClientParam(SP_ISSUER);
326
327        /**
328         * Search parameter constant for <b>identifier</b>
329         * <p>
330         * Description: <b>The primary identifier of the insured</b><br>
331         * Type: <b>token</b><br>
332         * Path: <b>Coverage.identifier</b><br>
333         * </p>
334         */
335        @SearchParamDefinition(name="identifier", path="Coverage.identifier", description="The primary identifier of the insured", type="token" 
336 )
337        public static final String SP_IDENTIFIER = "identifier";
338
339        /**
340         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
341         * <p>
342         * Description: <b>The primary identifier of the insured</b><br>
343         * Type: <b>token</b><br>
344         * Path: <b>Coverage.identifier</b><br>
345         * </p>
346         */
347        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
348
349        /**
350         * Search parameter constant for <b>type</b>
351         * <p>
352         * Description: <b>The kind of coverage</b><br>
353         * Type: <b>token</b><br>
354         * Path: <b>Coverage.type</b><br>
355         * </p>
356         */
357        @SearchParamDefinition(name="type", path="Coverage.type", description="The kind of coverage", type="token" 
358 )
359        public static final String SP_TYPE = "type";
360
361        /**
362         * <b>Fluent Client</b> search parameter constant for <b>type</b>
363         * <p>
364         * Description: <b>The kind of coverage</b><br>
365         * Type: <b>token</b><br>
366         * Path: <b>Coverage.type</b><br>
367         * </p>
368         */
369        public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
370
371        /**
372         * Search parameter constant for <b>plan</b>
373         * <p>
374         * Description: <b>A plan or policy identifier</b><br>
375         * Type: <b>token</b><br>
376         * Path: <b>Coverage.plan</b><br>
377         * </p>
378         */
379        @SearchParamDefinition(name="plan", path="Coverage.plan", description="A plan or policy identifier", type="token" 
380 )
381        public static final String SP_PLAN = "plan";
382
383        /**
384         * <b>Fluent Client</b> search parameter constant for <b>plan</b>
385         * <p>
386         * Description: <b>A plan or policy identifier</b><br>
387         * Type: <b>token</b><br>
388         * Path: <b>Coverage.plan</b><br>
389         * </p>
390         */
391        public static final TokenClientParam PLAN = new TokenClientParam(SP_PLAN);
392
393        /**
394         * Search parameter constant for <b>subplan</b>
395         * <p>
396         * Description: <b>Sub-plan identifier</b><br>
397         * Type: <b>token</b><br>
398         * Path: <b>Coverage.subPlan</b><br>
399         * </p>
400         */
401        @SearchParamDefinition(name="subplan", path="Coverage.subPlan", description="Sub-plan identifier", type="token" 
402 )
403        public static final String SP_SUBPLAN = "subplan";
404
405        /**
406         * <b>Fluent Client</b> search parameter constant for <b>subplan</b>
407         * <p>
408         * Description: <b>Sub-plan identifier</b><br>
409         * Type: <b>token</b><br>
410         * Path: <b>Coverage.subPlan</b><br>
411         * </p>
412         */
413        public static final TokenClientParam SUBPLAN = new TokenClientParam(SP_SUBPLAN);
414
415        /**
416         * Search parameter constant for <b>group</b>
417         * <p>
418         * Description: <b>Group identifier</b><br>
419         * Type: <b>token</b><br>
420         * Path: <b>Coverage.group</b><br>
421         * </p>
422         */
423        @SearchParamDefinition(name="group", path="Coverage.group", description="Group identifier", type="token" 
424 )
425        public static final String SP_GROUP = "group";
426
427        /**
428         * <b>Fluent Client</b> search parameter constant for <b>group</b>
429         * <p>
430         * Description: <b>Group identifier</b><br>
431         * Type: <b>token</b><br>
432         * Path: <b>Coverage.group</b><br>
433         * </p>
434         */
435        public static final TokenClientParam GROUP = new TokenClientParam(SP_GROUP);
436
437        /**
438         * Search parameter constant for <b>dependent</b>
439         * <p>
440         * Description: <b>Dependent number</b><br>
441         * Type: <b>token</b><br>
442         * Path: <b>Coverage.dependent</b><br>
443         * </p>
444         */
445        @SearchParamDefinition(name="dependent", path="Coverage.dependent", description="Dependent number", type="token" 
446 )
447        public static final String SP_DEPENDENT = "dependent";
448
449        /**
450         * <b>Fluent Client</b> search parameter constant for <b>dependent</b>
451         * <p>
452         * Description: <b>Dependent number</b><br>
453         * Type: <b>token</b><br>
454         * Path: <b>Coverage.dependent</b><br>
455         * </p>
456         */
457        public static final TokenClientParam DEPENDENT = new TokenClientParam(SP_DEPENDENT);
458
459        /**
460         * Search parameter constant for <b>sequence</b>
461         * <p>
462         * Description: <b>Sequence number</b><br>
463         * Type: <b>token</b><br>
464         * Path: <b>Coverage.sequence</b><br>
465         * </p>
466         */
467        @SearchParamDefinition(name="sequence", path="Coverage.sequence", description="Sequence number", type="token" 
468 )
469        public static final String SP_SEQUENCE = "sequence";
470
471        /**
472         * <b>Fluent Client</b> search parameter constant for <b>sequence</b>
473         * <p>
474         * Description: <b>Sequence number</b><br>
475         * Type: <b>token</b><br>
476         * Path: <b>Coverage.sequence</b><br>
477         * </p>
478         */
479        public static final TokenClientParam SEQUENCE = new TokenClientParam(SP_SEQUENCE);
480
481
482        /**
483         * Constant for fluent queries to be used to add include statements. Specifies
484         * the path value of "<b>Coverage:issuer</b>".
485         */
486        public static final Include INCLUDE_ISSUER = new Include("Coverage:issuer");
487
488
489        @Child(name="issuer", order=0, min=0, max=1, summary=true, modifier=false, type={
490                ca.uhn.fhir.model.dstu2.resource.Organization.class
491        })
492        @Description(
493                shortDefinition="",
494                formalDefinition="The program or plan underwriter or payor."
495        )
496        private ResourceReferenceDt myIssuer;
497        
498        @Child(name="bin", type=IdentifierDt.class, order=1, min=0, max=1, summary=false, modifier=false)       
499        @Description(
500                shortDefinition="",
501                formalDefinition="Business Identification Number (BIN number) used to identify the routing  of eclaims if the insurer themselves don't have a BIN number for all of their business."
502        )
503        private IdentifierDt myBin;
504        
505        @Child(name="period", type=PeriodDt.class, order=2, min=0, max=1, summary=true, modifier=false) 
506        @Description(
507                shortDefinition="",
508                formalDefinition="Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force."
509        )
510        private PeriodDt myPeriod;
511        
512        @Child(name="type", type=CodingDt.class, order=3, min=0, max=1, summary=true, modifier=false)   
513        @Description(
514                shortDefinition="",
515                formalDefinition="The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health."
516        )
517        private CodingDt myType;
518        
519        @Child(name="subscriberId", type=IdentifierDt.class, order=4, min=0, max=1, summary=true, modifier=false)       
520        @Description(
521                shortDefinition="",
522                formalDefinition="The id issued to the subscriber."
523        )
524        private IdentifierDt mySubscriberId;
525        
526        @Child(name="identifier", type=IdentifierDt.class, order=5, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)       
527        @Description(
528                shortDefinition="",
529                formalDefinition="The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Subscriber Id, Certificate number or Personal Health Number or Case ID."
530        )
531        private java.util.List<IdentifierDt> myIdentifier;
532        
533        @Child(name="group", type=StringDt.class, order=6, min=0, max=1, summary=true, modifier=false)  
534        @Description(
535                shortDefinition="",
536                formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID."
537        )
538        private StringDt myGroup;
539        
540        @Child(name="plan", type=StringDt.class, order=7, min=0, max=1, summary=true, modifier=false)   
541        @Description(
542                shortDefinition="",
543                formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID."
544        )
545        private StringDt myPlan;
546        
547        @Child(name="subPlan", type=StringDt.class, order=8, min=0, max=1, summary=true, modifier=false)        
548        @Description(
549                shortDefinition="",
550                formalDefinition="Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID."
551        )
552        private StringDt mySubPlan;
553        
554        @Child(name="dependent", type=PositiveIntDt.class, order=9, min=0, max=1, summary=true, modifier=false) 
555        @Description(
556                shortDefinition="",
557                formalDefinition="A unique identifier for a dependent under the coverage."
558        )
559        private PositiveIntDt myDependent;
560        
561        @Child(name="sequence", type=PositiveIntDt.class, order=10, min=0, max=1, summary=true, modifier=false) 
562        @Description(
563                shortDefinition="",
564                formalDefinition="An optional counter for a particular instance of the identified coverage which increments upon each renewal."
565        )
566        private PositiveIntDt mySequence;
567        
568        @Child(name="subscriber", order=11, min=0, max=1, summary=false, modifier=true, type={
569                ca.uhn.fhir.model.dstu2.resource.Patient.class
570        })
571        @Description(
572                shortDefinition="",
573                formalDefinition="The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due."
574        )
575        private ResourceReferenceDt mySubscriber;
576        
577        @Child(name="network", type=IdentifierDt.class, order=12, min=0, max=1, summary=true, modifier=false)   
578        @Description(
579                shortDefinition="",
580                formalDefinition="The identifier for a community of providers."
581        )
582        private IdentifierDt myNetwork;
583        
584        @Child(name="contract", order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
585                ca.uhn.fhir.model.dstu2.resource.Contract.class
586        })
587        @Description(
588                shortDefinition="",
589                formalDefinition="The policy(s) which constitute this insurance coverage."
590        )
591        private java.util.List<ResourceReferenceDt> myContract;
592        
593
594        @Override
595        public boolean isEmpty() {
596                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIssuer,  myBin,  myPeriod,  myType,  mySubscriberId,  myIdentifier,  myGroup,  myPlan,  mySubPlan,  myDependent,  mySequence,  mySubscriber,  myNetwork,  myContract);
597        }
598        
599        @Override
600        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
601                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIssuer, myBin, myPeriod, myType, mySubscriberId, myIdentifier, myGroup, myPlan, mySubPlan, myDependent, mySequence, mySubscriber, myNetwork, myContract);
602        }
603
604        /**
605         * Gets the value(s) for <b>issuer</b> ().
606         * creating it if it does
607         * not exist. Will not return <code>null</code>.
608         *
609     * <p>
610     * <b>Definition:</b>
611     * The program or plan underwriter or payor.
612     * </p> 
613         */
614        public ResourceReferenceDt getIssuer() {  
615                if (myIssuer == null) {
616                        myIssuer = new ResourceReferenceDt();
617                }
618                return myIssuer;
619        }
620
621        /**
622         * Sets the value(s) for <b>issuer</b> ()
623         *
624     * <p>
625     * <b>Definition:</b>
626     * The program or plan underwriter or payor.
627     * </p> 
628         */
629        public Coverage setIssuer(ResourceReferenceDt theValue) {
630                myIssuer = theValue;
631                return this;
632        }
633        
634        
635
636  
637        /**
638         * Gets the value(s) for <b>bin</b> ().
639         * creating it if it does
640         * not exist. Will not return <code>null</code>.
641         *
642     * <p>
643     * <b>Definition:</b>
644     * Business Identification Number (BIN number) used to identify the routing  of eclaims if the insurer themselves don't have a BIN number for all of their business.
645     * </p> 
646         */
647        public IdentifierDt getBin() {  
648                if (myBin == null) {
649                        myBin = new IdentifierDt();
650                }
651                return myBin;
652        }
653
654        /**
655         * Sets the value(s) for <b>bin</b> ()
656         *
657     * <p>
658     * <b>Definition:</b>
659     * Business Identification Number (BIN number) used to identify the routing  of eclaims if the insurer themselves don't have a BIN number for all of their business.
660     * </p> 
661         */
662        public Coverage setBin(IdentifierDt theValue) {
663                myBin = theValue;
664                return this;
665        }
666        
667        
668
669  
670        /**
671         * Gets the value(s) for <b>period</b> ().
672         * creating it if it does
673         * not exist. Will not return <code>null</code>.
674         *
675     * <p>
676     * <b>Definition:</b>
677     * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.
678     * </p> 
679         */
680        public PeriodDt getPeriod() {  
681                if (myPeriod == null) {
682                        myPeriod = new PeriodDt();
683                }
684                return myPeriod;
685        }
686
687        /**
688         * Sets the value(s) for <b>period</b> ()
689         *
690     * <p>
691     * <b>Definition:</b>
692     * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force.
693     * </p> 
694         */
695        public Coverage setPeriod(PeriodDt theValue) {
696                myPeriod = theValue;
697                return this;
698        }
699        
700        
701
702  
703        /**
704         * Gets the value(s) for <b>type</b> ().
705         * creating it if it does
706         * not exist. Will not return <code>null</code>.
707         *
708     * <p>
709     * <b>Definition:</b>
710     * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health.
711     * </p> 
712         */
713        public CodingDt getType() {  
714                if (myType == null) {
715                        myType = new CodingDt();
716                }
717                return myType;
718        }
719
720        /**
721         * Sets the value(s) for <b>type</b> ()
722         *
723     * <p>
724     * <b>Definition:</b>
725     * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health.
726     * </p> 
727         */
728        public Coverage setType(CodingDt theValue) {
729                myType = theValue;
730                return this;
731        }
732        
733        
734
735  
736        /**
737         * Gets the value(s) for <b>subscriberId</b> ().
738         * creating it if it does
739         * not exist. Will not return <code>null</code>.
740         *
741     * <p>
742     * <b>Definition:</b>
743     * The id issued to the subscriber.
744     * </p> 
745         */
746        public IdentifierDt getSubscriberId() {  
747                if (mySubscriberId == null) {
748                        mySubscriberId = new IdentifierDt();
749                }
750                return mySubscriberId;
751        }
752
753        /**
754         * Sets the value(s) for <b>subscriberId</b> ()
755         *
756     * <p>
757     * <b>Definition:</b>
758     * The id issued to the subscriber.
759     * </p> 
760         */
761        public Coverage setSubscriberId(IdentifierDt theValue) {
762                mySubscriberId = theValue;
763                return this;
764        }
765        
766        
767
768  
769        /**
770         * Gets the value(s) for <b>identifier</b> ().
771         * creating it if it does
772         * not exist. Will not return <code>null</code>.
773         *
774     * <p>
775     * <b>Definition:</b>
776     * The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Subscriber Id, Certificate number or Personal Health Number or Case ID.
777     * </p> 
778         */
779        public java.util.List<IdentifierDt> getIdentifier() {  
780                if (myIdentifier == null) {
781                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
782                }
783                return myIdentifier;
784        }
785
786        /**
787         * Sets the value(s) for <b>identifier</b> ()
788         *
789     * <p>
790     * <b>Definition:</b>
791     * The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Subscriber Id, Certificate number or Personal Health Number or Case ID.
792     * </p> 
793         */
794        public Coverage setIdentifier(java.util.List<IdentifierDt> theValue) {
795                myIdentifier = theValue;
796                return this;
797        }
798        
799        
800
801        /**
802         * Adds and returns a new value for <b>identifier</b> ()
803         *
804     * <p>
805     * <b>Definition:</b>
806     * The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Subscriber Id, Certificate number or Personal Health Number or Case ID.
807     * </p> 
808         */
809        public IdentifierDt addIdentifier() {
810                IdentifierDt newType = new IdentifierDt();
811                getIdentifier().add(newType);
812                return newType; 
813        }
814
815        /**
816         * Adds a given new value for <b>identifier</b> ()
817         *
818         * <p>
819         * <b>Definition:</b>
820         * The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Subscriber Id, Certificate number or Personal Health Number or Case ID.
821         * </p>
822         * @param theValue The identifier to add (must not be <code>null</code>)
823         */
824        public Coverage addIdentifier(IdentifierDt theValue) {
825                if (theValue == null) {
826                        throw new NullPointerException("theValue must not be null");
827                }
828                getIdentifier().add(theValue);
829                return this;
830        }
831
832        /**
833         * Gets the first repetition for <b>identifier</b> (),
834         * creating it if it does not already exist.
835         *
836     * <p>
837     * <b>Definition:</b>
838     * The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Subscriber Id, Certificate number or Personal Health Number or Case ID.
839     * </p> 
840         */
841        public IdentifierDt getIdentifierFirstRep() {
842                if (getIdentifier().isEmpty()) {
843                        return addIdentifier();
844                }
845                return getIdentifier().get(0); 
846        }
847  
848        /**
849         * Gets the value(s) for <b>group</b> ().
850         * creating it if it does
851         * not exist. Will not return <code>null</code>.
852         *
853     * <p>
854     * <b>Definition:</b>
855     * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
856     * </p> 
857         */
858        public StringDt getGroupElement() {  
859                if (myGroup == null) {
860                        myGroup = new StringDt();
861                }
862                return myGroup;
863        }
864
865        
866        /**
867         * Gets the value(s) for <b>group</b> ().
868         * creating it if it does
869         * not exist. This method may return <code>null</code>.
870         *
871     * <p>
872     * <b>Definition:</b>
873     * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
874     * </p> 
875         */
876        public String getGroup() {  
877                return getGroupElement().getValue();
878        }
879
880        /**
881         * Sets the value(s) for <b>group</b> ()
882         *
883     * <p>
884     * <b>Definition:</b>
885     * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
886     * </p> 
887         */
888        public Coverage setGroup(StringDt theValue) {
889                myGroup = theValue;
890                return this;
891        }
892        
893        
894
895        /**
896         * Sets the value for <b>group</b> ()
897         *
898     * <p>
899     * <b>Definition:</b>
900     * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
901     * </p> 
902         */
903        public Coverage setGroup( String theString) {
904                myGroup = new StringDt(theString); 
905                return this; 
906        }
907
908 
909        /**
910         * Gets the value(s) for <b>plan</b> ().
911         * creating it if it does
912         * not exist. Will not return <code>null</code>.
913         *
914     * <p>
915     * <b>Definition:</b>
916     * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
917     * </p> 
918         */
919        public StringDt getPlanElement() {  
920                if (myPlan == null) {
921                        myPlan = new StringDt();
922                }
923                return myPlan;
924        }
925
926        
927        /**
928         * Gets the value(s) for <b>plan</b> ().
929         * creating it if it does
930         * not exist. This method may return <code>null</code>.
931         *
932     * <p>
933     * <b>Definition:</b>
934     * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
935     * </p> 
936         */
937        public String getPlan() {  
938                return getPlanElement().getValue();
939        }
940
941        /**
942         * Sets the value(s) for <b>plan</b> ()
943         *
944     * <p>
945     * <b>Definition:</b>
946     * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
947     * </p> 
948         */
949        public Coverage setPlan(StringDt theValue) {
950                myPlan = theValue;
951                return this;
952        }
953        
954        
955
956        /**
957         * Sets the value for <b>plan</b> ()
958         *
959     * <p>
960     * <b>Definition:</b>
961     * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
962     * </p> 
963         */
964        public Coverage setPlan( String theString) {
965                myPlan = new StringDt(theString); 
966                return this; 
967        }
968
969 
970        /**
971         * Gets the value(s) for <b>subPlan</b> ().
972         * creating it if it does
973         * not exist. Will not return <code>null</code>.
974         *
975     * <p>
976     * <b>Definition:</b>
977     * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID.
978     * </p> 
979         */
980        public StringDt getSubPlanElement() {  
981                if (mySubPlan == null) {
982                        mySubPlan = new StringDt();
983                }
984                return mySubPlan;
985        }
986
987        
988        /**
989         * Gets the value(s) for <b>subPlan</b> ().
990         * creating it if it does
991         * not exist. This method may return <code>null</code>.
992         *
993     * <p>
994     * <b>Definition:</b>
995     * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID.
996     * </p> 
997         */
998        public String getSubPlan() {  
999                return getSubPlanElement().getValue();
1000        }
1001
1002        /**
1003         * Sets the value(s) for <b>subPlan</b> ()
1004         *
1005     * <p>
1006     * <b>Definition:</b>
1007     * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID.
1008     * </p> 
1009         */
1010        public Coverage setSubPlan(StringDt theValue) {
1011                mySubPlan = theValue;
1012                return this;
1013        }
1014        
1015        
1016
1017        /**
1018         * Sets the value for <b>subPlan</b> ()
1019         *
1020     * <p>
1021     * <b>Definition:</b>
1022     * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID.
1023     * </p> 
1024         */
1025        public Coverage setSubPlan( String theString) {
1026                mySubPlan = new StringDt(theString); 
1027                return this; 
1028        }
1029
1030 
1031        /**
1032         * Gets the value(s) for <b>dependent</b> ().
1033         * creating it if it does
1034         * not exist. Will not return <code>null</code>.
1035         *
1036     * <p>
1037     * <b>Definition:</b>
1038     * A unique identifier for a dependent under the coverage.
1039     * </p> 
1040         */
1041        public PositiveIntDt getDependentElement() {  
1042                if (myDependent == null) {
1043                        myDependent = new PositiveIntDt();
1044                }
1045                return myDependent;
1046        }
1047
1048        
1049        /**
1050         * Gets the value(s) for <b>dependent</b> ().
1051         * creating it if it does
1052         * not exist. This method may return <code>null</code>.
1053         *
1054     * <p>
1055     * <b>Definition:</b>
1056     * A unique identifier for a dependent under the coverage.
1057     * </p> 
1058         */
1059        public Integer getDependent() {  
1060                return getDependentElement().getValue();
1061        }
1062
1063        /**
1064         * Sets the value(s) for <b>dependent</b> ()
1065         *
1066     * <p>
1067     * <b>Definition:</b>
1068     * A unique identifier for a dependent under the coverage.
1069     * </p> 
1070         */
1071        public Coverage setDependent(PositiveIntDt theValue) {
1072                myDependent = theValue;
1073                return this;
1074        }
1075        
1076        
1077
1078        /**
1079         * Sets the value for <b>dependent</b> ()
1080         *
1081     * <p>
1082     * <b>Definition:</b>
1083     * A unique identifier for a dependent under the coverage.
1084     * </p> 
1085         */
1086        public Coverage setDependent( int theInteger) {
1087                myDependent = new PositiveIntDt(theInteger); 
1088                return this; 
1089        }
1090
1091 
1092        /**
1093         * Gets the value(s) for <b>sequence</b> ().
1094         * creating it if it does
1095         * not exist. Will not return <code>null</code>.
1096         *
1097     * <p>
1098     * <b>Definition:</b>
1099     * An optional counter for a particular instance of the identified coverage which increments upon each renewal.
1100     * </p> 
1101         */
1102        public PositiveIntDt getSequenceElement() {  
1103                if (mySequence == null) {
1104                        mySequence = new PositiveIntDt();
1105                }
1106                return mySequence;
1107        }
1108
1109        
1110        /**
1111         * Gets the value(s) for <b>sequence</b> ().
1112         * creating it if it does
1113         * not exist. This method may return <code>null</code>.
1114         *
1115     * <p>
1116     * <b>Definition:</b>
1117     * An optional counter for a particular instance of the identified coverage which increments upon each renewal.
1118     * </p> 
1119         */
1120        public Integer getSequence() {  
1121                return getSequenceElement().getValue();
1122        }
1123
1124        /**
1125         * Sets the value(s) for <b>sequence</b> ()
1126         *
1127     * <p>
1128     * <b>Definition:</b>
1129     * An optional counter for a particular instance of the identified coverage which increments upon each renewal.
1130     * </p> 
1131         */
1132        public Coverage setSequence(PositiveIntDt theValue) {
1133                mySequence = theValue;
1134                return this;
1135        }
1136        
1137        
1138
1139        /**
1140         * Sets the value for <b>sequence</b> ()
1141         *
1142     * <p>
1143     * <b>Definition:</b>
1144     * An optional counter for a particular instance of the identified coverage which increments upon each renewal.
1145     * </p> 
1146         */
1147        public Coverage setSequence( int theInteger) {
1148                mySequence = new PositiveIntDt(theInteger); 
1149                return this; 
1150        }
1151
1152 
1153        /**
1154         * Gets the value(s) for <b>subscriber</b> ().
1155         * creating it if it does
1156         * not exist. Will not return <code>null</code>.
1157         *
1158     * <p>
1159     * <b>Definition:</b>
1160     * The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due.
1161     * </p> 
1162         */
1163        public ResourceReferenceDt getSubscriber() {  
1164                if (mySubscriber == null) {
1165                        mySubscriber = new ResourceReferenceDt();
1166                }
1167                return mySubscriber;
1168        }
1169
1170        /**
1171         * Sets the value(s) for <b>subscriber</b> ()
1172         *
1173     * <p>
1174     * <b>Definition:</b>
1175     * The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due.
1176     * </p> 
1177         */
1178        public Coverage setSubscriber(ResourceReferenceDt theValue) {
1179                mySubscriber = theValue;
1180                return this;
1181        }
1182        
1183        
1184
1185  
1186        /**
1187         * Gets the value(s) for <b>network</b> ().
1188         * creating it if it does
1189         * not exist. Will not return <code>null</code>.
1190         *
1191     * <p>
1192     * <b>Definition:</b>
1193     * The identifier for a community of providers.
1194     * </p> 
1195         */
1196        public IdentifierDt getNetwork() {  
1197                if (myNetwork == null) {
1198                        myNetwork = new IdentifierDt();
1199                }
1200                return myNetwork;
1201        }
1202
1203        /**
1204         * Sets the value(s) for <b>network</b> ()
1205         *
1206     * <p>
1207     * <b>Definition:</b>
1208     * The identifier for a community of providers.
1209     * </p> 
1210         */
1211        public Coverage setNetwork(IdentifierDt theValue) {
1212                myNetwork = theValue;
1213                return this;
1214        }
1215        
1216        
1217
1218  
1219        /**
1220         * Gets the value(s) for <b>contract</b> ().
1221         * creating it if it does
1222         * not exist. Will not return <code>null</code>.
1223         *
1224     * <p>
1225     * <b>Definition:</b>
1226     * The policy(s) which constitute this insurance coverage.
1227     * </p> 
1228         */
1229        public java.util.List<ResourceReferenceDt> getContract() {  
1230                if (myContract == null) {
1231                        myContract = new java.util.ArrayList<ResourceReferenceDt>();
1232                }
1233                return myContract;
1234        }
1235
1236        /**
1237         * Sets the value(s) for <b>contract</b> ()
1238         *
1239     * <p>
1240     * <b>Definition:</b>
1241     * The policy(s) which constitute this insurance coverage.
1242     * </p> 
1243         */
1244        public Coverage setContract(java.util.List<ResourceReferenceDt> theValue) {
1245                myContract = theValue;
1246                return this;
1247        }
1248        
1249        
1250
1251        /**
1252         * Adds and returns a new value for <b>contract</b> ()
1253         *
1254     * <p>
1255     * <b>Definition:</b>
1256     * The policy(s) which constitute this insurance coverage.
1257     * </p> 
1258         */
1259        public ResourceReferenceDt addContract() {
1260                ResourceReferenceDt newType = new ResourceReferenceDt();
1261                getContract().add(newType);
1262                return newType; 
1263        }
1264  
1265
1266
1267    @Override
1268    public String getResourceName() {
1269        return "Coverage";
1270    }
1271    
1272    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1273        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1274    }
1275
1276
1277}