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>Slot</b> Resource
282 * (workflow.scheduling)
283 *
284 * <p>
285 * <b>Definition:</b>
286 * A slot of time on a schedule that may be available for booking appointments.
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/Slot">http://hl7.org/fhir/profiles/Slot</a> 
297 * </p>
298 *
299 */
300@ResourceDef(name="Slot", profile="http://hl7.org/fhir/profiles/Slot", id="slot")
301public class Slot extends ca.uhn.fhir.model.dstu2.resource.BaseResource
302    implements  IResource     {
303
304        /**
305         * Search parameter constant for <b>slot-type</b>
306         * <p>
307         * Description: <b>The type of appointments that can be booked into the slot</b><br>
308         * Type: <b>token</b><br>
309         * Path: <b>Slot.type</b><br>
310         * </p>
311         */
312        @SearchParamDefinition(name="slot-type", path="Slot.type", description="The type of appointments that can be booked into the slot", type="token"  )
313        public static final String SP_SLOT_TYPE = "slot-type";
314
315        /**
316         * <b>Fluent Client</b> search parameter constant for <b>slot-type</b>
317         * <p>
318         * Description: <b>The type of appointments that can be booked into the slot</b><br>
319         * Type: <b>token</b><br>
320         * Path: <b>Slot.type</b><br>
321         * </p>
322         */
323        public static final TokenClientParam SLOT_TYPE = new TokenClientParam(SP_SLOT_TYPE);
324
325        /**
326         * Search parameter constant for <b>schedule</b>
327         * <p>
328         * Description: <b>The Schedule Resource that we are seeking a slot within</b><br>
329         * Type: <b>reference</b><br>
330         * Path: <b>Slot.schedule</b><br>
331         * </p>
332         */
333        @SearchParamDefinition(name="schedule", path="Slot.schedule", description="The Schedule Resource that we are seeking a slot within", type="reference"  )
334        public static final String SP_SCHEDULE = "schedule";
335
336        /**
337         * <b>Fluent Client</b> search parameter constant for <b>schedule</b>
338         * <p>
339         * Description: <b>The Schedule Resource that we are seeking a slot within</b><br>
340         * Type: <b>reference</b><br>
341         * Path: <b>Slot.schedule</b><br>
342         * </p>
343         */
344        public static final ReferenceClientParam SCHEDULE = new ReferenceClientParam(SP_SCHEDULE);
345
346        /**
347         * Search parameter constant for <b>start</b>
348         * <p>
349         * Description: <b>Appointment date/time.</b><br>
350         * Type: <b>date</b><br>
351         * Path: <b>Slot.start</b><br>
352         * </p>
353         */
354        @SearchParamDefinition(name="start", path="Slot.start", description="Appointment date/time.", type="date"  )
355        public static final String SP_START = "start";
356
357        /**
358         * <b>Fluent Client</b> search parameter constant for <b>start</b>
359         * <p>
360         * Description: <b>Appointment date/time.</b><br>
361         * Type: <b>date</b><br>
362         * Path: <b>Slot.start</b><br>
363         * </p>
364         */
365        public static final DateClientParam START = new DateClientParam(SP_START);
366
367        /**
368         * Search parameter constant for <b>fb-type</b>
369         * <p>
370         * Description: <b>The free/busy status of the appointment</b><br>
371         * Type: <b>token</b><br>
372         * Path: <b>Slot.freeBusyType</b><br>
373         * </p>
374         */
375        @SearchParamDefinition(name="fb-type", path="Slot.freeBusyType", description="The free/busy status of the appointment", type="token"  )
376        public static final String SP_FB_TYPE = "fb-type";
377
378        /**
379         * <b>Fluent Client</b> search parameter constant for <b>fb-type</b>
380         * <p>
381         * Description: <b>The free/busy status of the appointment</b><br>
382         * Type: <b>token</b><br>
383         * Path: <b>Slot.freeBusyType</b><br>
384         * </p>
385         */
386        public static final TokenClientParam FB_TYPE = new TokenClientParam(SP_FB_TYPE);
387
388        /**
389         * Search parameter constant for <b>identifier</b>
390         * <p>
391         * Description: <b>A Slot Identifier</b><br>
392         * Type: <b>token</b><br>
393         * Path: <b>Slot.identifier</b><br>
394         * </p>
395         */
396        @SearchParamDefinition(name="identifier", path="Slot.identifier", description="A Slot Identifier", type="token"  )
397        public static final String SP_IDENTIFIER = "identifier";
398
399        /**
400         * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
401         * <p>
402         * Description: <b>A Slot Identifier</b><br>
403         * Type: <b>token</b><br>
404         * Path: <b>Slot.identifier</b><br>
405         * </p>
406         */
407        public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
408
409
410        /**
411         * Constant for fluent queries to be used to add include statements. Specifies
412         * the path value of "<b>Slot:schedule</b>".
413         */
414        public static final Include INCLUDE_SCHEDULE = new Include("Slot:schedule");
415
416
417        @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false)       
418        @Description(
419                shortDefinition="id",
420                formalDefinition=""
421        )
422        private java.util.List<IdentifierDt> myIdentifier;
423        
424        @Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=false, modifier=false) 
425        @Description(
426                shortDefinition="class",
427                formalDefinition=""
428        )
429        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/c80-practice-codes")
430        private CodeableConceptDt myType;
431        
432        @Child(name="schedule", order=2, min=1, max=1, summary=true, modifier=false, type={
433                ca.uhn.fhir.model.dstu2.resource.Schedule.class })
434        @Description(
435                shortDefinition="",
436                formalDefinition=""
437        )
438        private ResourceReferenceDt mySchedule;
439        
440        @Child(name="freeBusyType", type=CodeDt.class, order=3, min=1, max=1, summary=true, modifier=false)     
441        @Description(
442                shortDefinition="",
443                formalDefinition=""
444        )
445        @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/slotstatus")
446        private BoundCodeDt<SlotStatusEnum> myFreeBusyType;
447        
448        @Child(name="start", type=InstantDt.class, order=4, min=1, max=1, summary=true, modifier=false) 
449        @Description(
450                shortDefinition="when.planned",
451                formalDefinition=""
452        )
453        private InstantDt myStart;
454        
455        @Child(name="end", type=InstantDt.class, order=5, min=1, max=1, summary=true, modifier=false)   
456        @Description(
457                shortDefinition="when.planned",
458                formalDefinition=""
459        )
460        private InstantDt myEnd;
461        
462        @Child(name="overbooked", type=BooleanDt.class, order=6, min=0, max=1, summary=false, modifier=false)   
463        @Description(
464                shortDefinition="",
465                formalDefinition=""
466        )
467        private BooleanDt myOverbooked;
468        
469        @Child(name="comment", type=StringDt.class, order=7, min=0, max=1, summary=false, modifier=false)       
470        @Description(
471                shortDefinition="",
472                formalDefinition=""
473        )
474        private StringDt myComment;
475        
476
477        @Override
478        public boolean isEmpty() {
479                return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(  myIdentifier,  myType,  mySchedule,  myFreeBusyType,  myStart,  myEnd,  myOverbooked,  myComment);
480        }
481        
482        @Override
483        public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
484                return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, mySchedule, myFreeBusyType, myStart, myEnd, myOverbooked, myComment);
485        }
486
487        /**
488         * Gets the value(s) for <b>identifier</b> (id).
489         * creating it if it does
490         * not exist. Will not return <code>null</code>.
491         *
492     * <p>
493     * <b>Definition:</b>
494     * 
495     * </p> 
496         */
497        public java.util.List<IdentifierDt> getIdentifier() {  
498                if (myIdentifier == null) {
499                        myIdentifier = new java.util.ArrayList<IdentifierDt>();
500                }
501                return myIdentifier;
502        }
503
504        /**
505         * Sets the value(s) for <b>identifier</b> (id)
506         *
507     * <p>
508     * <b>Definition:</b>
509     * 
510     * </p> 
511         */
512        public Slot setIdentifier(java.util.List<IdentifierDt> theValue) {
513                myIdentifier = theValue;
514                return this;
515        }
516        
517        
518
519        /**
520         * Adds and returns a new value for <b>identifier</b> (id)
521         *
522     * <p>
523     * <b>Definition:</b>
524     * 
525     * </p> 
526         */
527        public IdentifierDt addIdentifier() {
528                IdentifierDt newType = new IdentifierDt();
529                getIdentifier().add(newType);
530                return newType; 
531        }
532
533        /**
534         * Adds a given new value for <b>identifier</b> (id)
535         *
536         * <p>
537         * <b>Definition:</b>
538         * 
539         * </p>
540         * @param theValue The identifier to add (must not be <code>null</code>)
541         */
542        public Slot addIdentifier(IdentifierDt theValue) {
543                if (theValue == null) {
544                        throw new NullPointerException("theValue must not be null");
545                }
546                getIdentifier().add(theValue);
547                return this;
548        }
549
550        /**
551         * Gets the first repetition for <b>identifier</b> (id),
552         * creating it if it does not already exist.
553         *
554     * <p>
555     * <b>Definition:</b>
556     * 
557     * </p> 
558         */
559        public IdentifierDt getIdentifierFirstRep() {
560                if (getIdentifier().isEmpty()) {
561                        return addIdentifier();
562                }
563                return getIdentifier().get(0); 
564        }
565  
566        /**
567         * Gets the value(s) for <b>type</b> (class).
568         * creating it if it does
569         * not exist. Will not return <code>null</code>.
570         *
571     * <p>
572     * <b>Definition:</b>
573     * 
574     * </p> 
575         */
576        public CodeableConceptDt getType() {  
577                if (myType == null) {
578                        myType = new CodeableConceptDt();
579                }
580                return myType;
581        }
582
583        /**
584         * Sets the value(s) for <b>type</b> (class)
585         *
586     * <p>
587     * <b>Definition:</b>
588     * 
589     * </p> 
590         */
591        public Slot setType(CodeableConceptDt theValue) {
592                myType = theValue;
593                return this;
594        }
595        
596        
597
598  
599        /**
600         * Gets the value(s) for <b>schedule</b> ().
601         * creating it if it does
602         * not exist. Will not return <code>null</code>.
603         *
604     * <p>
605     * <b>Definition:</b>
606     * 
607     * </p> 
608         */
609        public ResourceReferenceDt getSchedule() {  
610                if (mySchedule == null) {
611                        mySchedule = new ResourceReferenceDt();
612                }
613                return mySchedule;
614        }
615
616        /**
617         * Sets the value(s) for <b>schedule</b> ()
618         *
619     * <p>
620     * <b>Definition:</b>
621     * 
622     * </p> 
623         */
624        public Slot setSchedule(ResourceReferenceDt theValue) {
625                mySchedule = theValue;
626                return this;
627        }
628        
629        
630
631  
632        /**
633         * Gets the value(s) for <b>freeBusyType</b> ().
634         * creating it if it does
635         * not exist. Will not return <code>null</code>.
636         *
637     * <p>
638     * <b>Definition:</b>
639     * 
640     * </p> 
641         */
642        public BoundCodeDt<SlotStatusEnum> getFreeBusyTypeElement() {  
643                if (myFreeBusyType == null) {
644                        myFreeBusyType = new BoundCodeDt<SlotStatusEnum>(SlotStatusEnum.VALUESET_BINDER);
645                }
646                return myFreeBusyType;
647        }
648
649        
650        /**
651         * Gets the value(s) for <b>freeBusyType</b> ().
652         * creating it if it does
653         * not exist. This method may return <code>null</code>.
654         *
655     * <p>
656     * <b>Definition:</b>
657     * 
658     * </p> 
659         */
660        public String getFreeBusyType() {  
661                return getFreeBusyTypeElement().getValue();
662        }
663
664        /**
665         * Sets the value(s) for <b>freeBusyType</b> ()
666         *
667     * <p>
668     * <b>Definition:</b>
669     * 
670     * </p> 
671         */
672        public Slot setFreeBusyType(BoundCodeDt<SlotStatusEnum> theValue) {
673                myFreeBusyType = theValue;
674                return this;
675        }
676        
677        
678
679        /**
680         * Sets the value(s) for <b>freeBusyType</b> ()
681         *
682     * <p>
683     * <b>Definition:</b>
684     * 
685     * </p> 
686         */
687        public Slot setFreeBusyType(SlotStatusEnum theValue) {
688                setFreeBusyType(new BoundCodeDt<SlotStatusEnum>(SlotStatusEnum.VALUESET_BINDER, theValue));
689                
690/*
691                getFreeBusyTypeElement().setValueAsEnum(theValue);
692*/
693                return this;
694        }
695
696  
697        /**
698         * Gets the value(s) for <b>start</b> (when.planned).
699         * creating it if it does
700         * not exist. Will not return <code>null</code>.
701         *
702     * <p>
703     * <b>Definition:</b>
704     * 
705     * </p> 
706         */
707        public InstantDt getStartElement() {  
708                if (myStart == null) {
709                        myStart = new InstantDt();
710                }
711                return myStart;
712        }
713
714        
715        /**
716         * Gets the value(s) for <b>start</b> (when.planned).
717         * creating it if it does
718         * not exist. This method may return <code>null</code>.
719         *
720     * <p>
721     * <b>Definition:</b>
722     * 
723     * </p> 
724         */
725        public Date getStart() {  
726                return getStartElement().getValue();
727        }
728
729        /**
730         * Sets the value(s) for <b>start</b> (when.planned)
731         *
732     * <p>
733     * <b>Definition:</b>
734     * 
735     * </p> 
736         */
737        public Slot setStart(InstantDt theValue) {
738                myStart = theValue;
739                return this;
740        }
741        
742        
743
744        /**
745         * Sets the value for <b>start</b> (when.planned)
746         *
747     * <p>
748     * <b>Definition:</b>
749     * 
750     * </p> 
751         */
752        public Slot setStart( Date theDate,  TemporalPrecisionEnum thePrecision) {
753                myStart = new InstantDt(theDate, thePrecision); 
754                return this; 
755        }
756
757        /**
758         * Sets the value for <b>start</b> (when.planned)
759         *
760     * <p>
761     * <b>Definition:</b>
762     * 
763     * </p> 
764         */
765        public Slot setStartWithMillisPrecision( Date theDate) {
766                myStart = new InstantDt(theDate); 
767                return this; 
768        }
769
770 
771        /**
772         * Gets the value(s) for <b>end</b> (when.planned).
773         * creating it if it does
774         * not exist. Will not return <code>null</code>.
775         *
776     * <p>
777     * <b>Definition:</b>
778     * 
779     * </p> 
780         */
781        public InstantDt getEndElement() {  
782                if (myEnd == null) {
783                        myEnd = new InstantDt();
784                }
785                return myEnd;
786        }
787
788        
789        /**
790         * Gets the value(s) for <b>end</b> (when.planned).
791         * creating it if it does
792         * not exist. This method may return <code>null</code>.
793         *
794     * <p>
795     * <b>Definition:</b>
796     * 
797     * </p> 
798         */
799        public Date getEnd() {  
800                return getEndElement().getValue();
801        }
802
803        /**
804         * Sets the value(s) for <b>end</b> (when.planned)
805         *
806     * <p>
807     * <b>Definition:</b>
808     * 
809     * </p> 
810         */
811        public Slot setEnd(InstantDt theValue) {
812                myEnd = theValue;
813                return this;
814        }
815        
816        
817
818        /**
819         * Sets the value for <b>end</b> (when.planned)
820         *
821     * <p>
822     * <b>Definition:</b>
823     * 
824     * </p> 
825         */
826        public Slot setEnd( Date theDate,  TemporalPrecisionEnum thePrecision) {
827                myEnd = new InstantDt(theDate, thePrecision); 
828                return this; 
829        }
830
831        /**
832         * Sets the value for <b>end</b> (when.planned)
833         *
834     * <p>
835     * <b>Definition:</b>
836     * 
837     * </p> 
838         */
839        public Slot setEndWithMillisPrecision( Date theDate) {
840                myEnd = new InstantDt(theDate); 
841                return this; 
842        }
843
844 
845        /**
846         * Gets the value(s) for <b>overbooked</b> ().
847         * creating it if it does
848         * not exist. Will not return <code>null</code>.
849         *
850     * <p>
851     * <b>Definition:</b>
852     * 
853     * </p> 
854         */
855        public BooleanDt getOverbookedElement() {  
856                if (myOverbooked == null) {
857                        myOverbooked = new BooleanDt();
858                }
859                return myOverbooked;
860        }
861
862        
863        /**
864         * Gets the value(s) for <b>overbooked</b> ().
865         * creating it if it does
866         * not exist. This method may return <code>null</code>.
867         *
868     * <p>
869     * <b>Definition:</b>
870     * 
871     * </p> 
872         */
873        public Boolean getOverbooked() {  
874                return getOverbookedElement().getValue();
875        }
876
877        /**
878         * Sets the value(s) for <b>overbooked</b> ()
879         *
880     * <p>
881     * <b>Definition:</b>
882     * 
883     * </p> 
884         */
885        public Slot setOverbooked(BooleanDt theValue) {
886                myOverbooked = theValue;
887                return this;
888        }
889        
890        
891
892        /**
893         * Sets the value for <b>overbooked</b> ()
894         *
895     * <p>
896     * <b>Definition:</b>
897     * 
898     * </p> 
899         */
900        public Slot setOverbooked( boolean theBoolean) {
901                myOverbooked = new BooleanDt(theBoolean); 
902                return this; 
903        }
904
905 
906        /**
907         * Gets the value(s) for <b>comment</b> ().
908         * creating it if it does
909         * not exist. Will not return <code>null</code>.
910         *
911     * <p>
912     * <b>Definition:</b>
913     * 
914     * </p> 
915         */
916        public StringDt getCommentElement() {  
917                if (myComment == null) {
918                        myComment = new StringDt();
919                }
920                return myComment;
921        }
922
923        
924        /**
925         * Gets the value(s) for <b>comment</b> ().
926         * creating it if it does
927         * not exist. This method may return <code>null</code>.
928         *
929     * <p>
930     * <b>Definition:</b>
931     * 
932     * </p> 
933         */
934        public String getComment() {  
935                return getCommentElement().getValue();
936        }
937
938        /**
939         * Sets the value(s) for <b>comment</b> ()
940         *
941     * <p>
942     * <b>Definition:</b>
943     * 
944     * </p> 
945         */
946        public Slot setComment(StringDt theValue) {
947                myComment = theValue;
948                return this;
949        }
950        
951        
952
953        /**
954         * Sets the value for <b>comment</b> ()
955         *
956     * <p>
957     * <b>Definition:</b>
958     * 
959     * </p> 
960         */
961        public Slot setComment( String theString) {
962                myComment = new StringDt(theString); 
963                return this; 
964        }
965
966 
967
968
969    @Override
970    public String getResourceName() {
971        return "Slot";
972    }
973    
974    public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() {
975        return ca.uhn.fhir.context.FhirVersionEnum.DSTU2;
976    }
977
978
979}