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