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>ImmunizationRecommendation</b> Resource
282 * (clinical.medication)
283 *
284 * <p>
285 * <b>Definition:</b>
286 * A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.
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/ImmunizationRecommendation">http://hl7.org/fhir/profiles/ImmunizationRecommendation</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="ImmunizationRecommendation", profile="http://hl7.org/fhir/profiles/ImmunizationRecommendation", id="immunizationrecommendation")
301public class ImmunizationRecommendation extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource     {
303
304        /**
305         * Search parameter constant for <b>vaccine-type</b>
306         * <p>
307         * Description: <b></b><br>
308         * Type: <b>token</b><br>
309         * Path: <b>ImmunizationRecommendation.recommendation.vaccineCode</b><br>
310         * </p>
311         */
312        @SearchParamDefinition(name="vaccine-type", path="ImmunizationRecommendation.recommendation.vaccineCode", description="", type="token"  )
313        public static final String SP_VACCINE_TYPE = "vaccine-type";
314
315        /**
316         * <b>Fluent Client</b> search parameter constant for <b>vaccine-type</b>
317         * <p>
318         * Description: <b></b><br>
319         * Type: <b>token</b><br>
320         * Path: <b>ImmunizationRecommendation.recommendation.vaccineCode</b><br>
321         * </p>
322         */
323        public static final TokenClientParam VACCINE_TYPE = new TokenClientParam(SP_VACCINE_TYPE);
324
325        /**
326         * Search parameter constant for <b>identifier</b>
327         * <p>
328         * Description: <b></b><br>
329         * Type: <b>token</b><br>
330         * Path: <b>ImmunizationRecommendation.identifier</b><br>
331         * </p>
332         */
333        @SearchParamDefinition(name="identifier", path="ImmunizationRecommendation.identifier", description="", type="token"  )
334        public static final String SP_IDENTIFIER = "identifier";
335
336        /**
337         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
338         * <p>
339         * Description: <b></b><br>
340         * Type: <b>token</b><br>
341         * Path: <b>ImmunizationRecommendation.identifier</b><br>
342         * </p>
343         */
344        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
345
346        /**
347         * Search parameter constant for <b>date</b>
348         * <p>
349         * Description: <b></b><br>
350         * Type: <b>date</b><br>
351         * Path: <b>ImmunizationRecommendation.recommendation.date</b><br>
352         * </p>
353         */
354        @SearchParamDefinition(name="date", path="ImmunizationRecommendation.recommendation.date", description="", type="date"  )
355        public static final String SP_DATE = "date";
356
357        /**
358         * <b>Fluent Client</b> search parameter constant for <b>date</b>
359         * <p>
360         * Description: <b></b><br>
361         * Type: <b>date</b><br>
362         * Path: <b>ImmunizationRecommendation.recommendation.date</b><br>
363         * </p>
364         */
365        public static final DateClientParam DATE = new DateClientParam(SP_DATE);
366
367        /**
368         * Search parameter constant for <b>dose-number</b>
369         * <p>
370         * Description: <b></b><br>
371         * Type: <b>number</b><br>
372         * Path: <b>ImmunizationRecommendation.recommendation.doseNumber</b><br>
373         * </p>
374         */
375        @SearchParamDefinition(name="dose-number", path="ImmunizationRecommendation.recommendation.doseNumber", description="", type="number"  )
376        public static final String SP_DOSE_NUMBER = "dose-number";
377
378        /**
379         * <b>Fluent Client</b> search parameter constant for <b>dose-number</b>
380         * <p>
381         * Description: <b></b><br>
382         * Type: <b>number</b><br>
383         * Path: <b>ImmunizationRecommendation.recommendation.doseNumber</b><br>
384         * </p>
385         */
386        public static final NumberClientParam DOSE_NUMBER = new NumberClientParam(SP_DOSE_NUMBER);
387
388        /**
389         * Search parameter constant for <b>status</b>
390         * <p>
391         * Description: <b></b><br>
392         * Type: <b>token</b><br>
393         * Path: <b>ImmunizationRecommendation.recommendation.forecastStatus</b><br>
394         * </p>
395         */
396        @SearchParamDefinition(name="status", path="ImmunizationRecommendation.recommendation.forecastStatus", description="", type="token"  )
397        public static final String SP_STATUS = "status";
398
399        /**
400         * <b>Fluent Client</b> search parameter constant for <b>status</b>
401         * <p>
402         * Description: <b></b><br>
403         * Type: <b>token</b><br>
404         * Path: <b>ImmunizationRecommendation.recommendation.forecastStatus</b><br>
405         * </p>
406         */
407        public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
408
409        /**
410         * Search parameter constant for <b>dose-sequence</b>
411         * <p>
412         * Description: <b></b><br>
413         * Type: <b>number</b><br>
414         * Path: <b>ImmunizationRecommendation.recommendation.protocol.doseSequence</b><br>
415         * </p>
416         */
417        @SearchParamDefinition(name="dose-sequence", path="ImmunizationRecommendation.recommendation.protocol.doseSequence", description="", type="number"  )
418        public static final String SP_DOSE_SEQUENCE = "dose-sequence";
419
420        /**
421         * <b>Fluent Client</b> search parameter constant for <b>dose-sequence</b>
422         * <p>
423         * Description: <b></b><br>
424         * Type: <b>number</b><br>
425         * Path: <b>ImmunizationRecommendation.recommendation.protocol.doseSequence</b><br>
426         * </p>
427         */
428        public static final NumberClientParam DOSE_SEQUENCE = new NumberClientParam(SP_DOSE_SEQUENCE);
429
430        /**
431         * Search parameter constant for <b>support</b>
432         * <p>
433         * Description: <b></b><br>
434         * Type: <b>reference</b><br>
435         * Path: <b>ImmunizationRecommendation.recommendation.supportingImmunization</b><br>
436         * </p>
437         */
438        @SearchParamDefinition(name="support", path="ImmunizationRecommendation.recommendation.supportingImmunization", description="", type="reference"  )
439        public static final String SP_SUPPORT = "support";
440
441        /**
442         * <b>Fluent Client</b> search parameter constant for <b>support</b>
443         * <p>
444         * Description: <b></b><br>
445         * Type: <b>reference</b><br>
446         * Path: <b>ImmunizationRecommendation.recommendation.supportingImmunization</b><br>
447         * </p>
448         */
449        public static final ReferenceClientParam SUPPORT = new ReferenceClientParam(SP_SUPPORT);
450
451        /**
452         * Search parameter constant for <b>information</b>
453         * <p>
454         * Description: <b></b><br>
455         * Type: <b>reference</b><br>
456         * Path: <b>ImmunizationRecommendation.recommendation.supportingPatientInformation</b><br>
457         * </p>
458         */
459        @SearchParamDefinition(name="information", path="ImmunizationRecommendation.recommendation.supportingPatientInformation", description="", type="reference"  )
460        public static final String SP_INFORMATION = "information";
461
462        /**
463         * <b>Fluent Client</b> search parameter constant for <b>information</b>
464         * <p>
465         * Description: <b></b><br>
466         * Type: <b>reference</b><br>
467         * Path: <b>ImmunizationRecommendation.recommendation.supportingPatientInformation</b><br>
468         * </p>
469         */
470        public static final ReferenceClientParam INFORMATION = new ReferenceClientParam(SP_INFORMATION);
471
472        /**
473         * Search parameter constant for <b>patient</b>
474         * <p>
475         * Description: <b></b><br>
476         * Type: <b>reference</b><br>
477         * Path: <b>ImmunizationRecommendation.patient</b><br>
478         * </p>
479         */
480        @SearchParamDefinition(name="patient", path="ImmunizationRecommendation.patient", description="", type="reference" , providesMembershipIn={
481 @Compartment(name="Patient")   }
482 )
483        public static final String SP_PATIENT = "patient";
484
485        /**
486         * <b>Fluent Client</b> search parameter constant for <b>patient</b>
487         * <p>
488         * Description: <b></b><br>
489         * Type: <b>reference</b><br>
490         * Path: <b>ImmunizationRecommendation.patient</b><br>
491         * </p>
492         */
493        public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
494
495
496        /**
497         * Constant for fluent queries to be used to add include statements. Specifies
498         * the path value of "<b>ImmunizationRecommendation:information</b>".
499         */
500        public static final Include INCLUDE_INFORMATION = new Include("ImmunizationRecommendation:information");
501
502        /**
503         * Constant for fluent queries to be used to add include statements. Specifies
504         * the path value of "<b>ImmunizationRecommendation:patient</b>".
505         */
506        public static final Include INCLUDE_PATIENT = new Include("ImmunizationRecommendation:patient");
507
508        /**
509         * Constant for fluent queries to be used to add include statements. Specifies
510         * the path value of "<b>ImmunizationRecommendation:support</b>".
511         */
512        public static final Include INCLUDE_SUPPORT = new Include("ImmunizationRecommendation:support");
513
514
515        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)       
516        @Description(
517                shortDefinition="id",
518                formalDefinition="A unique identifier assigned to this particular recommendation record."
519        )
520        private java.util.List<IdentifierDt> myIdentifier;
521        
522        @Child(name="patient", order=1, min=1, max=1, summary=true, modifier=false, type={
523                ca.uhn.fhir.model.dstu2.resource.Patient.class  })
524        @Description(
525                shortDefinition="who.focus",
526                formalDefinition="The patient for whom the recommendations are for."
527        )
528        private ResourceReferenceDt myPatient;
529        
530        @Child(name="recommendation", order=2, min=1, max=Child.MAX_UNLIMITED, summary=true, modifier=false)    
531        @Description(
532                shortDefinition="",
533                formalDefinition="Vaccine administration recommendations"
534        )
535        private java.util.List<Recommendation> myRecommendation;
536        
537
538        @Override
539        public boolean isEmpty() {
540                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myPatient,  myRecommendation);
541        }
542        
543        @Override
544        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
545                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myPatient, myRecommendation);
546        }
547
548        /**
549         * Gets the value(s) for <b>identifier</b> (id).
550         * creating it if it does
551         * not exist. Will not return <code>null</code>.
552         *
553     * <p>
554     * <b>Definition:</b>
555     * A unique identifier assigned to this particular recommendation record.
556     * </p> 
557         */
558        public java.util.List<IdentifierDt> getIdentifier() {  
559                if (myIdentifier == null) {
560                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
561                }
562                return myIdentifier;
563        }
564
565        /**
566         * Sets the value(s) for <b>identifier</b> (id)
567         *
568     * <p>
569     * <b>Definition:</b>
570     * A unique identifier assigned to this particular recommendation record.
571     * </p> 
572         */
573        public ImmunizationRecommendation setIdentifier(java.util.List<IdentifierDt> theValue) {
574                myIdentifier = theValue;
575                return this;
576        }
577        
578        
579
580        /**
581         * Adds and returns a new value for <b>identifier</b> (id)
582         *
583     * <p>
584     * <b>Definition:</b>
585     * A unique identifier assigned to this particular recommendation record.
586     * </p> 
587         */
588        public IdentifierDt addIdentifier() {
589                IdentifierDt newType = new IdentifierDt();
590                getIdentifier().add(newType);
591                return newType; 
592        }
593
594        /**
595         * Adds a given new value for <b>identifier</b> (id)
596         *
597         * <p>
598         * <b>Definition:</b>
599         * A unique identifier assigned to this particular recommendation record.
600         * </p>
601         * @param theValue The identifier to add (must not be <code>null</code>)
602         */
603        public ImmunizationRecommendation addIdentifier(IdentifierDt theValue) {
604                if (theValue == null) {
605                        throw new NullPointerException("theValue must not be null");
606                }
607                getIdentifier().add(theValue);
608                return this;
609        }
610
611        /**
612         * Gets the first repetition for <b>identifier</b> (id),
613         * creating it if it does not already exist.
614         *
615     * <p>
616     * <b>Definition:</b>
617     * A unique identifier assigned to this particular recommendation record.
618     * </p> 
619         */
620        public IdentifierDt getIdentifierFirstRep() {
621                if (getIdentifier().isEmpty()) {
622                        return addIdentifier();
623                }
624                return getIdentifier().get(0); 
625        }
626  
627        /**
628         * Gets the value(s) for <b>patient</b> (who.focus).
629         * creating it if it does
630         * not exist. Will not return <code>null</code>.
631         *
632     * <p>
633     * <b>Definition:</b>
634     * The patient for whom the recommendations are for.
635     * </p> 
636         */
637        public ResourceReferenceDt getPatient() {  
638                if (myPatient == null) {
639                        myPatient = new ResourceReferenceDt();
640                }
641                return myPatient;
642        }
643
644        /**
645         * Sets the value(s) for <b>patient</b> (who.focus)
646         *
647     * <p>
648     * <b>Definition:</b>
649     * The patient for whom the recommendations are for.
650     * </p> 
651         */
652        public ImmunizationRecommendation setPatient(ResourceReferenceDt theValue) {
653                myPatient = theValue;
654                return this;
655        }
656        
657        
658
659  
660        /**
661         * Gets the value(s) for <b>recommendation</b> ().
662         * creating it if it does
663         * not exist. Will not return <code>null</code>.
664         *
665     * <p>
666     * <b>Definition:</b>
667     * Vaccine administration recommendations
668     * </p> 
669         */
670        public java.util.List<Recommendation> getRecommendation() {  
671                if (myRecommendation == null) {
672                        myRecommendation = new java.util.ArrayList<Recommendation>();
673                }
674                return myRecommendation;
675        }
676
677        /**
678         * Sets the value(s) for <b>recommendation</b> ()
679         *
680     * <p>
681     * <b>Definition:</b>
682     * Vaccine administration recommendations
683     * </p> 
684         */
685        public ImmunizationRecommendation setRecommendation(java.util.List<Recommendation> theValue) {
686                myRecommendation = theValue;
687                return this;
688        }
689        
690        
691
692        /**
693         * Adds and returns a new value for <b>recommendation</b> ()
694         *
695     * <p>
696     * <b>Definition:</b>
697     * Vaccine administration recommendations
698     * </p> 
699         */
700        public Recommendation addRecommendation() {
701                Recommendation newType = new Recommendation();
702                getRecommendation().add(newType);
703                return newType; 
704        }
705
706        /**
707         * Adds a given new value for <b>recommendation</b> ()
708         *
709         * <p>
710         * <b>Definition:</b>
711         * Vaccine administration recommendations
712         * </p>
713         * @param theValue The recommendation to add (must not be <code>null</code>)
714         */
715        public ImmunizationRecommendation addRecommendation(Recommendation theValue) {
716                if (theValue == null) {
717                        throw new NullPointerException("theValue must not be null");
718                }
719                getRecommendation().add(theValue);
720                return this;
721        }
722
723        /**
724         * Gets the first repetition for <b>recommendation</b> (),
725         * creating it if it does not already exist.
726         *
727     * <p>
728     * <b>Definition:</b>
729     * Vaccine administration recommendations
730     * </p> 
731         */
732        public Recommendation getRecommendationFirstRep() {
733                if (getRecommendation().isEmpty()) {
734                        return addRecommendation();
735                }
736                return getRecommendation().get(0); 
737        }
738  
739        /**
740         * Block class for child element: <b>ImmunizationRecommendation.recommendation</b> ()
741         *
742     * <p>
743     * <b>Definition:</b>
744     * Vaccine administration recommendations
745     * </p> 
746         */
747        @Block()        
748        public static class Recommendation 
749            extends  BaseIdentifiableElement        implements IResourceBlock {
750        
751        @Child(name="date", type=DateTimeDt.class, order=0, min=1, max=1, summary=true, modifier=false) 
752        @Description(
753                shortDefinition="",
754                formalDefinition="The date the immunization recommendation was created."
755        )
756        private DateTimeDt myDate;
757        
758        @Child(name="vaccineCode", type=CodeableConceptDt.class, order=1, min=1, max=1, summary=true, modifier=false)   
759        @Description(
760                shortDefinition="",
761                formalDefinition="Vaccine that pertains to the recommendation"
762        )
763        private CodeableConceptDt myVaccineCode;
764        
765        @Child(name="doseNumber", type=PositiveIntDt.class, order=2, min=0, max=1, summary=true, modifier=false)        
766        @Description(
767                shortDefinition="",
768                formalDefinition="This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose)."
769        )
770        private PositiveIntDt myDoseNumber;
771        
772        @Child(name="forecastStatus", type=CodeableConceptDt.class, order=3, min=1, max=1, summary=true, modifier=false)        
773        @Description(
774                shortDefinition="",
775                formalDefinition="Vaccine administration status"
776        )
777        private CodeableConceptDt myForecastStatus;
778        
779        @Child(name="dateCriterion", order=4, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false)    
780        @Description(
781                shortDefinition="",
782                formalDefinition="Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc."
783        )
784        private java.util.List<RecommendationDateCriterion> myDateCriterion;
785        
786        @Child(name="protocol", order=5, min=0, max=1, summary=false, modifier=false)   
787        @Description(
788                shortDefinition="",
789                formalDefinition="Contains information about the protocol under which the vaccine was administered"
790        )
791        private RecommendationProtocol myProtocol;
792        
793        @Child(name="supportingImmunization", order=6, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
794                ca.uhn.fhir.model.dstu2.resource.Immunization.class     })
795        @Description(
796                shortDefinition="",
797                formalDefinition="Immunization event history that supports the status and recommendation"
798        )
799        private java.util.List<ResourceReferenceDt> mySupportingImmunization;
800        
801        @Child(name="supportingPatientInformation", order=7, min=0, max=Child.MAX_UNLIMITED, summary=false, modifier=false, type={
802                ca.uhn.fhir.model.dstu2.resource.Observation.class,             ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance.class       })
803        @Description(
804                shortDefinition="",
805                formalDefinition="Patient Information that supports the status and recommendation.  This includes patient observations, adverse reactions and allergy/intolerance information."
806        )
807        private java.util.List<ResourceReferenceDt> mySupportingPatientInformation;
808        
809
810        @Override
811        public boolean isEmpty() {
812                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myDate,  myVaccineCode,  myDoseNumber,  myForecastStatus,  myDateCriterion,  myProtocol,  mySupportingImmunization,  mySupportingPatientInformation);
813        }
814        
815        @Override
816        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
817                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDate, myVaccineCode, myDoseNumber, myForecastStatus, myDateCriterion, myProtocol, mySupportingImmunization, mySupportingPatientInformation);
818        }
819
820        /**
821         * Gets the value(s) for <b>date</b> ().
822         * creating it if it does
823         * not exist. Will not return <code>null</code>.
824         *
825     * <p>
826     * <b>Definition:</b>
827     * The date the immunization recommendation was created.
828     * </p> 
829         */
830        public DateTimeDt getDateElement() {  
831                if (myDate == null) {
832                        myDate = new DateTimeDt();
833                }
834                return myDate;
835        }
836
837        
838        /**
839         * Gets the value(s) for <b>date</b> ().
840         * creating it if it does
841         * not exist. This method may return <code>null</code>.
842         *
843     * <p>
844     * <b>Definition:</b>
845     * The date the immunization recommendation was created.
846     * </p> 
847         */
848        public Date getDate() {  
849                return getDateElement().getValue();
850        }
851
852        /**
853         * Sets the value(s) for <b>date</b> ()
854         *
855     * <p>
856     * <b>Definition:</b>
857     * The date the immunization recommendation was created.
858     * </p> 
859         */
860        public Recommendation setDate(DateTimeDt theValue) {
861                myDate = theValue;
862                return this;
863        }
864        
865        
866
867        /**
868         * Sets the value for <b>date</b> ()
869         *
870     * <p>
871     * <b>Definition:</b>
872     * The date the immunization recommendation was created.
873     * </p> 
874         */
875        public Recommendation setDate( Date theDate,  TemporalPrecisionEnum thePrecision) {
876                myDate = new DateTimeDt(theDate, thePrecision); 
877                return this; 
878        }
879
880        /**
881         * Sets the value for <b>date</b> ()
882         *
883     * <p>
884     * <b>Definition:</b>
885     * The date the immunization recommendation was created.
886     * </p> 
887         */
888        public Recommendation setDateWithSecondsPrecision( Date theDate) {
889                myDate = new DateTimeDt(theDate); 
890                return this; 
891        }
892
893 
894        /**
895         * Gets the value(s) for <b>vaccineCode</b> ().
896         * creating it if it does
897         * not exist. Will not return <code>null</code>.
898         *
899     * <p>
900     * <b>Definition:</b>
901     * Vaccine that pertains to the recommendation
902     * </p> 
903         */
904        public CodeableConceptDt getVaccineCode() {  
905                if (myVaccineCode == null) {
906                        myVaccineCode = new CodeableConceptDt();
907                }
908                return myVaccineCode;
909        }
910
911        /**
912         * Sets the value(s) for <b>vaccineCode</b> ()
913         *
914     * <p>
915     * <b>Definition:</b>
916     * Vaccine that pertains to the recommendation
917     * </p> 
918         */
919        public Recommendation setVaccineCode(CodeableConceptDt theValue) {
920                myVaccineCode = theValue;
921                return this;
922        }
923        
924        
925
926  
927        /**
928         * Gets the value(s) for <b>doseNumber</b> ().
929         * creating it if it does
930         * not exist. Will not return <code>null</code>.
931         *
932     * <p>
933     * <b>Definition:</b>
934     * This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose).
935     * </p> 
936         */
937        public PositiveIntDt getDoseNumberElement() {  
938                if (myDoseNumber == null) {
939                        myDoseNumber = new PositiveIntDt();
940                }
941                return myDoseNumber;
942        }
943
944        
945        /**
946         * Gets the value(s) for <b>doseNumber</b> ().
947         * creating it if it does
948         * not exist. This method may return <code>null</code>.
949         *
950     * <p>
951     * <b>Definition:</b>
952     * This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose).
953     * </p> 
954         */
955        public Integer getDoseNumber() {  
956                return getDoseNumberElement().getValue();
957        }
958
959        /**
960         * Sets the value(s) for <b>doseNumber</b> ()
961         *
962     * <p>
963     * <b>Definition:</b>
964     * This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose).
965     * </p> 
966         */
967        public Recommendation setDoseNumber(PositiveIntDt theValue) {
968                myDoseNumber = theValue;
969                return this;
970        }
971        
972        
973
974        /**
975         * Sets the value for <b>doseNumber</b> ()
976         *
977     * <p>
978     * <b>Definition:</b>
979     * This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose).
980     * </p> 
981         */
982        public Recommendation setDoseNumber( int theInteger) {
983                myDoseNumber = new PositiveIntDt(theInteger); 
984                return this; 
985        }
986
987 
988        /**
989         * Gets the value(s) for <b>forecastStatus</b> ().
990         * creating it if it does
991         * not exist. Will not return <code>null</code>.
992         *
993     * <p>
994     * <b>Definition:</b>
995     * Vaccine administration status
996     * </p> 
997         */
998        public CodeableConceptDt getForecastStatus() {  
999                if (myForecastStatus == null) {
1000                        myForecastStatus = new CodeableConceptDt();
1001                }
1002                return myForecastStatus;
1003        }
1004
1005        /**
1006         * Sets the value(s) for <b>forecastStatus</b> ()
1007         *
1008     * <p>
1009     * <b>Definition:</b>
1010     * Vaccine administration status
1011     * </p> 
1012         */
1013        public Recommendation setForecastStatus(CodeableConceptDt theValue) {
1014                myForecastStatus = theValue;
1015                return this;
1016        }
1017        
1018        
1019
1020  
1021        /**
1022         * Gets the value(s) for <b>dateCriterion</b> ().
1023         * creating it if it does
1024         * not exist. Will not return <code>null</code>.
1025         *
1026     * <p>
1027     * <b>Definition:</b>
1028     * Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc.
1029     * </p> 
1030         */
1031        public java.util.List<RecommendationDateCriterion> getDateCriterion() {  
1032                if (myDateCriterion == null) {
1033                        myDateCriterion = new java.util.ArrayList<RecommendationDateCriterion>();
1034                }
1035                return myDateCriterion;
1036        }
1037
1038        /**
1039         * Sets the value(s) for <b>dateCriterion</b> ()
1040         *
1041     * <p>
1042     * <b>Definition:</b>
1043     * Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc.
1044     * </p> 
1045         */
1046        public Recommendation setDateCriterion(java.util.List<RecommendationDateCriterion> theValue) {
1047                myDateCriterion = theValue;
1048                return this;
1049        }
1050        
1051        
1052
1053        /**
1054         * Adds and returns a new value for <b>dateCriterion</b> ()
1055         *
1056     * <p>
1057     * <b>Definition:</b>
1058     * Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc.
1059     * </p> 
1060         */
1061        public RecommendationDateCriterion addDateCriterion() {
1062                RecommendationDateCriterion newType = new RecommendationDateCriterion();
1063                getDateCriterion().add(newType);
1064                return newType; 
1065        }
1066
1067        /**
1068         * Adds a given new value for <b>dateCriterion</b> ()
1069         *
1070         * <p>
1071         * <b>Definition:</b>
1072         * Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc.
1073         * </p>
1074         * @param theValue The dateCriterion to add (must not be <code>null</code>)
1075         */
1076        public Recommendation addDateCriterion(RecommendationDateCriterion theValue) {
1077                if (theValue == null) {
1078                        throw new NullPointerException("theValue must not be null");
1079                }
1080                getDateCriterion().add(theValue);
1081                return this;
1082        }
1083
1084        /**
1085         * Gets the first repetition for <b>dateCriterion</b> (),
1086         * creating it if it does not already exist.
1087         *
1088     * <p>
1089     * <b>Definition:</b>
1090     * Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc.
1091     * </p> 
1092         */
1093        public RecommendationDateCriterion getDateCriterionFirstRep() {
1094                if (getDateCriterion().isEmpty()) {
1095                        return addDateCriterion();
1096                }
1097                return getDateCriterion().get(0); 
1098        }
1099  
1100        /**
1101         * Gets the value(s) for <b>protocol</b> ().
1102         * creating it if it does
1103         * not exist. Will not return <code>null</code>.
1104         *
1105     * <p>
1106     * <b>Definition:</b>
1107     * Contains information about the protocol under which the vaccine was administered
1108     * </p> 
1109         */
1110        public RecommendationProtocol getProtocol() {  
1111                if (myProtocol == null) {
1112                        myProtocol = new RecommendationProtocol();
1113                }
1114                return myProtocol;
1115        }
1116
1117        /**
1118         * Sets the value(s) for <b>protocol</b> ()
1119         *
1120     * <p>
1121     * <b>Definition:</b>
1122     * Contains information about the protocol under which the vaccine was administered
1123     * </p> 
1124         */
1125        public Recommendation setProtocol(RecommendationProtocol theValue) {
1126                myProtocol = theValue;
1127                return this;
1128        }
1129        
1130        
1131
1132  
1133        /**
1134         * Gets the value(s) for <b>supportingImmunization</b> ().
1135         * creating it if it does
1136         * not exist. Will not return <code>null</code>.
1137         *
1138     * <p>
1139     * <b>Definition:</b>
1140     * Immunization event history that supports the status and recommendation
1141     * </p> 
1142         */
1143        public java.util.List<ResourceReferenceDt> getSupportingImmunization() {  
1144                if (mySupportingImmunization == null) {
1145                        mySupportingImmunization = new java.util.ArrayList<ResourceReferenceDt>();
1146                }
1147                return mySupportingImmunization;
1148        }
1149
1150        /**
1151         * Sets the value(s) for <b>supportingImmunization</b> ()
1152         *
1153     * <p>
1154     * <b>Definition:</b>
1155     * Immunization event history that supports the status and recommendation
1156     * </p> 
1157         */
1158        public Recommendation setSupportingImmunization(java.util.List<ResourceReferenceDt> theValue) {
1159                mySupportingImmunization = theValue;
1160                return this;
1161        }
1162        
1163        
1164
1165        /**
1166         * Adds and returns a new value for <b>supportingImmunization</b> ()
1167         *
1168     * <p>
1169     * <b>Definition:</b>
1170     * Immunization event history that supports the status and recommendation
1171     * </p> 
1172         */
1173        public ResourceReferenceDt addSupportingImmunization() {
1174                ResourceReferenceDt newType = new ResourceReferenceDt();
1175                getSupportingImmunization().add(newType);
1176                return newType; 
1177        }
1178  
1179        /**
1180         * Gets the value(s) for <b>supportingPatientInformation</b> ().
1181         * creating it if it does
1182         * not exist. Will not return <code>null</code>.
1183         *
1184     * <p>
1185     * <b>Definition:</b>
1186     * Patient Information that supports the status and recommendation.  This includes patient observations, adverse reactions and allergy/intolerance information.
1187     * </p> 
1188         */
1189        public java.util.List<ResourceReferenceDt> getSupportingPatientInformation() {  
1190                if (mySupportingPatientInformation == null) {
1191                        mySupportingPatientInformation = new java.util.ArrayList<ResourceReferenceDt>();
1192                }
1193                return mySupportingPatientInformation;
1194        }
1195
1196        /**
1197         * Sets the value(s) for <b>supportingPatientInformation</b> ()
1198         *
1199     * <p>
1200     * <b>Definition:</b>
1201     * Patient Information that supports the status and recommendation.  This includes patient observations, adverse reactions and allergy/intolerance information.
1202     * </p> 
1203         */
1204        public Recommendation setSupportingPatientInformation(java.util.List<ResourceReferenceDt> theValue) {
1205                mySupportingPatientInformation = theValue;
1206                return this;
1207        }
1208        
1209        
1210
1211        /**
1212         * Adds and returns a new value for <b>supportingPatientInformation</b> ()
1213         *
1214     * <p>
1215     * <b>Definition:</b>
1216     * Patient Information that supports the status and recommendation.  This includes patient observations, adverse reactions and allergy/intolerance information.
1217     * </p> 
1218         */
1219        public ResourceReferenceDt addSupportingPatientInformation() {
1220                ResourceReferenceDt newType = new ResourceReferenceDt();
1221                getSupportingPatientInformation().add(newType);
1222                return newType; 
1223        }
1224  
1225
1226
1227        }
1228
1229        /**
1230         * Block class for child element: <b>ImmunizationRecommendation.recommendation.dateCriterion</b> ()
1231         *
1232     * <p>
1233     * <b>Definition:</b>
1234     * Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc.
1235     * </p> 
1236         */
1237        @Block()        
1238        public static class RecommendationDateCriterion 
1239            extends  BaseIdentifiableElement        implements IResourceBlock {
1240        
1241        @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1, summary=false, modifier=false) 
1242        @Description(
1243                shortDefinition="",
1244                formalDefinition="Date classification of recommendation.  For example, earliest date to give, latest date to give, etc."
1245        )
1246        private CodeableConceptDt myCode;
1247        
1248        @Child(name="value", type=DateTimeDt.class, order=1, min=1, max=1, summary=false, modifier=false)       
1249        @Description(
1250                shortDefinition="",
1251                formalDefinition="The date whose meaning is specified by dateCriterion.code"
1252        )
1253        private DateTimeDt myValue;
1254        
1255
1256        @Override
1257        public boolean isEmpty() {
1258                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myCode,  myValue);
1259        }
1260        
1261        @Override
1262        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
1263                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myValue);
1264        }
1265
1266        /**
1267         * Gets the value(s) for <b>code</b> ().
1268         * creating it if it does
1269         * not exist. Will not return <code>null</code>.
1270         *
1271     * <p>
1272     * <b>Definition:</b>
1273     * Date classification of recommendation.  For example, earliest date to give, latest date to give, etc.
1274     * </p> 
1275         */
1276        public CodeableConceptDt getCode() {  
1277                if (myCode == null) {
1278                        myCode = new CodeableConceptDt();
1279                }
1280                return myCode;
1281        }
1282
1283        /**
1284         * Sets the value(s) for <b>code</b> ()
1285         *
1286     * <p>
1287     * <b>Definition:</b>
1288     * Date classification of recommendation.  For example, earliest date to give, latest date to give, etc.
1289     * </p> 
1290         */
1291        public RecommendationDateCriterion setCode(CodeableConceptDt theValue) {
1292                myCode = theValue;
1293                return this;
1294        }
1295        
1296        
1297
1298  
1299        /**
1300         * Gets the value(s) for <b>value</b> ().
1301         * creating it if it does
1302         * not exist. Will not return <code>null</code>.
1303         *
1304     * <p>
1305     * <b>Definition:</b>
1306     * The date whose meaning is specified by dateCriterion.code
1307     * </p> 
1308         */
1309        public DateTimeDt getValueElement() {  
1310                if (myValue == null) {
1311                        myValue = new DateTimeDt();
1312                }
1313                return myValue;
1314        }
1315
1316        
1317        /**
1318         * Gets the value(s) for <b>value</b> ().
1319         * creating it if it does
1320         * not exist. This method may return <code>null</code>.
1321         *
1322     * <p>
1323     * <b>Definition:</b>
1324     * The date whose meaning is specified by dateCriterion.code
1325     * </p> 
1326         */
1327        public Date getValue() {  
1328                return getValueElement().getValue();
1329        }
1330
1331        /**
1332         * Sets the value(s) for <b>value</b> ()
1333         *
1334     * <p>
1335     * <b>Definition:</b>
1336     * The date whose meaning is specified by dateCriterion.code
1337     * </p> 
1338         */
1339        public RecommendationDateCriterion setValue(DateTimeDt theValue) {
1340                myValue = theValue;
1341                return this;
1342        }
1343        
1344        
1345
1346        /**
1347         * Sets the value for <b>value</b> ()
1348         *
1349     * <p>
1350     * <b>Definition:</b>
1351     * The date whose meaning is specified by dateCriterion.code
1352     * </p> 
1353         */
1354        public RecommendationDateCriterion setValue( Date theDate,  TemporalPrecisionEnum thePrecision) {
1355                myValue = new DateTimeDt(theDate, thePrecision); 
1356                return this; 
1357        }
1358
1359        /**
1360         * Sets the value for <b>value</b> ()
1361         *
1362     * <p>
1363     * <b>Definition:</b>
1364     * The date whose meaning is specified by dateCriterion.code
1365     * </p> 
1366         */
1367        public RecommendationDateCriterion setValueWithSecondsPrecision( Date theDate) {
1368                myValue = new DateTimeDt(theDate); 
1369                return this; 
1370        }
1371
1372 
1373
1374
1375        }
1376
1377
1378        /**
1379         * Block class for child element: <b>ImmunizationRecommendation.recommendation.protocol</b> ()
1380         *
1381     * <p>
1382     * <b>Definition:</b>
1383     * Contains information about the protocol under which the vaccine was administered
1384     * </p> 
1385         */
1386        @Block()        
1387        public static class RecommendationProtocol 
1388            extends  BaseIdentifiableElement        implements IResourceBlock {
1389        
1390        @Child(name="doseSequence", type=IntegerDt.class, order=0, min=0, max=1, summary=false, modifier=false) 
1391        @Description(
1392                shortDefinition="",
1393                formalDefinition="Indicates the nominal position in a series of the next dose.  This is the recommended dose number as per a specified protocol."
1394        )
1395        private IntegerDt myDoseSequence;
1396        
1397        @Child(name="description", type=StringDt.class, order=1, min=0, max=1, summary=false, modifier=false)   
1398        @Description(
1399                shortDefinition="",
1400                formalDefinition="Contains the description about the protocol under which the vaccine was administered"
1401        )
1402        private StringDt myDescription;
1403        
1404        @Child(name="authority", order=2, min=0, max=1, summary=false, modifier=false, type={
1405                ca.uhn.fhir.model.dstu2.resource.Organization.class     })
1406        @Description(
1407                shortDefinition="",
1408                formalDefinition="Indicates the authority who published the protocol.  For example, ACIP"
1409        )
1410        private ResourceReferenceDt myAuthority;
1411        
1412        @Child(name="series", type=StringDt.class, order=3, min=0, max=1, summary=false, modifier=false)        
1413        @Description(
1414                shortDefinition="",
1415                formalDefinition="One possible path to achieve presumed immunity against a disease - within the context of an authority"
1416        )
1417        private StringDt mySeries;
1418        
1419
1420        @Override
1421        public boolean isEmpty() {
1422                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myDoseSequence,  myDescription,  myAuthority,  mySeries);
1423        }
1424        
1425        @Override
1426        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
1427                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDoseSequence, myDescription, myAuthority, mySeries);
1428        }
1429
1430        /**
1431         * Gets the value(s) for <b>doseSequence</b> ().
1432         * creating it if it does
1433         * not exist. Will not return <code>null</code>.
1434         *
1435     * <p>
1436     * <b>Definition:</b>
1437     * Indicates the nominal position in a series of the next dose.  This is the recommended dose number as per a specified protocol.
1438     * </p> 
1439         */
1440        public IntegerDt getDoseSequenceElement() {  
1441                if (myDoseSequence == null) {
1442                        myDoseSequence = new IntegerDt();
1443                }
1444                return myDoseSequence;
1445        }
1446
1447        
1448        /**
1449         * Gets the value(s) for <b>doseSequence</b> ().
1450         * creating it if it does
1451         * not exist. This method may return <code>null</code>.
1452         *
1453     * <p>
1454     * <b>Definition:</b>
1455     * Indicates the nominal position in a series of the next dose.  This is the recommended dose number as per a specified protocol.
1456     * </p> 
1457         */
1458        public Integer getDoseSequence() {  
1459                return getDoseSequenceElement().getValue();
1460        }
1461
1462        /**
1463         * Sets the value(s) for <b>doseSequence</b> ()
1464         *
1465     * <p>
1466     * <b>Definition:</b>
1467     * Indicates the nominal position in a series of the next dose.  This is the recommended dose number as per a specified protocol.
1468     * </p> 
1469         */
1470        public RecommendationProtocol setDoseSequence(IntegerDt theValue) {
1471                myDoseSequence = theValue;
1472                return this;
1473        }
1474        
1475        
1476
1477        /**
1478         * Sets the value for <b>doseSequence</b> ()
1479         *
1480     * <p>
1481     * <b>Definition:</b>
1482     * Indicates the nominal position in a series of the next dose.  This is the recommended dose number as per a specified protocol.
1483     * </p> 
1484         */
1485        public RecommendationProtocol setDoseSequence( int theInteger) {
1486                myDoseSequence = new IntegerDt(theInteger); 
1487                return this; 
1488        }
1489
1490 
1491        /**
1492         * Gets the value(s) for <b>description</b> ().
1493         * creating it if it does
1494         * not exist. Will not return <code>null</code>.
1495         *
1496     * <p>
1497     * <b>Definition:</b>
1498     * Contains the description about the protocol under which the vaccine was administered
1499     * </p> 
1500         */
1501        public StringDt getDescriptionElement() {  
1502                if (myDescription == null) {
1503                        myDescription = new StringDt();
1504                }
1505                return myDescription;
1506        }
1507
1508        
1509        /**
1510         * Gets the value(s) for <b>description</b> ().
1511         * creating it if it does
1512         * not exist. This method may return <code>null</code>.
1513         *
1514     * <p>
1515     * <b>Definition:</b>
1516     * Contains the description about the protocol under which the vaccine was administered
1517     * </p> 
1518         */
1519        public String getDescription() {  
1520                return getDescriptionElement().getValue();
1521        }
1522
1523        /**
1524         * Sets the value(s) for <b>description</b> ()
1525         *
1526     * <p>
1527     * <b>Definition:</b>
1528     * Contains the description about the protocol under which the vaccine was administered
1529     * </p> 
1530         */
1531        public RecommendationProtocol setDescription(StringDt theValue) {
1532                myDescription = theValue;
1533                return this;
1534        }
1535        
1536        
1537
1538        /**
1539         * Sets the value for <b>description</b> ()
1540         *
1541     * <p>
1542     * <b>Definition:</b>
1543     * Contains the description about the protocol under which the vaccine was administered
1544     * </p> 
1545         */
1546        public RecommendationProtocol setDescription( String theString) {
1547                myDescription = new StringDt(theString); 
1548                return this; 
1549        }
1550
1551 
1552        /**
1553         * Gets the value(s) for <b>authority</b> ().
1554         * creating it if it does
1555         * not exist. Will not return <code>null</code>.
1556         *
1557     * <p>
1558     * <b>Definition:</b>
1559     * Indicates the authority who published the protocol.  For example, ACIP
1560     * </p> 
1561         */
1562        public ResourceReferenceDt getAuthority() {  
1563                if (myAuthority == null) {
1564                        myAuthority = new ResourceReferenceDt();
1565                }
1566                return myAuthority;
1567        }
1568
1569        /**
1570         * Sets the value(s) for <b>authority</b> ()
1571         *
1572     * <p>
1573     * <b>Definition:</b>
1574     * Indicates the authority who published the protocol.  For example, ACIP
1575     * </p> 
1576         */
1577        public RecommendationProtocol setAuthority(ResourceReferenceDt theValue) {
1578                myAuthority = theValue;
1579                return this;
1580        }
1581        
1582        
1583
1584  
1585        /**
1586         * Gets the value(s) for <b>series</b> ().
1587         * creating it if it does
1588         * not exist. Will not return <code>null</code>.
1589         *
1590     * <p>
1591     * <b>Definition:</b>
1592     * One possible path to achieve presumed immunity against a disease - within the context of an authority
1593     * </p> 
1594         */
1595        public StringDt getSeriesElement() {  
1596                if (mySeries == null) {
1597                        mySeries = new StringDt();
1598                }
1599                return mySeries;
1600        }
1601
1602        
1603        /**
1604         * Gets the value(s) for <b>series</b> ().
1605         * creating it if it does
1606         * not exist. This method may return <code>null</code>.
1607         *
1608     * <p>
1609     * <b>Definition:</b>
1610     * One possible path to achieve presumed immunity against a disease - within the context of an authority
1611     * </p> 
1612         */
1613        public String getSeries() {  
1614                return getSeriesElement().getValue();
1615        }
1616
1617        /**
1618         * Sets the value(s) for <b>series</b> ()
1619         *
1620     * <p>
1621     * <b>Definition:</b>
1622     * One possible path to achieve presumed immunity against a disease - within the context of an authority
1623     * </p> 
1624         */
1625        public RecommendationProtocol setSeries(StringDt theValue) {
1626                mySeries = theValue;
1627                return this;
1628        }
1629        
1630        
1631
1632        /**
1633         * Sets the value for <b>series</b> ()
1634         *
1635     * <p>
1636     * <b>Definition:</b>
1637     * One possible path to achieve presumed immunity against a disease - within the context of an authority
1638     * </p> 
1639         */
1640        public RecommendationProtocol setSeries( String theString) {
1641                mySeries = new StringDt(theString); 
1642                return this; 
1643        }
1644
1645 
1646
1647
1648        }
1649
1650
1651
1652
1653
1654    @Override
1655    public String getResourceName() {
1656        return "ImmunizationRecommendation";
1657    }
1658    
1659    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
1660        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
1661    }
1662
1663
1664}