001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017package ca.uhn.fhir.model.dstu2.resource;
018
019import java.math.BigDecimal;
020import java.net.URI;
021import java.util.*;
022import ca.uhn.fhir.model.api.*;
023import ca.uhn.fhir.model.api.annotation.*;
024import ca.uhn.fhir.rest.gclient.*;
025
026import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum;
027import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
028import ca.uhn.fhir.model.dstu2.composite.AddressDt;
029import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
030import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
031import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
032import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
033import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
034import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
035import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
036import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
037import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
038import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
039import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
040import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
041import ca.uhn.fhir.model.dstu2.valueset.AnimalSpeciesEnum;
042import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
043import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
044import ca.uhn.fhir.model.dstu2.resource.Appointment;
045import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
046import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
047import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
048import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
049import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
050import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
053import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
054import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
055import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
056import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
057import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
058import ca.uhn.fhir.model.dstu2.resource.BodySite;
059import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
060import ca.uhn.fhir.model.dstu2.resource.CarePlan;
061import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityCategoryEnum;
062import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
063import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
064import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
065import ca.uhn.fhir.model.dstu2.resource.Claim;
066import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
067import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
068import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
069import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
070import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
071import ca.uhn.fhir.model.dstu2.composite.CodingDt;
072import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
073import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
074import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
075import ca.uhn.fhir.model.dstu2.resource.Composition;
076import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
077import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
078import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
079import ca.uhn.fhir.model.dstu2.resource.Condition;
080import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
081import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
082import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
083import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
084import ca.uhn.fhir.model.dstu2.valueset.ConditionsCodesEnum;
085import ca.uhn.fhir.model.dstu2.resource.Conformance;
086import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
087import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
088import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
089import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
090import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
091import ca.uhn.fhir.model.dstu2.resource.Contract;
092import ca.uhn.fhir.model.dstu2.valueset.ContractActionCodesEnum;
093import ca.uhn.fhir.model.dstu2.valueset.ContractActorRoleCodesEnum;
094import ca.uhn.fhir.model.dstu2.valueset.ContractSubtypeCodesEnum;
095import ca.uhn.fhir.model.dstu2.valueset.ContractTermTypeCodesEnum;
096import ca.uhn.fhir.model.dstu2.valueset.ContractTypeCodesEnum;
097import ca.uhn.fhir.model.dstu2.resource.Coverage;
098import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
099import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
100import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
101import ca.uhn.fhir.model.dstu2.resource.Device;
102import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
103import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
104import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
105import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
106import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
107import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
108import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
109import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
110import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
111import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
112import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
113import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
114import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
115import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
116import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
117import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
118import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
119import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
120import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
121import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
122import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
123import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
124import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
125import ca.uhn.fhir.model.dstu2.resource.Encounter;
126import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
127import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
128import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
129import ca.uhn.fhir.model.dstu2.valueset.EncounterTypeEnum;
130import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
131import ca.uhn.fhir.model.dstu2.valueset.EnteralFormulaTypeCodesEnum;
132import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
133import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
134import ca.uhn.fhir.model.dstu2.valueset.ExceptionCodesEnum;
135import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
136import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
137import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
138import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
139import ca.uhn.fhir.model.dstu2.valueset.FlagCategoryCodesEnum;
140import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
141import ca.uhn.fhir.model.dstu2.valueset.FluidConsistencyTypeCodesEnum;
142import ca.uhn.fhir.model.dstu2.resource.Goal;
143import ca.uhn.fhir.model.dstu2.valueset.GoalCategoryEnum;
144import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
145import ca.uhn.fhir.model.dstu2.valueset.GoalStartEventEnum;
146import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
147import ca.uhn.fhir.model.dstu2.valueset.GoalStatusReasonEnum;
148import ca.uhn.fhir.model.dstu2.resource.Group;
149import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
150import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
151import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
152import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
153import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
154import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
155import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
156import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
157import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
158import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
159import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
160import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
161import ca.uhn.fhir.model.dstu2.resource.Immunization;
162import ca.uhn.fhir.model.dstu2.valueset.ImmunizationReasonCodesEnum;
163import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
164import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationStatusCodesEnum;
165import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRouteCodesEnum;
166import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
167import ca.uhn.fhir.model.dstu2.valueset.InterventionCodesEnum;
168import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
169import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
170import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
171import ca.uhn.fhir.model.dstu2.valueset.LateralityEnum;
172import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
173import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
174import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
175import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
176import ca.uhn.fhir.model.dstu2.resource.Location;
177import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
178import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
179import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
180import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
181import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
182import ca.uhn.fhir.model.dstu2.resource.Media;
183import ca.uhn.fhir.model.dstu2.resource.Medication;
184import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
185import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
186import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
187import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
188import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
189import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
190import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
191import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
192import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
193import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
194import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
195import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
196import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
197import ca.uhn.fhir.model.dstu2.valueset.NutrientModifierCodesEnum;
198import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
199import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
200import ca.uhn.fhir.model.dstu2.resource.Observation;
201import ca.uhn.fhir.model.dstu2.valueset.ObservationCategoryCodesEnum;
202import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
203import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
204import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
205import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
206import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
207import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
208import ca.uhn.fhir.model.dstu2.resource.Order;
209import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
210import ca.uhn.fhir.model.dstu2.resource.Organization;
211import ca.uhn.fhir.model.dstu2.valueset.OrganizationTypeEnum;
212import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
213import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
214import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
215import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
216import ca.uhn.fhir.model.dstu2.resource.Patient;
217import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
218import ca.uhn.fhir.model.dstu2.valueset.PaymentStatusCodesEnum;
219import ca.uhn.fhir.model.dstu2.valueset.PaymentTypeCodesEnum;
220import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
221import ca.uhn.fhir.model.dstu2.resource.Person;
222import ca.uhn.fhir.model.dstu2.resource.Practitioner;
223import ca.uhn.fhir.model.dstu2.valueset.PractitionerRoleEnum;
224import ca.uhn.fhir.model.dstu2.valueset.PractitionerSpecialtyEnum;
225import ca.uhn.fhir.model.dstu2.valueset.PriorityCodesEnum;
226import ca.uhn.fhir.model.dstu2.resource.Procedure;
227import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
228import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
229import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
230import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
231import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
232import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
233import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
234import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
235import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
236import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
237import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
238import ca.uhn.fhir.model.dstu2.composite.RangeDt;
239import ca.uhn.fhir.model.dstu2.composite.RatioDt;
240import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
241import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
242import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
243import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
244import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
245import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
246import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
247import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
248import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
249import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
250import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
251import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
252import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
253import ca.uhn.fhir.model.dstu2.resource.Schedule;
254import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
255import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
256import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
257import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
258import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
259import ca.uhn.fhir.model.dstu2.resource.Slot;
260import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
261import ca.uhn.fhir.model.dstu2.resource.Specimen;
262import ca.uhn.fhir.model.dstu2.valueset.SpecimenCollectionMethodEnum;
263import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
264import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
265import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
266import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
267import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
268import ca.uhn.fhir.model.dstu2.valueset.SubscriptionTagEnum;
269import ca.uhn.fhir.model.dstu2.resource.Substance;
270import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
271import ca.uhn.fhir.model.dstu2.valueset.SupplementTypeCodesEnum;
272import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
273import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
274import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestReasonEnum;
275import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
276import ca.uhn.fhir.model.dstu2.valueset.SurfaceCodesEnum;
277import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
278import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
279import ca.uhn.fhir.model.dstu2.valueset.TextureModifiedFoodTypeCodesEnum;
280import ca.uhn.fhir.model.dstu2.valueset.TextureModifierCodesEnum;
281import ca.uhn.fhir.model.dstu2.composite.TimingDt;
282import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
283import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
284import ca.uhn.fhir.model.dstu2.valueset.UDICodesEnum;
285import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
286import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
287import ca.uhn.fhir.model.dstu2.resource.ValueSet;
288import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
289import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
290import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
291import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
292import ca.uhn.fhir.model.api.IResource;
293import ca.uhn.fhir.model.dstu2.composite.AgeDt;
294import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
295import ca.uhn.fhir.model.dstu2.composite.DurationDt;
296import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
297import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
298import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
299import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
300import ca.uhn.fhir.model.primitive.Base64BinaryDt;
301import ca.uhn.fhir.model.primitive.BooleanDt;
302import ca.uhn.fhir.model.primitive.BoundCodeDt;
303import ca.uhn.fhir.model.primitive.CodeDt;
304import ca.uhn.fhir.model.primitive.DateDt;
305import ca.uhn.fhir.model.primitive.DateTimeDt;
306import ca.uhn.fhir.model.primitive.DecimalDt;
307import ca.uhn.fhir.model.primitive.IdDt;
308import ca.uhn.fhir.model.primitive.InstantDt;
309import ca.uhn.fhir.model.primitive.IntegerDt;
310import ca.uhn.fhir.model.primitive.OidDt;
311import ca.uhn.fhir.model.primitive.PositiveIntDt;
312import ca.uhn.fhir.model.primitive.StringDt;
313import ca.uhn.fhir.model.primitive.TimeDt;
314import ca.uhn.fhir.model.primitive.UnsignedIntDt;
315import ca.uhn.fhir.model.primitive.UriDt;
316
317
318/**
319 * HAPI/FHIR <b>Coverage</b> Resource
320 * ()
321 *
322 * <p>
323 * <b>Definition:</b>
324 * Financial instrument which may be used to pay for or reimburse health care products and services.
325 * </p> 
326 *
327 * <p>
328 * <b>Requirements:</b>
329 * Health care programs and insurers are significant payors of health service costs
330 * </p> 
331 *
332 * <p>
333 * <b>Profile Definition:</b>
334 * <a href="http://hl7.org/fhir/profiles/Coverage">http://hl7.org/fhir/profiles/Coverage</a> 
335 * </p>
336 *
337 */
338@ResourceDef(name="Coverage", profile="http://hl7.org/fhir/profiles/Coverage", id="coverage")
339public class Coverage extends ca.uhn.fhir.model.dstu2.resource.BaseResource
340    implements  IResource     {
341
342        /**
343         * Search parameter constant for <b>issuer</b>
344         * <p>
345         * Description: <b>The identity of the insurer</b><br>
346         * Type: <b>reference</b><br>
347         * Path: <b>Coverage.issuer</b><br>
348         * </p>
349         */
350        @SearchParamDefinition(name="issuer", path="Coverage.issuer", description="The identity of the insurer", type="reference"  )
351        public static final String SP_ISSUER = "issuer";
352
353        /**
354         * <b>Fluent Client</b> search parameter constant for <b>issuer</b>
355         * <p>
356         * Description: <b>The identity of the insurer</b><br>
357         * Type: <b>reference</b><br>
358         * Path: <b>Coverage.issuer</b><br>
359         * </p>
360         */
361        public static final ReferenceClientParam ISSUER = new ReferenceClientParam(SP_ISSUER);
362
363        /**
364         * Search parameter constant for <b>identifier</b>
365         * <p>
366         * Description: <b>The primary identifier of the insured</b><br>
367         * Type: <b>token</b><br>
368         * Path: <b>Coverage.identifier</b><br>
369         * </p>
370         */
371        @SearchParamDefinition(name="identifier", path="Coverage.identifier", description="The primary identifier of the insured", type="token"  )
372        public static final String SP_IDENTIFIER = "identifier";
373
374        /**
375         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
376         * <p>
377         * Description: <b>The primary identifier of the insured</b><br>
378         * Type: <b>token</b><br>
379         * Path: <b>Coverage.identifier</b><br>
380         * </p>
381         */
382        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
383
384        /**
385         * Search parameter constant for <b>type</b>
386         * <p>
387         * Description: <b>The kind of coverage</b><br>
388         * Type: <b>token</b><br>
389         * Path: <b>Coverage.type</b><br>
390         * </p>
391         */
392        @SearchParamDefinition(name="type", path="Coverage.type", description="The kind of coverage", type="token"  )
393        public static final String SP_TYPE = "type";
394
395        /**
396         * <b>Fluent Client</b> search parameter constant for <b>type</b>
397         * <p>
398         * Description: <b>The kind of coverage</b><br>
399         * Type: <b>token</b><br>
400         * Path: <b>Coverage.type</b><br>
401         * </p>
402         */
403        public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
404
405        /**
406         * Search parameter constant for <b>plan</b>
407         * <p>
408         * Description: <b>A plan or policy identifier</b><br>
409         * Type: <b>token</b><br>
410         * Path: <b>Coverage.plan</b><br>
411         * </p>
412         */
413        @SearchParamDefinition(name="plan", path="Coverage.plan", description="A plan or policy identifier", type="token"  )
414        public static final String SP_PLAN = "plan";
415
416        /**
417         * <b>Fluent Client</b> search parameter constant for <b>plan</b>
418         * <p>
419         * Description: <b>A plan or policy identifier</b><br>
420         * Type: <b>token</b><br>
421         * Path: <b>Coverage.plan</b><br>
422         * </p>
423         */
424        public static final TokenClientParam PLAN = new TokenClientParam(SP_PLAN);
425
426        /**
427         * Search parameter constant for <b>subplan</b>
428         * <p>
429         * Description: <b>Sub-plan identifier</b><br>
430         * Type: <b>token</b><br>
431         * Path: <b>Coverage.subPlan</b><br>
432         * </p>
433         */
434        @SearchParamDefinition(name="subplan", path="Coverage.subPlan", description="Sub-plan identifier", type="token"  )
435        public static final String SP_SUBPLAN = "subplan";
436
437        /**
438         * <b>Fluent Client</b> search parameter constant for <b>subplan</b>
439         * <p>
440         * Description: <b>Sub-plan identifier</b><br>
441         * Type: <b>token</b><br>
442         * Path: <b>Coverage.subPlan</b><br>
443         * </p>
444         */
445        public static final TokenClientParam SUBPLAN = new TokenClientParam(SP_SUBPLAN);
446
447        /**
448         * Search parameter constant for <b>group</b>
449         * <p>
450         * Description: <b>Group identifier</b><br>
451         * Type: <b>token</b><br>
452         * Path: <b>Coverage.group</b><br>
453         * </p>
454         */
455        @SearchParamDefinition(name="group", path="Coverage.group", description="Group identifier", type="token"  )
456        public static final String SP_GROUP = "group";
457
458        /**
459         * <b>Fluent Client</b> search parameter constant for <b>group</b>
460         * <p>
461         * Description: <b>Group identifier</b><br>
462         * Type: <b>token</b><br>
463         * Path: <b>Coverage.group</b><br>
464         * </p>
465         */
466        public static final TokenClientParam GROUP = new TokenClientParam(SP_GROUP);
467
468        /**
469         * Search parameter constant for <b>dependent</b>
470         * <p>
471         * Description: <b>Dependent number</b><br>
472         * Type: <b>token</b><br>
473         * Path: <b>Coverage.dependent</b><br>
474         * </p>
475         */
476        @SearchParamDefinition(name="dependent", path="Coverage.dependent", description="Dependent number", type="token"  )
477        public static final String SP_DEPENDENT = "dependent";
478
479        /**
480         * <b>Fluent Client</b> search parameter constant for <b>dependent</b>
481         * <p>
482         * Description: <b>Dependent number</b><br>
483         * Type: <b>token</b><br>
484         * Path: <b>Coverage.dependent</b><br>
485         * </p>
486         */
487        public static final TokenClientParam DEPENDENT = new TokenClientParam(SP_DEPENDENT);
488
489        /**
490         * Search parameter constant for <b>sequence</b>
491         * <p>
492         * Description: <b>Sequence number</b><br>
493         * Type: <b>token</b><br>
494         * Path: <b>Coverage.sequence</b><br>
495         * </p>
496         */
497        @SearchParamDefinition(name="sequence", path="Coverage.sequence", description="Sequence number", type="token"  )
498        public static final String SP_SEQUENCE = "sequence";
499
500        /**
501         * <b>Fluent Client</b> search parameter constant for <b>sequence</b>
502         * <p>
503         * Description: <b>Sequence number</b><br>
504         * Type: <b>token</b><br>
505         * Path: <b>Coverage.sequence</b><br>
506         * </p>
507         */
508        public static final TokenClientParam SEQUENCE = new TokenClientParam(SP_SEQUENCE);
509
510
511        /**
512         * Constant for fluent queries to be used to add include statements. Specifies
513         * the path value of "<b>Coverage:issuer</b>".
514         */
515        public static final Include INCLUDE_ISSUER = new Include("Coverage:issuer");
516
517
518        @Child(name="issuer", order=0, min=0, max=1, summary=true, modifier=false, type={
519                ca.uhn.fhir.model.dstu2.resource.Organization.class     })
520        @Description(
521                shortDefinition="",
522                formalDefinition="The program or plan underwriter or payor."
523        )
524        private ResourceReferenceDt myIssuer;
525        
526        @Child(name="bin", type=IdentifierDt.class, order=1, min=0, max=1, summary=false, modifier=false)       
527        @Description(
528                shortDefinition="",
529                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."
530        )
531        private IdentifierDt myBin;
532        
533        @Child(name="period", type=PeriodDt.class, order=2, min=0, max=1, summary=true, modifier=false) 
534        @Description(
535                shortDefinition="",
536                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."
537        )
538        private PeriodDt myPeriod;
539        
540        @Child(name="type", type=CodingDt.class, order=3, min=0, max=1, summary=true, modifier=false)   
541        @Description(
542                shortDefinition="",
543                formalDefinition="The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health."
544        )
545        private CodingDt myType;
546        
547        @Child(name="subscriberId", type=IdentifierDt.class, order=4, min=0, max=1, summary=true, modifier=false)       
548        @Description(
549                shortDefinition="",
550                formalDefinition="The id issued to the subscriber."
551        )
552        private IdentifierDt mySubscriberId;
553        
554        @Child(name="identifier", type=IdentifierDt.class, order=5, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)       
555        @Description(
556                shortDefinition="",
557                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."
558        )
559        private java.util.List<IdentifierDt> myIdentifier;
560        
561        @Child(name="group", type=StringDt.class, order=6, min=0, max=1, summary=true, modifier=false)  
562        @Description(
563                shortDefinition="",
564                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."
565        )
566        private StringDt myGroup;
567        
568        @Child(name="plan", type=StringDt.class, order=7, min=0, max=1, summary=true, modifier=false)   
569        @Description(
570                shortDefinition="",
571                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."
572        )
573        private StringDt myPlan;
574        
575        @Child(name="subPlan", type=StringDt.class, order=8, min=0, max=1, summary=true, modifier=false)        
576        @Description(
577                shortDefinition="",
578                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."
579        )
580        private StringDt mySubPlan;
581        
582        @Child(name="dependent", type=PositiveIntDt.class, order=9, min=0, max=1, summary=true, modifier=false) 
583        @Description(
584                shortDefinition="",
585                formalDefinition="A unique identifier for a dependent under the coverage."
586        )
587        private PositiveIntDt myDependent;
588        
589        @Child(name="sequence", type=PositiveIntDt.class, order=10, min=0, max=1, summary=true, modifier=false) 
590        @Description(
591                shortDefinition="",
592                formalDefinition="An optional counter for a particular instance of the identified coverage which increments upon each renewal."
593        )
594        private PositiveIntDt mySequence;
595        
596        @Child(name="subscriber", order=11, min=0, max=1, summary=false, modifier=true, type={
597                ca.uhn.fhir.model.dstu2.resource.Patient.class  })
598        @Description(
599                shortDefinition="",
600                formalDefinition="The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due."
601        )
602        private ResourceReferenceDt mySubscriber;
603        
604        @Child(name="network", type=IdentifierDt.class, order=12, min=0, max=1, summary=true, modifier=false)   
605        @Description(
606                shortDefinition="",
607                formalDefinition="The identifier for a community of providers."
608        )
609        private IdentifierDt myNetwork;
610        
611        @Child(name="contract", order=13, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
612                ca.uhn.fhir.model.dstu2.resource.Contract.class })
613        @Description(
614                shortDefinition="",
615                formalDefinition="The policy(s) which constitute this insurance coverage."
616        )
617        private java.util.List<ResourceReferenceDt> myContract;
618        
619
620        @Override
621        public boolean isEmpty() {
622                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIssuer,  myBin,  myPeriod,  myType,  mySubscriberId,  myIdentifier,  myGroup,  myPlan,  mySubPlan,  myDependent,  mySequence,  mySubscriber,  myNetwork,  myContract);
623        }
624        
625        @Override
626        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
627                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIssuer, myBin, myPeriod, myType, mySubscriberId, myIdentifier, myGroup, myPlan, mySubPlan, myDependent, mySequence, mySubscriber, myNetwork, myContract);
628        }
629
630        /**
631         * Gets the value(s) for <b>issuer</b> ().
632         * creating it if it does
633         * not exist. Will not return <code>null</code>.
634         *
635     * <p>
636     * <b>Definition:</b>
637     * The program or plan underwriter or payor.
638     * </p> 
639         */
640        public ResourceReferenceDt getIssuer() {  
641                if (myIssuer == null) {
642                        myIssuer = new ResourceReferenceDt();
643                }
644                return myIssuer;
645        }
646
647        /**
648         * Sets the value(s) for <b>issuer</b> ()
649         *
650     * <p>
651     * <b>Definition:</b>
652     * The program or plan underwriter or payor.
653     * </p> 
654         */
655        public Coverage setIssuer(ResourceReferenceDt theValue) {
656                myIssuer = theValue;
657                return this;
658        }
659        
660        
661
662  
663        /**
664         * Gets the value(s) for <b>bin</b> ().
665         * creating it if it does
666         * not exist. Will not return <code>null</code>.
667         *
668     * <p>
669     * <b>Definition:</b>
670     * 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.
671     * </p> 
672         */
673        public IdentifierDt getBin() {  
674                if (myBin == null) {
675                        myBin = new IdentifierDt();
676                }
677                return myBin;
678        }
679
680        /**
681         * Sets the value(s) for <b>bin</b> ()
682         *
683     * <p>
684     * <b>Definition:</b>
685     * 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.
686     * </p> 
687         */
688        public Coverage setBin(IdentifierDt theValue) {
689                myBin = theValue;
690                return this;
691        }
692        
693        
694
695  
696        /**
697         * Gets the value(s) for <b>period</b> ().
698         * creating it if it does
699         * not exist. Will not return <code>null</code>.
700         *
701     * <p>
702     * <b>Definition:</b>
703     * 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.
704     * </p> 
705         */
706        public PeriodDt getPeriod() {  
707                if (myPeriod == null) {
708                        myPeriod = new PeriodDt();
709                }
710                return myPeriod;
711        }
712
713        /**
714         * Sets the value(s) for <b>period</b> ()
715         *
716     * <p>
717     * <b>Definition:</b>
718     * 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.
719     * </p> 
720         */
721        public Coverage setPeriod(PeriodDt theValue) {
722                myPeriod = theValue;
723                return this;
724        }
725        
726        
727
728  
729        /**
730         * Gets the value(s) for <b>type</b> ().
731         * creating it if it does
732         * not exist. Will not return <code>null</code>.
733         *
734     * <p>
735     * <b>Definition:</b>
736     * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health.
737     * </p> 
738         */
739        public CodingDt getType() {  
740                if (myType == null) {
741                        myType = new CodingDt();
742                }
743                return myType;
744        }
745
746        /**
747         * Sets the value(s) for <b>type</b> ()
748         *
749     * <p>
750     * <b>Definition:</b>
751     * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health.
752     * </p> 
753         */
754        public Coverage setType(CodingDt theValue) {
755                myType = theValue;
756                return this;
757        }
758        
759        
760
761  
762        /**
763         * Gets the value(s) for <b>subscriberId</b> ().
764         * creating it if it does
765         * not exist. Will not return <code>null</code>.
766         *
767     * <p>
768     * <b>Definition:</b>
769     * The id issued to the subscriber.
770     * </p> 
771         */
772        public IdentifierDt getSubscriberId() {  
773                if (mySubscriberId == null) {
774                        mySubscriberId = new IdentifierDt();
775                }
776                return mySubscriberId;
777        }
778
779        /**
780         * Sets the value(s) for <b>subscriberId</b> ()
781         *
782     * <p>
783     * <b>Definition:</b>
784     * The id issued to the subscriber.
785     * </p> 
786         */
787        public Coverage setSubscriberId(IdentifierDt theValue) {
788                mySubscriberId = theValue;
789                return this;
790        }
791        
792        
793
794  
795        /**
796         * Gets the value(s) for <b>identifier</b> ().
797         * creating it if it does
798         * not exist. Will not return <code>null</code>.
799         *
800     * <p>
801     * <b>Definition:</b>
802     * 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.
803     * </p> 
804         */
805        public java.util.List<IdentifierDt> getIdentifier() {  
806                if (myIdentifier == null) {
807                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
808                }
809                return myIdentifier;
810        }
811
812        /**
813         * Sets the value(s) for <b>identifier</b> ()
814         *
815     * <p>
816     * <b>Definition:</b>
817     * 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.
818     * </p> 
819         */
820        public Coverage setIdentifier(java.util.List<IdentifierDt> theValue) {
821                myIdentifier = theValue;
822                return this;
823        }
824        
825        
826
827        /**
828         * Adds and returns a new value for <b>identifier</b> ()
829         *
830     * <p>
831     * <b>Definition:</b>
832     * 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.
833     * </p> 
834         */
835        public IdentifierDt addIdentifier() {
836                IdentifierDt newType = new IdentifierDt();
837                getIdentifier().add(newType);
838                return newType; 
839        }
840
841        /**
842         * Adds a given new value for <b>identifier</b> ()
843         *
844         * <p>
845         * <b>Definition:</b>
846         * 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.
847         * </p>
848         * @param theValue The identifier to add (must not be <code>null</code>)
849         */
850        public Coverage addIdentifier(IdentifierDt theValue) {
851                if (theValue == null) {
852                        throw new NullPointerException("theValue must not be null");
853                }
854                getIdentifier().add(theValue);
855                return this;
856        }
857
858        /**
859         * Gets the first repetition for <b>identifier</b> (),
860         * creating it if it does not already exist.
861         *
862     * <p>
863     * <b>Definition:</b>
864     * 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.
865     * </p> 
866         */
867        public IdentifierDt getIdentifierFirstRep() {
868                if (getIdentifier().isEmpty()) {
869                        return addIdentifier();
870                }
871                return getIdentifier().get(0); 
872        }
873  
874        /**
875         * Gets the value(s) for <b>group</b> ().
876         * creating it if it does
877         * not exist. Will not return <code>null</code>.
878         *
879     * <p>
880     * <b>Definition:</b>
881     * 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.
882     * </p> 
883         */
884        public StringDt getGroupElement() {  
885                if (myGroup == null) {
886                        myGroup = new StringDt();
887                }
888                return myGroup;
889        }
890
891        
892        /**
893         * Gets the value(s) for <b>group</b> ().
894         * creating it if it does
895         * not exist. Will not return <code>null</code>.
896         *
897     * <p>
898     * <b>Definition:</b>
899     * 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.
900     * </p> 
901         */
902        public String getGroup() {  
903                return getGroupElement().getValue();
904        }
905
906        /**
907         * Sets the value(s) for <b>group</b> ()
908         *
909     * <p>
910     * <b>Definition:</b>
911     * 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.
912     * </p> 
913         */
914        public Coverage setGroup(StringDt theValue) {
915                myGroup = theValue;
916                return this;
917        }
918        
919        
920
921        /**
922         * Sets the value for <b>group</b> ()
923         *
924     * <p>
925     * <b>Definition:</b>
926     * 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.
927     * </p> 
928         */
929        public Coverage setGroup( String theString) {
930                myGroup = new StringDt(theString); 
931                return this; 
932        }
933
934 
935        /**
936         * Gets the value(s) for <b>plan</b> ().
937         * creating it if it does
938         * not exist. Will not return <code>null</code>.
939         *
940     * <p>
941     * <b>Definition:</b>
942     * 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.
943     * </p> 
944         */
945        public StringDt getPlanElement() {  
946                if (myPlan == null) {
947                        myPlan = new StringDt();
948                }
949                return myPlan;
950        }
951
952        
953        /**
954         * Gets the value(s) for <b>plan</b> ().
955         * creating it if it does
956         * not exist. Will not return <code>null</code>.
957         *
958     * <p>
959     * <b>Definition:</b>
960     * 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.
961     * </p> 
962         */
963        public String getPlan() {  
964                return getPlanElement().getValue();
965        }
966
967        /**
968         * Sets the value(s) for <b>plan</b> ()
969         *
970     * <p>
971     * <b>Definition:</b>
972     * 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.
973     * </p> 
974         */
975        public Coverage setPlan(StringDt theValue) {
976                myPlan = theValue;
977                return this;
978        }
979        
980        
981
982        /**
983         * Sets the value for <b>plan</b> ()
984         *
985     * <p>
986     * <b>Definition:</b>
987     * 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.
988     * </p> 
989         */
990        public Coverage setPlan( String theString) {
991                myPlan = new StringDt(theString); 
992                return this; 
993        }
994
995 
996        /**
997         * Gets the value(s) for <b>subPlan</b> ().
998         * creating it if it does
999         * not exist. Will not return <code>null</code>.
1000         *
1001     * <p>
1002     * <b>Definition:</b>
1003     * 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.
1004     * </p> 
1005         */
1006        public StringDt getSubPlanElement() {  
1007                if (mySubPlan == null) {
1008                        mySubPlan = new StringDt();
1009                }
1010                return mySubPlan;
1011        }
1012
1013        
1014        /**
1015         * Gets the value(s) for <b>subPlan</b> ().
1016         * creating it if it does
1017         * not exist. Will not return <code>null</code>.
1018         *
1019     * <p>
1020     * <b>Definition:</b>
1021     * 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.
1022     * </p> 
1023         */
1024        public String getSubPlan() {  
1025                return getSubPlanElement().getValue();
1026        }
1027
1028        /**
1029         * Sets the value(s) for <b>subPlan</b> ()
1030         *
1031     * <p>
1032     * <b>Definition:</b>
1033     * 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.
1034     * </p> 
1035         */
1036        public Coverage setSubPlan(StringDt theValue) {
1037                mySubPlan = theValue;
1038                return this;
1039        }
1040        
1041        
1042
1043        /**
1044         * Sets the value for <b>subPlan</b> ()
1045         *
1046     * <p>
1047     * <b>Definition:</b>
1048     * 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.
1049     * </p> 
1050         */
1051        public Coverage setSubPlan( String theString) {
1052                mySubPlan = new StringDt(theString); 
1053                return this; 
1054        }
1055
1056 
1057        /**
1058         * Gets the value(s) for <b>dependent</b> ().
1059         * creating it if it does
1060         * not exist. Will not return <code>null</code>.
1061         *
1062     * <p>
1063     * <b>Definition:</b>
1064     * A unique identifier for a dependent under the coverage.
1065     * </p> 
1066         */
1067        public PositiveIntDt getDependentElement() {  
1068                if (myDependent == null) {
1069                        myDependent = new PositiveIntDt();
1070                }
1071                return myDependent;
1072        }
1073
1074        
1075        /**
1076         * Gets the value(s) for <b>dependent</b> ().
1077         * creating it if it does
1078         * not exist. Will not return <code>null</code>.
1079         *
1080     * <p>
1081     * <b>Definition:</b>
1082     * A unique identifier for a dependent under the coverage.
1083     * </p> 
1084         */
1085        public Integer getDependent() {  
1086                return getDependentElement().getValue();
1087        }
1088
1089        /**
1090         * Sets the value(s) for <b>dependent</b> ()
1091         *
1092     * <p>
1093     * <b>Definition:</b>
1094     * A unique identifier for a dependent under the coverage.
1095     * </p> 
1096         */
1097        public Coverage setDependent(PositiveIntDt theValue) {
1098                myDependent = theValue;
1099                return this;
1100        }
1101        
1102        
1103
1104        /**
1105         * Sets the value for <b>dependent</b> ()
1106         *
1107     * <p>
1108     * <b>Definition:</b>
1109     * A unique identifier for a dependent under the coverage.
1110     * </p> 
1111         */
1112        public Coverage setDependent( int theInteger) {
1113                myDependent = new PositiveIntDt(theInteger); 
1114                return this; 
1115        }
1116
1117 
1118        /**
1119         * Gets the value(s) for <b>sequence</b> ().
1120         * creating it if it does
1121         * not exist. Will not return <code>null</code>.
1122         *
1123     * <p>
1124     * <b>Definition:</b>
1125     * An optional counter for a particular instance of the identified coverage which increments upon each renewal.
1126     * </p> 
1127         */
1128        public PositiveIntDt getSequenceElement() {  
1129                if (mySequence == null) {
1130                        mySequence = new PositiveIntDt();
1131                }
1132                return mySequence;
1133        }
1134
1135        
1136        /**
1137         * Gets the value(s) for <b>sequence</b> ().
1138         * creating it if it does
1139         * not exist. Will not return <code>null</code>.
1140         *
1141     * <p>
1142     * <b>Definition:</b>
1143     * An optional counter for a particular instance of the identified coverage which increments upon each renewal.
1144     * </p> 
1145         */
1146        public Integer getSequence() {  
1147                return getSequenceElement().getValue();
1148        }
1149
1150        /**
1151         * Sets the value(s) for <b>sequence</b> ()
1152         *
1153     * <p>
1154     * <b>Definition:</b>
1155     * An optional counter for a particular instance of the identified coverage which increments upon each renewal.
1156     * </p> 
1157         */
1158        public Coverage setSequence(PositiveIntDt theValue) {
1159                mySequence = theValue;
1160                return this;
1161        }
1162        
1163        
1164
1165        /**
1166         * Sets the value for <b>sequence</b> ()
1167         *
1168     * <p>
1169     * <b>Definition:</b>
1170     * An optional counter for a particular instance of the identified coverage which increments upon each renewal.
1171     * </p> 
1172         */
1173        public Coverage setSequence( int theInteger) {
1174                mySequence = new PositiveIntDt(theInteger); 
1175                return this; 
1176        }
1177
1178 
1179        /**
1180         * Gets the value(s) for <b>subscriber</b> ().
1181         * creating it if it does
1182         * not exist. Will not return <code>null</code>.
1183         *
1184     * <p>
1185     * <b>Definition:</b>
1186     * The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due.
1187     * </p> 
1188         */
1189        public ResourceReferenceDt getSubscriber() {  
1190                if (mySubscriber == null) {
1191                        mySubscriber = new ResourceReferenceDt();
1192                }
1193                return mySubscriber;
1194        }
1195
1196        /**
1197         * Sets the value(s) for <b>subscriber</b> ()
1198         *
1199     * <p>
1200     * <b>Definition:</b>
1201     * The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due.
1202     * </p> 
1203         */
1204        public Coverage setSubscriber(ResourceReferenceDt theValue) {
1205                mySubscriber = theValue;
1206                return this;
1207        }
1208        
1209        
1210
1211  
1212        /**
1213         * Gets the value(s) for <b>network</b> ().
1214         * creating it if it does
1215         * not exist. Will not return <code>null</code>.
1216         *
1217     * <p>
1218     * <b>Definition:</b>
1219     * The identifier for a community of providers.
1220     * </p> 
1221         */
1222        public IdentifierDt getNetwork() {  
1223                if (myNetwork == null) {
1224                        myNetwork = new IdentifierDt();
1225                }
1226                return myNetwork;
1227        }
1228
1229        /**
1230         * Sets the value(s) for <b>network</b> ()
1231         *
1232     * <p>
1233     * <b>Definition:</b>
1234     * The identifier for a community of providers.
1235     * </p> 
1236         */
1237        public Coverage setNetwork(IdentifierDt theValue) {
1238                myNetwork = theValue;
1239                return this;
1240        }
1241        
1242        
1243
1244  
1245        /**
1246         * Gets the value(s) for <b>contract</b> ().
1247         * creating it if it does
1248         * not exist. Will not return <code>null</code>.
1249         *
1250     * <p>
1251     * <b>Definition:</b>
1252     * The policy(s) which constitute this insurance coverage.
1253     * </p> 
1254         */
1255        public java.util.List<ResourceReferenceDt> getContract() {  
1256                if (myContract == null) {
1257                        myContract = new java.util.ArrayList<ResourceReferenceDt>();
1258                }
1259                return myContract;
1260        }
1261
1262        /**
1263         * Sets the value(s) for <b>contract</b> ()
1264         *
1265     * <p>
1266     * <b>Definition:</b>
1267     * The policy(s) which constitute this insurance coverage.
1268     * </p> 
1269         */
1270        public Coverage setContract(java.util.List<ResourceReferenceDt> theValue) {
1271                myContract = theValue;
1272                return this;
1273        }
1274        
1275        
1276
1277        /**
1278         * Adds and returns a new value for <b>contract</b> ()
1279         *
1280     * <p>
1281     * <b>Definition:</b>
1282     * The policy(s) which constitute this insurance coverage.
1283     * </p> 
1284         */
1285        public ResourceReferenceDt addContract() {
1286                ResourceReferenceDt newType = new ResourceReferenceDt();
1287                getContract().add(newType);
1288                return newType; 
1289        }
1290  
1291
1292
1293    @Override
1294    public String getResourceName() {
1295        return "Coverage";
1296    }
1297    
1298    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1299        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1300    }
1301
1302
1303}