001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017package ca.uhn.fhir.model.dstu2.resource;
018
019import java.math.BigDecimal;
020import java.net.URI;
021import java.util.*;
022import ca.uhn.fhir.model.api.*;
023import ca.uhn.fhir.model.api.annotation.*;
024import ca.uhn.fhir.rest.gclient.*;
025
026import ca.uhn.fhir.model.dstu2.valueset.AccountStatusEnum;
027import ca.uhn.fhir.model.dstu2.valueset.ActionListEnum;
028import ca.uhn.fhir.model.dstu2.composite.AddressDt;
029import ca.uhn.fhir.model.dstu2.valueset.AdjudicationCodesEnum;
030import ca.uhn.fhir.model.dstu2.valueset.AdjudicationErrorCodesEnum;
031import ca.uhn.fhir.model.dstu2.valueset.AdjustmentReasonCodesEnum;
032import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum;
033import ca.uhn.fhir.model.dstu2.valueset.AdmitSourceEnum;
034import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance;
035import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCategoryEnum;
036import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCertaintyEnum;
037import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceCriticalityEnum;
038import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceSeverityEnum;
039import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceStatusEnum;
040import ca.uhn.fhir.model.dstu2.valueset.AllergyIntoleranceTypeEnum;
041import ca.uhn.fhir.model.dstu2.valueset.AnimalSpeciesEnum;
042import ca.uhn.fhir.model.dstu2.composite.AnnotationDt;
043import ca.uhn.fhir.model.dstu2.valueset.AnswerFormatEnum;
044import ca.uhn.fhir.model.dstu2.resource.Appointment;
045import ca.uhn.fhir.model.dstu2.valueset.AppointmentStatusEnum;
046import ca.uhn.fhir.model.dstu2.valueset.AssertionDirectionTypeEnum;
047import ca.uhn.fhir.model.dstu2.valueset.AssertionOperatorTypeEnum;
048import ca.uhn.fhir.model.dstu2.valueset.AssertionResponseTypesEnum;
049import ca.uhn.fhir.model.dstu2.composite.AttachmentDt;
050import ca.uhn.fhir.model.dstu2.valueset.AuditEventActionEnum;
051import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectLifecycleEnum;
052import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectRoleEnum;
053import ca.uhn.fhir.model.dstu2.valueset.AuditEventObjectTypeEnum;
054import ca.uhn.fhir.model.dstu2.valueset.AuditEventOutcomeEnum;
055import ca.uhn.fhir.model.dstu2.valueset.AuditEventParticipantNetworkTypeEnum;
056import ca.uhn.fhir.model.dstu2.valueset.AuditEventSourceTypeEnum;
057import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
058import ca.uhn.fhir.model.dstu2.resource.BodySite;
059import ca.uhn.fhir.model.dstu2.valueset.BundleTypeEnum;
060import ca.uhn.fhir.model.dstu2.resource.CarePlan;
061import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityCategoryEnum;
062import ca.uhn.fhir.model.dstu2.valueset.CarePlanActivityStatusEnum;
063import ca.uhn.fhir.model.dstu2.valueset.CarePlanRelationshipEnum;
064import ca.uhn.fhir.model.dstu2.valueset.CarePlanStatusEnum;
065import ca.uhn.fhir.model.dstu2.resource.Claim;
066import ca.uhn.fhir.model.dstu2.resource.ClaimResponse;
067import ca.uhn.fhir.model.dstu2.valueset.ClaimTypeEnum;
068import ca.uhn.fhir.model.dstu2.resource.ClinicalImpression;
069import ca.uhn.fhir.model.dstu2.valueset.ClinicalImpressionStatusEnum;
070import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
071import ca.uhn.fhir.model.dstu2.composite.CodingDt;
072import ca.uhn.fhir.model.dstu2.resource.CommunicationRequest;
073import ca.uhn.fhir.model.dstu2.valueset.CommunicationRequestStatusEnum;
074import ca.uhn.fhir.model.dstu2.valueset.CommunicationStatusEnum;
075import ca.uhn.fhir.model.dstu2.resource.Composition;
076import ca.uhn.fhir.model.dstu2.valueset.CompositionAttestationModeEnum;
077import ca.uhn.fhir.model.dstu2.valueset.CompositionStatusEnum;
078import ca.uhn.fhir.model.dstu2.valueset.ConceptMapEquivalenceEnum;
079import ca.uhn.fhir.model.dstu2.resource.Condition;
080import ca.uhn.fhir.model.dstu2.valueset.ConditionCategoryCodesEnum;
081import ca.uhn.fhir.model.dstu2.valueset.ConditionClinicalStatusCodesEnum;
082import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum;
083import ca.uhn.fhir.model.dstu2.valueset.ConditionalDeleteStatusEnum;
084import ca.uhn.fhir.model.dstu2.valueset.ConditionsCodesEnum;
085import ca.uhn.fhir.model.dstu2.resource.Conformance;
086import ca.uhn.fhir.model.dstu2.valueset.ConformanceEventModeEnum;
087import ca.uhn.fhir.model.dstu2.valueset.ConformanceResourceStatusEnum;
088import ca.uhn.fhir.model.dstu2.valueset.ConformanceStatementKindEnum;
089import ca.uhn.fhir.model.dstu2.composite.ContactPointDt;
090import ca.uhn.fhir.model.dstu2.valueset.ContentTypeEnum;
091import ca.uhn.fhir.model.dstu2.resource.Contract;
092import ca.uhn.fhir.model.dstu2.valueset.ContractActionCodesEnum;
093import ca.uhn.fhir.model.dstu2.valueset.ContractActorRoleCodesEnum;
094import ca.uhn.fhir.model.dstu2.valueset.ContractSubtypeCodesEnum;
095import ca.uhn.fhir.model.dstu2.valueset.ContractTermTypeCodesEnum;
096import ca.uhn.fhir.model.dstu2.valueset.ContractTypeCodesEnum;
097import ca.uhn.fhir.model.dstu2.resource.Coverage;
098import ca.uhn.fhir.model.dstu2.valueset.DataElementStringencyEnum;
099import ca.uhn.fhir.model.dstu2.valueset.DaysOfWeekEnum;
100import ca.uhn.fhir.model.dstu2.valueset.DetectedIssueSeverityEnum;
101import ca.uhn.fhir.model.dstu2.resource.Device;
102import ca.uhn.fhir.model.dstu2.resource.DeviceComponent;
103import ca.uhn.fhir.model.dstu2.resource.DeviceMetric;
104import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationStateEnum;
105import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCalibrationTypeEnum;
106import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricCategoryEnum;
107import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricColorEnum;
108import ca.uhn.fhir.model.dstu2.valueset.DeviceMetricOperationalStatusEnum;
109import ca.uhn.fhir.model.dstu2.valueset.DeviceStatusEnum;
110import ca.uhn.fhir.model.dstu2.resource.DeviceUseRequest;
111import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestPriorityEnum;
112import ca.uhn.fhir.model.dstu2.valueset.DeviceUseRequestStatusEnum;
113import ca.uhn.fhir.model.dstu2.resource.DiagnosticOrder;
114import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderPriorityEnum;
115import ca.uhn.fhir.model.dstu2.valueset.DiagnosticOrderStatusEnum;
116import ca.uhn.fhir.model.dstu2.resource.DiagnosticReport;
117import ca.uhn.fhir.model.dstu2.valueset.DiagnosticReportStatusEnum;
118import ca.uhn.fhir.model.dstu2.valueset.DigitalMediaTypeEnum;
119import ca.uhn.fhir.model.dstu2.valueset.DocumentModeEnum;
120import ca.uhn.fhir.model.dstu2.resource.DocumentReference;
121import ca.uhn.fhir.model.dstu2.valueset.DocumentReferenceStatusEnum;
122import ca.uhn.fhir.model.dstu2.valueset.DocumentRelationshipTypeEnum;
123import ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt;
124import ca.uhn.fhir.model.dstu2.resource.EligibilityRequest;
125import ca.uhn.fhir.model.dstu2.resource.Encounter;
126import ca.uhn.fhir.model.dstu2.valueset.EncounterClassEnum;
127import ca.uhn.fhir.model.dstu2.valueset.EncounterLocationStatusEnum;
128import ca.uhn.fhir.model.dstu2.valueset.EncounterStateEnum;
129import ca.uhn.fhir.model.dstu2.valueset.EncounterTypeEnum;
130import ca.uhn.fhir.model.dstu2.resource.EnrollmentRequest;
131import ca.uhn.fhir.model.dstu2.valueset.EnteralFormulaTypeCodesEnum;
132import ca.uhn.fhir.model.dstu2.resource.EpisodeOfCare;
133import ca.uhn.fhir.model.dstu2.valueset.EpisodeOfCareStatusEnum;
134import ca.uhn.fhir.model.dstu2.valueset.ExceptionCodesEnum;
135import ca.uhn.fhir.model.dstu2.valueset.ExtensionContextEnum;
136import ca.uhn.fhir.model.dstu2.valueset.FamilyHistoryStatusEnum;
137import ca.uhn.fhir.model.dstu2.resource.FamilyMemberHistory;
138import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum;
139import ca.uhn.fhir.model.dstu2.valueset.FlagCategoryCodesEnum;
140import ca.uhn.fhir.model.dstu2.valueset.FlagStatusEnum;
141import ca.uhn.fhir.model.dstu2.valueset.FluidConsistencyTypeCodesEnum;
142import ca.uhn.fhir.model.dstu2.resource.Goal;
143import ca.uhn.fhir.model.dstu2.valueset.GoalCategoryEnum;
144import ca.uhn.fhir.model.dstu2.valueset.GoalPriorityEnum;
145import ca.uhn.fhir.model.dstu2.valueset.GoalStartEventEnum;
146import ca.uhn.fhir.model.dstu2.valueset.GoalStatusEnum;
147import ca.uhn.fhir.model.dstu2.valueset.GoalStatusReasonEnum;
148import ca.uhn.fhir.model.dstu2.resource.Group;
149import ca.uhn.fhir.model.dstu2.valueset.GroupTypeEnum;
150import ca.uhn.fhir.model.dstu2.valueset.GuideDependencyTypeEnum;
151import ca.uhn.fhir.model.dstu2.valueset.GuidePageKindEnum;
152import ca.uhn.fhir.model.dstu2.valueset.GuideResourcePurposeEnum;
153import ca.uhn.fhir.model.dstu2.valueset.HTTPVerbEnum;
154import ca.uhn.fhir.model.dstu2.resource.HealthcareService;
155import ca.uhn.fhir.model.dstu2.composite.HumanNameDt;
156import ca.uhn.fhir.model.dstu2.composite.IdentifierDt;
157import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
158import ca.uhn.fhir.model.dstu2.valueset.IdentityAssuranceLevelEnum;
159import ca.uhn.fhir.model.dstu2.resource.ImagingObjectSelection;
160import ca.uhn.fhir.model.dstu2.resource.ImagingStudy;
161import ca.uhn.fhir.model.dstu2.resource.Immunization;
162import ca.uhn.fhir.model.dstu2.valueset.ImmunizationReasonCodesEnum;
163import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
164import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRecommendationStatusCodesEnum;
165import ca.uhn.fhir.model.dstu2.valueset.ImmunizationRouteCodesEnum;
166import ca.uhn.fhir.model.dstu2.valueset.InstanceAvailabilityEnum;
167import ca.uhn.fhir.model.dstu2.valueset.InterventionCodesEnum;
168import ca.uhn.fhir.model.dstu2.valueset.IssueSeverityEnum;
169import ca.uhn.fhir.model.dstu2.valueset.IssueTypeEnum;
170import ca.uhn.fhir.model.dstu2.valueset.KOStitleEnum;
171import ca.uhn.fhir.model.dstu2.valueset.LateralityEnum;
172import ca.uhn.fhir.model.dstu2.valueset.LinkTypeEnum;
173import ca.uhn.fhir.model.dstu2.valueset.ListModeEnum;
174import ca.uhn.fhir.model.dstu2.valueset.ListOrderCodesEnum;
175import ca.uhn.fhir.model.dstu2.valueset.ListStatusEnum;
176import ca.uhn.fhir.model.dstu2.resource.Location;
177import ca.uhn.fhir.model.dstu2.valueset.LocationModeEnum;
178import ca.uhn.fhir.model.dstu2.valueset.LocationStatusEnum;
179import ca.uhn.fhir.model.dstu2.valueset.LocationTypeEnum;
180import ca.uhn.fhir.model.dstu2.valueset.MaritalStatusCodesEnum;
181import ca.uhn.fhir.model.dstu2.valueset.MeasmntPrincipleEnum;
182import ca.uhn.fhir.model.dstu2.resource.Media;
183import ca.uhn.fhir.model.dstu2.resource.Medication;
184import ca.uhn.fhir.model.dstu2.valueset.MedicationAdministrationStatusEnum;
185import ca.uhn.fhir.model.dstu2.valueset.MedicationDispenseStatusEnum;
186import ca.uhn.fhir.model.dstu2.resource.MedicationOrder;
187import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum;
188import ca.uhn.fhir.model.dstu2.resource.MedicationStatement;
189import ca.uhn.fhir.model.dstu2.valueset.MedicationStatementStatusEnum;
190import ca.uhn.fhir.model.dstu2.valueset.MessageEventEnum;
191import ca.uhn.fhir.model.dstu2.valueset.MessageSignificanceCategoryEnum;
192import ca.uhn.fhir.model.dstu2.valueset.MessageTransportEnum;
193import ca.uhn.fhir.model.dstu2.resource.NamingSystem;
194import ca.uhn.fhir.model.dstu2.valueset.NamingSystemIdentifierTypeEnum;
195import ca.uhn.fhir.model.dstu2.valueset.NamingSystemTypeEnum;
196import ca.uhn.fhir.model.dstu2.valueset.NoteTypeEnum;
197import ca.uhn.fhir.model.dstu2.valueset.NutrientModifierCodesEnum;
198import ca.uhn.fhir.model.dstu2.resource.NutritionOrder;
199import ca.uhn.fhir.model.dstu2.valueset.NutritionOrderStatusEnum;
200import ca.uhn.fhir.model.dstu2.resource.Observation;
201import ca.uhn.fhir.model.dstu2.valueset.ObservationCategoryCodesEnum;
202import ca.uhn.fhir.model.dstu2.valueset.ObservationRelationshipTypeEnum;
203import ca.uhn.fhir.model.dstu2.valueset.ObservationStatusEnum;
204import ca.uhn.fhir.model.dstu2.resource.OperationDefinition;
205import ca.uhn.fhir.model.dstu2.valueset.OperationKindEnum;
206import ca.uhn.fhir.model.dstu2.resource.OperationOutcome;
207import ca.uhn.fhir.model.dstu2.valueset.OperationParameterUseEnum;
208import ca.uhn.fhir.model.dstu2.resource.Order;
209import ca.uhn.fhir.model.dstu2.valueset.OrderStatusEnum;
210import ca.uhn.fhir.model.dstu2.resource.Organization;
211import ca.uhn.fhir.model.dstu2.valueset.OrganizationTypeEnum;
212import ca.uhn.fhir.model.dstu2.valueset.ParticipantRequiredEnum;
213import ca.uhn.fhir.model.dstu2.valueset.ParticipantStatusEnum;
214import ca.uhn.fhir.model.dstu2.valueset.ParticipantTypeEnum;
215import ca.uhn.fhir.model.dstu2.valueset.ParticipationStatusEnum;
216import ca.uhn.fhir.model.dstu2.resource.Patient;
217import ca.uhn.fhir.model.dstu2.valueset.PayeeTypeCodesEnum;
218import ca.uhn.fhir.model.dstu2.valueset.PaymentStatusCodesEnum;
219import ca.uhn.fhir.model.dstu2.valueset.PaymentTypeCodesEnum;
220import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
221import ca.uhn.fhir.model.dstu2.resource.Person;
222import ca.uhn.fhir.model.dstu2.resource.Practitioner;
223import ca.uhn.fhir.model.dstu2.valueset.PractitionerRoleEnum;
224import ca.uhn.fhir.model.dstu2.valueset.PractitionerSpecialtyEnum;
225import ca.uhn.fhir.model.dstu2.valueset.PriorityCodesEnum;
226import ca.uhn.fhir.model.dstu2.resource.Procedure;
227import ca.uhn.fhir.model.dstu2.resource.ProcedureRequest;
228import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestPriorityEnum;
229import ca.uhn.fhir.model.dstu2.valueset.ProcedureRequestStatusEnum;
230import ca.uhn.fhir.model.dstu2.valueset.ProcedureStatusEnum;
231import ca.uhn.fhir.model.dstu2.resource.ProcessRequest;
232import ca.uhn.fhir.model.dstu2.valueset.ProvenanceEntityRoleEnum;
233import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
234import ca.uhn.fhir.model.dstu2.resource.Questionnaire;
235import ca.uhn.fhir.model.dstu2.resource.QuestionnaireResponse;
236import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireResponseStatusEnum;
237import ca.uhn.fhir.model.dstu2.valueset.QuestionnaireStatusEnum;
238import ca.uhn.fhir.model.dstu2.composite.RangeDt;
239import ca.uhn.fhir.model.dstu2.composite.RatioDt;
240import ca.uhn.fhir.model.dstu2.valueset.ReferralMethodEnum;
241import ca.uhn.fhir.model.dstu2.resource.ReferralRequest;
242import ca.uhn.fhir.model.dstu2.valueset.ReferralStatusEnum;
243import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
244import ca.uhn.fhir.model.dstu2.valueset.RemittanceOutcomeEnum;
245import ca.uhn.fhir.model.dstu2.valueset.ResourceTypeEnum;
246import ca.uhn.fhir.model.dstu2.valueset.ResourceVersionPolicyEnum;
247import ca.uhn.fhir.model.dstu2.valueset.ResponseTypeEnum;
248import ca.uhn.fhir.model.dstu2.valueset.RestfulConformanceModeEnum;
249import ca.uhn.fhir.model.dstu2.valueset.RestfulSecurityServiceEnum;
250import ca.uhn.fhir.model.dstu2.resource.RiskAssessment;
251import ca.uhn.fhir.model.dstu2.valueset.RulesetCodesEnum;
252import ca.uhn.fhir.model.dstu2.composite.SampledDataDt;
253import ca.uhn.fhir.model.dstu2.resource.Schedule;
254import ca.uhn.fhir.model.dstu2.valueset.SearchEntryModeEnum;
255import ca.uhn.fhir.model.dstu2.valueset.SearchModifierCodeEnum;
256import ca.uhn.fhir.model.dstu2.valueset.SearchParamTypeEnum;
257import ca.uhn.fhir.model.dstu2.valueset.ServiceProvisionConditionsEnum;
258import ca.uhn.fhir.model.dstu2.composite.SignatureDt;
259import ca.uhn.fhir.model.dstu2.resource.Slot;
260import ca.uhn.fhir.model.dstu2.valueset.SlotStatusEnum;
261import ca.uhn.fhir.model.dstu2.resource.Specimen;
262import ca.uhn.fhir.model.dstu2.valueset.SpecimenCollectionMethodEnum;
263import ca.uhn.fhir.model.dstu2.valueset.SpecimenStatusEnum;
264import ca.uhn.fhir.model.dstu2.resource.StructureDefinition;
265import ca.uhn.fhir.model.dstu2.valueset.StructureDefinitionKindEnum;
266import ca.uhn.fhir.model.dstu2.valueset.SubscriptionChannelTypeEnum;
267import ca.uhn.fhir.model.dstu2.valueset.SubscriptionStatusEnum;
268import ca.uhn.fhir.model.dstu2.valueset.SubscriptionTagEnum;
269import ca.uhn.fhir.model.dstu2.resource.Substance;
270import ca.uhn.fhir.model.dstu2.valueset.SubstanceCategoryCodesEnum;
271import ca.uhn.fhir.model.dstu2.valueset.SupplementTypeCodesEnum;
272import ca.uhn.fhir.model.dstu2.valueset.SupplyDeliveryStatusEnum;
273import ca.uhn.fhir.model.dstu2.resource.SupplyRequest;
274import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestReasonEnum;
275import ca.uhn.fhir.model.dstu2.valueset.SupplyRequestStatusEnum;
276import ca.uhn.fhir.model.dstu2.valueset.SurfaceCodesEnum;
277import ca.uhn.fhir.model.dstu2.valueset.SystemRestfulInteractionEnum;
278import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
279import ca.uhn.fhir.model.dstu2.valueset.TextureModifiedFoodTypeCodesEnum;
280import ca.uhn.fhir.model.dstu2.valueset.TextureModifierCodesEnum;
281import ca.uhn.fhir.model.dstu2.composite.TimingDt;
282import ca.uhn.fhir.model.dstu2.valueset.TransactionModeEnum;
283import ca.uhn.fhir.model.dstu2.valueset.TypeRestfulInteractionEnum;
284import ca.uhn.fhir.model.dstu2.valueset.UDICodesEnum;
285import ca.uhn.fhir.model.dstu2.valueset.UnknownContentCodeEnum;
286import ca.uhn.fhir.model.dstu2.valueset.UseEnum;
287import ca.uhn.fhir.model.dstu2.resource.ValueSet;
288import ca.uhn.fhir.model.dstu2.valueset.VisionBaseEnum;
289import ca.uhn.fhir.model.dstu2.valueset.VisionEyesEnum;
290import ca.uhn.fhir.model.dstu2.resource.VisionPrescription;
291import ca.uhn.fhir.model.dstu2.valueset.XPathUsageTypeEnum;
292import ca.uhn.fhir.model.api.IResource;
293import ca.uhn.fhir.model.dstu2.composite.AgeDt;
294import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
295import ca.uhn.fhir.model.dstu2.composite.DurationDt;
296import ca.uhn.fhir.model.dstu2.composite.MoneyDt;
297import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
298import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
299import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
300import ca.uhn.fhir.model.primitive.Base64BinaryDt;
301import ca.uhn.fhir.model.primitive.BooleanDt;
302import ca.uhn.fhir.model.primitive.BoundCodeDt;
303import ca.uhn.fhir.model.primitive.CodeDt;
304import ca.uhn.fhir.model.primitive.DateDt;
305import ca.uhn.fhir.model.primitive.DateTimeDt;
306import ca.uhn.fhir.model.primitive.DecimalDt;
307import ca.uhn.fhir.model.primitive.IdDt;
308import ca.uhn.fhir.model.primitive.InstantDt;
309import ca.uhn.fhir.model.primitive.IntegerDt;
310import ca.uhn.fhir.model.primitive.OidDt;
311import ca.uhn.fhir.model.primitive.PositiveIntDt;
312import ca.uhn.fhir.model.primitive.StringDt;
313import ca.uhn.fhir.model.primitive.TimeDt;
314import ca.uhn.fhir.model.primitive.UnsignedIntDt;
315import ca.uhn.fhir.model.primitive.UriDt;
316
317
318/**
319 * HAPI/FHIR <b>VisionPrescription</b> Resource
320 * ()
321 *
322 * <p>
323 * <b>Definition:</b>
324 * An authorization for the supply of glasses and/or contact lenses to a patient.
325 * </p> 
326 *
327 * <p>
328 * <b>Requirements:</b>
329 * 
330 * </p> 
331 *
332 * <p>
333 * <b>Profile Definition:</b>
334 * <a href="http://hl7.org/fhir/profiles/VisionPrescription">http://hl7.org/fhir/profiles/VisionPrescription</a> 
335 * </p>
336 *
337 */
338@ResourceDef(name="VisionPrescription", profile="http://hl7.org/fhir/profiles/VisionPrescription", id="visionprescription")
339public class VisionPrescription extends ca.uhn.fhir.model.dstu2.resource.BaseResource
340    implements  IResource     {
341
342        /**
343         * Search parameter constant for <b>datewritten</b>
344         * <p>
345         * Description: <b>Return prescriptions written on this date</b><br>
346         * Type: <b>date</b><br>
347         * Path: <b>VisionPrescription.dateWritten</b><br>
348         * </p>
349         */
350        @SearchParamDefinition(name="datewritten", path="VisionPrescription.dateWritten", description="Return prescriptions written on this date", type="date"  )
351        public static final String SP_DATEWRITTEN = "datewritten";
352
353        /**
354         * <b>Fluent Client</b> search parameter constant for <b>datewritten</b>
355         * <p>
356         * Description: <b>Return prescriptions written on this date</b><br>
357         * Type: <b>date</b><br>
358         * Path: <b>VisionPrescription.dateWritten</b><br>
359         * </p>
360         */
361        public static final DateClientParam DATEWRITTEN = new DateClientParam(SP_DATEWRITTEN);
362
363        /**
364         * Search parameter constant for <b>encounter</b>
365         * <p>
366         * Description: <b>Return prescriptions with this encounter identifier</b><br>
367         * Type: <b>reference</b><br>
368         * Path: <b>VisionPrescription.encounter</b><br>
369         * </p>
370         */
371        @SearchParamDefinition(name="encounter", path="VisionPrescription.encounter", description="Return prescriptions with this encounter identifier", type="reference"  )
372        public static final String SP_ENCOUNTER = "encounter";
373
374        /**
375         * <b>Fluent Client</b> search parameter constant for <b>encounter</b>
376         * <p>
377         * Description: <b>Return prescriptions with this encounter identifier</b><br>
378         * Type: <b>reference</b><br>
379         * Path: <b>VisionPrescription.encounter</b><br>
380         * </p>
381         */
382        public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER);
383
384        /**
385         * Search parameter constant for <b>identifier</b>
386         * <p>
387         * Description: <b>Return prescriptions with this external identifier</b><br>
388         * Type: <b>token</b><br>
389         * Path: <b>VisionPrescription.identifier</b><br>
390         * </p>
391         */
392        @SearchParamDefinition(name="identifier", path="VisionPrescription.identifier", description="Return prescriptions with this external identifier", type="token"  )
393        public static final String SP_IDENTIFIER = "identifier";
394
395        /**
396         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
397         * <p>
398         * Description: <b>Return prescriptions with this external identifier</b><br>
399         * Type: <b>token</b><br>
400         * Path: <b>VisionPrescription.identifier</b><br>
401         * </p>
402         */
403        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
404
405        /**
406         * Search parameter constant for <b>patient</b>
407         * <p>
408         * Description: <b>The identity of a patient to list dispenses for</b><br>
409         * Type: <b>reference</b><br>
410         * Path: <b>VisionPrescription.patient</b><br>
411         * </p>
412         */
413        @SearchParamDefinition(name="patient", path="VisionPrescription.patient", description="The identity of a patient to list dispenses for", type="reference"  )
414        public static final String SP_PATIENT = "patient";
415
416        /**
417         * <b>Fluent Client</b> search parameter constant for <b>patient</b>
418         * <p>
419         * Description: <b>The identity of a patient to list dispenses for</b><br>
420         * Type: <b>reference</b><br>
421         * Path: <b>VisionPrescription.patient</b><br>
422         * </p>
423         */
424        public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
425
426        /**
427         * Search parameter constant for <b>prescriber</b>
428         * <p>
429         * Description: <b></b><br>
430         * Type: <b>reference</b><br>
431         * Path: <b>VisionPrescription.prescriber</b><br>
432         * </p>
433         */
434        @SearchParamDefinition(name="prescriber", path="VisionPrescription.prescriber", description="", type="reference"  )
435        public static final String SP_PRESCRIBER = "prescriber";
436
437        /**
438         * <b>Fluent Client</b> search parameter constant for <b>prescriber</b>
439         * <p>
440         * Description: <b></b><br>
441         * Type: <b>reference</b><br>
442         * Path: <b>VisionPrescription.prescriber</b><br>
443         * </p>
444         */
445        public static final ReferenceClientParam PRESCRIBER = new ReferenceClientParam(SP_PRESCRIBER);
446
447
448        /**
449         * Constant for fluent queries to be used to add include statements. Specifies
450         * the path value of "<b>VisionPrescription:encounter</b>".
451         */
452        public static final Include INCLUDE_ENCOUNTER = new Include("VisionPrescription:encounter");
453
454        /**
455         * Constant for fluent queries to be used to add include statements. Specifies
456         * the path value of "<b>VisionPrescription:patient</b>".
457         */
458        public static final Include INCLUDE_PATIENT = new Include("VisionPrescription:patient");
459
460        /**
461         * Constant for fluent queries to be used to add include statements. Specifies
462         * the path value of "<b>VisionPrescription:prescriber</b>".
463         */
464        public static final Include INCLUDE_PRESCRIBER = new Include("VisionPrescription:prescriber");
465
466
467        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)      
468        @Description(
469                shortDefinition="",
470                formalDefinition="Business identifier which may be used by other parties to reference or identify the prescription."
471        )
472        private java.util.List<IdentifierDt> myIdentifier;
473        
474        @Child(name="dateWritten", type=DateTimeDt.class, order=1, min=0, max=1, summary=false, modifier=false) 
475        @Description(
476                shortDefinition="",
477                formalDefinition="The date (and perhaps time) when the prescription was written"
478        )
479        private DateTimeDt myDateWritten;
480        
481        @Child(name="patient", order=2, min=0, max=1, summary=false, modifier=false, type={
482                ca.uhn.fhir.model.dstu2.resource.Patient.class  })
483        @Description(
484                shortDefinition="",
485                formalDefinition="A link to a resource representing the person to whom the vision products will be supplied."
486        )
487        private ResourceReferenceDt myPatient;
488        
489        @Child(name="prescriber", order=3, min=0, max=1, summary=false, modifier=false, type={
490                ca.uhn.fhir.model.dstu2.resource.Practitioner.class     })
491        @Description(
492                shortDefinition="",
493                formalDefinition="The healthcare professional responsible for authorizing the prescription"
494        )
495        private ResourceReferenceDt myPrescriber;
496        
497        @Child(name="encounter", order=4, min=0, max=1, summary=false, modifier=false, type={
498                ca.uhn.fhir.model.dstu2.resource.Encounter.class        })
499        @Description(
500                shortDefinition="",
501                formalDefinition="A link to a resource that identifies the particular occurrence of contact between patient and health care provider."
502        )
503        private ResourceReferenceDt myEncounter;
504        
505        @Child(name="reason", order=5, min=0, max=1, summary=false, modifier=false, type={
506                CodeableConceptDt.class,                Condition.class })
507        @Description(
508                shortDefinition="",
509                formalDefinition="Can be the reason or the indication for writing the prescription."
510        )
511        private IDatatype myReason;
512        
513        @Child(name="dispense", order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 
514        @Description(
515                shortDefinition="",
516                formalDefinition="Deals with details of the dispense part of the supply specification."
517        )
518        private java.util.List<Dispense> myDispense;
519        
520
521        @Override
522        public boolean isEmpty() {
523                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myDateWritten,  myPatient,  myPrescriber,  myEncounter,  myReason,  myDispense);
524        }
525        
526        @Override
527        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
528                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDateWritten, myPatient, myPrescriber, myEncounter, myReason, myDispense);
529        }
530
531        /**
532         * Gets the value(s) for <b>identifier</b> ().
533         * creating it if it does
534         * not exist. Will not return <code>null</code>.
535         *
536     * <p>
537     * <b>Definition:</b>
538     * Business identifier which may be used by other parties to reference or identify the prescription.
539     * </p> 
540         */
541        public java.util.List<IdentifierDt> getIdentifier() {  
542                if (myIdentifier == null) {
543                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
544                }
545                return myIdentifier;
546        }
547
548        /**
549         * Sets the value(s) for <b>identifier</b> ()
550         *
551     * <p>
552     * <b>Definition:</b>
553     * Business identifier which may be used by other parties to reference or identify the prescription.
554     * </p> 
555         */
556        public VisionPrescription setIdentifier(java.util.List<IdentifierDt> theValue) {
557                myIdentifier = theValue;
558                return this;
559        }
560        
561        
562
563        /**
564         * Adds and returns a new value for <b>identifier</b> ()
565         *
566     * <p>
567     * <b>Definition:</b>
568     * Business identifier which may be used by other parties to reference or identify the prescription.
569     * </p> 
570         */
571        public IdentifierDt addIdentifier() {
572                IdentifierDt newType = new IdentifierDt();
573                getIdentifier().add(newType);
574                return newType; 
575        }
576
577        /**
578         * Adds a given new value for <b>identifier</b> ()
579         *
580         * <p>
581         * <b>Definition:</b>
582         * Business identifier which may be used by other parties to reference or identify the prescription.
583         * </p>
584         * @param theValue The identifier to add (must not be <code>null</code>)
585         */
586        public VisionPrescription addIdentifier(IdentifierDt theValue) {
587                if (theValue == null) {
588                        throw new NullPointerException("theValue must not be null");
589                }
590                getIdentifier().add(theValue);
591                return this;
592        }
593
594        /**
595         * Gets the first repetition for <b>identifier</b> (),
596         * creating it if it does not already exist.
597         *
598     * <p>
599     * <b>Definition:</b>
600     * Business identifier which may be used by other parties to reference or identify the prescription.
601     * </p> 
602         */
603        public IdentifierDt getIdentifierFirstRep() {
604                if (getIdentifier().isEmpty()) {
605                        return addIdentifier();
606                }
607                return getIdentifier().get(0); 
608        }
609  
610        /**
611         * Gets the value(s) for <b>dateWritten</b> ().
612         * creating it if it does
613         * not exist. Will not return <code>null</code>.
614         *
615     * <p>
616     * <b>Definition:</b>
617     * The date (and perhaps time) when the prescription was written
618     * </p> 
619         */
620        public DateTimeDt getDateWrittenElement() {  
621                if (myDateWritten == null) {
622                        myDateWritten = new DateTimeDt();
623                }
624                return myDateWritten;
625        }
626
627        
628        /**
629         * Gets the value(s) for <b>dateWritten</b> ().
630         * creating it if it does
631         * not exist. Will not return <code>null</code>.
632         *
633     * <p>
634     * <b>Definition:</b>
635     * The date (and perhaps time) when the prescription was written
636     * </p> 
637         */
638        public Date getDateWritten() {  
639                return getDateWrittenElement().getValue();
640        }
641
642        /**
643         * Sets the value(s) for <b>dateWritten</b> ()
644         *
645     * <p>
646     * <b>Definition:</b>
647     * The date (and perhaps time) when the prescription was written
648     * </p> 
649         */
650        public VisionPrescription setDateWritten(DateTimeDt theValue) {
651                myDateWritten = theValue;
652                return this;
653        }
654        
655        
656
657        /**
658         * Sets the value for <b>dateWritten</b> ()
659         *
660     * <p>
661     * <b>Definition:</b>
662     * The date (and perhaps time) when the prescription was written
663     * </p> 
664         */
665        public VisionPrescription setDateWritten( Date theDate,  TemporalPrecisionEnum thePrecision) {
666                myDateWritten = new DateTimeDt(theDate, thePrecision); 
667                return this; 
668        }
669
670        /**
671         * Sets the value for <b>dateWritten</b> ()
672         *
673     * <p>
674     * <b>Definition:</b>
675     * The date (and perhaps time) when the prescription was written
676     * </p> 
677         */
678        public VisionPrescription setDateWrittenWithSecondsPrecision( Date theDate) {
679                myDateWritten = new DateTimeDt(theDate); 
680                return this; 
681        }
682
683 
684        /**
685         * Gets the value(s) for <b>patient</b> ().
686         * creating it if it does
687         * not exist. Will not return <code>null</code>.
688         *
689     * <p>
690     * <b>Definition:</b>
691     * A link to a resource representing the person to whom the vision products will be supplied.
692     * </p> 
693         */
694        public ResourceReferenceDt getPatient() {  
695                if (myPatient == null) {
696                        myPatient = new ResourceReferenceDt();
697                }
698                return myPatient;
699        }
700
701        /**
702         * Sets the value(s) for <b>patient</b> ()
703         *
704     * <p>
705     * <b>Definition:</b>
706     * A link to a resource representing the person to whom the vision products will be supplied.
707     * </p> 
708         */
709        public VisionPrescription setPatient(ResourceReferenceDt theValue) {
710                myPatient = theValue;
711                return this;
712        }
713        
714        
715
716  
717        /**
718         * Gets the value(s) for <b>prescriber</b> ().
719         * creating it if it does
720         * not exist. Will not return <code>null</code>.
721         *
722     * <p>
723     * <b>Definition:</b>
724     * The healthcare professional responsible for authorizing the prescription
725     * </p> 
726         */
727        public ResourceReferenceDt getPrescriber() {  
728                if (myPrescriber == null) {
729                        myPrescriber = new ResourceReferenceDt();
730                }
731                return myPrescriber;
732        }
733
734        /**
735         * Sets the value(s) for <b>prescriber</b> ()
736         *
737     * <p>
738     * <b>Definition:</b>
739     * The healthcare professional responsible for authorizing the prescription
740     * </p> 
741         */
742        public VisionPrescription setPrescriber(ResourceReferenceDt theValue) {
743                myPrescriber = theValue;
744                return this;
745        }
746        
747        
748
749  
750        /**
751         * Gets the value(s) for <b>encounter</b> ().
752         * creating it if it does
753         * not exist. Will not return <code>null</code>.
754         *
755     * <p>
756     * <b>Definition:</b>
757     * A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
758     * </p> 
759         */
760        public ResourceReferenceDt getEncounter() {  
761                if (myEncounter == null) {
762                        myEncounter = new ResourceReferenceDt();
763                }
764                return myEncounter;
765        }
766
767        /**
768         * Sets the value(s) for <b>encounter</b> ()
769         *
770     * <p>
771     * <b>Definition:</b>
772     * A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
773     * </p> 
774         */
775        public VisionPrescription setEncounter(ResourceReferenceDt theValue) {
776                myEncounter = theValue;
777                return this;
778        }
779        
780        
781
782  
783        /**
784         * Gets the value(s) for <b>reason[x]</b> ().
785         * creating it if it does
786         * not exist. Will not return <code>null</code>.
787         *
788     * <p>
789     * <b>Definition:</b>
790     * Can be the reason or the indication for writing the prescription.
791     * </p> 
792         */
793        public IDatatype getReason() {  
794                return myReason;
795        }
796
797        /**
798         * Sets the value(s) for <b>reason[x]</b> ()
799         *
800     * <p>
801     * <b>Definition:</b>
802     * Can be the reason or the indication for writing the prescription.
803     * </p> 
804         */
805        public VisionPrescription setReason(IDatatype theValue) {
806                myReason = theValue;
807                return this;
808        }
809        
810        
811
812  
813        /**
814         * Gets the value(s) for <b>dispense</b> ().
815         * creating it if it does
816         * not exist. Will not return <code>null</code>.
817         *
818     * <p>
819     * <b>Definition:</b>
820     * Deals with details of the dispense part of the supply specification.
821     * </p> 
822         */
823        public java.util.List<Dispense> getDispense() {  
824                if (myDispense == null) {
825                        myDispense = new java.util.ArrayList<Dispense>();
826                }
827                return myDispense;
828        }
829
830        /**
831         * Sets the value(s) for <b>dispense</b> ()
832         *
833     * <p>
834     * <b>Definition:</b>
835     * Deals with details of the dispense part of the supply specification.
836     * </p> 
837         */
838        public VisionPrescription setDispense(java.util.List<Dispense> theValue) {
839                myDispense = theValue;
840                return this;
841        }
842        
843        
844
845        /**
846         * Adds and returns a new value for <b>dispense</b> ()
847         *
848     * <p>
849     * <b>Definition:</b>
850     * Deals with details of the dispense part of the supply specification.
851     * </p> 
852         */
853        public Dispense addDispense() {
854                Dispense newType = new Dispense();
855                getDispense().add(newType);
856                return newType; 
857        }
858
859        /**
860         * Adds a given new value for <b>dispense</b> ()
861         *
862         * <p>
863         * <b>Definition:</b>
864         * Deals with details of the dispense part of the supply specification.
865         * </p>
866         * @param theValue The dispense to add (must not be <code>null</code>)
867         */
868        public VisionPrescription addDispense(Dispense theValue) {
869                if (theValue == null) {
870                        throw new NullPointerException("theValue must not be null");
871                }
872                getDispense().add(theValue);
873                return this;
874        }
875
876        /**
877         * Gets the first repetition for <b>dispense</b> (),
878         * creating it if it does not already exist.
879         *
880     * <p>
881     * <b>Definition:</b>
882     * Deals with details of the dispense part of the supply specification.
883     * </p> 
884         */
885        public Dispense getDispenseFirstRep() {
886                if (getDispense().isEmpty()) {
887                        return addDispense();
888                }
889                return getDispense().get(0); 
890        }
891  
892        /**
893         * Block class for child element: <b>VisionPrescription.dispense</b> ()
894         *
895     * <p>
896     * <b>Definition:</b>
897     * Deals with details of the dispense part of the supply specification.
898     * </p> 
899         */
900        @Block()        
901        public static class Dispense 
902            extends  BaseIdentifiableElement        implements IResourceBlock {
903        
904        @Child(name="product", type=CodingDt.class, order=0, min=1, max=1, summary=false, modifier=false)       
905        @Description(
906                shortDefinition="",
907                formalDefinition="Identifies the type of vision correction product which is required for the patient."
908        )
909        private CodingDt myProduct;
910        
911        @Child(name="eye", type=CodeDt.class, order=1, min=0, max=1, summary=false, modifier=false)     
912        @Description(
913                shortDefinition="",
914                formalDefinition="The eye for which the lens applies."
915        )
916        private BoundCodeDt<VisionEyesEnum> myEye;
917        
918        @Child(name="sphere", type=DecimalDt.class, order=2, min=0, max=1, summary=false, modifier=false)       
919        @Description(
920                shortDefinition="",
921                formalDefinition="Lens power measured in diopters (0.25 units)."
922        )
923        private DecimalDt mySphere;
924        
925        @Child(name="cylinder", type=DecimalDt.class, order=3, min=0, max=1, summary=false, modifier=false)     
926        @Description(
927                shortDefinition="",
928                formalDefinition="Power adjustment for astigmatism measured in diopters (0.25 units)."
929        )
930        private DecimalDt myCylinder;
931        
932        @Child(name="axis", type=IntegerDt.class, order=4, min=0, max=1, summary=false, modifier=false) 
933        @Description(
934                shortDefinition="",
935                formalDefinition="Adjustment for astigmatism measured in integer degrees."
936        )
937        private IntegerDt myAxis;
938        
939        @Child(name="prism", type=DecimalDt.class, order=5, min=0, max=1, summary=false, modifier=false)        
940        @Description(
941                shortDefinition="",
942                formalDefinition="Amount of prism to compensate for eye alignment in fractional units."
943        )
944        private DecimalDt myPrism;
945        
946        @Child(name="base", type=CodeDt.class, order=6, min=0, max=1, summary=false, modifier=false)    
947        @Description(
948                shortDefinition="",
949                formalDefinition="The relative base, or reference lens edge, for the prism."
950        )
951        private BoundCodeDt<VisionBaseEnum> myBase;
952        
953        @Child(name="add", type=DecimalDt.class, order=7, min=0, max=1, summary=false, modifier=false)  
954        @Description(
955                shortDefinition="",
956                formalDefinition="Power adjustment for multifocal lenses measured in diopters (0.25 units)."
957        )
958        private DecimalDt myAdd;
959        
960        @Child(name="power", type=DecimalDt.class, order=8, min=0, max=1, summary=false, modifier=false)        
961        @Description(
962                shortDefinition="",
963                formalDefinition="Contact lens power measured in diopters (0.25 units)."
964        )
965        private DecimalDt myPower;
966        
967        @Child(name="backCurve", type=DecimalDt.class, order=9, min=0, max=1, summary=false, modifier=false)    
968        @Description(
969                shortDefinition="",
970                formalDefinition="Back curvature measured in millimeters."
971        )
972        private DecimalDt myBackCurve;
973        
974        @Child(name="diameter", type=DecimalDt.class, order=10, min=0, max=1, summary=false, modifier=false)    
975        @Description(
976                shortDefinition="",
977                formalDefinition="Contact lens diameter measured in millimeters."
978        )
979        private DecimalDt myDiameter;
980        
981        @Child(name="duration", type=SimpleQuantityDt.class, order=11, min=0, max=1, summary=false, modifier=false)     
982        @Description(
983                shortDefinition="",
984                formalDefinition="The recommended maximum wear period for the lens."
985        )
986        private SimpleQuantityDt myDuration;
987        
988        @Child(name="color", type=StringDt.class, order=12, min=0, max=1, summary=false, modifier=false)        
989        @Description(
990                shortDefinition="",
991                formalDefinition="Special color or pattern."
992        )
993        private StringDt myColor;
994        
995        @Child(name="brand", type=StringDt.class, order=13, min=0, max=1, summary=false, modifier=false)        
996        @Description(
997                shortDefinition="",
998                formalDefinition="Brand recommendations or restrictions."
999        )
1000        private StringDt myBrand;
1001        
1002        @Child(name="notes", type=StringDt.class, order=14, min=0, max=1, summary=false, modifier=false)        
1003        @Description(
1004                shortDefinition="",
1005                formalDefinition="Notes for special requirements such as coatings and lens materials."
1006        )
1007        private StringDt myNotes;
1008        
1009
1010        @Override
1011        public boolean isEmpty() {
1012                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myProduct,  myEye,  mySphere,  myCylinder,  myAxis,  myPrism,  myBase,  myAdd,  myPower,  myBackCurve,  myDiameter,  myDuration,  myColor,  myBrand,  myNotes);
1013        }
1014        
1015        @Override
1016        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
1017                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myProduct, myEye, mySphere, myCylinder, myAxis, myPrism, myBase, myAdd, myPower, myBackCurve, myDiameter, myDuration, myColor, myBrand, myNotes);
1018        }
1019
1020        /**
1021         * Gets the value(s) for <b>product</b> ().
1022         * creating it if it does
1023         * not exist. Will not return <code>null</code>.
1024         *
1025     * <p>
1026     * <b>Definition:</b>
1027     * Identifies the type of vision correction product which is required for the patient.
1028     * </p> 
1029         */
1030        public CodingDt getProduct() {  
1031                if (myProduct == null) {
1032                        myProduct = new CodingDt();
1033                }
1034                return myProduct;
1035        }
1036
1037        /**
1038         * Sets the value(s) for <b>product</b> ()
1039         *
1040     * <p>
1041     * <b>Definition:</b>
1042     * Identifies the type of vision correction product which is required for the patient.
1043     * </p> 
1044         */
1045        public Dispense setProduct(CodingDt theValue) {
1046                myProduct = theValue;
1047                return this;
1048        }
1049        
1050        
1051
1052  
1053        /**
1054         * Gets the value(s) for <b>eye</b> ().
1055         * creating it if it does
1056         * not exist. Will not return <code>null</code>.
1057         *
1058     * <p>
1059     * <b>Definition:</b>
1060     * The eye for which the lens applies.
1061     * </p> 
1062         */
1063        public BoundCodeDt<VisionEyesEnum> getEyeElement() {  
1064                if (myEye == null) {
1065                        myEye = new BoundCodeDt<VisionEyesEnum>(VisionEyesEnum.VALUESET_BINDER);
1066                }
1067                return myEye;
1068        }
1069
1070        
1071        /**
1072         * Gets the value(s) for <b>eye</b> ().
1073         * creating it if it does
1074         * not exist. Will not return <code>null</code>.
1075         *
1076     * <p>
1077     * <b>Definition:</b>
1078     * The eye for which the lens applies.
1079     * </p> 
1080         */
1081        public String getEye() {  
1082                return getEyeElement().getValue();
1083        }
1084
1085        /**
1086         * Sets the value(s) for <b>eye</b> ()
1087         *
1088     * <p>
1089     * <b>Definition:</b>
1090     * The eye for which the lens applies.
1091     * </p> 
1092         */
1093        public Dispense setEye(BoundCodeDt<VisionEyesEnum> theValue) {
1094                myEye = theValue;
1095                return this;
1096        }
1097        
1098        
1099
1100        /**
1101         * Sets the value(s) for <b>eye</b> ()
1102         *
1103     * <p>
1104     * <b>Definition:</b>
1105     * The eye for which the lens applies.
1106     * </p> 
1107         */
1108        public Dispense setEye(VisionEyesEnum theValue) {
1109                setEye(new BoundCodeDt<VisionEyesEnum>(VisionEyesEnum.VALUESET_BINDER, theValue));
1110                
1111/*
1112                getEyeElement().setValueAsEnum(theValue);
1113*/
1114                return this;
1115        }
1116
1117  
1118        /**
1119         * Gets the value(s) for <b>sphere</b> ().
1120         * creating it if it does
1121         * not exist. Will not return <code>null</code>.
1122         *
1123     * <p>
1124     * <b>Definition:</b>
1125     * Lens power measured in diopters (0.25 units).
1126     * </p> 
1127         */
1128        public DecimalDt getSphereElement() {  
1129                if (mySphere == null) {
1130                        mySphere = new DecimalDt();
1131                }
1132                return mySphere;
1133        }
1134
1135        
1136        /**
1137         * Gets the value(s) for <b>sphere</b> ().
1138         * creating it if it does
1139         * not exist. Will not return <code>null</code>.
1140         *
1141     * <p>
1142     * <b>Definition:</b>
1143     * Lens power measured in diopters (0.25 units).
1144     * </p> 
1145         */
1146        public BigDecimal getSphere() {  
1147                return getSphereElement().getValue();
1148        }
1149
1150        /**
1151         * Sets the value(s) for <b>sphere</b> ()
1152         *
1153     * <p>
1154     * <b>Definition:</b>
1155     * Lens power measured in diopters (0.25 units).
1156     * </p> 
1157         */
1158        public Dispense setSphere(DecimalDt theValue) {
1159                mySphere = theValue;
1160                return this;
1161        }
1162        
1163        
1164
1165        /**
1166         * Sets the value for <b>sphere</b> ()
1167         *
1168     * <p>
1169     * <b>Definition:</b>
1170     * Lens power measured in diopters (0.25 units).
1171     * </p> 
1172         */
1173        public Dispense setSphere( long theValue) {
1174                mySphere = new DecimalDt(theValue); 
1175                return this; 
1176        }
1177
1178        /**
1179         * Sets the value for <b>sphere</b> ()
1180         *
1181     * <p>
1182     * <b>Definition:</b>
1183     * Lens power measured in diopters (0.25 units).
1184     * </p> 
1185         */
1186        public Dispense setSphere( double theValue) {
1187                mySphere = new DecimalDt(theValue); 
1188                return this; 
1189        }
1190
1191        /**
1192         * Sets the value for <b>sphere</b> ()
1193         *
1194     * <p>
1195     * <b>Definition:</b>
1196     * Lens power measured in diopters (0.25 units).
1197     * </p> 
1198         */
1199        public Dispense setSphere( java.math.BigDecimal theValue) {
1200                mySphere = new DecimalDt(theValue); 
1201                return this; 
1202        }
1203
1204 
1205        /**
1206         * Gets the value(s) for <b>cylinder</b> ().
1207         * creating it if it does
1208         * not exist. Will not return <code>null</code>.
1209         *
1210     * <p>
1211     * <b>Definition:</b>
1212     * Power adjustment for astigmatism measured in diopters (0.25 units).
1213     * </p> 
1214         */
1215        public DecimalDt getCylinderElement() {  
1216                if (myCylinder == null) {
1217                        myCylinder = new DecimalDt();
1218                }
1219                return myCylinder;
1220        }
1221
1222        
1223        /**
1224         * Gets the value(s) for <b>cylinder</b> ().
1225         * creating it if it does
1226         * not exist. Will not return <code>null</code>.
1227         *
1228     * <p>
1229     * <b>Definition:</b>
1230     * Power adjustment for astigmatism measured in diopters (0.25 units).
1231     * </p> 
1232         */
1233        public BigDecimal getCylinder() {  
1234                return getCylinderElement().getValue();
1235        }
1236
1237        /**
1238         * Sets the value(s) for <b>cylinder</b> ()
1239         *
1240     * <p>
1241     * <b>Definition:</b>
1242     * Power adjustment for astigmatism measured in diopters (0.25 units).
1243     * </p> 
1244         */
1245        public Dispense setCylinder(DecimalDt theValue) {
1246                myCylinder = theValue;
1247                return this;
1248        }
1249        
1250        
1251
1252        /**
1253         * Sets the value for <b>cylinder</b> ()
1254         *
1255     * <p>
1256     * <b>Definition:</b>
1257     * Power adjustment for astigmatism measured in diopters (0.25 units).
1258     * </p> 
1259         */
1260        public Dispense setCylinder( long theValue) {
1261                myCylinder = new DecimalDt(theValue); 
1262                return this; 
1263        }
1264
1265        /**
1266         * Sets the value for <b>cylinder</b> ()
1267         *
1268     * <p>
1269     * <b>Definition:</b>
1270     * Power adjustment for astigmatism measured in diopters (0.25 units).
1271     * </p> 
1272         */
1273        public Dispense setCylinder( double theValue) {
1274                myCylinder = new DecimalDt(theValue); 
1275                return this; 
1276        }
1277
1278        /**
1279         * Sets the value for <b>cylinder</b> ()
1280         *
1281     * <p>
1282     * <b>Definition:</b>
1283     * Power adjustment for astigmatism measured in diopters (0.25 units).
1284     * </p> 
1285         */
1286        public Dispense setCylinder( java.math.BigDecimal theValue) {
1287                myCylinder = new DecimalDt(theValue); 
1288                return this; 
1289        }
1290
1291 
1292        /**
1293         * Gets the value(s) for <b>axis</b> ().
1294         * creating it if it does
1295         * not exist. Will not return <code>null</code>.
1296         *
1297     * <p>
1298     * <b>Definition:</b>
1299     * Adjustment for astigmatism measured in integer degrees.
1300     * </p> 
1301         */
1302        public IntegerDt getAxisElement() {  
1303                if (myAxis == null) {
1304                        myAxis = new IntegerDt();
1305                }
1306                return myAxis;
1307        }
1308
1309        
1310        /**
1311         * Gets the value(s) for <b>axis</b> ().
1312         * creating it if it does
1313         * not exist. Will not return <code>null</code>.
1314         *
1315     * <p>
1316     * <b>Definition:</b>
1317     * Adjustment for astigmatism measured in integer degrees.
1318     * </p> 
1319         */
1320        public Integer getAxis() {  
1321                return getAxisElement().getValue();
1322        }
1323
1324        /**
1325         * Sets the value(s) for <b>axis</b> ()
1326         *
1327     * <p>
1328     * <b>Definition:</b>
1329     * Adjustment for astigmatism measured in integer degrees.
1330     * </p> 
1331         */
1332        public Dispense setAxis(IntegerDt theValue) {
1333                myAxis = theValue;
1334                return this;
1335        }
1336        
1337        
1338
1339        /**
1340         * Sets the value for <b>axis</b> ()
1341         *
1342     * <p>
1343     * <b>Definition:</b>
1344     * Adjustment for astigmatism measured in integer degrees.
1345     * </p> 
1346         */
1347        public Dispense setAxis( int theInteger) {
1348                myAxis = new IntegerDt(theInteger); 
1349                return this; 
1350        }
1351
1352 
1353        /**
1354         * Gets the value(s) for <b>prism</b> ().
1355         * creating it if it does
1356         * not exist. Will not return <code>null</code>.
1357         *
1358     * <p>
1359     * <b>Definition:</b>
1360     * Amount of prism to compensate for eye alignment in fractional units.
1361     * </p> 
1362         */
1363        public DecimalDt getPrismElement() {  
1364                if (myPrism == null) {
1365                        myPrism = new DecimalDt();
1366                }
1367                return myPrism;
1368        }
1369
1370        
1371        /**
1372         * Gets the value(s) for <b>prism</b> ().
1373         * creating it if it does
1374         * not exist. Will not return <code>null</code>.
1375         *
1376     * <p>
1377     * <b>Definition:</b>
1378     * Amount of prism to compensate for eye alignment in fractional units.
1379     * </p> 
1380         */
1381        public BigDecimal getPrism() {  
1382                return getPrismElement().getValue();
1383        }
1384
1385        /**
1386         * Sets the value(s) for <b>prism</b> ()
1387         *
1388     * <p>
1389     * <b>Definition:</b>
1390     * Amount of prism to compensate for eye alignment in fractional units.
1391     * </p> 
1392         */
1393        public Dispense setPrism(DecimalDt theValue) {
1394                myPrism = theValue;
1395                return this;
1396        }
1397        
1398        
1399
1400        /**
1401         * Sets the value for <b>prism</b> ()
1402         *
1403     * <p>
1404     * <b>Definition:</b>
1405     * Amount of prism to compensate for eye alignment in fractional units.
1406     * </p> 
1407         */
1408        public Dispense setPrism( long theValue) {
1409                myPrism = new DecimalDt(theValue); 
1410                return this; 
1411        }
1412
1413        /**
1414         * Sets the value for <b>prism</b> ()
1415         *
1416     * <p>
1417     * <b>Definition:</b>
1418     * Amount of prism to compensate for eye alignment in fractional units.
1419     * </p> 
1420         */
1421        public Dispense setPrism( double theValue) {
1422                myPrism = new DecimalDt(theValue); 
1423                return this; 
1424        }
1425
1426        /**
1427         * Sets the value for <b>prism</b> ()
1428         *
1429     * <p>
1430     * <b>Definition:</b>
1431     * Amount of prism to compensate for eye alignment in fractional units.
1432     * </p> 
1433         */
1434        public Dispense setPrism( java.math.BigDecimal theValue) {
1435                myPrism = new DecimalDt(theValue); 
1436                return this; 
1437        }
1438
1439 
1440        /**
1441         * Gets the value(s) for <b>base</b> ().
1442         * creating it if it does
1443         * not exist. Will not return <code>null</code>.
1444         *
1445     * <p>
1446     * <b>Definition:</b>
1447     * The relative base, or reference lens edge, for the prism.
1448     * </p> 
1449         */
1450        public BoundCodeDt<VisionBaseEnum> getBaseElement() {  
1451                if (myBase == null) {
1452                        myBase = new BoundCodeDt<VisionBaseEnum>(VisionBaseEnum.VALUESET_BINDER);
1453                }
1454                return myBase;
1455        }
1456
1457        
1458        /**
1459         * Gets the value(s) for <b>base</b> ().
1460         * creating it if it does
1461         * not exist. Will not return <code>null</code>.
1462         *
1463     * <p>
1464     * <b>Definition:</b>
1465     * The relative base, or reference lens edge, for the prism.
1466     * </p> 
1467         */
1468        public String getBase() {  
1469                return getBaseElement().getValue();
1470        }
1471
1472        /**
1473         * Sets the value(s) for <b>base</b> ()
1474         *
1475     * <p>
1476     * <b>Definition:</b>
1477     * The relative base, or reference lens edge, for the prism.
1478     * </p> 
1479         */
1480        public Dispense setBase(BoundCodeDt<VisionBaseEnum> theValue) {
1481                myBase = theValue;
1482                return this;
1483        }
1484        
1485        
1486
1487        /**
1488         * Sets the value(s) for <b>base</b> ()
1489         *
1490     * <p>
1491     * <b>Definition:</b>
1492     * The relative base, or reference lens edge, for the prism.
1493     * </p> 
1494         */
1495        public Dispense setBase(VisionBaseEnum theValue) {
1496                setBase(new BoundCodeDt<VisionBaseEnum>(VisionBaseEnum.VALUESET_BINDER, theValue));
1497                
1498/*
1499                getBaseElement().setValueAsEnum(theValue);
1500*/
1501                return this;
1502        }
1503
1504  
1505        /**
1506         * Gets the value(s) for <b>add</b> ().
1507         * creating it if it does
1508         * not exist. Will not return <code>null</code>.
1509         *
1510     * <p>
1511     * <b>Definition:</b>
1512     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1513     * </p> 
1514         */
1515        public DecimalDt getAddElement() {  
1516                if (myAdd == null) {
1517                        myAdd = new DecimalDt();
1518                }
1519                return myAdd;
1520        }
1521
1522        
1523        /**
1524         * Gets the value(s) for <b>add</b> ().
1525         * creating it if it does
1526         * not exist. Will not return <code>null</code>.
1527         *
1528     * <p>
1529     * <b>Definition:</b>
1530     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1531     * </p> 
1532         */
1533        public BigDecimal getAdd() {  
1534                return getAddElement().getValue();
1535        }
1536
1537        /**
1538         * Sets the value(s) for <b>add</b> ()
1539         *
1540     * <p>
1541     * <b>Definition:</b>
1542     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1543     * </p> 
1544         */
1545        public Dispense setAdd(DecimalDt theValue) {
1546                myAdd = theValue;
1547                return this;
1548        }
1549        
1550        
1551
1552        /**
1553         * Sets the value for <b>add</b> ()
1554         *
1555     * <p>
1556     * <b>Definition:</b>
1557     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1558     * </p> 
1559         */
1560        public Dispense setAdd( long theValue) {
1561                myAdd = new DecimalDt(theValue); 
1562                return this; 
1563        }
1564
1565        /**
1566         * Sets the value for <b>add</b> ()
1567         *
1568     * <p>
1569     * <b>Definition:</b>
1570     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1571     * </p> 
1572         */
1573        public Dispense setAdd( double theValue) {
1574                myAdd = new DecimalDt(theValue); 
1575                return this; 
1576        }
1577
1578        /**
1579         * Sets the value for <b>add</b> ()
1580         *
1581     * <p>
1582     * <b>Definition:</b>
1583     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1584     * </p> 
1585         */
1586        public Dispense setAdd( java.math.BigDecimal theValue) {
1587                myAdd = new DecimalDt(theValue); 
1588                return this; 
1589        }
1590
1591 
1592        /**
1593         * Gets the value(s) for <b>power</b> ().
1594         * creating it if it does
1595         * not exist. Will not return <code>null</code>.
1596         *
1597     * <p>
1598     * <b>Definition:</b>
1599     * Contact lens power measured in diopters (0.25 units).
1600     * </p> 
1601         */
1602        public DecimalDt getPowerElement() {  
1603                if (myPower == null) {
1604                        myPower = new DecimalDt();
1605                }
1606                return myPower;
1607        }
1608
1609        
1610        /**
1611         * Gets the value(s) for <b>power</b> ().
1612         * creating it if it does
1613         * not exist. Will not return <code>null</code>.
1614         *
1615     * <p>
1616     * <b>Definition:</b>
1617     * Contact lens power measured in diopters (0.25 units).
1618     * </p> 
1619         */
1620        public BigDecimal getPower() {  
1621                return getPowerElement().getValue();
1622        }
1623
1624        /**
1625         * Sets the value(s) for <b>power</b> ()
1626         *
1627     * <p>
1628     * <b>Definition:</b>
1629     * Contact lens power measured in diopters (0.25 units).
1630     * </p> 
1631         */
1632        public Dispense setPower(DecimalDt theValue) {
1633                myPower = theValue;
1634                return this;
1635        }
1636        
1637        
1638
1639        /**
1640         * Sets the value for <b>power</b> ()
1641         *
1642     * <p>
1643     * <b>Definition:</b>
1644     * Contact lens power measured in diopters (0.25 units).
1645     * </p> 
1646         */
1647        public Dispense setPower( long theValue) {
1648                myPower = new DecimalDt(theValue); 
1649                return this; 
1650        }
1651
1652        /**
1653         * Sets the value for <b>power</b> ()
1654         *
1655     * <p>
1656     * <b>Definition:</b>
1657     * Contact lens power measured in diopters (0.25 units).
1658     * </p> 
1659         */
1660        public Dispense setPower( double theValue) {
1661                myPower = new DecimalDt(theValue); 
1662                return this; 
1663        }
1664
1665        /**
1666         * Sets the value for <b>power</b> ()
1667         *
1668     * <p>
1669     * <b>Definition:</b>
1670     * Contact lens power measured in diopters (0.25 units).
1671     * </p> 
1672         */
1673        public Dispense setPower( java.math.BigDecimal theValue) {
1674                myPower = new DecimalDt(theValue); 
1675                return this; 
1676        }
1677
1678 
1679        /**
1680         * Gets the value(s) for <b>backCurve</b> ().
1681         * creating it if it does
1682         * not exist. Will not return <code>null</code>.
1683         *
1684     * <p>
1685     * <b>Definition:</b>
1686     * Back curvature measured in millimeters.
1687     * </p> 
1688         */
1689        public DecimalDt getBackCurveElement() {  
1690                if (myBackCurve == null) {
1691                        myBackCurve = new DecimalDt();
1692                }
1693                return myBackCurve;
1694        }
1695
1696        
1697        /**
1698         * Gets the value(s) for <b>backCurve</b> ().
1699         * creating it if it does
1700         * not exist. Will not return <code>null</code>.
1701         *
1702     * <p>
1703     * <b>Definition:</b>
1704     * Back curvature measured in millimeters.
1705     * </p> 
1706         */
1707        public BigDecimal getBackCurve() {  
1708                return getBackCurveElement().getValue();
1709        }
1710
1711        /**
1712         * Sets the value(s) for <b>backCurve</b> ()
1713         *
1714     * <p>
1715     * <b>Definition:</b>
1716     * Back curvature measured in millimeters.
1717     * </p> 
1718         */
1719        public Dispense setBackCurve(DecimalDt theValue) {
1720                myBackCurve = theValue;
1721                return this;
1722        }
1723        
1724        
1725
1726        /**
1727         * Sets the value for <b>backCurve</b> ()
1728         *
1729     * <p>
1730     * <b>Definition:</b>
1731     * Back curvature measured in millimeters.
1732     * </p> 
1733         */
1734        public Dispense setBackCurve( long theValue) {
1735                myBackCurve = new DecimalDt(theValue); 
1736                return this; 
1737        }
1738
1739        /**
1740         * Sets the value for <b>backCurve</b> ()
1741         *
1742     * <p>
1743     * <b>Definition:</b>
1744     * Back curvature measured in millimeters.
1745     * </p> 
1746         */
1747        public Dispense setBackCurve( double theValue) {
1748                myBackCurve = new DecimalDt(theValue); 
1749                return this; 
1750        }
1751
1752        /**
1753         * Sets the value for <b>backCurve</b> ()
1754         *
1755     * <p>
1756     * <b>Definition:</b>
1757     * Back curvature measured in millimeters.
1758     * </p> 
1759         */
1760        public Dispense setBackCurve( java.math.BigDecimal theValue) {
1761                myBackCurve = new DecimalDt(theValue); 
1762                return this; 
1763        }
1764
1765 
1766        /**
1767         * Gets the value(s) for <b>diameter</b> ().
1768         * creating it if it does
1769         * not exist. Will not return <code>null</code>.
1770         *
1771     * <p>
1772     * <b>Definition:</b>
1773     * Contact lens diameter measured in millimeters.
1774     * </p> 
1775         */
1776        public DecimalDt getDiameterElement() {  
1777                if (myDiameter == null) {
1778                        myDiameter = new DecimalDt();
1779                }
1780                return myDiameter;
1781        }
1782
1783        
1784        /**
1785         * Gets the value(s) for <b>diameter</b> ().
1786         * creating it if it does
1787         * not exist. Will not return <code>null</code>.
1788         *
1789     * <p>
1790     * <b>Definition:</b>
1791     * Contact lens diameter measured in millimeters.
1792     * </p> 
1793         */
1794        public BigDecimal getDiameter() {  
1795                return getDiameterElement().getValue();
1796        }
1797
1798        /**
1799         * Sets the value(s) for <b>diameter</b> ()
1800         *
1801     * <p>
1802     * <b>Definition:</b>
1803     * Contact lens diameter measured in millimeters.
1804     * </p> 
1805         */
1806        public Dispense setDiameter(DecimalDt theValue) {
1807                myDiameter = theValue;
1808                return this;
1809        }
1810        
1811        
1812
1813        /**
1814         * Sets the value for <b>diameter</b> ()
1815         *
1816     * <p>
1817     * <b>Definition:</b>
1818     * Contact lens diameter measured in millimeters.
1819     * </p> 
1820         */
1821        public Dispense setDiameter( long theValue) {
1822                myDiameter = new DecimalDt(theValue); 
1823                return this; 
1824        }
1825
1826        /**
1827         * Sets the value for <b>diameter</b> ()
1828         *
1829     * <p>
1830     * <b>Definition:</b>
1831     * Contact lens diameter measured in millimeters.
1832     * </p> 
1833         */
1834        public Dispense setDiameter( double theValue) {
1835                myDiameter = new DecimalDt(theValue); 
1836                return this; 
1837        }
1838
1839        /**
1840         * Sets the value for <b>diameter</b> ()
1841         *
1842     * <p>
1843     * <b>Definition:</b>
1844     * Contact lens diameter measured in millimeters.
1845     * </p> 
1846         */
1847        public Dispense setDiameter( java.math.BigDecimal theValue) {
1848                myDiameter = new DecimalDt(theValue); 
1849                return this; 
1850        }
1851
1852 
1853        /**
1854         * Gets the value(s) for <b>duration</b> ().
1855         * creating it if it does
1856         * not exist. Will not return <code>null</code>.
1857         *
1858     * <p>
1859     * <b>Definition:</b>
1860     * The recommended maximum wear period for the lens.
1861     * </p> 
1862         */
1863        public SimpleQuantityDt getDuration() {  
1864                if (myDuration == null) {
1865                        myDuration = new SimpleQuantityDt();
1866                }
1867                return myDuration;
1868        }
1869
1870        /**
1871         * Sets the value(s) for <b>duration</b> ()
1872         *
1873     * <p>
1874     * <b>Definition:</b>
1875     * The recommended maximum wear period for the lens.
1876     * </p> 
1877         */
1878        public Dispense setDuration(SimpleQuantityDt theValue) {
1879                myDuration = theValue;
1880                return this;
1881        }
1882        
1883        
1884
1885  
1886        /**
1887         * Gets the value(s) for <b>color</b> ().
1888         * creating it if it does
1889         * not exist. Will not return <code>null</code>.
1890         *
1891     * <p>
1892     * <b>Definition:</b>
1893     * Special color or pattern.
1894     * </p> 
1895         */
1896        public StringDt getColorElement() {  
1897                if (myColor == null) {
1898                        myColor = new StringDt();
1899                }
1900                return myColor;
1901        }
1902
1903        
1904        /**
1905         * Gets the value(s) for <b>color</b> ().
1906         * creating it if it does
1907         * not exist. Will not return <code>null</code>.
1908         *
1909     * <p>
1910     * <b>Definition:</b>
1911     * Special color or pattern.
1912     * </p> 
1913         */
1914        public String getColor() {  
1915                return getColorElement().getValue();
1916        }
1917
1918        /**
1919         * Sets the value(s) for <b>color</b> ()
1920         *
1921     * <p>
1922     * <b>Definition:</b>
1923     * Special color or pattern.
1924     * </p> 
1925         */
1926        public Dispense setColor(StringDt theValue) {
1927                myColor = theValue;
1928                return this;
1929        }
1930        
1931        
1932
1933        /**
1934         * Sets the value for <b>color</b> ()
1935         *
1936     * <p>
1937     * <b>Definition:</b>
1938     * Special color or pattern.
1939     * </p> 
1940         */
1941        public Dispense setColor( String theString) {
1942                myColor = new StringDt(theString); 
1943                return this; 
1944        }
1945
1946 
1947        /**
1948         * Gets the value(s) for <b>brand</b> ().
1949         * creating it if it does
1950         * not exist. Will not return <code>null</code>.
1951         *
1952     * <p>
1953     * <b>Definition:</b>
1954     * Brand recommendations or restrictions.
1955     * </p> 
1956         */
1957        public StringDt getBrandElement() {  
1958                if (myBrand == null) {
1959                        myBrand = new StringDt();
1960                }
1961                return myBrand;
1962        }
1963
1964        
1965        /**
1966         * Gets the value(s) for <b>brand</b> ().
1967         * creating it if it does
1968         * not exist. Will not return <code>null</code>.
1969         *
1970     * <p>
1971     * <b>Definition:</b>
1972     * Brand recommendations or restrictions.
1973     * </p> 
1974         */
1975        public String getBrand() {  
1976                return getBrandElement().getValue();
1977        }
1978
1979        /**
1980         * Sets the value(s) for <b>brand</b> ()
1981         *
1982     * <p>
1983     * <b>Definition:</b>
1984     * Brand recommendations or restrictions.
1985     * </p> 
1986         */
1987        public Dispense setBrand(StringDt theValue) {
1988                myBrand = theValue;
1989                return this;
1990        }
1991        
1992        
1993
1994        /**
1995         * Sets the value for <b>brand</b> ()
1996         *
1997     * <p>
1998     * <b>Definition:</b>
1999     * Brand recommendations or restrictions.
2000     * </p> 
2001         */
2002        public Dispense setBrand( String theString) {
2003                myBrand = new StringDt(theString); 
2004                return this; 
2005        }
2006
2007 
2008        /**
2009         * Gets the value(s) for <b>notes</b> ().
2010         * creating it if it does
2011         * not exist. Will not return <code>null</code>.
2012         *
2013     * <p>
2014     * <b>Definition:</b>
2015     * Notes for special requirements such as coatings and lens materials.
2016     * </p> 
2017         */
2018        public StringDt getNotesElement() {  
2019                if (myNotes == null) {
2020                        myNotes = new StringDt();
2021                }
2022                return myNotes;
2023        }
2024
2025        
2026        /**
2027         * Gets the value(s) for <b>notes</b> ().
2028         * creating it if it does
2029         * not exist. Will not return <code>null</code>.
2030         *
2031     * <p>
2032     * <b>Definition:</b>
2033     * Notes for special requirements such as coatings and lens materials.
2034     * </p> 
2035         */
2036        public String getNotes() {  
2037                return getNotesElement().getValue();
2038        }
2039
2040        /**
2041         * Sets the value(s) for <b>notes</b> ()
2042         *
2043     * <p>
2044     * <b>Definition:</b>
2045     * Notes for special requirements such as coatings and lens materials.
2046     * </p> 
2047         */
2048        public Dispense setNotes(StringDt theValue) {
2049                myNotes = theValue;
2050                return this;
2051        }
2052        
2053        
2054
2055        /**
2056         * Sets the value for <b>notes</b> ()
2057         *
2058     * <p>
2059     * <b>Definition:</b>
2060     * Notes for special requirements such as coatings and lens materials.
2061     * </p> 
2062         */
2063        public Dispense setNotes( String theString) {
2064                myNotes = new StringDt(theString); 
2065                return this; 
2066        }
2067
2068 
2069
2070
2071        }
2072
2073
2074
2075
2076    @Override
2077    public String getResourceName() {
2078        return "VisionPrescription";
2079    }
2080    
2081    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
2082        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
2083    }
2084
2085
2086}