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>EligibilityResponse</b> Resource
282 * ()
283 *
284 * <p>
285 * <b>Definition:</b>
286 * This resource provides eligibility and plan details from the processing of an Eligibility resource.
287 * </p> 
288 *
289 * <p>
290 * <b>Requirements:</b>
291 * 
292 * </p> 
293 *
294 * <p>
295 * <b>Profile Definition:</b>
296 * <a href="http://hl7.org/fhir/profiles/EligibilityResponse">http://hl7.org/fhir/profiles/EligibilityResponse</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="EligibilityResponse", profile="http://hl7.org/fhir/profiles/EligibilityResponse", id="eligibilityresponse")
301public class EligibilityResponse extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource     {
303
304        /**
305         * Search parameter constant for <b>identifier</b>
306         * <p>
307         * Description: <b>The business identifier of the Explanation of Benefit</b><br>
308         * Type: <b>token</b><br>
309         * Path: <b>EligibilityResponse.identifier</b><br>
310         * </p>
311         */
312        @SearchParamDefinition(name="identifier", path="EligibilityResponse.identifier", description="The business identifier of the Explanation of Benefit", type="token"  )
313        public static final String SP_IDENTIFIER = "identifier";
314
315        /**
316         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
317         * <p>
318         * Description: <b>The business identifier of the Explanation of Benefit</b><br>
319         * Type: <b>token</b><br>
320         * Path: <b>EligibilityResponse.identifier</b><br>
321         * </p>
322         */
323        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
324
325
326
327        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)      
328        @Description(
329                shortDefinition="",
330                formalDefinition="The Response business identifier"
331        )
332        private java.util.List<IdentifierDt> myIdentifier;
333        
334        @Child(name="request", order=1, min=0, max=1, summary=false, modifier=false, type={
335                ca.uhn.fhir.model.dstu2.resource.EligibilityRequest.class       })
336        @Description(
337                shortDefinition="",
338                formalDefinition="Original request resource reference"
339        )
340        private ResourceReferenceDt myRequest;
341        
342        @Child(name="outcome", type=CodeDt.class, order=2, min=0, max=1, summary=false, modifier=false) 
343        @Description(
344                shortDefinition="",
345                formalDefinition="Transaction status: error, complete"
346        )
347        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/remittance-outcome")
348        private BoundCodeDt<RemittanceOutcomeEnum> myOutcome;
349        
350        @Child(name="disposition", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)   
351        @Description(
352                shortDefinition="",
353                formalDefinition="A description of the status of the adjudication."
354        )
355        private StringDt myDisposition;
356        
357        @Child(name="ruleset", type=CodingDt.class, order=4, min=0, max=1, summary=false, modifier=false)       
358        @Description(
359                shortDefinition="",
360                formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources."
361        )
362        private CodingDt myRuleset;
363        
364        @Child(name="originalRuleset", type=CodingDt.class, order=5, min=0, max=1, summary=false, modifier=false)       
365        @Description(
366                shortDefinition="",
367                formalDefinition="The style (standard) and version of the original material which was converted into this resource."
368        )
369        private CodingDt myOriginalRuleset;
370        
371        @Child(name="created", type=DateTimeDt.class, order=6, min=0, max=1, summary=false, modifier=false)     
372        @Description(
373                shortDefinition="",
374                formalDefinition="The date when the enclosed suite of services were performed or completed"
375        )
376        private DateTimeDt myCreated;
377        
378        @Child(name="organization", order=7, min=0, max=1, summary=false, modifier=false, type={
379                ca.uhn.fhir.model.dstu2.resource.Organization.class     })
380        @Description(
381                shortDefinition="",
382                formalDefinition="The Insurer who produced this adjudicated response."
383        )
384        private ResourceReferenceDt myOrganization;
385        
386        @Child(name="requestProvider", order=8, min=0, max=1, summary=false, modifier=false, type={
387                ca.uhn.fhir.model.dstu2.resource.Practitioner.class     })
388        @Description(
389                shortDefinition="",
390                formalDefinition="The practitioner who is responsible for the services rendered to the patient."
391        )
392        private ResourceReferenceDt myRequestProvider;
393        
394        @Child(name="requestOrganization", order=9, min=0, max=1, summary=false, modifier=false, type={
395                ca.uhn.fhir.model.dstu2.resource.Organization.class     })
396        @Description(
397                shortDefinition="",
398                formalDefinition="The organization which is responsible for the services rendered to the patient."
399        )
400        private ResourceReferenceDt myRequestOrganization;
401        
402
403        @Override
404        public boolean isEmpty() {
405                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myRequest,  myOutcome,  myDisposition,  myRuleset,  myOriginalRuleset,  myCreated,  myOrganization,  myRequestProvider,  myRequestOrganization);
406        }
407        
408        @Override
409        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
410                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRequest, myOutcome, myDisposition, myRuleset, myOriginalRuleset, myCreated, myOrganization, myRequestProvider, myRequestOrganization);
411        }
412
413        /**
414         * Gets the value(s) for <b>identifier</b> ().
415         * creating it if it does
416         * not exist. Will not return <code>null</code>.
417         *
418     * <p>
419     * <b>Definition:</b>
420     * The Response business identifier
421     * </p> 
422         */
423        public java.util.List<IdentifierDt> getIdentifier() {  
424                if (myIdentifier == null) {
425                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
426                }
427                return myIdentifier;
428        }
429
430        /**
431         * Sets the value(s) for <b>identifier</b> ()
432         *
433     * <p>
434     * <b>Definition:</b>
435     * The Response business identifier
436     * </p> 
437         */
438        public EligibilityResponse setIdentifier(java.util.List<IdentifierDt> theValue) {
439                myIdentifier = theValue;
440                return this;
441        }
442        
443        
444
445        /**
446         * Adds and returns a new value for <b>identifier</b> ()
447         *
448     * <p>
449     * <b>Definition:</b>
450     * The Response business identifier
451     * </p> 
452         */
453        public IdentifierDt addIdentifier() {
454                IdentifierDt newType = new IdentifierDt();
455                getIdentifier().add(newType);
456                return newType; 
457        }
458
459        /**
460         * Adds a given new value for <b>identifier</b> ()
461         *
462         * <p>
463         * <b>Definition:</b>
464         * The Response business identifier
465         * </p>
466         * @param theValue The identifier to add (must not be <code>null</code>)
467         */
468        public EligibilityResponse addIdentifier(IdentifierDt theValue) {
469                if (theValue == null) {
470                        throw new NullPointerException("theValue must not be null");
471                }
472                getIdentifier().add(theValue);
473                return this;
474        }
475
476        /**
477         * Gets the first repetition for <b>identifier</b> (),
478         * creating it if it does not already exist.
479         *
480     * <p>
481     * <b>Definition:</b>
482     * The Response business identifier
483     * </p> 
484         */
485        public IdentifierDt getIdentifierFirstRep() {
486                if (getIdentifier().isEmpty()) {
487                        return addIdentifier();
488                }
489                return getIdentifier().get(0); 
490        }
491  
492        /**
493         * Gets the value(s) for <b>request</b> ().
494         * creating it if it does
495         * not exist. Will not return <code>null</code>.
496         *
497     * <p>
498     * <b>Definition:</b>
499     * Original request resource reference
500     * </p> 
501         */
502        public ResourceReferenceDt getRequest() {  
503                if (myRequest == null) {
504                        myRequest = new ResourceReferenceDt();
505                }
506                return myRequest;
507        }
508
509        /**
510         * Sets the value(s) for <b>request</b> ()
511         *
512     * <p>
513     * <b>Definition:</b>
514     * Original request resource reference
515     * </p> 
516         */
517        public EligibilityResponse setRequest(ResourceReferenceDt theValue) {
518                myRequest = theValue;
519                return this;
520        }
521        
522        
523
524  
525        /**
526         * Gets the value(s) for <b>outcome</b> ().
527         * creating it if it does
528         * not exist. Will not return <code>null</code>.
529         *
530     * <p>
531     * <b>Definition:</b>
532     * Transaction status: error, complete
533     * </p> 
534         */
535        public BoundCodeDt<RemittanceOutcomeEnum> getOutcomeElement() {  
536                if (myOutcome == null) {
537                        myOutcome = new BoundCodeDt<RemittanceOutcomeEnum>(RemittanceOutcomeEnum.VALUESET_BINDER);
538                }
539                return myOutcome;
540        }
541
542        
543        /**
544         * Gets the value(s) for <b>outcome</b> ().
545         * creating it if it does
546         * not exist. This method may return <code>null</code>.
547         *
548     * <p>
549     * <b>Definition:</b>
550     * Transaction status: error, complete
551     * </p> 
552         */
553        public String getOutcome() {  
554                return getOutcomeElement().getValue();
555        }
556
557        /**
558         * Sets the value(s) for <b>outcome</b> ()
559         *
560     * <p>
561     * <b>Definition:</b>
562     * Transaction status: error, complete
563     * </p> 
564         */
565        public EligibilityResponse setOutcome(BoundCodeDt<RemittanceOutcomeEnum> theValue) {
566                myOutcome = theValue;
567                return this;
568        }
569        
570        
571
572        /**
573         * Sets the value(s) for <b>outcome</b> ()
574         *
575     * <p>
576     * <b>Definition:</b>
577     * Transaction status: error, complete
578     * </p> 
579         */
580        public EligibilityResponse setOutcome(RemittanceOutcomeEnum theValue) {
581                setOutcome(new BoundCodeDt<RemittanceOutcomeEnum>(RemittanceOutcomeEnum.VALUESET_BINDER, theValue));
582                
583/*
584                getOutcomeElement().setValueAsEnum(theValue);
585*/
586                return this;
587        }
588
589  
590        /**
591         * Gets the value(s) for <b>disposition</b> ().
592         * creating it if it does
593         * not exist. Will not return <code>null</code>.
594         *
595     * <p>
596     * <b>Definition:</b>
597     * A description of the status of the adjudication.
598     * </p> 
599         */
600        public StringDt getDispositionElement() {  
601                if (myDisposition == null) {
602                        myDisposition = new StringDt();
603                }
604                return myDisposition;
605        }
606
607        
608        /**
609         * Gets the value(s) for <b>disposition</b> ().
610         * creating it if it does
611         * not exist. This method may return <code>null</code>.
612         *
613     * <p>
614     * <b>Definition:</b>
615     * A description of the status of the adjudication.
616     * </p> 
617         */
618        public String getDisposition() {  
619                return getDispositionElement().getValue();
620        }
621
622        /**
623         * Sets the value(s) for <b>disposition</b> ()
624         *
625     * <p>
626     * <b>Definition:</b>
627     * A description of the status of the adjudication.
628     * </p> 
629         */
630        public EligibilityResponse setDisposition(StringDt theValue) {
631                myDisposition = theValue;
632                return this;
633        }
634        
635        
636
637        /**
638         * Sets the value for <b>disposition</b> ()
639         *
640     * <p>
641     * <b>Definition:</b>
642     * A description of the status of the adjudication.
643     * </p> 
644         */
645        public EligibilityResponse setDisposition( String theString) {
646                myDisposition = new StringDt(theString); 
647                return this; 
648        }
649
650 
651        /**
652         * Gets the value(s) for <b>ruleset</b> ().
653         * creating it if it does
654         * not exist. Will not return <code>null</code>.
655         *
656     * <p>
657     * <b>Definition:</b>
658     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
659     * </p> 
660         */
661        public CodingDt getRuleset() {  
662                if (myRuleset == null) {
663                        myRuleset = new CodingDt();
664                }
665                return myRuleset;
666        }
667
668        /**
669         * Sets the value(s) for <b>ruleset</b> ()
670         *
671     * <p>
672     * <b>Definition:</b>
673     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
674     * </p> 
675         */
676        public EligibilityResponse setRuleset(CodingDt theValue) {
677                myRuleset = theValue;
678                return this;
679        }
680        
681        
682
683  
684        /**
685         * Gets the value(s) for <b>originalRuleset</b> ().
686         * creating it if it does
687         * not exist. Will not return <code>null</code>.
688         *
689     * <p>
690     * <b>Definition:</b>
691     * The style (standard) and version of the original material which was converted into this resource.
692     * </p> 
693         */
694        public CodingDt getOriginalRuleset() {  
695                if (myOriginalRuleset == null) {
696                        myOriginalRuleset = new CodingDt();
697                }
698                return myOriginalRuleset;
699        }
700
701        /**
702         * Sets the value(s) for <b>originalRuleset</b> ()
703         *
704     * <p>
705     * <b>Definition:</b>
706     * The style (standard) and version of the original material which was converted into this resource.
707     * </p> 
708         */
709        public EligibilityResponse setOriginalRuleset(CodingDt theValue) {
710                myOriginalRuleset = theValue;
711                return this;
712        }
713        
714        
715
716  
717        /**
718         * Gets the value(s) for <b>created</b> ().
719         * creating it if it does
720         * not exist. Will not return <code>null</code>.
721         *
722     * <p>
723     * <b>Definition:</b>
724     * The date when the enclosed suite of services were performed or completed
725     * </p> 
726         */
727        public DateTimeDt getCreatedElement() {  
728                if (myCreated == null) {
729                        myCreated = new DateTimeDt();
730                }
731                return myCreated;
732        }
733
734        
735        /**
736         * Gets the value(s) for <b>created</b> ().
737         * creating it if it does
738         * not exist. This method may return <code>null</code>.
739         *
740     * <p>
741     * <b>Definition:</b>
742     * The date when the enclosed suite of services were performed or completed
743     * </p> 
744         */
745        public Date getCreated() {  
746                return getCreatedElement().getValue();
747        }
748
749        /**
750         * Sets the value(s) for <b>created</b> ()
751         *
752     * <p>
753     * <b>Definition:</b>
754     * The date when the enclosed suite of services were performed or completed
755     * </p> 
756         */
757        public EligibilityResponse setCreated(DateTimeDt theValue) {
758                myCreated = theValue;
759                return this;
760        }
761        
762        
763
764        /**
765         * Sets the value for <b>created</b> ()
766         *
767     * <p>
768     * <b>Definition:</b>
769     * The date when the enclosed suite of services were performed or completed
770     * </p> 
771         */
772        public EligibilityResponse setCreatedWithSecondsPrecision( Date theDate) {
773                myCreated = new DateTimeDt(theDate); 
774                return this; 
775        }
776
777        /**
778         * Sets the value for <b>created</b> ()
779         *
780     * <p>
781     * <b>Definition:</b>
782     * The date when the enclosed suite of services were performed or completed
783     * </p> 
784         */
785        public EligibilityResponse setCreated( Date theDate,  TemporalPrecisionEnum thePrecision) {
786                myCreated = new DateTimeDt(theDate, thePrecision); 
787                return this; 
788        }
789
790 
791        /**
792         * Gets the value(s) for <b>organization</b> ().
793         * creating it if it does
794         * not exist. Will not return <code>null</code>.
795         *
796     * <p>
797     * <b>Definition:</b>
798     * The Insurer who produced this adjudicated response.
799     * </p> 
800         */
801        public ResourceReferenceDt getOrganization() {  
802                if (myOrganization == null) {
803                        myOrganization = new ResourceReferenceDt();
804                }
805                return myOrganization;
806        }
807
808        /**
809         * Sets the value(s) for <b>organization</b> ()
810         *
811     * <p>
812     * <b>Definition:</b>
813     * The Insurer who produced this adjudicated response.
814     * </p> 
815         */
816        public EligibilityResponse setOrganization(ResourceReferenceDt theValue) {
817                myOrganization = theValue;
818                return this;
819        }
820        
821        
822
823  
824        /**
825         * Gets the value(s) for <b>requestProvider</b> ().
826         * creating it if it does
827         * not exist. Will not return <code>null</code>.
828         *
829     * <p>
830     * <b>Definition:</b>
831     * The practitioner who is responsible for the services rendered to the patient.
832     * </p> 
833         */
834        public ResourceReferenceDt getRequestProvider() {  
835                if (myRequestProvider == null) {
836                        myRequestProvider = new ResourceReferenceDt();
837                }
838                return myRequestProvider;
839        }
840
841        /**
842         * Sets the value(s) for <b>requestProvider</b> ()
843         *
844     * <p>
845     * <b>Definition:</b>
846     * The practitioner who is responsible for the services rendered to the patient.
847     * </p> 
848         */
849        public EligibilityResponse setRequestProvider(ResourceReferenceDt theValue) {
850                myRequestProvider = theValue;
851                return this;
852        }
853        
854        
855
856  
857        /**
858         * Gets the value(s) for <b>requestOrganization</b> ().
859         * creating it if it does
860         * not exist. Will not return <code>null</code>.
861         *
862     * <p>
863     * <b>Definition:</b>
864     * The organization which is responsible for the services rendered to the patient.
865     * </p> 
866         */
867        public ResourceReferenceDt getRequestOrganization() {  
868                if (myRequestOrganization == null) {
869                        myRequestOrganization = new ResourceReferenceDt();
870                }
871                return myRequestOrganization;
872        }
873
874        /**
875         * Sets the value(s) for <b>requestOrganization</b> ()
876         *
877     * <p>
878     * <b>Definition:</b>
879     * The organization which is responsible for the services rendered to the patient.
880     * </p> 
881         */
882        public EligibilityResponse setRequestOrganization(ResourceReferenceDt theValue) {
883                myRequestOrganization = theValue;
884                return this;
885        }
886        
887        
888
889  
890
891
892    @Override
893    public String getResourceName() {
894        return "EligibilityResponse";
895    }
896    
897    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
898        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
899    }
900
901
902}