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