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>VisionPrescription</b> Resource
282 * ()
283 *
284 * <p>
285 * <b>Definition:</b>
286 * An authorization for the supply of glasses and/or contact lenses to a patient.
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/VisionPrescription">http://hl7.org/fhir/profiles/VisionPrescription</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="VisionPrescription", profile="http://hl7.org/fhir/profiles/VisionPrescription", id="visionprescription")
301public class VisionPrescription extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource     {
303
304        /**
305         * Search parameter constant for <b>datewritten</b>
306         * <p>
307         * Description: <b>Return prescriptions written on this date</b><br>
308         * Type: <b>date</b><br>
309         * Path: <b>VisionPrescription.dateWritten</b><br>
310         * </p>
311         */
312        @SearchParamDefinition(name="datewritten", path="VisionPrescription.dateWritten", description="Return prescriptions written on this date", type="date"  )
313        public static final String SP_DATEWRITTEN = "datewritten";
314
315        /**
316         * <b>Fluent Client</b> search parameter constant for <b>datewritten</b>
317         * <p>
318         * Description: <b>Return prescriptions written on this date</b><br>
319         * Type: <b>date</b><br>
320         * Path: <b>VisionPrescription.dateWritten</b><br>
321         * </p>
322         */
323        public static final DateClientParam DATEWRITTEN = new DateClientParam(SP_DATEWRITTEN);
324
325        /**
326         * Search parameter constant for <b>encounter</b>
327         * <p>
328         * Description: <b>Return prescriptions with this encounter identifier</b><br>
329         * Type: <b>reference</b><br>
330         * Path: <b>VisionPrescription.encounter</b><br>
331         * </p>
332         */
333        @SearchParamDefinition(name="encounter", path="VisionPrescription.encounter", description="Return prescriptions with this encounter identifier", type="reference" , providesMembershipIn={
334 @Compartment(name="Encounter")         }
335 )
336        public static final String SP_ENCOUNTER = "encounter";
337
338        /**
339         * <b>Fluent Client</b> search parameter constant for <b>encounter</b>
340         * <p>
341         * Description: <b>Return prescriptions with this encounter identifier</b><br>
342         * Type: <b>reference</b><br>
343         * Path: <b>VisionPrescription.encounter</b><br>
344         * </p>
345         */
346        public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER);
347
348        /**
349         * Search parameter constant for <b>identifier</b>
350         * <p>
351         * Description: <b>Return prescriptions with this external identifier</b><br>
352         * Type: <b>token</b><br>
353         * Path: <b>VisionPrescription.identifier</b><br>
354         * </p>
355         */
356        @SearchParamDefinition(name="identifier", path="VisionPrescription.identifier", description="Return prescriptions with this external identifier", type="token"  )
357        public static final String SP_IDENTIFIER = "identifier";
358
359        /**
360         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
361         * <p>
362         * Description: <b>Return prescriptions with this external identifier</b><br>
363         * Type: <b>token</b><br>
364         * Path: <b>VisionPrescription.identifier</b><br>
365         * </p>
366         */
367        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
368
369        /**
370         * Search parameter constant for <b>patient</b>
371         * <p>
372         * Description: <b>The identity of a patient to list dispenses for</b><br>
373         * Type: <b>reference</b><br>
374         * Path: <b>VisionPrescription.patient</b><br>
375         * </p>
376         */
377        @SearchParamDefinition(name="patient", path="VisionPrescription.patient", description="The identity of a patient to list dispenses for", type="reference" , providesMembershipIn={
378 @Compartment(name="Patient")   }
379 )
380        public static final String SP_PATIENT = "patient";
381
382        /**
383         * <b>Fluent Client</b> search parameter constant for <b>patient</b>
384         * <p>
385         * Description: <b>The identity of a patient to list dispenses for</b><br>
386         * Type: <b>reference</b><br>
387         * Path: <b>VisionPrescription.patient</b><br>
388         * </p>
389         */
390        public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
391
392        /**
393         * Search parameter constant for <b>prescriber</b>
394         * <p>
395         * Description: <b></b><br>
396         * Type: <b>reference</b><br>
397         * Path: <b>VisionPrescription.prescriber</b><br>
398         * </p>
399         */
400        @SearchParamDefinition(name="prescriber", path="VisionPrescription.prescriber", description="", type="reference" , providesMembershipIn={
401 @Compartment(name="RelatedPerson")     }
402 )
403        public static final String SP_PRESCRIBER = "prescriber";
404
405        /**
406         * <b>Fluent Client</b> search parameter constant for <b>prescriber</b>
407         * <p>
408         * Description: <b></b><br>
409         * Type: <b>reference</b><br>
410         * Path: <b>VisionPrescription.prescriber</b><br>
411         * </p>
412         */
413        public static final ReferenceClientParam PRESCRIBER = new ReferenceClientParam(SP_PRESCRIBER);
414
415
416        /**
417         * Constant for fluent queries to be used to add include statements. Specifies
418         * the path value of "<b>VisionPrescription:encounter</b>".
419         */
420        public static final Include INCLUDE_ENCOUNTER = new Include("VisionPrescription:encounter");
421
422        /**
423         * Constant for fluent queries to be used to add include statements. Specifies
424         * the path value of "<b>VisionPrescription:patient</b>".
425         */
426        public static final Include INCLUDE_PATIENT = new Include("VisionPrescription:patient");
427
428        /**
429         * Constant for fluent queries to be used to add include statements. Specifies
430         * the path value of "<b>VisionPrescription:prescriber</b>".
431         */
432        public static final Include INCLUDE_PRESCRIBER = new Include("VisionPrescription:prescriber");
433
434
435        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)      
436        @Description(
437                shortDefinition="",
438                formalDefinition="Business identifier which may be used by other parties to reference or identify the prescription."
439        )
440        private java.util.List<IdentifierDt> myIdentifier;
441        
442        @Child(name="dateWritten", type=DateTimeDt.class, order=1, min=0, max=1, summary=false, modifier=false) 
443        @Description(
444                shortDefinition="",
445                formalDefinition="The date (and perhaps time) when the prescription was written"
446        )
447        private DateTimeDt myDateWritten;
448        
449        @Child(name="patient", order=2, min=0, max=1, summary=false, modifier=false, type={
450                ca.uhn.fhir.model.dstu2.resource.Patient.class  })
451        @Description(
452                shortDefinition="",
453                formalDefinition="A link to a resource representing the person to whom the vision products will be supplied."
454        )
455        private ResourceReferenceDt myPatient;
456        
457        @Child(name="prescriber", order=3, min=0, max=1, summary=false, modifier=false, type={
458                ca.uhn.fhir.model.dstu2.resource.Practitioner.class     })
459        @Description(
460                shortDefinition="",
461                formalDefinition="The healthcare professional responsible for authorizing the prescription"
462        )
463        private ResourceReferenceDt myPrescriber;
464        
465        @Child(name="encounter", order=4, min=0, max=1, summary=false, modifier=false, type={
466                ca.uhn.fhir.model.dstu2.resource.Encounter.class        })
467        @Description(
468                shortDefinition="",
469                formalDefinition="A link to a resource that identifies the particular occurrence of contact between patient and health care provider."
470        )
471        private ResourceReferenceDt myEncounter;
472        
473        @Child(name="reason", order=5, min=0, max=1, summary=false, modifier=false, type={
474                CodeableConceptDt.class,                Condition.class })
475        @Description(
476                shortDefinition="",
477                formalDefinition="Can be the reason or the indication for writing the prescription."
478        )
479        private IDatatype myReason;
480        
481        @Child(name="dispense", order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false) 
482        @Description(
483                shortDefinition="",
484                formalDefinition="Deals with details of the dispense part of the supply specification."
485        )
486        private java.util.List<Dispense> myDispense;
487        
488
489        @Override
490        public boolean isEmpty() {
491                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myDateWritten,  myPatient,  myPrescriber,  myEncounter,  myReason,  myDispense);
492        }
493        
494        @Override
495        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
496                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDateWritten, myPatient, myPrescriber, myEncounter, myReason, myDispense);
497        }
498
499        /**
500         * Gets the value(s) for <b>identifier</b> ().
501         * creating it if it does
502         * not exist. Will not return <code>null</code>.
503         *
504     * <p>
505     * <b>Definition:</b>
506     * Business identifier which may be used by other parties to reference or identify the prescription.
507     * </p> 
508         */
509        public java.util.List<IdentifierDt> getIdentifier() {  
510                if (myIdentifier == null) {
511                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
512                }
513                return myIdentifier;
514        }
515
516        /**
517         * Sets the value(s) for <b>identifier</b> ()
518         *
519     * <p>
520     * <b>Definition:</b>
521     * Business identifier which may be used by other parties to reference or identify the prescription.
522     * </p> 
523         */
524        public VisionPrescription setIdentifier(java.util.List<IdentifierDt> theValue) {
525                myIdentifier = theValue;
526                return this;
527        }
528        
529        
530
531        /**
532         * Adds and returns a new value for <b>identifier</b> ()
533         *
534     * <p>
535     * <b>Definition:</b>
536     * Business identifier which may be used by other parties to reference or identify the prescription.
537     * </p> 
538         */
539        public IdentifierDt addIdentifier() {
540                IdentifierDt newType = new IdentifierDt();
541                getIdentifier().add(newType);
542                return newType; 
543        }
544
545        /**
546         * Adds a given new value for <b>identifier</b> ()
547         *
548         * <p>
549         * <b>Definition:</b>
550         * Business identifier which may be used by other parties to reference or identify the prescription.
551         * </p>
552         * @param theValue The identifier to add (must not be <code>null</code>)
553         */
554        public VisionPrescription addIdentifier(IdentifierDt theValue) {
555                if (theValue == null) {
556                        throw new NullPointerException("theValue must not be null");
557                }
558                getIdentifier().add(theValue);
559                return this;
560        }
561
562        /**
563         * Gets the first repetition for <b>identifier</b> (),
564         * creating it if it does not already exist.
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 getIdentifierFirstRep() {
572                if (getIdentifier().isEmpty()) {
573                        return addIdentifier();
574                }
575                return getIdentifier().get(0); 
576        }
577  
578        /**
579         * Gets the value(s) for <b>dateWritten</b> ().
580         * creating it if it does
581         * not exist. Will not return <code>null</code>.
582         *
583     * <p>
584     * <b>Definition:</b>
585     * The date (and perhaps time) when the prescription was written
586     * </p> 
587         */
588        public DateTimeDt getDateWrittenElement() {  
589                if (myDateWritten == null) {
590                        myDateWritten = new DateTimeDt();
591                }
592                return myDateWritten;
593        }
594
595        
596        /**
597         * Gets the value(s) for <b>dateWritten</b> ().
598         * creating it if it does
599         * not exist. This method may return <code>null</code>.
600         *
601     * <p>
602     * <b>Definition:</b>
603     * The date (and perhaps time) when the prescription was written
604     * </p> 
605         */
606        public Date getDateWritten() {  
607                return getDateWrittenElement().getValue();
608        }
609
610        /**
611         * Sets the value(s) for <b>dateWritten</b> ()
612         *
613     * <p>
614     * <b>Definition:</b>
615     * The date (and perhaps time) when the prescription was written
616     * </p> 
617         */
618        public VisionPrescription setDateWritten(DateTimeDt theValue) {
619                myDateWritten = theValue;
620                return this;
621        }
622        
623        
624
625        /**
626         * Sets the value for <b>dateWritten</b> ()
627         *
628     * <p>
629     * <b>Definition:</b>
630     * The date (and perhaps time) when the prescription was written
631     * </p> 
632         */
633        public VisionPrescription setDateWritten( Date theDate,  TemporalPrecisionEnum thePrecision) {
634                myDateWritten = new DateTimeDt(theDate, thePrecision); 
635                return this; 
636        }
637
638        /**
639         * Sets the value for <b>dateWritten</b> ()
640         *
641     * <p>
642     * <b>Definition:</b>
643     * The date (and perhaps time) when the prescription was written
644     * </p> 
645         */
646        public VisionPrescription setDateWrittenWithSecondsPrecision( Date theDate) {
647                myDateWritten = new DateTimeDt(theDate); 
648                return this; 
649        }
650
651 
652        /**
653         * Gets the value(s) for <b>patient</b> ().
654         * creating it if it does
655         * not exist. Will not return <code>null</code>.
656         *
657     * <p>
658     * <b>Definition:</b>
659     * A link to a resource representing the person to whom the vision products will be supplied.
660     * </p> 
661         */
662        public ResourceReferenceDt getPatient() {  
663                if (myPatient == null) {
664                        myPatient = new ResourceReferenceDt();
665                }
666                return myPatient;
667        }
668
669        /**
670         * Sets the value(s) for <b>patient</b> ()
671         *
672     * <p>
673     * <b>Definition:</b>
674     * A link to a resource representing the person to whom the vision products will be supplied.
675     * </p> 
676         */
677        public VisionPrescription setPatient(ResourceReferenceDt theValue) {
678                myPatient = theValue;
679                return this;
680        }
681        
682        
683
684  
685        /**
686         * Gets the value(s) for <b>prescriber</b> ().
687         * creating it if it does
688         * not exist. Will not return <code>null</code>.
689         *
690     * <p>
691     * <b>Definition:</b>
692     * The healthcare professional responsible for authorizing the prescription
693     * </p> 
694         */
695        public ResourceReferenceDt getPrescriber() {  
696                if (myPrescriber == null) {
697                        myPrescriber = new ResourceReferenceDt();
698                }
699                return myPrescriber;
700        }
701
702        /**
703         * Sets the value(s) for <b>prescriber</b> ()
704         *
705     * <p>
706     * <b>Definition:</b>
707     * The healthcare professional responsible for authorizing the prescription
708     * </p> 
709         */
710        public VisionPrescription setPrescriber(ResourceReferenceDt theValue) {
711                myPrescriber = theValue;
712                return this;
713        }
714        
715        
716
717  
718        /**
719         * Gets the value(s) for <b>encounter</b> ().
720         * creating it if it does
721         * not exist. Will not return <code>null</code>.
722         *
723     * <p>
724     * <b>Definition:</b>
725     * A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
726     * </p> 
727         */
728        public ResourceReferenceDt getEncounter() {  
729                if (myEncounter == null) {
730                        myEncounter = new ResourceReferenceDt();
731                }
732                return myEncounter;
733        }
734
735        /**
736         * Sets the value(s) for <b>encounter</b> ()
737         *
738     * <p>
739     * <b>Definition:</b>
740     * A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
741     * </p> 
742         */
743        public VisionPrescription setEncounter(ResourceReferenceDt theValue) {
744                myEncounter = theValue;
745                return this;
746        }
747        
748        
749
750  
751        /**
752         * Gets the value(s) for <b>reason[x]</b> ().
753         * creating it if it does
754         * not exist. Will not return <code>null</code>.
755         *
756     * <p>
757     * <b>Definition:</b>
758     * Can be the reason or the indication for writing the prescription.
759     * </p> 
760         */
761        public IDatatype getReason() {  
762                return myReason;
763        }
764
765        /**
766         * Sets the value(s) for <b>reason[x]</b> ()
767         *
768     * <p>
769     * <b>Definition:</b>
770     * Can be the reason or the indication for writing the prescription.
771     * </p> 
772         */
773        public VisionPrescription setReason(IDatatype theValue) {
774                myReason = theValue;
775                return this;
776        }
777        
778        
779
780  
781        /**
782         * Gets the value(s) for <b>dispense</b> ().
783         * creating it if it does
784         * not exist. Will not return <code>null</code>.
785         *
786     * <p>
787     * <b>Definition:</b>
788     * Deals with details of the dispense part of the supply specification.
789     * </p> 
790         */
791        public java.util.List<Dispense> getDispense() {  
792                if (myDispense == null) {
793                        myDispense = new java.util.ArrayList<Dispense>();
794                }
795                return myDispense;
796        }
797
798        /**
799         * Sets the value(s) for <b>dispense</b> ()
800         *
801     * <p>
802     * <b>Definition:</b>
803     * Deals with details of the dispense part of the supply specification.
804     * </p> 
805         */
806        public VisionPrescription setDispense(java.util.List<Dispense> theValue) {
807                myDispense = theValue;
808                return this;
809        }
810        
811        
812
813        /**
814         * Adds and returns a new value for <b>dispense</b> ()
815         *
816     * <p>
817     * <b>Definition:</b>
818     * Deals with details of the dispense part of the supply specification.
819     * </p> 
820         */
821        public Dispense addDispense() {
822                Dispense newType = new Dispense();
823                getDispense().add(newType);
824                return newType; 
825        }
826
827        /**
828         * Adds a given new value for <b>dispense</b> ()
829         *
830         * <p>
831         * <b>Definition:</b>
832         * Deals with details of the dispense part of the supply specification.
833         * </p>
834         * @param theValue The dispense to add (must not be <code>null</code>)
835         */
836        public VisionPrescription addDispense(Dispense theValue) {
837                if (theValue == null) {
838                        throw new NullPointerException("theValue must not be null");
839                }
840                getDispense().add(theValue);
841                return this;
842        }
843
844        /**
845         * Gets the first repetition for <b>dispense</b> (),
846         * creating it if it does not already exist.
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 getDispenseFirstRep() {
854                if (getDispense().isEmpty()) {
855                        return addDispense();
856                }
857                return getDispense().get(0); 
858        }
859  
860        /**
861         * Block class for child element: <b>VisionPrescription.dispense</b> ()
862         *
863     * <p>
864     * <b>Definition:</b>
865     * Deals with details of the dispense part of the supply specification.
866     * </p> 
867         */
868        @Block()        
869        public static class Dispense 
870            extends  BaseIdentifiableElement        implements IResourceBlock {
871        
872        @Child(name="product", type=CodingDt.class, order=0, min=1, max=1, summary=false, modifier=false)       
873        @Description(
874                shortDefinition="",
875                formalDefinition="Identifies the type of vision correction product which is required for the patient."
876        )
877        private CodingDt myProduct;
878        
879        @Child(name="eye", type=CodeDt.class, order=1, min=0, max=1, summary=false, modifier=false)     
880        @Description(
881                shortDefinition="",
882                formalDefinition="The eye for which the lens applies."
883        )
884        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/vision-eye-codes")
885        private BoundCodeDt<VisionEyesEnum> myEye;
886        
887        @Child(name="sphere", type=DecimalDt.class, order=2, min=0, max=1, summary=false, modifier=false)       
888        @Description(
889                shortDefinition="",
890                formalDefinition="Lens power measured in diopters (0.25 units)."
891        )
892        private DecimalDt mySphere;
893        
894        @Child(name="cylinder", type=DecimalDt.class, order=3, min=0, max=1, summary=false, modifier=false)     
895        @Description(
896                shortDefinition="",
897                formalDefinition="Power adjustment for astigmatism measured in diopters (0.25 units)."
898        )
899        private DecimalDt myCylinder;
900        
901        @Child(name="axis", type=IntegerDt.class, order=4, min=0, max=1, summary=false, modifier=false) 
902        @Description(
903                shortDefinition="",
904                formalDefinition="Adjustment for astigmatism measured in integer degrees."
905        )
906        private IntegerDt myAxis;
907        
908        @Child(name="prism", type=DecimalDt.class, order=5, min=0, max=1, summary=false, modifier=false)        
909        @Description(
910                shortDefinition="",
911                formalDefinition="Amount of prism to compensate for eye alignment in fractional units."
912        )
913        private DecimalDt myPrism;
914        
915        @Child(name="base", type=CodeDt.class, order=6, min=0, max=1, summary=false, modifier=false)    
916        @Description(
917                shortDefinition="",
918                formalDefinition="The relative base, or reference lens edge, for the prism."
919        )
920        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/vision-base-codes")
921        private BoundCodeDt<VisionBaseEnum> myBase;
922        
923        @Child(name="add", type=DecimalDt.class, order=7, min=0, max=1, summary=false, modifier=false)  
924        @Description(
925                shortDefinition="",
926                formalDefinition="Power adjustment for multifocal lenses measured in diopters (0.25 units)."
927        )
928        private DecimalDt myAdd;
929        
930        @Child(name="power", type=DecimalDt.class, order=8, min=0, max=1, summary=false, modifier=false)        
931        @Description(
932                shortDefinition="",
933                formalDefinition="Contact lens power measured in diopters (0.25 units)."
934        )
935        private DecimalDt myPower;
936        
937        @Child(name="backCurve", type=DecimalDt.class, order=9, min=0, max=1, summary=false, modifier=false)    
938        @Description(
939                shortDefinition="",
940                formalDefinition="Back curvature measured in millimeters."
941        )
942        private DecimalDt myBackCurve;
943        
944        @Child(name="diameter", type=DecimalDt.class, order=10, min=0, max=1, summary=false, modifier=false)    
945        @Description(
946                shortDefinition="",
947                formalDefinition="Contact lens diameter measured in millimeters."
948        )
949        private DecimalDt myDiameter;
950        
951        @Child(name="duration", type=SimpleQuantityDt.class, order=11, min=0, max=1, summary=false, modifier=false)     
952        @Description(
953                shortDefinition="",
954                formalDefinition="The recommended maximum wear period for the lens."
955        )
956        private SimpleQuantityDt myDuration;
957        
958        @Child(name="color", type=StringDt.class, order=12, min=0, max=1, summary=false, modifier=false)        
959        @Description(
960                shortDefinition="",
961                formalDefinition="Special color or pattern."
962        )
963        private StringDt myColor;
964        
965        @Child(name="brand", type=StringDt.class, order=13, min=0, max=1, summary=false, modifier=false)        
966        @Description(
967                shortDefinition="",
968                formalDefinition="Brand recommendations or restrictions."
969        )
970        private StringDt myBrand;
971        
972        @Child(name="notes", type=StringDt.class, order=14, min=0, max=1, summary=false, modifier=false)        
973        @Description(
974                shortDefinition="",
975                formalDefinition="Notes for special requirements such as coatings and lens materials."
976        )
977        private StringDt myNotes;
978        
979
980        @Override
981        public boolean isEmpty() {
982                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myProduct,  myEye,  mySphere,  myCylinder,  myAxis,  myPrism,  myBase,  myAdd,  myPower,  myBackCurve,  myDiameter,  myDuration,  myColor,  myBrand,  myNotes);
983        }
984        
985        @Override
986        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
987                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myProduct, myEye, mySphere, myCylinder, myAxis, myPrism, myBase, myAdd, myPower, myBackCurve, myDiameter, myDuration, myColor, myBrand, myNotes);
988        }
989
990        /**
991         * Gets the value(s) for <b>product</b> ().
992         * creating it if it does
993         * not exist. Will not return <code>null</code>.
994         *
995     * <p>
996     * <b>Definition:</b>
997     * Identifies the type of vision correction product which is required for the patient.
998     * </p> 
999         */
1000        public CodingDt getProduct() {  
1001                if (myProduct == null) {
1002                        myProduct = new CodingDt();
1003                }
1004                return myProduct;
1005        }
1006
1007        /**
1008         * Sets the value(s) for <b>product</b> ()
1009         *
1010     * <p>
1011     * <b>Definition:</b>
1012     * Identifies the type of vision correction product which is required for the patient.
1013     * </p> 
1014         */
1015        public Dispense setProduct(CodingDt theValue) {
1016                myProduct = theValue;
1017                return this;
1018        }
1019        
1020        
1021
1022  
1023        /**
1024         * Gets the value(s) for <b>eye</b> ().
1025         * creating it if it does
1026         * not exist. Will not return <code>null</code>.
1027         *
1028     * <p>
1029     * <b>Definition:</b>
1030     * The eye for which the lens applies.
1031     * </p> 
1032         */
1033        public BoundCodeDt<VisionEyesEnum> getEyeElement() {  
1034                if (myEye == null) {
1035                        myEye = new BoundCodeDt<VisionEyesEnum>(VisionEyesEnum.VALUESET_BINDER);
1036                }
1037                return myEye;
1038        }
1039
1040        
1041        /**
1042         * Gets the value(s) for <b>eye</b> ().
1043         * creating it if it does
1044         * not exist. This method may return <code>null</code>.
1045         *
1046     * <p>
1047     * <b>Definition:</b>
1048     * The eye for which the lens applies.
1049     * </p> 
1050         */
1051        public String getEye() {  
1052                return getEyeElement().getValue();
1053        }
1054
1055        /**
1056         * Sets the value(s) for <b>eye</b> ()
1057         *
1058     * <p>
1059     * <b>Definition:</b>
1060     * The eye for which the lens applies.
1061     * </p> 
1062         */
1063        public Dispense setEye(BoundCodeDt<VisionEyesEnum> theValue) {
1064                myEye = theValue;
1065                return this;
1066        }
1067        
1068        
1069
1070        /**
1071         * Sets the value(s) for <b>eye</b> ()
1072         *
1073     * <p>
1074     * <b>Definition:</b>
1075     * The eye for which the lens applies.
1076     * </p> 
1077         */
1078        public Dispense setEye(VisionEyesEnum theValue) {
1079                setEye(new BoundCodeDt<VisionEyesEnum>(VisionEyesEnum.VALUESET_BINDER, theValue));
1080                
1081/*
1082                getEyeElement().setValueAsEnum(theValue);
1083*/
1084                return this;
1085        }
1086
1087  
1088        /**
1089         * Gets the value(s) for <b>sphere</b> ().
1090         * creating it if it does
1091         * not exist. Will not return <code>null</code>.
1092         *
1093     * <p>
1094     * <b>Definition:</b>
1095     * Lens power measured in diopters (0.25 units).
1096     * </p> 
1097         */
1098        public DecimalDt getSphereElement() {  
1099                if (mySphere == null) {
1100                        mySphere = new DecimalDt();
1101                }
1102                return mySphere;
1103        }
1104
1105        
1106        /**
1107         * Gets the value(s) for <b>sphere</b> ().
1108         * creating it if it does
1109         * not exist. This method may return <code>null</code>.
1110         *
1111     * <p>
1112     * <b>Definition:</b>
1113     * Lens power measured in diopters (0.25 units).
1114     * </p> 
1115         */
1116        public BigDecimal getSphere() {  
1117                return getSphereElement().getValue();
1118        }
1119
1120        /**
1121         * Sets the value(s) for <b>sphere</b> ()
1122         *
1123     * <p>
1124     * <b>Definition:</b>
1125     * Lens power measured in diopters (0.25 units).
1126     * </p> 
1127         */
1128        public Dispense setSphere(DecimalDt theValue) {
1129                mySphere = theValue;
1130                return this;
1131        }
1132        
1133        
1134
1135        /**
1136         * Sets the value for <b>sphere</b> ()
1137         *
1138     * <p>
1139     * <b>Definition:</b>
1140     * Lens power measured in diopters (0.25 units).
1141     * </p> 
1142         */
1143        public Dispense setSphere( long theValue) {
1144                mySphere = new DecimalDt(theValue); 
1145                return this; 
1146        }
1147
1148        /**
1149         * Sets the value for <b>sphere</b> ()
1150         *
1151     * <p>
1152     * <b>Definition:</b>
1153     * Lens power measured in diopters (0.25 units).
1154     * </p> 
1155         */
1156        public Dispense setSphere( double theValue) {
1157                mySphere = new DecimalDt(theValue); 
1158                return this; 
1159        }
1160
1161        /**
1162         * Sets the value for <b>sphere</b> ()
1163         *
1164     * <p>
1165     * <b>Definition:</b>
1166     * Lens power measured in diopters (0.25 units).
1167     * </p> 
1168         */
1169        public Dispense setSphere( java.math.BigDecimal theValue) {
1170                mySphere = new DecimalDt(theValue); 
1171                return this; 
1172        }
1173
1174 
1175        /**
1176         * Gets the value(s) for <b>cylinder</b> ().
1177         * creating it if it does
1178         * not exist. Will not return <code>null</code>.
1179         *
1180     * <p>
1181     * <b>Definition:</b>
1182     * Power adjustment for astigmatism measured in diopters (0.25 units).
1183     * </p> 
1184         */
1185        public DecimalDt getCylinderElement() {  
1186                if (myCylinder == null) {
1187                        myCylinder = new DecimalDt();
1188                }
1189                return myCylinder;
1190        }
1191
1192        
1193        /**
1194         * Gets the value(s) for <b>cylinder</b> ().
1195         * creating it if it does
1196         * not exist. This method may return <code>null</code>.
1197         *
1198     * <p>
1199     * <b>Definition:</b>
1200     * Power adjustment for astigmatism measured in diopters (0.25 units).
1201     * </p> 
1202         */
1203        public BigDecimal getCylinder() {  
1204                return getCylinderElement().getValue();
1205        }
1206
1207        /**
1208         * Sets the value(s) for <b>cylinder</b> ()
1209         *
1210     * <p>
1211     * <b>Definition:</b>
1212     * Power adjustment for astigmatism measured in diopters (0.25 units).
1213     * </p> 
1214         */
1215        public Dispense setCylinder(DecimalDt theValue) {
1216                myCylinder = theValue;
1217                return this;
1218        }
1219        
1220        
1221
1222        /**
1223         * Sets the value for <b>cylinder</b> ()
1224         *
1225     * <p>
1226     * <b>Definition:</b>
1227     * Power adjustment for astigmatism measured in diopters (0.25 units).
1228     * </p> 
1229         */
1230        public Dispense setCylinder( long theValue) {
1231                myCylinder = new DecimalDt(theValue); 
1232                return this; 
1233        }
1234
1235        /**
1236         * Sets the value for <b>cylinder</b> ()
1237         *
1238     * <p>
1239     * <b>Definition:</b>
1240     * Power adjustment for astigmatism measured in diopters (0.25 units).
1241     * </p> 
1242         */
1243        public Dispense setCylinder( double theValue) {
1244                myCylinder = new DecimalDt(theValue); 
1245                return this; 
1246        }
1247
1248        /**
1249         * Sets the value for <b>cylinder</b> ()
1250         *
1251     * <p>
1252     * <b>Definition:</b>
1253     * Power adjustment for astigmatism measured in diopters (0.25 units).
1254     * </p> 
1255         */
1256        public Dispense setCylinder( java.math.BigDecimal theValue) {
1257                myCylinder = new DecimalDt(theValue); 
1258                return this; 
1259        }
1260
1261 
1262        /**
1263         * Gets the value(s) for <b>axis</b> ().
1264         * creating it if it does
1265         * not exist. Will not return <code>null</code>.
1266         *
1267     * <p>
1268     * <b>Definition:</b>
1269     * Adjustment for astigmatism measured in integer degrees.
1270     * </p> 
1271         */
1272        public IntegerDt getAxisElement() {  
1273                if (myAxis == null) {
1274                        myAxis = new IntegerDt();
1275                }
1276                return myAxis;
1277        }
1278
1279        
1280        /**
1281         * Gets the value(s) for <b>axis</b> ().
1282         * creating it if it does
1283         * not exist. This method may return <code>null</code>.
1284         *
1285     * <p>
1286     * <b>Definition:</b>
1287     * Adjustment for astigmatism measured in integer degrees.
1288     * </p> 
1289         */
1290        public Integer getAxis() {  
1291                return getAxisElement().getValue();
1292        }
1293
1294        /**
1295         * Sets the value(s) for <b>axis</b> ()
1296         *
1297     * <p>
1298     * <b>Definition:</b>
1299     * Adjustment for astigmatism measured in integer degrees.
1300     * </p> 
1301         */
1302        public Dispense setAxis(IntegerDt theValue) {
1303                myAxis = theValue;
1304                return this;
1305        }
1306        
1307        
1308
1309        /**
1310         * Sets the value for <b>axis</b> ()
1311         *
1312     * <p>
1313     * <b>Definition:</b>
1314     * Adjustment for astigmatism measured in integer degrees.
1315     * </p> 
1316         */
1317        public Dispense setAxis( int theInteger) {
1318                myAxis = new IntegerDt(theInteger); 
1319                return this; 
1320        }
1321
1322 
1323        /**
1324         * Gets the value(s) for <b>prism</b> ().
1325         * creating it if it does
1326         * not exist. Will not return <code>null</code>.
1327         *
1328     * <p>
1329     * <b>Definition:</b>
1330     * Amount of prism to compensate for eye alignment in fractional units.
1331     * </p> 
1332         */
1333        public DecimalDt getPrismElement() {  
1334                if (myPrism == null) {
1335                        myPrism = new DecimalDt();
1336                }
1337                return myPrism;
1338        }
1339
1340        
1341        /**
1342         * Gets the value(s) for <b>prism</b> ().
1343         * creating it if it does
1344         * not exist. This method may return <code>null</code>.
1345         *
1346     * <p>
1347     * <b>Definition:</b>
1348     * Amount of prism to compensate for eye alignment in fractional units.
1349     * </p> 
1350         */
1351        public BigDecimal getPrism() {  
1352                return getPrismElement().getValue();
1353        }
1354
1355        /**
1356         * Sets the value(s) for <b>prism</b> ()
1357         *
1358     * <p>
1359     * <b>Definition:</b>
1360     * Amount of prism to compensate for eye alignment in fractional units.
1361     * </p> 
1362         */
1363        public Dispense setPrism(DecimalDt theValue) {
1364                myPrism = theValue;
1365                return this;
1366        }
1367        
1368        
1369
1370        /**
1371         * Sets the value for <b>prism</b> ()
1372         *
1373     * <p>
1374     * <b>Definition:</b>
1375     * Amount of prism to compensate for eye alignment in fractional units.
1376     * </p> 
1377         */
1378        public Dispense setPrism( long theValue) {
1379                myPrism = new DecimalDt(theValue); 
1380                return this; 
1381        }
1382
1383        /**
1384         * Sets the value for <b>prism</b> ()
1385         *
1386     * <p>
1387     * <b>Definition:</b>
1388     * Amount of prism to compensate for eye alignment in fractional units.
1389     * </p> 
1390         */
1391        public Dispense setPrism( double theValue) {
1392                myPrism = new DecimalDt(theValue); 
1393                return this; 
1394        }
1395
1396        /**
1397         * Sets the value for <b>prism</b> ()
1398         *
1399     * <p>
1400     * <b>Definition:</b>
1401     * Amount of prism to compensate for eye alignment in fractional units.
1402     * </p> 
1403         */
1404        public Dispense setPrism( java.math.BigDecimal theValue) {
1405                myPrism = new DecimalDt(theValue); 
1406                return this; 
1407        }
1408
1409 
1410        /**
1411         * Gets the value(s) for <b>base</b> ().
1412         * creating it if it does
1413         * not exist. Will not return <code>null</code>.
1414         *
1415     * <p>
1416     * <b>Definition:</b>
1417     * The relative base, or reference lens edge, for the prism.
1418     * </p> 
1419         */
1420        public BoundCodeDt<VisionBaseEnum> getBaseElement() {  
1421                if (myBase == null) {
1422                        myBase = new BoundCodeDt<VisionBaseEnum>(VisionBaseEnum.VALUESET_BINDER);
1423                }
1424                return myBase;
1425        }
1426
1427        
1428        /**
1429         * Gets the value(s) for <b>base</b> ().
1430         * creating it if it does
1431         * not exist. This method may return <code>null</code>.
1432         *
1433     * <p>
1434     * <b>Definition:</b>
1435     * The relative base, or reference lens edge, for the prism.
1436     * </p> 
1437         */
1438        public String getBase() {  
1439                return getBaseElement().getValue();
1440        }
1441
1442        /**
1443         * Sets the value(s) for <b>base</b> ()
1444         *
1445     * <p>
1446     * <b>Definition:</b>
1447     * The relative base, or reference lens edge, for the prism.
1448     * </p> 
1449         */
1450        public Dispense setBase(BoundCodeDt<VisionBaseEnum> theValue) {
1451                myBase = theValue;
1452                return this;
1453        }
1454        
1455        
1456
1457        /**
1458         * Sets the value(s) for <b>base</b> ()
1459         *
1460     * <p>
1461     * <b>Definition:</b>
1462     * The relative base, or reference lens edge, for the prism.
1463     * </p> 
1464         */
1465        public Dispense setBase(VisionBaseEnum theValue) {
1466                setBase(new BoundCodeDt<VisionBaseEnum>(VisionBaseEnum.VALUESET_BINDER, theValue));
1467                
1468/*
1469                getBaseElement().setValueAsEnum(theValue);
1470*/
1471                return this;
1472        }
1473
1474  
1475        /**
1476         * Gets the value(s) for <b>add</b> ().
1477         * creating it if it does
1478         * not exist. Will not return <code>null</code>.
1479         *
1480     * <p>
1481     * <b>Definition:</b>
1482     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1483     * </p> 
1484         */
1485        public DecimalDt getAddElement() {  
1486                if (myAdd == null) {
1487                        myAdd = new DecimalDt();
1488                }
1489                return myAdd;
1490        }
1491
1492        
1493        /**
1494         * Gets the value(s) for <b>add</b> ().
1495         * creating it if it does
1496         * not exist. This method may return <code>null</code>.
1497         *
1498     * <p>
1499     * <b>Definition:</b>
1500     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1501     * </p> 
1502         */
1503        public BigDecimal getAdd() {  
1504                return getAddElement().getValue();
1505        }
1506
1507        /**
1508         * Sets the value(s) for <b>add</b> ()
1509         *
1510     * <p>
1511     * <b>Definition:</b>
1512     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1513     * </p> 
1514         */
1515        public Dispense setAdd(DecimalDt theValue) {
1516                myAdd = theValue;
1517                return this;
1518        }
1519        
1520        
1521
1522        /**
1523         * Sets the value for <b>add</b> ()
1524         *
1525     * <p>
1526     * <b>Definition:</b>
1527     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1528     * </p> 
1529         */
1530        public Dispense setAdd( long theValue) {
1531                myAdd = new DecimalDt(theValue); 
1532                return this; 
1533        }
1534
1535        /**
1536         * Sets the value for <b>add</b> ()
1537         *
1538     * <p>
1539     * <b>Definition:</b>
1540     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1541     * </p> 
1542         */
1543        public Dispense setAdd( double theValue) {
1544                myAdd = new DecimalDt(theValue); 
1545                return this; 
1546        }
1547
1548        /**
1549         * Sets the value for <b>add</b> ()
1550         *
1551     * <p>
1552     * <b>Definition:</b>
1553     * Power adjustment for multifocal lenses measured in diopters (0.25 units).
1554     * </p> 
1555         */
1556        public Dispense setAdd( java.math.BigDecimal theValue) {
1557                myAdd = new DecimalDt(theValue); 
1558                return this; 
1559        }
1560
1561 
1562        /**
1563         * Gets the value(s) for <b>power</b> ().
1564         * creating it if it does
1565         * not exist. Will not return <code>null</code>.
1566         *
1567     * <p>
1568     * <b>Definition:</b>
1569     * Contact lens power measured in diopters (0.25 units).
1570     * </p> 
1571         */
1572        public DecimalDt getPowerElement() {  
1573                if (myPower == null) {
1574                        myPower = new DecimalDt();
1575                }
1576                return myPower;
1577        }
1578
1579        
1580        /**
1581         * Gets the value(s) for <b>power</b> ().
1582         * creating it if it does
1583         * not exist. This method may return <code>null</code>.
1584         *
1585     * <p>
1586     * <b>Definition:</b>
1587     * Contact lens power measured in diopters (0.25 units).
1588     * </p> 
1589         */
1590        public BigDecimal getPower() {  
1591                return getPowerElement().getValue();
1592        }
1593
1594        /**
1595         * Sets the value(s) for <b>power</b> ()
1596         *
1597     * <p>
1598     * <b>Definition:</b>
1599     * Contact lens power measured in diopters (0.25 units).
1600     * </p> 
1601         */
1602        public Dispense setPower(DecimalDt theValue) {
1603                myPower = theValue;
1604                return this;
1605        }
1606        
1607        
1608
1609        /**
1610         * Sets the value for <b>power</b> ()
1611         *
1612     * <p>
1613     * <b>Definition:</b>
1614     * Contact lens power measured in diopters (0.25 units).
1615     * </p> 
1616         */
1617        public Dispense setPower( long theValue) {
1618                myPower = new DecimalDt(theValue); 
1619                return this; 
1620        }
1621
1622        /**
1623         * Sets the value for <b>power</b> ()
1624         *
1625     * <p>
1626     * <b>Definition:</b>
1627     * Contact lens power measured in diopters (0.25 units).
1628     * </p> 
1629         */
1630        public Dispense setPower( double theValue) {
1631                myPower = new DecimalDt(theValue); 
1632                return this; 
1633        }
1634
1635        /**
1636         * Sets the value for <b>power</b> ()
1637         *
1638     * <p>
1639     * <b>Definition:</b>
1640     * Contact lens power measured in diopters (0.25 units).
1641     * </p> 
1642         */
1643        public Dispense setPower( java.math.BigDecimal theValue) {
1644                myPower = new DecimalDt(theValue); 
1645                return this; 
1646        }
1647
1648 
1649        /**
1650         * Gets the value(s) for <b>backCurve</b> ().
1651         * creating it if it does
1652         * not exist. Will not return <code>null</code>.
1653         *
1654     * <p>
1655     * <b>Definition:</b>
1656     * Back curvature measured in millimeters.
1657     * </p> 
1658         */
1659        public DecimalDt getBackCurveElement() {  
1660                if (myBackCurve == null) {
1661                        myBackCurve = new DecimalDt();
1662                }
1663                return myBackCurve;
1664        }
1665
1666        
1667        /**
1668         * Gets the value(s) for <b>backCurve</b> ().
1669         * creating it if it does
1670         * not exist. This method may return <code>null</code>.
1671         *
1672     * <p>
1673     * <b>Definition:</b>
1674     * Back curvature measured in millimeters.
1675     * </p> 
1676         */
1677        public BigDecimal getBackCurve() {  
1678                return getBackCurveElement().getValue();
1679        }
1680
1681        /**
1682         * Sets the value(s) for <b>backCurve</b> ()
1683         *
1684     * <p>
1685     * <b>Definition:</b>
1686     * Back curvature measured in millimeters.
1687     * </p> 
1688         */
1689        public Dispense setBackCurve(DecimalDt theValue) {
1690                myBackCurve = theValue;
1691                return this;
1692        }
1693        
1694        
1695
1696        /**
1697         * Sets the value for <b>backCurve</b> ()
1698         *
1699     * <p>
1700     * <b>Definition:</b>
1701     * Back curvature measured in millimeters.
1702     * </p> 
1703         */
1704        public Dispense setBackCurve( long theValue) {
1705                myBackCurve = new DecimalDt(theValue); 
1706                return this; 
1707        }
1708
1709        /**
1710         * Sets the value for <b>backCurve</b> ()
1711         *
1712     * <p>
1713     * <b>Definition:</b>
1714     * Back curvature measured in millimeters.
1715     * </p> 
1716         */
1717        public Dispense setBackCurve( double theValue) {
1718                myBackCurve = new DecimalDt(theValue); 
1719                return this; 
1720        }
1721
1722        /**
1723         * Sets the value for <b>backCurve</b> ()
1724         *
1725     * <p>
1726     * <b>Definition:</b>
1727     * Back curvature measured in millimeters.
1728     * </p> 
1729         */
1730        public Dispense setBackCurve( java.math.BigDecimal theValue) {
1731                myBackCurve = new DecimalDt(theValue); 
1732                return this; 
1733        }
1734
1735 
1736        /**
1737         * Gets the value(s) for <b>diameter</b> ().
1738         * creating it if it does
1739         * not exist. Will not return <code>null</code>.
1740         *
1741     * <p>
1742     * <b>Definition:</b>
1743     * Contact lens diameter measured in millimeters.
1744     * </p> 
1745         */
1746        public DecimalDt getDiameterElement() {  
1747                if (myDiameter == null) {
1748                        myDiameter = new DecimalDt();
1749                }
1750                return myDiameter;
1751        }
1752
1753        
1754        /**
1755         * Gets the value(s) for <b>diameter</b> ().
1756         * creating it if it does
1757         * not exist. This method may return <code>null</code>.
1758         *
1759     * <p>
1760     * <b>Definition:</b>
1761     * Contact lens diameter measured in millimeters.
1762     * </p> 
1763         */
1764        public BigDecimal getDiameter() {  
1765                return getDiameterElement().getValue();
1766        }
1767
1768        /**
1769         * Sets the value(s) for <b>diameter</b> ()
1770         *
1771     * <p>
1772     * <b>Definition:</b>
1773     * Contact lens diameter measured in millimeters.
1774     * </p> 
1775         */
1776        public Dispense setDiameter(DecimalDt theValue) {
1777                myDiameter = theValue;
1778                return this;
1779        }
1780        
1781        
1782
1783        /**
1784         * Sets the value for <b>diameter</b> ()
1785         *
1786     * <p>
1787     * <b>Definition:</b>
1788     * Contact lens diameter measured in millimeters.
1789     * </p> 
1790         */
1791        public Dispense setDiameter( long theValue) {
1792                myDiameter = new DecimalDt(theValue); 
1793                return this; 
1794        }
1795
1796        /**
1797         * Sets the value for <b>diameter</b> ()
1798         *
1799     * <p>
1800     * <b>Definition:</b>
1801     * Contact lens diameter measured in millimeters.
1802     * </p> 
1803         */
1804        public Dispense setDiameter( double theValue) {
1805                myDiameter = new DecimalDt(theValue); 
1806                return this; 
1807        }
1808
1809        /**
1810         * Sets the value for <b>diameter</b> ()
1811         *
1812     * <p>
1813     * <b>Definition:</b>
1814     * Contact lens diameter measured in millimeters.
1815     * </p> 
1816         */
1817        public Dispense setDiameter( java.math.BigDecimal theValue) {
1818                myDiameter = new DecimalDt(theValue); 
1819                return this; 
1820        }
1821
1822 
1823        /**
1824         * Gets the value(s) for <b>duration</b> ().
1825         * creating it if it does
1826         * not exist. Will not return <code>null</code>.
1827         *
1828     * <p>
1829     * <b>Definition:</b>
1830     * The recommended maximum wear period for the lens.
1831     * </p> 
1832         */
1833        public SimpleQuantityDt getDuration() {  
1834                if (myDuration == null) {
1835                        myDuration = new SimpleQuantityDt();
1836                }
1837                return myDuration;
1838        }
1839
1840        /**
1841         * Sets the value(s) for <b>duration</b> ()
1842         *
1843     * <p>
1844     * <b>Definition:</b>
1845     * The recommended maximum wear period for the lens.
1846     * </p> 
1847         */
1848        public Dispense setDuration(SimpleQuantityDt theValue) {
1849                myDuration = theValue;
1850                return this;
1851        }
1852        
1853        
1854
1855  
1856        /**
1857         * Gets the value(s) for <b>color</b> ().
1858         * creating it if it does
1859         * not exist. Will not return <code>null</code>.
1860         *
1861     * <p>
1862     * <b>Definition:</b>
1863     * Special color or pattern.
1864     * </p> 
1865         */
1866        public StringDt getColorElement() {  
1867                if (myColor == null) {
1868                        myColor = new StringDt();
1869                }
1870                return myColor;
1871        }
1872
1873        
1874        /**
1875         * Gets the value(s) for <b>color</b> ().
1876         * creating it if it does
1877         * not exist. This method may return <code>null</code>.
1878         *
1879     * <p>
1880     * <b>Definition:</b>
1881     * Special color or pattern.
1882     * </p> 
1883         */
1884        public String getColor() {  
1885                return getColorElement().getValue();
1886        }
1887
1888        /**
1889         * Sets the value(s) for <b>color</b> ()
1890         *
1891     * <p>
1892     * <b>Definition:</b>
1893     * Special color or pattern.
1894     * </p> 
1895         */
1896        public Dispense setColor(StringDt theValue) {
1897                myColor = theValue;
1898                return this;
1899        }
1900        
1901        
1902
1903        /**
1904         * Sets the value for <b>color</b> ()
1905         *
1906     * <p>
1907     * <b>Definition:</b>
1908     * Special color or pattern.
1909     * </p> 
1910         */
1911        public Dispense setColor( String theString) {
1912                myColor = new StringDt(theString); 
1913                return this; 
1914        }
1915
1916 
1917        /**
1918         * Gets the value(s) for <b>brand</b> ().
1919         * creating it if it does
1920         * not exist. Will not return <code>null</code>.
1921         *
1922     * <p>
1923     * <b>Definition:</b>
1924     * Brand recommendations or restrictions.
1925     * </p> 
1926         */
1927        public StringDt getBrandElement() {  
1928                if (myBrand == null) {
1929                        myBrand = new StringDt();
1930                }
1931                return myBrand;
1932        }
1933
1934        
1935        /**
1936         * Gets the value(s) for <b>brand</b> ().
1937         * creating it if it does
1938         * not exist. This method may return <code>null</code>.
1939         *
1940     * <p>
1941     * <b>Definition:</b>
1942     * Brand recommendations or restrictions.
1943     * </p> 
1944         */
1945        public String getBrand() {  
1946                return getBrandElement().getValue();
1947        }
1948
1949        /**
1950         * Sets the value(s) for <b>brand</b> ()
1951         *
1952     * <p>
1953     * <b>Definition:</b>
1954     * Brand recommendations or restrictions.
1955     * </p> 
1956         */
1957        public Dispense setBrand(StringDt theValue) {
1958                myBrand = theValue;
1959                return this;
1960        }
1961        
1962        
1963
1964        /**
1965         * Sets the value for <b>brand</b> ()
1966         *
1967     * <p>
1968     * <b>Definition:</b>
1969     * Brand recommendations or restrictions.
1970     * </p> 
1971         */
1972        public Dispense setBrand( String theString) {
1973                myBrand = new StringDt(theString); 
1974                return this; 
1975        }
1976
1977 
1978        /**
1979         * Gets the value(s) for <b>notes</b> ().
1980         * creating it if it does
1981         * not exist. Will not return <code>null</code>.
1982         *
1983     * <p>
1984     * <b>Definition:</b>
1985     * Notes for special requirements such as coatings and lens materials.
1986     * </p> 
1987         */
1988        public StringDt getNotesElement() {  
1989                if (myNotes == null) {
1990                        myNotes = new StringDt();
1991                }
1992                return myNotes;
1993        }
1994
1995        
1996        /**
1997         * Gets the value(s) for <b>notes</b> ().
1998         * creating it if it does
1999         * not exist. This method may return <code>null</code>.
2000         *
2001     * <p>
2002     * <b>Definition:</b>
2003     * Notes for special requirements such as coatings and lens materials.
2004     * </p> 
2005         */
2006        public String getNotes() {  
2007                return getNotesElement().getValue();
2008        }
2009
2010        /**
2011         * Sets the value(s) for <b>notes</b> ()
2012         *
2013     * <p>
2014     * <b>Definition:</b>
2015     * Notes for special requirements such as coatings and lens materials.
2016     * </p> 
2017         */
2018        public Dispense setNotes(StringDt theValue) {
2019                myNotes = theValue;
2020                return this;
2021        }
2022        
2023        
2024
2025        /**
2026         * Sets the value for <b>notes</b> ()
2027         *
2028     * <p>
2029     * <b>Definition:</b>
2030     * Notes for special requirements such as coatings and lens materials.
2031     * </p> 
2032         */
2033        public Dispense setNotes( String theString) {
2034                myNotes = new StringDt(theString); 
2035                return this; 
2036        }
2037
2038 
2039
2040
2041        }
2042
2043
2044
2045
2046    @Override
2047    public String getResourceName() {
2048        return "VisionPrescription";
2049    }
2050    
2051    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
2052        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
2053    }
2054
2055
2056}