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>PaymentNotice</b> Resource
282 * ()
283 *
284 * <p>
285 * <b>Definition:</b>
286 * This resource provides the status of the payment for goods and services rendered, and the request and response resource references.
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/PaymentNotice">http://hl7.org/fhir/profiles/PaymentNotice</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="PaymentNotice", profile="http://hl7.org/fhir/profiles/PaymentNotice", id="paymentnotice")
301public class PaymentNotice 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 Eligibility</b><br>
309         * Type: <b>token</b><br>
310         * Path: <b>PaymentNotice.identifier</b><br>
311         * </p>
312         */
313        @SearchParamDefinition(name="identifier", path="PaymentNotice.identifier", description="The business identifier of the Eligibility", 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 Eligibility</b><br>
321         * Type: <b>token</b><br>
322         * Path: <b>PaymentNotice.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="ruleset", type=CodingDt.class, order=1, min=0, max=1, summary=false, modifier=false)       
337        @Description(
338                shortDefinition="",
339                formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources."
340        )
341        private CodingDt myRuleset;
342        
343        @Child(name="originalRuleset", type=CodingDt.class, order=2, min=0, max=1, summary=false, modifier=false)       
344        @Description(
345                shortDefinition="",
346                formalDefinition="The style (standard) and version of the original material which was converted into this resource."
347        )
348        private CodingDt myOriginalRuleset;
349        
350        @Child(name="created", type=DateTimeDt.class, order=3, min=0, max=1, summary=false, modifier=false)     
351        @Description(
352                shortDefinition="",
353                formalDefinition="The date when this resource was created."
354        )
355        private DateTimeDt myCreated;
356        
357        @Child(name="target", order=4, min=0, max=1, summary=false, modifier=false, type={
358                ca.uhn.fhir.model.dstu2.resource.Organization.class
359        })
360        @Description(
361                shortDefinition="",
362                formalDefinition="The Insurer who is target  of the request."
363        )
364        private ResourceReferenceDt myTarget;
365        
366        @Child(name="provider", order=5, min=0, max=1, summary=false, modifier=false, type={
367                ca.uhn.fhir.model.dstu2.resource.Practitioner.class
368        })
369        @Description(
370                shortDefinition="",
371                formalDefinition="The practitioner who is responsible for the services rendered to the patient."
372        )
373        private ResourceReferenceDt myProvider;
374        
375        @Child(name="organization", order=6, min=0, max=1, summary=false, modifier=false, type={
376                ca.uhn.fhir.model.dstu2.resource.Organization.class
377        })
378        @Description(
379                shortDefinition="",
380                formalDefinition="The organization which is responsible for the services rendered to the patient."
381        )
382        private ResourceReferenceDt myOrganization;
383        
384        @Child(name="request", order=7, min=0, max=1, summary=false, modifier=false, type={
385                IResource.class
386        })
387        @Description(
388                shortDefinition="",
389                formalDefinition="Reference of resource to reverse"
390        )
391        private ResourceReferenceDt myRequest;
392        
393        @Child(name="response", order=8, min=0, max=1, summary=false, modifier=false, type={
394                IResource.class
395        })
396        @Description(
397                shortDefinition="",
398                formalDefinition="Reference of response to resource to reverse"
399        )
400        private ResourceReferenceDt myResponse;
401        
402        @Child(name="paymentStatus", type=CodingDt.class, order=9, min=1, max=1, summary=false, modifier=false) 
403        @Description(
404                shortDefinition="",
405                formalDefinition="The payment status, typically paid: payment sent, cleared: payment received."
406        )
407        private CodingDt myPaymentStatus;
408        
409
410        @Override
411        public boolean isEmpty() {
412                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myRuleset,  myOriginalRuleset,  myCreated,  myTarget,  myProvider,  myOrganization,  myRequest,  myResponse,  myPaymentStatus);
413        }
414        
415        @Override
416        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
417                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRuleset, myOriginalRuleset, myCreated, myTarget, myProvider, myOrganization, myRequest, myResponse, myPaymentStatus);
418        }
419
420        /**
421         * Gets the value(s) for <b>identifier</b> ().
422         * creating it if it does
423         * not exist. Will not return <code>null</code>.
424         *
425     * <p>
426     * <b>Definition:</b>
427     * The Response business identifier
428     * </p> 
429         */
430        public java.util.List<IdentifierDt> getIdentifier() {  
431                if (myIdentifier == null) {
432                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
433                }
434                return myIdentifier;
435        }
436
437        /**
438         * Sets the value(s) for <b>identifier</b> ()
439         *
440     * <p>
441     * <b>Definition:</b>
442     * The Response business identifier
443     * </p> 
444         */
445        public PaymentNotice setIdentifier(java.util.List<IdentifierDt> theValue) {
446                myIdentifier = theValue;
447                return this;
448        }
449        
450        
451
452        /**
453         * Adds and returns a new value for <b>identifier</b> ()
454         *
455     * <p>
456     * <b>Definition:</b>
457     * The Response business identifier
458     * </p> 
459         */
460        public IdentifierDt addIdentifier() {
461                IdentifierDt newType = new IdentifierDt();
462                getIdentifier().add(newType);
463                return newType; 
464        }
465
466        /**
467         * Adds a given new value for <b>identifier</b> ()
468         *
469         * <p>
470         * <b>Definition:</b>
471         * The Response business identifier
472         * </p>
473         * @param theValue The identifier to add (must not be <code>null</code>)
474         */
475        public PaymentNotice addIdentifier(IdentifierDt theValue) {
476                if (theValue == null) {
477                        throw new NullPointerException("theValue must not be null");
478                }
479                getIdentifier().add(theValue);
480                return this;
481        }
482
483        /**
484         * Gets the first repetition for <b>identifier</b> (),
485         * creating it if it does not already exist.
486         *
487     * <p>
488     * <b>Definition:</b>
489     * The Response business identifier
490     * </p> 
491         */
492        public IdentifierDt getIdentifierFirstRep() {
493                if (getIdentifier().isEmpty()) {
494                        return addIdentifier();
495                }
496                return getIdentifier().get(0); 
497        }
498  
499        /**
500         * Gets the value(s) for <b>ruleset</b> ().
501         * creating it if it does
502         * not exist. Will not return <code>null</code>.
503         *
504     * <p>
505     * <b>Definition:</b>
506     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
507     * </p> 
508         */
509        public CodingDt getRuleset() {  
510                if (myRuleset == null) {
511                        myRuleset = new CodingDt();
512                }
513                return myRuleset;
514        }
515
516        /**
517         * Sets the value(s) for <b>ruleset</b> ()
518         *
519     * <p>
520     * <b>Definition:</b>
521     * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
522     * </p> 
523         */
524        public PaymentNotice setRuleset(CodingDt theValue) {
525                myRuleset = theValue;
526                return this;
527        }
528        
529        
530
531  
532        /**
533         * Gets the value(s) for <b>originalRuleset</b> ().
534         * creating it if it does
535         * not exist. Will not return <code>null</code>.
536         *
537     * <p>
538     * <b>Definition:</b>
539     * The style (standard) and version of the original material which was converted into this resource.
540     * </p> 
541         */
542        public CodingDt getOriginalRuleset() {  
543                if (myOriginalRuleset == null) {
544                        myOriginalRuleset = new CodingDt();
545                }
546                return myOriginalRuleset;
547        }
548
549        /**
550         * Sets the value(s) for <b>originalRuleset</b> ()
551         *
552     * <p>
553     * <b>Definition:</b>
554     * The style (standard) and version of the original material which was converted into this resource.
555     * </p> 
556         */
557        public PaymentNotice setOriginalRuleset(CodingDt theValue) {
558                myOriginalRuleset = theValue;
559                return this;
560        }
561        
562        
563
564  
565        /**
566         * Gets the value(s) for <b>created</b> ().
567         * creating it if it does
568         * not exist. Will not return <code>null</code>.
569         *
570     * <p>
571     * <b>Definition:</b>
572     * The date when this resource was created.
573     * </p> 
574         */
575        public DateTimeDt getCreatedElement() {  
576                if (myCreated == null) {
577                        myCreated = new DateTimeDt();
578                }
579                return myCreated;
580        }
581
582        
583        /**
584         * Gets the value(s) for <b>created</b> ().
585         * creating it if it does
586         * not exist. This method may return <code>null</code>.
587         *
588     * <p>
589     * <b>Definition:</b>
590     * The date when this resource was created.
591     * </p> 
592         */
593        public Date getCreated() {  
594                return getCreatedElement().getValue();
595        }
596
597        /**
598         * Sets the value(s) for <b>created</b> ()
599         *
600     * <p>
601     * <b>Definition:</b>
602     * The date when this resource was created.
603     * </p> 
604         */
605        public PaymentNotice setCreated(DateTimeDt theValue) {
606                myCreated = theValue;
607                return this;
608        }
609        
610        
611
612        /**
613         * Sets the value for <b>created</b> ()
614         *
615     * <p>
616     * <b>Definition:</b>
617     * The date when this resource was created.
618     * </p> 
619         */
620        public PaymentNotice setCreatedWithSecondsPrecision( Date theDate) {
621                myCreated = new DateTimeDt(theDate); 
622                return this; 
623        }
624
625        /**
626         * Sets the value for <b>created</b> ()
627         *
628     * <p>
629     * <b>Definition:</b>
630     * The date when this resource was created.
631     * </p> 
632         */
633        public PaymentNotice setCreated( Date theDate,  TemporalPrecisionEnum thePrecision) {
634                myCreated = new DateTimeDt(theDate, thePrecision); 
635                return this; 
636        }
637
638 
639        /**
640         * Gets the value(s) for <b>target</b> ().
641         * creating it if it does
642         * not exist. Will not return <code>null</code>.
643         *
644     * <p>
645     * <b>Definition:</b>
646     * The Insurer who is target  of the request.
647     * </p> 
648         */
649        public ResourceReferenceDt getTarget() {  
650                if (myTarget == null) {
651                        myTarget = new ResourceReferenceDt();
652                }
653                return myTarget;
654        }
655
656        /**
657         * Sets the value(s) for <b>target</b> ()
658         *
659     * <p>
660     * <b>Definition:</b>
661     * The Insurer who is target  of the request.
662     * </p> 
663         */
664        public PaymentNotice setTarget(ResourceReferenceDt theValue) {
665                myTarget = theValue;
666                return this;
667        }
668        
669        
670
671  
672        /**
673         * Gets the value(s) for <b>provider</b> ().
674         * creating it if it does
675         * not exist. Will not return <code>null</code>.
676         *
677     * <p>
678     * <b>Definition:</b>
679     * The practitioner who is responsible for the services rendered to the patient.
680     * </p> 
681         */
682        public ResourceReferenceDt getProvider() {  
683                if (myProvider == null) {
684                        myProvider = new ResourceReferenceDt();
685                }
686                return myProvider;
687        }
688
689        /**
690         * Sets the value(s) for <b>provider</b> ()
691         *
692     * <p>
693     * <b>Definition:</b>
694     * The practitioner who is responsible for the services rendered to the patient.
695     * </p> 
696         */
697        public PaymentNotice setProvider(ResourceReferenceDt theValue) {
698                myProvider = theValue;
699                return this;
700        }
701        
702        
703
704  
705        /**
706         * Gets the value(s) for <b>organization</b> ().
707         * creating it if it does
708         * not exist. Will not return <code>null</code>.
709         *
710     * <p>
711     * <b>Definition:</b>
712     * The organization which is responsible for the services rendered to the patient.
713     * </p> 
714         */
715        public ResourceReferenceDt getOrganization() {  
716                if (myOrganization == null) {
717                        myOrganization = new ResourceReferenceDt();
718                }
719                return myOrganization;
720        }
721
722        /**
723         * Sets the value(s) for <b>organization</b> ()
724         *
725     * <p>
726     * <b>Definition:</b>
727     * The organization which is responsible for the services rendered to the patient.
728     * </p> 
729         */
730        public PaymentNotice setOrganization(ResourceReferenceDt theValue) {
731                myOrganization = theValue;
732                return this;
733        }
734        
735        
736
737  
738        /**
739         * Gets the value(s) for <b>request</b> ().
740         * creating it if it does
741         * not exist. Will not return <code>null</code>.
742         *
743     * <p>
744     * <b>Definition:</b>
745     * Reference of resource to reverse
746     * </p> 
747         */
748        public ResourceReferenceDt getRequest() {  
749                if (myRequest == null) {
750                        myRequest = new ResourceReferenceDt();
751                }
752                return myRequest;
753        }
754
755        /**
756         * Sets the value(s) for <b>request</b> ()
757         *
758     * <p>
759     * <b>Definition:</b>
760     * Reference of resource to reverse
761     * </p> 
762         */
763        public PaymentNotice setRequest(ResourceReferenceDt theValue) {
764                myRequest = theValue;
765                return this;
766        }
767        
768        
769
770  
771        /**
772         * Gets the value(s) for <b>response</b> ().
773         * creating it if it does
774         * not exist. Will not return <code>null</code>.
775         *
776     * <p>
777     * <b>Definition:</b>
778     * Reference of response to resource to reverse
779     * </p> 
780         */
781        public ResourceReferenceDt getResponse() {  
782                if (myResponse == null) {
783                        myResponse = new ResourceReferenceDt();
784                }
785                return myResponse;
786        }
787
788        /**
789         * Sets the value(s) for <b>response</b> ()
790         *
791     * <p>
792     * <b>Definition:</b>
793     * Reference of response to resource to reverse
794     * </p> 
795         */
796        public PaymentNotice setResponse(ResourceReferenceDt theValue) {
797                myResponse = theValue;
798                return this;
799        }
800        
801        
802
803  
804        /**
805         * Gets the value(s) for <b>paymentStatus</b> ().
806         * creating it if it does
807         * not exist. Will not return <code>null</code>.
808         *
809     * <p>
810     * <b>Definition:</b>
811     * The payment status, typically paid: payment sent, cleared: payment received.
812     * </p> 
813         */
814        public CodingDt getPaymentStatus() {  
815                if (myPaymentStatus == null) {
816                        myPaymentStatus = new CodingDt();
817                }
818                return myPaymentStatus;
819        }
820
821        /**
822         * Sets the value(s) for <b>paymentStatus</b> ()
823         *
824     * <p>
825     * <b>Definition:</b>
826     * The payment status, typically paid: payment sent, cleared: payment received.
827     * </p> 
828         */
829        public PaymentNotice setPaymentStatus(CodingDt theValue) {
830                myPaymentStatus = theValue;
831                return this;
832        }
833        
834        
835
836  
837
838
839    @Override
840    public String getResourceName() {
841        return "PaymentNotice";
842    }
843    
844    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
845        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
846    }
847
848
849}