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>Account</b> Resource
282 * ()
283 *
284 * <p>
285 * <b>Definition:</b>
286 * A financial tool for tracking value accrued for a particular purpose.  In the healthcare field, used to track charges for a patient, cost centres, etc.
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/Account">http://hl7.org/fhir/profiles/Account</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="Account", profile="http://hl7.org/fhir/profiles/Account", id="account")
301public class Account 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></b><br>
309         * Type: <b>token</b><br>
310         * Path: <b>Account.identifier</b><br>
311         * </p>
312         */
313        @SearchParamDefinition(name="identifier", path="Account.identifier", description="", 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></b><br>
321         * Type: <b>token</b><br>
322         * Path: <b>Account.identifier</b><br>
323         * </p>
324         */
325        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
326
327        /**
328         * Search parameter constant for <b>name</b>
329         * <p>
330         * Description: <b></b><br>
331         * Type: <b>string</b><br>
332         * Path: <b>Account.name</b><br>
333         * </p>
334         */
335        @SearchParamDefinition(name="name", path="Account.name", description="", type="string" 
336 )
337        public static final String SP_NAME = "name";
338
339        /**
340         * <b>Fluent Client</b> search parameter constant for <b>name</b>
341         * <p>
342         * Description: <b></b><br>
343         * Type: <b>string</b><br>
344         * Path: <b>Account.name</b><br>
345         * </p>
346         */
347        public static final StringClientParam NAME = new StringClientParam(SP_NAME);
348
349        /**
350         * Search parameter constant for <b>type</b>
351         * <p>
352         * Description: <b></b><br>
353         * Type: <b>token</b><br>
354         * Path: <b>Account.type</b><br>
355         * </p>
356         */
357        @SearchParamDefinition(name="type", path="Account.type", description="", type="token" 
358 )
359        public static final String SP_TYPE = "type";
360
361        /**
362         * <b>Fluent Client</b> search parameter constant for <b>type</b>
363         * <p>
364         * Description: <b></b><br>
365         * Type: <b>token</b><br>
366         * Path: <b>Account.type</b><br>
367         * </p>
368         */
369        public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
370
371        /**
372         * Search parameter constant for <b>status</b>
373         * <p>
374         * Description: <b></b><br>
375         * Type: <b>token</b><br>
376         * Path: <b>Account.status</b><br>
377         * </p>
378         */
379        @SearchParamDefinition(name="status", path="Account.status", description="", type="token" 
380 )
381        public static final String SP_STATUS = "status";
382
383        /**
384         * <b>Fluent Client</b> search parameter constant for <b>status</b>
385         * <p>
386         * Description: <b></b><br>
387         * Type: <b>token</b><br>
388         * Path: <b>Account.status</b><br>
389         * </p>
390         */
391        public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
392
393        /**
394         * Search parameter constant for <b>balance</b>
395         * <p>
396         * Description: <b></b><br>
397         * Type: <b>quantity</b><br>
398         * Path: <b>Account.balance</b><br>
399         * </p>
400         */
401        @SearchParamDefinition(name="balance", path="Account.balance", description="", type="quantity" 
402 )
403        public static final String SP_BALANCE = "balance";
404
405        /**
406         * <b>Fluent Client</b> search parameter constant for <b>balance</b>
407         * <p>
408         * Description: <b></b><br>
409         * Type: <b>quantity</b><br>
410         * Path: <b>Account.balance</b><br>
411         * </p>
412         */
413        public static final QuantityClientParam BALANCE = new QuantityClientParam(SP_BALANCE);
414
415        /**
416         * Search parameter constant for <b>period</b>
417         * <p>
418         * Description: <b></b><br>
419         * Type: <b>date</b><br>
420         * Path: <b>Account.coveragePeriod</b><br>
421         * </p>
422         */
423        @SearchParamDefinition(name="period", path="Account.coveragePeriod", description="", type="date" 
424 )
425        public static final String SP_PERIOD = "period";
426
427        /**
428         * <b>Fluent Client</b> search parameter constant for <b>period</b>
429         * <p>
430         * Description: <b></b><br>
431         * Type: <b>date</b><br>
432         * Path: <b>Account.coveragePeriod</b><br>
433         * </p>
434         */
435        public static final DateClientParam PERIOD = new DateClientParam(SP_PERIOD);
436
437        /**
438         * Search parameter constant for <b>subject</b>
439         * <p>
440         * Description: <b></b><br>
441         * Type: <b>reference</b><br>
442         * Path: <b>Account.subject</b><br>
443         * </p>
444         */
445        @SearchParamDefinition(name="subject", path="Account.subject", description="", type="reference" 
446, providesMembershipIn={
447 @Compartment(name="Patient") ,  @Compartment(name="Encounter") ,  @Compartment(name="RelatedPerson")   }
448 )
449        public static final String SP_SUBJECT = "subject";
450
451        /**
452         * <b>Fluent Client</b> search parameter constant for <b>subject</b>
453         * <p>
454         * Description: <b></b><br>
455         * Type: <b>reference</b><br>
456         * Path: <b>Account.subject</b><br>
457         * </p>
458         */
459        public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
460
461        /**
462         * Search parameter constant for <b>owner</b>
463         * <p>
464         * Description: <b></b><br>
465         * Type: <b>reference</b><br>
466         * Path: <b>Account.owner</b><br>
467         * </p>
468         */
469        @SearchParamDefinition(name="owner", path="Account.owner", description="", type="reference" 
470, target={
471 ca.uhn.fhir.model.dstu2.resource.Organization.class    }
472 )
473        public static final String SP_OWNER = "owner";
474
475        /**
476         * <b>Fluent Client</b> search parameter constant for <b>owner</b>
477         * <p>
478         * Description: <b></b><br>
479         * Type: <b>reference</b><br>
480         * Path: <b>Account.owner</b><br>
481         * </p>
482         */
483        public static final ReferenceClientParam OWNER = new ReferenceClientParam(SP_OWNER);
484
485        /**
486         * Search parameter constant for <b>patient</b>
487         * <p>
488         * Description: <b></b><br>
489         * Type: <b>reference</b><br>
490         * Path: <b>Account.subject</b><br>
491         * </p>
492         */
493        @SearchParamDefinition(name="patient", path="Account.subject", description="", type="reference" 
494, target={
495 ca.uhn.fhir.model.dstu2.resource.Patient.class         }
496 )
497        public static final String SP_PATIENT = "patient";
498
499        /**
500         * <b>Fluent Client</b> search parameter constant for <b>patient</b>
501         * <p>
502         * Description: <b></b><br>
503         * Type: <b>reference</b><br>
504         * Path: <b>Account.subject</b><br>
505         * </p>
506         */
507        public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
508
509
510        /**
511         * Constant for fluent queries to be used to add include statements. Specifies
512         * the path value of "<b>Account:owner</b>".
513         */
514        public static final Include INCLUDE_OWNER = new Include("Account:owner");
515
516        /**
517         * Constant for fluent queries to be used to add include statements. Specifies
518         * the path value of "<b>Account:patient</b>".
519         */
520        public static final Include INCLUDE_PATIENT = new Include("Account:patient");
521
522        /**
523         * Constant for fluent queries to be used to add include statements. Specifies
524         * the path value of "<b>Account:subject</b>".
525         */
526        public static final Include INCLUDE_SUBJECT = new Include("Account:subject");
527
528
529        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)      
530        @Description(
531                shortDefinition="",
532                formalDefinition="Unique identifier used to reference the account.  May or may not be intended for human use (e.g. credit card number)"
533        )
534        private java.util.List<IdentifierDt> myIdentifier;
535        
536        @Child(name="name", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false)  
537        @Description(
538                shortDefinition="",
539                formalDefinition="Name used for the account when displaying it to humans in reports, etc."
540        )
541        private StringDt myName;
542        
543        @Child(name="type", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=false, modifier=false) 
544        @Description(
545                shortDefinition="",
546                formalDefinition="Categorizes the account for reporting and searching purposes"
547        )
548        private CodeableConceptDt myType;
549        
550        @Child(name="status", type=CodeDt.class, order=3, min=0, max=1, summary=false, modifier=true)   
551        @Description(
552                shortDefinition="",
553                formalDefinition="Indicates whether the account is presently used/useable or not"
554        )
555        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/account-status")
556        private BoundCodeDt<AccountStatusEnum> myStatus;
557        
558        @Child(name="activePeriod", type=PeriodDt.class, order=4, min=0, max=1, summary=false, modifier=false)  
559        @Description(
560                shortDefinition="",
561                formalDefinition="Indicates the period of time over which the account is allowed"
562        )
563        private PeriodDt myActivePeriod;
564        
565        @Child(name="currency", type=CodingDt.class, order=5, min=0, max=1, summary=false, modifier=false)      
566        @Description(
567                shortDefinition="",
568                formalDefinition="Identifies the currency to which transactions must be converted when crediting or debiting the account."
569        )
570        private CodingDt myCurrency;
571        
572        @Child(name="balance", type=MoneyDt.class, order=6, min=0, max=1, summary=false, modifier=false)        
573        @Description(
574                shortDefinition="",
575                formalDefinition="Represents the sum of all credits less all debits associated with the account.  Might be positive, zero or negative."
576        )
577        private MoneyDt myBalance;
578        
579        @Child(name="coveragePeriod", type=PeriodDt.class, order=7, min=0, max=1, summary=false, modifier=false)        
580        @Description(
581                shortDefinition="",
582                formalDefinition="Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc."
583        )
584        private PeriodDt myCoveragePeriod;
585        
586        @Child(name="subject", order=8, min=0, max=1, summary=false, modifier=false, type={
587                ca.uhn.fhir.model.dstu2.resource.Patient.class, 
588                ca.uhn.fhir.model.dstu2.resource.Device.class, 
589                ca.uhn.fhir.model.dstu2.resource.Practitioner.class, 
590                ca.uhn.fhir.model.dstu2.resource.Location.class, 
591                ca.uhn.fhir.model.dstu2.resource.HealthcareService.class, 
592                ca.uhn.fhir.model.dstu2.resource.Organization.class
593        })
594        @Description(
595                shortDefinition="",
596                formalDefinition="Identifies the patient, device, practitioner, location or other object the account is associated with"
597        )
598        private ResourceReferenceDt mySubject;
599        
600        @Child(name="owner", order=9, min=0, max=1, summary=false, modifier=false, type={
601                ca.uhn.fhir.model.dstu2.resource.Organization.class
602        })
603        @Description(
604                shortDefinition="",
605                formalDefinition="Indicates the organization, department, etc. with responsibility for the account."
606        )
607        private ResourceReferenceDt myOwner;
608        
609        @Child(name="description", type=StringDt.class, order=10, min=0, max=1, summary=false, modifier=false)  
610        @Description(
611                shortDefinition="",
612                formalDefinition="Provides additional information about what the account tracks and how it is used"
613        )
614        private StringDt myDescription;
615        
616
617        @Override
618        public boolean isEmpty() {
619                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myName,  myType,  myStatus,  myActivePeriod,  myCurrency,  myBalance,  myCoveragePeriod,  mySubject,  myOwner,  myDescription);
620        }
621        
622        @Override
623        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
624                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myType, myStatus, myActivePeriod, myCurrency, myBalance, myCoveragePeriod, mySubject, myOwner, myDescription);
625        }
626
627        /**
628         * Gets the value(s) for <b>identifier</b> ().
629         * creating it if it does
630         * not exist. Will not return <code>null</code>.
631         *
632     * <p>
633     * <b>Definition:</b>
634     * Unique identifier used to reference the account.  May or may not be intended for human use (e.g. credit card number)
635     * </p> 
636         */
637        public java.util.List<IdentifierDt> getIdentifier() {  
638                if (myIdentifier == null) {
639                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
640                }
641                return myIdentifier;
642        }
643
644        /**
645         * Sets the value(s) for <b>identifier</b> ()
646         *
647     * <p>
648     * <b>Definition:</b>
649     * Unique identifier used to reference the account.  May or may not be intended for human use (e.g. credit card number)
650     * </p> 
651         */
652        public Account setIdentifier(java.util.List<IdentifierDt> theValue) {
653                myIdentifier = theValue;
654                return this;
655        }
656        
657        
658
659        /**
660         * Adds and returns a new value for <b>identifier</b> ()
661         *
662     * <p>
663     * <b>Definition:</b>
664     * Unique identifier used to reference the account.  May or may not be intended for human use (e.g. credit card number)
665     * </p> 
666         */
667        public IdentifierDt addIdentifier() {
668                IdentifierDt newType = new IdentifierDt();
669                getIdentifier().add(newType);
670                return newType; 
671        }
672
673        /**
674         * Adds a given new value for <b>identifier</b> ()
675         *
676         * <p>
677         * <b>Definition:</b>
678         * Unique identifier used to reference the account.  May or may not be intended for human use (e.g. credit card number)
679         * </p>
680         * @param theValue The identifier to add (must not be <code>null</code>)
681         */
682        public Account addIdentifier(IdentifierDt theValue) {
683                if (theValue == null) {
684                        throw new NullPointerException("theValue must not be null");
685                }
686                getIdentifier().add(theValue);
687                return this;
688        }
689
690        /**
691         * Gets the first repetition for <b>identifier</b> (),
692         * creating it if it does not already exist.
693         *
694     * <p>
695     * <b>Definition:</b>
696     * Unique identifier used to reference the account.  May or may not be intended for human use (e.g. credit card number)
697     * </p> 
698         */
699        public IdentifierDt getIdentifierFirstRep() {
700                if (getIdentifier().isEmpty()) {
701                        return addIdentifier();
702                }
703                return getIdentifier().get(0); 
704        }
705  
706        /**
707         * Gets the value(s) for <b>name</b> ().
708         * creating it if it does
709         * not exist. Will not return <code>null</code>.
710         *
711     * <p>
712     * <b>Definition:</b>
713     * Name used for the account when displaying it to humans in reports, etc.
714     * </p> 
715         */
716        public StringDt getNameElement() {  
717                if (myName == null) {
718                        myName = new StringDt();
719                }
720                return myName;
721        }
722
723        
724        /**
725         * Gets the value(s) for <b>name</b> ().
726         * creating it if it does
727         * not exist. This method may return <code>null</code>.
728         *
729     * <p>
730     * <b>Definition:</b>
731     * Name used for the account when displaying it to humans in reports, etc.
732     * </p> 
733         */
734        public String getName() {  
735                return getNameElement().getValue();
736        }
737
738        /**
739         * Sets the value(s) for <b>name</b> ()
740         *
741     * <p>
742     * <b>Definition:</b>
743     * Name used for the account when displaying it to humans in reports, etc.
744     * </p> 
745         */
746        public Account setName(StringDt theValue) {
747                myName = theValue;
748                return this;
749        }
750        
751        
752
753        /**
754         * Sets the value for <b>name</b> ()
755         *
756     * <p>
757     * <b>Definition:</b>
758     * Name used for the account when displaying it to humans in reports, etc.
759     * </p> 
760         */
761        public Account setName( String theString) {
762                myName = new StringDt(theString); 
763                return this; 
764        }
765
766 
767        /**
768         * Gets the value(s) for <b>type</b> ().
769         * creating it if it does
770         * not exist. Will not return <code>null</code>.
771         *
772     * <p>
773     * <b>Definition:</b>
774     * Categorizes the account for reporting and searching purposes
775     * </p> 
776         */
777        public CodeableConceptDt getType() {  
778                if (myType == null) {
779                        myType = new CodeableConceptDt();
780                }
781                return myType;
782        }
783
784        /**
785         * Sets the value(s) for <b>type</b> ()
786         *
787     * <p>
788     * <b>Definition:</b>
789     * Categorizes the account for reporting and searching purposes
790     * </p> 
791         */
792        public Account setType(CodeableConceptDt theValue) {
793                myType = theValue;
794                return this;
795        }
796        
797        
798
799  
800        /**
801         * Gets the value(s) for <b>status</b> ().
802         * creating it if it does
803         * not exist. Will not return <code>null</code>.
804         *
805     * <p>
806     * <b>Definition:</b>
807     * Indicates whether the account is presently used/useable or not
808     * </p> 
809         */
810        public BoundCodeDt<AccountStatusEnum> getStatusElement() {  
811                if (myStatus == null) {
812                        myStatus = new BoundCodeDt<AccountStatusEnum>(AccountStatusEnum.VALUESET_BINDER);
813                }
814                return myStatus;
815        }
816
817        
818        /**
819         * Gets the value(s) for <b>status</b> ().
820         * creating it if it does
821         * not exist. This method may return <code>null</code>.
822         *
823     * <p>
824     * <b>Definition:</b>
825     * Indicates whether the account is presently used/useable or not
826     * </p> 
827         */
828        public String getStatus() {  
829                return getStatusElement().getValue();
830        }
831
832        /**
833         * Sets the value(s) for <b>status</b> ()
834         *
835     * <p>
836     * <b>Definition:</b>
837     * Indicates whether the account is presently used/useable or not
838     * </p> 
839         */
840        public Account setStatus(BoundCodeDt<AccountStatusEnum> theValue) {
841                myStatus = theValue;
842                return this;
843        }
844        
845        
846
847        /**
848         * Sets the value(s) for <b>status</b> ()
849         *
850     * <p>
851     * <b>Definition:</b>
852     * Indicates whether the account is presently used/useable or not
853     * </p> 
854         */
855        public Account setStatus(AccountStatusEnum theValue) {
856                setStatus(new BoundCodeDt<AccountStatusEnum>(AccountStatusEnum.VALUESET_BINDER, theValue));
857                
858/*
859                getStatusElement().setValueAsEnum(theValue);
860*/
861                return this;
862        }
863
864  
865        /**
866         * Gets the value(s) for <b>activePeriod</b> ().
867         * creating it if it does
868         * not exist. Will not return <code>null</code>.
869         *
870     * <p>
871     * <b>Definition:</b>
872     * Indicates the period of time over which the account is allowed
873     * </p> 
874         */
875        public PeriodDt getActivePeriod() {  
876                if (myActivePeriod == null) {
877                        myActivePeriod = new PeriodDt();
878                }
879                return myActivePeriod;
880        }
881
882        /**
883         * Sets the value(s) for <b>activePeriod</b> ()
884         *
885     * <p>
886     * <b>Definition:</b>
887     * Indicates the period of time over which the account is allowed
888     * </p> 
889         */
890        public Account setActivePeriod(PeriodDt theValue) {
891                myActivePeriod = theValue;
892                return this;
893        }
894        
895        
896
897  
898        /**
899         * Gets the value(s) for <b>currency</b> ().
900         * creating it if it does
901         * not exist. Will not return <code>null</code>.
902         *
903     * <p>
904     * <b>Definition:</b>
905     * Identifies the currency to which transactions must be converted when crediting or debiting the account.
906     * </p> 
907         */
908        public CodingDt getCurrency() {  
909                if (myCurrency == null) {
910                        myCurrency = new CodingDt();
911                }
912                return myCurrency;
913        }
914
915        /**
916         * Sets the value(s) for <b>currency</b> ()
917         *
918     * <p>
919     * <b>Definition:</b>
920     * Identifies the currency to which transactions must be converted when crediting or debiting the account.
921     * </p> 
922         */
923        public Account setCurrency(CodingDt theValue) {
924                myCurrency = theValue;
925                return this;
926        }
927        
928        
929
930  
931        /**
932         * Gets the value(s) for <b>balance</b> ().
933         * creating it if it does
934         * not exist. Will not return <code>null</code>.
935         *
936     * <p>
937     * <b>Definition:</b>
938     * Represents the sum of all credits less all debits associated with the account.  Might be positive, zero or negative.
939     * </p> 
940         */
941        public MoneyDt getBalance() {  
942                if (myBalance == null) {
943                        myBalance = new MoneyDt();
944                }
945                return myBalance;
946        }
947
948        /**
949         * Sets the value(s) for <b>balance</b> ()
950         *
951     * <p>
952     * <b>Definition:</b>
953     * Represents the sum of all credits less all debits associated with the account.  Might be positive, zero or negative.
954     * </p> 
955         */
956        public Account setBalance(MoneyDt theValue) {
957                myBalance = theValue;
958                return this;
959        }
960        
961        
962
963  
964        /**
965         * Gets the value(s) for <b>coveragePeriod</b> ().
966         * creating it if it does
967         * not exist. Will not return <code>null</code>.
968         *
969     * <p>
970     * <b>Definition:</b>
971     * Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.
972     * </p> 
973         */
974        public PeriodDt getCoveragePeriod() {  
975                if (myCoveragePeriod == null) {
976                        myCoveragePeriod = new PeriodDt();
977                }
978                return myCoveragePeriod;
979        }
980
981        /**
982         * Sets the value(s) for <b>coveragePeriod</b> ()
983         *
984     * <p>
985     * <b>Definition:</b>
986     * Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.
987     * </p> 
988         */
989        public Account setCoveragePeriod(PeriodDt theValue) {
990                myCoveragePeriod = theValue;
991                return this;
992        }
993        
994        
995
996  
997        /**
998         * Gets the value(s) for <b>subject</b> ().
999         * creating it if it does
1000         * not exist. Will not return <code>null</code>.
1001         *
1002     * <p>
1003     * <b>Definition:</b>
1004     * Identifies the patient, device, practitioner, location or other object the account is associated with
1005     * </p> 
1006         */
1007        public ResourceReferenceDt getSubject() {  
1008                if (mySubject == null) {
1009                        mySubject = new ResourceReferenceDt();
1010                }
1011                return mySubject;
1012        }
1013
1014        /**
1015         * Sets the value(s) for <b>subject</b> ()
1016         *
1017     * <p>
1018     * <b>Definition:</b>
1019     * Identifies the patient, device, practitioner, location or other object the account is associated with
1020     * </p> 
1021         */
1022        public Account setSubject(ResourceReferenceDt theValue) {
1023                mySubject = theValue;
1024                return this;
1025        }
1026        
1027        
1028
1029  
1030        /**
1031         * Gets the value(s) for <b>owner</b> ().
1032         * creating it if it does
1033         * not exist. Will not return <code>null</code>.
1034         *
1035     * <p>
1036     * <b>Definition:</b>
1037     * Indicates the organization, department, etc. with responsibility for the account.
1038     * </p> 
1039         */
1040        public ResourceReferenceDt getOwner() {  
1041                if (myOwner == null) {
1042                        myOwner = new ResourceReferenceDt();
1043                }
1044                return myOwner;
1045        }
1046
1047        /**
1048         * Sets the value(s) for <b>owner</b> ()
1049         *
1050     * <p>
1051     * <b>Definition:</b>
1052     * Indicates the organization, department, etc. with responsibility for the account.
1053     * </p> 
1054         */
1055        public Account setOwner(ResourceReferenceDt theValue) {
1056                myOwner = theValue;
1057                return this;
1058        }
1059        
1060        
1061
1062  
1063        /**
1064         * Gets the value(s) for <b>description</b> ().
1065         * creating it if it does
1066         * not exist. Will not return <code>null</code>.
1067         *
1068     * <p>
1069     * <b>Definition:</b>
1070     * Provides additional information about what the account tracks and how it is used
1071     * </p> 
1072         */
1073        public StringDt getDescriptionElement() {  
1074                if (myDescription == null) {
1075                        myDescription = new StringDt();
1076                }
1077                return myDescription;
1078        }
1079
1080        
1081        /**
1082         * Gets the value(s) for <b>description</b> ().
1083         * creating it if it does
1084         * not exist. This method may return <code>null</code>.
1085         *
1086     * <p>
1087     * <b>Definition:</b>
1088     * Provides additional information about what the account tracks and how it is used
1089     * </p> 
1090         */
1091        public String getDescription() {  
1092                return getDescriptionElement().getValue();
1093        }
1094
1095        /**
1096         * Sets the value(s) for <b>description</b> ()
1097         *
1098     * <p>
1099     * <b>Definition:</b>
1100     * Provides additional information about what the account tracks and how it is used
1101     * </p> 
1102         */
1103        public Account setDescription(StringDt theValue) {
1104                myDescription = theValue;
1105                return this;
1106        }
1107        
1108        
1109
1110        /**
1111         * Sets the value for <b>description</b> ()
1112         *
1113     * <p>
1114     * <b>Definition:</b>
1115     * Provides additional information about what the account tracks and how it is used
1116     * </p> 
1117         */
1118        public Account setDescription( String theString) {
1119                myDescription = new StringDt(theString); 
1120                return this; 
1121        }
1122
1123 
1124
1125
1126    @Override
1127    public String getResourceName() {
1128        return "Account";
1129    }
1130    
1131    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1132        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1133    }
1134
1135
1136}