001package org.hl7.fhir.r5.model;
002
003
004/*
005 * #%L
006 * org.hl7.fhir.r5
007 * %%
008 * Copyright (C) 2014 - 2019 Health Level 7
009 * %%
010 * Licensed under the Apache License, Version 2.0 (the \"License\");
011 * you may not use this file except in compliance with the License.
012 * You may obtain a copy of the License at
013 * 
014 *      http://www.apache.org/licenses/LICENSE-2.0
015 * 
016 * Unless required by applicable law or agreed to in writing, software
017 * distributed under the License is distributed on an \"AS IS\" BASIS,
018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
019 * See the License for the specific language governing permissions and
020 * limitations under the License.
021 * #L%
022 */
023
024/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, \
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this \
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, \
034     this list of conditions and the following disclaimer in the documentation \
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
049  POSSIBILITY OF SUCH DAMAGE.
050  */
051
052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
053
054import java.util.ArrayList;
055import java.util.Date;
056import java.util.List;
057import org.hl7.fhir.utilities.Utilities;
058import org.hl7.fhir.r5.model.Enumerations.*;
059import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
060import org.hl7.fhir.exceptions.FHIRException;
061import org.hl7.fhir.instance.model.api.ICompositeType;
062import ca.uhn.fhir.model.api.annotation.ResourceDef;
063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
064import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
065import ca.uhn.fhir.model.api.annotation.Child;
066import ca.uhn.fhir.model.api.annotation.ChildOrder;
067import ca.uhn.fhir.model.api.annotation.Description;
068import ca.uhn.fhir.model.api.annotation.Block;
069
070/**
071 * A slot of time on a schedule that may be available for booking appointments.
072 */
073@ResourceDef(name="Slot", profile="http://hl7.org/fhir/StructureDefinition/Slot")
074public class Slot extends DomainResource {
075
076    public enum SlotStatus {
077        /**
078         * Indicates that the time interval is busy because one  or more events have been scheduled for that interval.
079         */
080        BUSY, 
081        /**
082         * Indicates that the time interval is free for scheduling.
083         */
084        FREE, 
085        /**
086         * Indicates that the time interval is busy and that the interval cannot be scheduled.
087         */
088        BUSYUNAVAILABLE, 
089        /**
090         * Indicates that the time interval is busy because one or more events have been tentatively scheduled for that interval.
091         */
092        BUSYTENTATIVE, 
093        /**
094         * This instance should not have been part of this patient's medical record.
095         */
096        ENTEREDINERROR, 
097        /**
098         * added to help the parsers with the generic types
099         */
100        NULL;
101        public static SlotStatus fromCode(String codeString) throws FHIRException {
102            if (codeString == null || "".equals(codeString))
103                return null;
104        if ("busy".equals(codeString))
105          return BUSY;
106        if ("free".equals(codeString))
107          return FREE;
108        if ("busy-unavailable".equals(codeString))
109          return BUSYUNAVAILABLE;
110        if ("busy-tentative".equals(codeString))
111          return BUSYTENTATIVE;
112        if ("entered-in-error".equals(codeString))
113          return ENTEREDINERROR;
114        if (Configuration.isAcceptInvalidEnums())
115          return null;
116        else
117          throw new FHIRException("Unknown SlotStatus code '"+codeString+"'");
118        }
119        public String toCode() {
120          switch (this) {
121            case BUSY: return "busy";
122            case FREE: return "free";
123            case BUSYUNAVAILABLE: return "busy-unavailable";
124            case BUSYTENTATIVE: return "busy-tentative";
125            case ENTEREDINERROR: return "entered-in-error";
126            default: return "?";
127          }
128        }
129        public String getSystem() {
130          switch (this) {
131            case BUSY: return "http://hl7.org/fhir/slotstatus";
132            case FREE: return "http://hl7.org/fhir/slotstatus";
133            case BUSYUNAVAILABLE: return "http://hl7.org/fhir/slotstatus";
134            case BUSYTENTATIVE: return "http://hl7.org/fhir/slotstatus";
135            case ENTEREDINERROR: return "http://hl7.org/fhir/slotstatus";
136            default: return "?";
137          }
138        }
139        public String getDefinition() {
140          switch (this) {
141            case BUSY: return "Indicates that the time interval is busy because one  or more events have been scheduled for that interval.";
142            case FREE: return "Indicates that the time interval is free for scheduling.";
143            case BUSYUNAVAILABLE: return "Indicates that the time interval is busy and that the interval cannot be scheduled.";
144            case BUSYTENTATIVE: return "Indicates that the time interval is busy because one or more events have been tentatively scheduled for that interval.";
145            case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
146            default: return "?";
147          }
148        }
149        public String getDisplay() {
150          switch (this) {
151            case BUSY: return "Busy";
152            case FREE: return "Free";
153            case BUSYUNAVAILABLE: return "Busy (Unavailable)";
154            case BUSYTENTATIVE: return "Busy (Tentative)";
155            case ENTEREDINERROR: return "Entered in error";
156            default: return "?";
157          }
158        }
159    }
160
161  public static class SlotStatusEnumFactory implements EnumFactory<SlotStatus> {
162    public SlotStatus fromCode(String codeString) throws IllegalArgumentException {
163      if (codeString == null || "".equals(codeString))
164            if (codeString == null || "".equals(codeString))
165                return null;
166        if ("busy".equals(codeString))
167          return SlotStatus.BUSY;
168        if ("free".equals(codeString))
169          return SlotStatus.FREE;
170        if ("busy-unavailable".equals(codeString))
171          return SlotStatus.BUSYUNAVAILABLE;
172        if ("busy-tentative".equals(codeString))
173          return SlotStatus.BUSYTENTATIVE;
174        if ("entered-in-error".equals(codeString))
175          return SlotStatus.ENTEREDINERROR;
176        throw new IllegalArgumentException("Unknown SlotStatus code '"+codeString+"'");
177        }
178        public Enumeration<SlotStatus> fromType(Base code) throws FHIRException {
179          if (code == null)
180            return null;
181          if (code.isEmpty())
182            return new Enumeration<SlotStatus>(this);
183          String codeString = ((PrimitiveType) code).asStringValue();
184          if (codeString == null || "".equals(codeString))
185            return null;
186        if ("busy".equals(codeString))
187          return new Enumeration<SlotStatus>(this, SlotStatus.BUSY);
188        if ("free".equals(codeString))
189          return new Enumeration<SlotStatus>(this, SlotStatus.FREE);
190        if ("busy-unavailable".equals(codeString))
191          return new Enumeration<SlotStatus>(this, SlotStatus.BUSYUNAVAILABLE);
192        if ("busy-tentative".equals(codeString))
193          return new Enumeration<SlotStatus>(this, SlotStatus.BUSYTENTATIVE);
194        if ("entered-in-error".equals(codeString))
195          return new Enumeration<SlotStatus>(this, SlotStatus.ENTEREDINERROR);
196        throw new FHIRException("Unknown SlotStatus code '"+codeString+"'");
197        }
198    public String toCode(SlotStatus code) {
199      if (code == SlotStatus.BUSY)
200        return "busy";
201      if (code == SlotStatus.FREE)
202        return "free";
203      if (code == SlotStatus.BUSYUNAVAILABLE)
204        return "busy-unavailable";
205      if (code == SlotStatus.BUSYTENTATIVE)
206        return "busy-tentative";
207      if (code == SlotStatus.ENTEREDINERROR)
208        return "entered-in-error";
209      return "?";
210      }
211    public String toSystem(SlotStatus code) {
212      return code.getSystem();
213      }
214    }
215
216    /**
217     * External Ids for this item.
218     */
219    @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
220    @Description(shortDefinition="External Ids for this item", formalDefinition="External Ids for this item." )
221    protected List<Identifier> identifier;
222
223    /**
224     * A broad categorization of the service that is to be performed during this appointment.
225     */
226    @Child(name = "serviceCategory", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
227    @Description(shortDefinition="A broad categorization of the service that is to be performed during this appointment", formalDefinition="A broad categorization of the service that is to be performed during this appointment." )
228    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-category")
229    protected List<CodeableConcept> serviceCategory;
230
231    /**
232     * The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource.
233     */
234    @Child(name = "serviceType", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
235    @Description(shortDefinition="The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource", formalDefinition="The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource." )
236    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-type")
237    protected List<CodeableConcept> serviceType;
238
239    /**
240     * The specialty of a practitioner that would be required to perform the service requested in this appointment.
241     */
242    @Child(name = "specialty", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
243    @Description(shortDefinition="The specialty of a practitioner that would be required to perform the service requested in this appointment", formalDefinition="The specialty of a practitioner that would be required to perform the service requested in this appointment." )
244    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/c80-practice-codes")
245    protected List<CodeableConcept> specialty;
246
247    /**
248     * The style of appointment or patient that may be booked in the slot (not service type).
249     */
250    @Child(name = "appointmentType", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true)
251    @Description(shortDefinition="The style of appointment or patient that may be booked in the slot (not service type)", formalDefinition="The style of appointment or patient that may be booked in the slot (not service type)." )
252    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v2-0276")
253    protected CodeableConcept appointmentType;
254
255    /**
256     * The schedule resource that this slot defines an interval of status information.
257     */
258    @Child(name = "schedule", type = {Schedule.class}, order=5, min=1, max=1, modifier=false, summary=true)
259    @Description(shortDefinition="The schedule resource that this slot defines an interval of status information", formalDefinition="The schedule resource that this slot defines an interval of status information." )
260    protected Reference schedule;
261
262    /**
263     * busy | free | busy-unavailable | busy-tentative | entered-in-error.
264     */
265    @Child(name = "status", type = {CodeType.class}, order=6, min=1, max=1, modifier=false, summary=true)
266    @Description(shortDefinition="busy | free | busy-unavailable | busy-tentative | entered-in-error", formalDefinition="busy | free | busy-unavailable | busy-tentative | entered-in-error." )
267    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/slotstatus")
268    protected Enumeration<SlotStatus> status;
269
270    /**
271     * Date/Time that the slot is to begin.
272     */
273    @Child(name = "start", type = {InstantType.class}, order=7, min=1, max=1, modifier=false, summary=true)
274    @Description(shortDefinition="Date/Time that the slot is to begin", formalDefinition="Date/Time that the slot is to begin." )
275    protected InstantType start;
276
277    /**
278     * Date/Time that the slot is to conclude.
279     */
280    @Child(name = "end", type = {InstantType.class}, order=8, min=1, max=1, modifier=false, summary=true)
281    @Description(shortDefinition="Date/Time that the slot is to conclude", formalDefinition="Date/Time that the slot is to conclude." )
282    protected InstantType end;
283
284    /**
285     * This slot has already been overbooked, appointments are unlikely to be accepted for this time.
286     */
287    @Child(name = "overbooked", type = {BooleanType.class}, order=9, min=0, max=1, modifier=false, summary=false)
288    @Description(shortDefinition="This slot has already been overbooked, appointments are unlikely to be accepted for this time", formalDefinition="This slot has already been overbooked, appointments are unlikely to be accepted for this time." )
289    protected BooleanType overbooked;
290
291    /**
292     * Comments on the slot to describe any extended information. Such as custom constraints on the slot.
293     */
294    @Child(name = "comment", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=false)
295    @Description(shortDefinition="Comments on the slot to describe any extended information. Such as custom constraints on the slot", formalDefinition="Comments on the slot to describe any extended information. Such as custom constraints on the slot." )
296    protected StringType comment;
297
298    private static final long serialVersionUID = -426965191L;
299
300  /**
301   * Constructor
302   */
303    public Slot() {
304      super();
305    }
306
307  /**
308   * Constructor
309   */
310    public Slot(Reference schedule, SlotStatus status, Date start, Date end) {
311      super();
312      this.setSchedule(schedule);
313      this.setStatus(status);
314      this.setStart(start);
315      this.setEnd(end);
316    }
317
318    /**
319     * @return {@link #identifier} (External Ids for this item.)
320     */
321    public List<Identifier> getIdentifier() { 
322      if (this.identifier == null)
323        this.identifier = new ArrayList<Identifier>();
324      return this.identifier;
325    }
326
327    /**
328     * @return Returns a reference to <code>this</code> for easy method chaining
329     */
330    public Slot setIdentifier(List<Identifier> theIdentifier) { 
331      this.identifier = theIdentifier;
332      return this;
333    }
334
335    public boolean hasIdentifier() { 
336      if (this.identifier == null)
337        return false;
338      for (Identifier item : this.identifier)
339        if (!item.isEmpty())
340          return true;
341      return false;
342    }
343
344    public Identifier addIdentifier() { //3
345      Identifier t = new Identifier();
346      if (this.identifier == null)
347        this.identifier = new ArrayList<Identifier>();
348      this.identifier.add(t);
349      return t;
350    }
351
352    public Slot addIdentifier(Identifier t) { //3
353      if (t == null)
354        return this;
355      if (this.identifier == null)
356        this.identifier = new ArrayList<Identifier>();
357      this.identifier.add(t);
358      return this;
359    }
360
361    /**
362     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3}
363     */
364    public Identifier getIdentifierFirstRep() { 
365      if (getIdentifier().isEmpty()) {
366        addIdentifier();
367      }
368      return getIdentifier().get(0);
369    }
370
371    /**
372     * @return {@link #serviceCategory} (A broad categorization of the service that is to be performed during this appointment.)
373     */
374    public List<CodeableConcept> getServiceCategory() { 
375      if (this.serviceCategory == null)
376        this.serviceCategory = new ArrayList<CodeableConcept>();
377      return this.serviceCategory;
378    }
379
380    /**
381     * @return Returns a reference to <code>this</code> for easy method chaining
382     */
383    public Slot setServiceCategory(List<CodeableConcept> theServiceCategory) { 
384      this.serviceCategory = theServiceCategory;
385      return this;
386    }
387
388    public boolean hasServiceCategory() { 
389      if (this.serviceCategory == null)
390        return false;
391      for (CodeableConcept item : this.serviceCategory)
392        if (!item.isEmpty())
393          return true;
394      return false;
395    }
396
397    public CodeableConcept addServiceCategory() { //3
398      CodeableConcept t = new CodeableConcept();
399      if (this.serviceCategory == null)
400        this.serviceCategory = new ArrayList<CodeableConcept>();
401      this.serviceCategory.add(t);
402      return t;
403    }
404
405    public Slot addServiceCategory(CodeableConcept t) { //3
406      if (t == null)
407        return this;
408      if (this.serviceCategory == null)
409        this.serviceCategory = new ArrayList<CodeableConcept>();
410      this.serviceCategory.add(t);
411      return this;
412    }
413
414    /**
415     * @return The first repetition of repeating field {@link #serviceCategory}, creating it if it does not already exist {3}
416     */
417    public CodeableConcept getServiceCategoryFirstRep() { 
418      if (getServiceCategory().isEmpty()) {
419        addServiceCategory();
420      }
421      return getServiceCategory().get(0);
422    }
423
424    /**
425     * @return {@link #serviceType} (The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource.)
426     */
427    public List<CodeableConcept> getServiceType() { 
428      if (this.serviceType == null)
429        this.serviceType = new ArrayList<CodeableConcept>();
430      return this.serviceType;
431    }
432
433    /**
434     * @return Returns a reference to <code>this</code> for easy method chaining
435     */
436    public Slot setServiceType(List<CodeableConcept> theServiceType) { 
437      this.serviceType = theServiceType;
438      return this;
439    }
440
441    public boolean hasServiceType() { 
442      if (this.serviceType == null)
443        return false;
444      for (CodeableConcept item : this.serviceType)
445        if (!item.isEmpty())
446          return true;
447      return false;
448    }
449
450    public CodeableConcept addServiceType() { //3
451      CodeableConcept t = new CodeableConcept();
452      if (this.serviceType == null)
453        this.serviceType = new ArrayList<CodeableConcept>();
454      this.serviceType.add(t);
455      return t;
456    }
457
458    public Slot addServiceType(CodeableConcept t) { //3
459      if (t == null)
460        return this;
461      if (this.serviceType == null)
462        this.serviceType = new ArrayList<CodeableConcept>();
463      this.serviceType.add(t);
464      return this;
465    }
466
467    /**
468     * @return The first repetition of repeating field {@link #serviceType}, creating it if it does not already exist {3}
469     */
470    public CodeableConcept getServiceTypeFirstRep() { 
471      if (getServiceType().isEmpty()) {
472        addServiceType();
473      }
474      return getServiceType().get(0);
475    }
476
477    /**
478     * @return {@link #specialty} (The specialty of a practitioner that would be required to perform the service requested in this appointment.)
479     */
480    public List<CodeableConcept> getSpecialty() { 
481      if (this.specialty == null)
482        this.specialty = new ArrayList<CodeableConcept>();
483      return this.specialty;
484    }
485
486    /**
487     * @return Returns a reference to <code>this</code> for easy method chaining
488     */
489    public Slot setSpecialty(List<CodeableConcept> theSpecialty) { 
490      this.specialty = theSpecialty;
491      return this;
492    }
493
494    public boolean hasSpecialty() { 
495      if (this.specialty == null)
496        return false;
497      for (CodeableConcept item : this.specialty)
498        if (!item.isEmpty())
499          return true;
500      return false;
501    }
502
503    public CodeableConcept addSpecialty() { //3
504      CodeableConcept t = new CodeableConcept();
505      if (this.specialty == null)
506        this.specialty = new ArrayList<CodeableConcept>();
507      this.specialty.add(t);
508      return t;
509    }
510
511    public Slot addSpecialty(CodeableConcept t) { //3
512      if (t == null)
513        return this;
514      if (this.specialty == null)
515        this.specialty = new ArrayList<CodeableConcept>();
516      this.specialty.add(t);
517      return this;
518    }
519
520    /**
521     * @return The first repetition of repeating field {@link #specialty}, creating it if it does not already exist {3}
522     */
523    public CodeableConcept getSpecialtyFirstRep() { 
524      if (getSpecialty().isEmpty()) {
525        addSpecialty();
526      }
527      return getSpecialty().get(0);
528    }
529
530    /**
531     * @return {@link #appointmentType} (The style of appointment or patient that may be booked in the slot (not service type).)
532     */
533    public CodeableConcept getAppointmentType() { 
534      if (this.appointmentType == null)
535        if (Configuration.errorOnAutoCreate())
536          throw new Error("Attempt to auto-create Slot.appointmentType");
537        else if (Configuration.doAutoCreate())
538          this.appointmentType = new CodeableConcept(); // cc
539      return this.appointmentType;
540    }
541
542    public boolean hasAppointmentType() { 
543      return this.appointmentType != null && !this.appointmentType.isEmpty();
544    }
545
546    /**
547     * @param value {@link #appointmentType} (The style of appointment or patient that may be booked in the slot (not service type).)
548     */
549    public Slot setAppointmentType(CodeableConcept value) { 
550      this.appointmentType = value;
551      return this;
552    }
553
554    /**
555     * @return {@link #schedule} (The schedule resource that this slot defines an interval of status information.)
556     */
557    public Reference getSchedule() { 
558      if (this.schedule == null)
559        if (Configuration.errorOnAutoCreate())
560          throw new Error("Attempt to auto-create Slot.schedule");
561        else if (Configuration.doAutoCreate())
562          this.schedule = new Reference(); // cc
563      return this.schedule;
564    }
565
566    public boolean hasSchedule() { 
567      return this.schedule != null && !this.schedule.isEmpty();
568    }
569
570    /**
571     * @param value {@link #schedule} (The schedule resource that this slot defines an interval of status information.)
572     */
573    public Slot setSchedule(Reference value) { 
574      this.schedule = value;
575      return this;
576    }
577
578    /**
579     * @return {@link #status} (busy | free | busy-unavailable | busy-tentative | entered-in-error.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
580     */
581    public Enumeration<SlotStatus> getStatusElement() { 
582      if (this.status == null)
583        if (Configuration.errorOnAutoCreate())
584          throw new Error("Attempt to auto-create Slot.status");
585        else if (Configuration.doAutoCreate())
586          this.status = new Enumeration<SlotStatus>(new SlotStatusEnumFactory()); // bb
587      return this.status;
588    }
589
590    public boolean hasStatusElement() { 
591      return this.status != null && !this.status.isEmpty();
592    }
593
594    public boolean hasStatus() { 
595      return this.status != null && !this.status.isEmpty();
596    }
597
598    /**
599     * @param value {@link #status} (busy | free | busy-unavailable | busy-tentative | entered-in-error.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
600     */
601    public Slot setStatusElement(Enumeration<SlotStatus> value) { 
602      this.status = value;
603      return this;
604    }
605
606    /**
607     * @return busy | free | busy-unavailable | busy-tentative | entered-in-error.
608     */
609    public SlotStatus getStatus() { 
610      return this.status == null ? null : this.status.getValue();
611    }
612
613    /**
614     * @param value busy | free | busy-unavailable | busy-tentative | entered-in-error.
615     */
616    public Slot setStatus(SlotStatus value) { 
617        if (this.status == null)
618          this.status = new Enumeration<SlotStatus>(new SlotStatusEnumFactory());
619        this.status.setValue(value);
620      return this;
621    }
622
623    /**
624     * @return {@link #start} (Date/Time that the slot is to begin.). This is the underlying object with id, value and extensions. The accessor "getStart" gives direct access to the value
625     */
626    public InstantType getStartElement() { 
627      if (this.start == null)
628        if (Configuration.errorOnAutoCreate())
629          throw new Error("Attempt to auto-create Slot.start");
630        else if (Configuration.doAutoCreate())
631          this.start = new InstantType(); // bb
632      return this.start;
633    }
634
635    public boolean hasStartElement() { 
636      return this.start != null && !this.start.isEmpty();
637    }
638
639    public boolean hasStart() { 
640      return this.start != null && !this.start.isEmpty();
641    }
642
643    /**
644     * @param value {@link #start} (Date/Time that the slot is to begin.). This is the underlying object with id, value and extensions. The accessor "getStart" gives direct access to the value
645     */
646    public Slot setStartElement(InstantType value) { 
647      this.start = value;
648      return this;
649    }
650
651    /**
652     * @return Date/Time that the slot is to begin.
653     */
654    public Date getStart() { 
655      return this.start == null ? null : this.start.getValue();
656    }
657
658    /**
659     * @param value Date/Time that the slot is to begin.
660     */
661    public Slot setStart(Date value) { 
662        if (this.start == null)
663          this.start = new InstantType();
664        this.start.setValue(value);
665      return this;
666    }
667
668    /**
669     * @return {@link #end} (Date/Time that the slot is to conclude.). This is the underlying object with id, value and extensions. The accessor "getEnd" gives direct access to the value
670     */
671    public InstantType getEndElement() { 
672      if (this.end == null)
673        if (Configuration.errorOnAutoCreate())
674          throw new Error("Attempt to auto-create Slot.end");
675        else if (Configuration.doAutoCreate())
676          this.end = new InstantType(); // bb
677      return this.end;
678    }
679
680    public boolean hasEndElement() { 
681      return this.end != null && !this.end.isEmpty();
682    }
683
684    public boolean hasEnd() { 
685      return this.end != null && !this.end.isEmpty();
686    }
687
688    /**
689     * @param value {@link #end} (Date/Time that the slot is to conclude.). This is the underlying object with id, value and extensions. The accessor "getEnd" gives direct access to the value
690     */
691    public Slot setEndElement(InstantType value) { 
692      this.end = value;
693      return this;
694    }
695
696    /**
697     * @return Date/Time that the slot is to conclude.
698     */
699    public Date getEnd() { 
700      return this.end == null ? null : this.end.getValue();
701    }
702
703    /**
704     * @param value Date/Time that the slot is to conclude.
705     */
706    public Slot setEnd(Date value) { 
707        if (this.end == null)
708          this.end = new InstantType();
709        this.end.setValue(value);
710      return this;
711    }
712
713    /**
714     * @return {@link #overbooked} (This slot has already been overbooked, appointments are unlikely to be accepted for this time.). This is the underlying object with id, value and extensions. The accessor "getOverbooked" gives direct access to the value
715     */
716    public BooleanType getOverbookedElement() { 
717      if (this.overbooked == null)
718        if (Configuration.errorOnAutoCreate())
719          throw new Error("Attempt to auto-create Slot.overbooked");
720        else if (Configuration.doAutoCreate())
721          this.overbooked = new BooleanType(); // bb
722      return this.overbooked;
723    }
724
725    public boolean hasOverbookedElement() { 
726      return this.overbooked != null && !this.overbooked.isEmpty();
727    }
728
729    public boolean hasOverbooked() { 
730      return this.overbooked != null && !this.overbooked.isEmpty();
731    }
732
733    /**
734     * @param value {@link #overbooked} (This slot has already been overbooked, appointments are unlikely to be accepted for this time.). This is the underlying object with id, value and extensions. The accessor "getOverbooked" gives direct access to the value
735     */
736    public Slot setOverbookedElement(BooleanType value) { 
737      this.overbooked = value;
738      return this;
739    }
740
741    /**
742     * @return This slot has already been overbooked, appointments are unlikely to be accepted for this time.
743     */
744    public boolean getOverbooked() { 
745      return this.overbooked == null || this.overbooked.isEmpty() ? false : this.overbooked.getValue();
746    }
747
748    /**
749     * @param value This slot has already been overbooked, appointments are unlikely to be accepted for this time.
750     */
751    public Slot setOverbooked(boolean value) { 
752        if (this.overbooked == null)
753          this.overbooked = new BooleanType();
754        this.overbooked.setValue(value);
755      return this;
756    }
757
758    /**
759     * @return {@link #comment} (Comments on the slot to describe any extended information. Such as custom constraints on the slot.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value
760     */
761    public StringType getCommentElement() { 
762      if (this.comment == null)
763        if (Configuration.errorOnAutoCreate())
764          throw new Error("Attempt to auto-create Slot.comment");
765        else if (Configuration.doAutoCreate())
766          this.comment = new StringType(); // bb
767      return this.comment;
768    }
769
770    public boolean hasCommentElement() { 
771      return this.comment != null && !this.comment.isEmpty();
772    }
773
774    public boolean hasComment() { 
775      return this.comment != null && !this.comment.isEmpty();
776    }
777
778    /**
779     * @param value {@link #comment} (Comments on the slot to describe any extended information. Such as custom constraints on the slot.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value
780     */
781    public Slot setCommentElement(StringType value) { 
782      this.comment = value;
783      return this;
784    }
785
786    /**
787     * @return Comments on the slot to describe any extended information. Such as custom constraints on the slot.
788     */
789    public String getComment() { 
790      return this.comment == null ? null : this.comment.getValue();
791    }
792
793    /**
794     * @param value Comments on the slot to describe any extended information. Such as custom constraints on the slot.
795     */
796    public Slot setComment(String value) { 
797      if (Utilities.noString(value))
798        this.comment = null;
799      else {
800        if (this.comment == null)
801          this.comment = new StringType();
802        this.comment.setValue(value);
803      }
804      return this;
805    }
806
807      protected void listChildren(List<Property> children) {
808        super.listChildren(children);
809        children.add(new Property("identifier", "Identifier", "External Ids for this item.", 0, java.lang.Integer.MAX_VALUE, identifier));
810        children.add(new Property("serviceCategory", "CodeableConcept", "A broad categorization of the service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceCategory));
811        children.add(new Property("serviceType", "CodeableConcept", "The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource.", 0, java.lang.Integer.MAX_VALUE, serviceType));
812        children.add(new Property("specialty", "CodeableConcept", "The specialty of a practitioner that would be required to perform the service requested in this appointment.", 0, java.lang.Integer.MAX_VALUE, specialty));
813        children.add(new Property("appointmentType", "CodeableConcept", "The style of appointment or patient that may be booked in the slot (not service type).", 0, 1, appointmentType));
814        children.add(new Property("schedule", "Reference(Schedule)", "The schedule resource that this slot defines an interval of status information.", 0, 1, schedule));
815        children.add(new Property("status", "code", "busy | free | busy-unavailable | busy-tentative | entered-in-error.", 0, 1, status));
816        children.add(new Property("start", "instant", "Date/Time that the slot is to begin.", 0, 1, start));
817        children.add(new Property("end", "instant", "Date/Time that the slot is to conclude.", 0, 1, end));
818        children.add(new Property("overbooked", "boolean", "This slot has already been overbooked, appointments are unlikely to be accepted for this time.", 0, 1, overbooked));
819        children.add(new Property("comment", "string", "Comments on the slot to describe any extended information. Such as custom constraints on the slot.", 0, 1, comment));
820      }
821
822      @Override
823      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
824        switch (_hash) {
825        case -1618432855: /*identifier*/  return new Property("identifier", "Identifier", "External Ids for this item.", 0, java.lang.Integer.MAX_VALUE, identifier);
826        case 1281188563: /*serviceCategory*/  return new Property("serviceCategory", "CodeableConcept", "A broad categorization of the service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceCategory);
827        case -1928370289: /*serviceType*/  return new Property("serviceType", "CodeableConcept", "The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource.", 0, java.lang.Integer.MAX_VALUE, serviceType);
828        case -1694759682: /*specialty*/  return new Property("specialty", "CodeableConcept", "The specialty of a practitioner that would be required to perform the service requested in this appointment.", 0, java.lang.Integer.MAX_VALUE, specialty);
829        case -1596426375: /*appointmentType*/  return new Property("appointmentType", "CodeableConcept", "The style of appointment or patient that may be booked in the slot (not service type).", 0, 1, appointmentType);
830        case -697920873: /*schedule*/  return new Property("schedule", "Reference(Schedule)", "The schedule resource that this slot defines an interval of status information.", 0, 1, schedule);
831        case -892481550: /*status*/  return new Property("status", "code", "busy | free | busy-unavailable | busy-tentative | entered-in-error.", 0, 1, status);
832        case 109757538: /*start*/  return new Property("start", "instant", "Date/Time that the slot is to begin.", 0, 1, start);
833        case 100571: /*end*/  return new Property("end", "instant", "Date/Time that the slot is to conclude.", 0, 1, end);
834        case 2068545308: /*overbooked*/  return new Property("overbooked", "boolean", "This slot has already been overbooked, appointments are unlikely to be accepted for this time.", 0, 1, overbooked);
835        case 950398559: /*comment*/  return new Property("comment", "string", "Comments on the slot to describe any extended information. Such as custom constraints on the slot.", 0, 1, comment);
836        default: return super.getNamedProperty(_hash, _name, _checkValid);
837        }
838
839      }
840
841      @Override
842      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
843        switch (hash) {
844        case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
845        case 1281188563: /*serviceCategory*/ return this.serviceCategory == null ? new Base[0] : this.serviceCategory.toArray(new Base[this.serviceCategory.size()]); // CodeableConcept
846        case -1928370289: /*serviceType*/ return this.serviceType == null ? new Base[0] : this.serviceType.toArray(new Base[this.serviceType.size()]); // CodeableConcept
847        case -1694759682: /*specialty*/ return this.specialty == null ? new Base[0] : this.specialty.toArray(new Base[this.specialty.size()]); // CodeableConcept
848        case -1596426375: /*appointmentType*/ return this.appointmentType == null ? new Base[0] : new Base[] {this.appointmentType}; // CodeableConcept
849        case -697920873: /*schedule*/ return this.schedule == null ? new Base[0] : new Base[] {this.schedule}; // Reference
850        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<SlotStatus>
851        case 109757538: /*start*/ return this.start == null ? new Base[0] : new Base[] {this.start}; // InstantType
852        case 100571: /*end*/ return this.end == null ? new Base[0] : new Base[] {this.end}; // InstantType
853        case 2068545308: /*overbooked*/ return this.overbooked == null ? new Base[0] : new Base[] {this.overbooked}; // BooleanType
854        case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType
855        default: return super.getProperty(hash, name, checkValid);
856        }
857
858      }
859
860      @Override
861      public Base setProperty(int hash, String name, Base value) throws FHIRException {
862        switch (hash) {
863        case -1618432855: // identifier
864          this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier
865          return value;
866        case 1281188563: // serviceCategory
867          this.getServiceCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
868          return value;
869        case -1928370289: // serviceType
870          this.getServiceType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
871          return value;
872        case -1694759682: // specialty
873          this.getSpecialty().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept
874          return value;
875        case -1596426375: // appointmentType
876          this.appointmentType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
877          return value;
878        case -697920873: // schedule
879          this.schedule = TypeConvertor.castToReference(value); // Reference
880          return value;
881        case -892481550: // status
882          value = new SlotStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
883          this.status = (Enumeration) value; // Enumeration<SlotStatus>
884          return value;
885        case 109757538: // start
886          this.start = TypeConvertor.castToInstant(value); // InstantType
887          return value;
888        case 100571: // end
889          this.end = TypeConvertor.castToInstant(value); // InstantType
890          return value;
891        case 2068545308: // overbooked
892          this.overbooked = TypeConvertor.castToBoolean(value); // BooleanType
893          return value;
894        case 950398559: // comment
895          this.comment = TypeConvertor.castToString(value); // StringType
896          return value;
897        default: return super.setProperty(hash, name, value);
898        }
899
900      }
901
902      @Override
903      public Base setProperty(String name, Base value) throws FHIRException {
904        if (name.equals("identifier")) {
905          this.getIdentifier().add(TypeConvertor.castToIdentifier(value));
906        } else if (name.equals("serviceCategory")) {
907          this.getServiceCategory().add(TypeConvertor.castToCodeableConcept(value));
908        } else if (name.equals("serviceType")) {
909          this.getServiceType().add(TypeConvertor.castToCodeableConcept(value));
910        } else if (name.equals("specialty")) {
911          this.getSpecialty().add(TypeConvertor.castToCodeableConcept(value));
912        } else if (name.equals("appointmentType")) {
913          this.appointmentType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
914        } else if (name.equals("schedule")) {
915          this.schedule = TypeConvertor.castToReference(value); // Reference
916        } else if (name.equals("status")) {
917          value = new SlotStatusEnumFactory().fromType(TypeConvertor.castToCode(value));
918          this.status = (Enumeration) value; // Enumeration<SlotStatus>
919        } else if (name.equals("start")) {
920          this.start = TypeConvertor.castToInstant(value); // InstantType
921        } else if (name.equals("end")) {
922          this.end = TypeConvertor.castToInstant(value); // InstantType
923        } else if (name.equals("overbooked")) {
924          this.overbooked = TypeConvertor.castToBoolean(value); // BooleanType
925        } else if (name.equals("comment")) {
926          this.comment = TypeConvertor.castToString(value); // StringType
927        } else
928          return super.setProperty(name, value);
929        return value;
930      }
931
932      @Override
933      public Base makeProperty(int hash, String name) throws FHIRException {
934        switch (hash) {
935        case -1618432855:  return addIdentifier(); 
936        case 1281188563:  return addServiceCategory(); 
937        case -1928370289:  return addServiceType(); 
938        case -1694759682:  return addSpecialty(); 
939        case -1596426375:  return getAppointmentType();
940        case -697920873:  return getSchedule();
941        case -892481550:  return getStatusElement();
942        case 109757538:  return getStartElement();
943        case 100571:  return getEndElement();
944        case 2068545308:  return getOverbookedElement();
945        case 950398559:  return getCommentElement();
946        default: return super.makeProperty(hash, name);
947        }
948
949      }
950
951      @Override
952      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
953        switch (hash) {
954        case -1618432855: /*identifier*/ return new String[] {"Identifier"};
955        case 1281188563: /*serviceCategory*/ return new String[] {"CodeableConcept"};
956        case -1928370289: /*serviceType*/ return new String[] {"CodeableConcept"};
957        case -1694759682: /*specialty*/ return new String[] {"CodeableConcept"};
958        case -1596426375: /*appointmentType*/ return new String[] {"CodeableConcept"};
959        case -697920873: /*schedule*/ return new String[] {"Reference"};
960        case -892481550: /*status*/ return new String[] {"code"};
961        case 109757538: /*start*/ return new String[] {"instant"};
962        case 100571: /*end*/ return new String[] {"instant"};
963        case 2068545308: /*overbooked*/ return new String[] {"boolean"};
964        case 950398559: /*comment*/ return new String[] {"string"};
965        default: return super.getTypesForProperty(hash, name);
966        }
967
968      }
969
970      @Override
971      public Base addChild(String name) throws FHIRException {
972        if (name.equals("identifier")) {
973          return addIdentifier();
974        }
975        else if (name.equals("serviceCategory")) {
976          return addServiceCategory();
977        }
978        else if (name.equals("serviceType")) {
979          return addServiceType();
980        }
981        else if (name.equals("specialty")) {
982          return addSpecialty();
983        }
984        else if (name.equals("appointmentType")) {
985          this.appointmentType = new CodeableConcept();
986          return this.appointmentType;
987        }
988        else if (name.equals("schedule")) {
989          this.schedule = new Reference();
990          return this.schedule;
991        }
992        else if (name.equals("status")) {
993          throw new FHIRException("Cannot call addChild on a primitive type Slot.status");
994        }
995        else if (name.equals("start")) {
996          throw new FHIRException("Cannot call addChild on a primitive type Slot.start");
997        }
998        else if (name.equals("end")) {
999          throw new FHIRException("Cannot call addChild on a primitive type Slot.end");
1000        }
1001        else if (name.equals("overbooked")) {
1002          throw new FHIRException("Cannot call addChild on a primitive type Slot.overbooked");
1003        }
1004        else if (name.equals("comment")) {
1005          throw new FHIRException("Cannot call addChild on a primitive type Slot.comment");
1006        }
1007        else
1008          return super.addChild(name);
1009      }
1010
1011  public String fhirType() {
1012    return "Slot";
1013
1014  }
1015
1016      public Slot copy() {
1017        Slot dst = new Slot();
1018        copyValues(dst);
1019        return dst;
1020      }
1021
1022      public void copyValues(Slot dst) {
1023        super.copyValues(dst);
1024        if (identifier != null) {
1025          dst.identifier = new ArrayList<Identifier>();
1026          for (Identifier i : identifier)
1027            dst.identifier.add(i.copy());
1028        };
1029        if (serviceCategory != null) {
1030          dst.serviceCategory = new ArrayList<CodeableConcept>();
1031          for (CodeableConcept i : serviceCategory)
1032            dst.serviceCategory.add(i.copy());
1033        };
1034        if (serviceType != null) {
1035          dst.serviceType = new ArrayList<CodeableConcept>();
1036          for (CodeableConcept i : serviceType)
1037            dst.serviceType.add(i.copy());
1038        };
1039        if (specialty != null) {
1040          dst.specialty = new ArrayList<CodeableConcept>();
1041          for (CodeableConcept i : specialty)
1042            dst.specialty.add(i.copy());
1043        };
1044        dst.appointmentType = appointmentType == null ? null : appointmentType.copy();
1045        dst.schedule = schedule == null ? null : schedule.copy();
1046        dst.status = status == null ? null : status.copy();
1047        dst.start = start == null ? null : start.copy();
1048        dst.end = end == null ? null : end.copy();
1049        dst.overbooked = overbooked == null ? null : overbooked.copy();
1050        dst.comment = comment == null ? null : comment.copy();
1051      }
1052
1053      protected Slot typedCopy() {
1054        return copy();
1055      }
1056
1057      @Override
1058      public boolean equalsDeep(Base other_) {
1059        if (!super.equalsDeep(other_))
1060          return false;
1061        if (!(other_ instanceof Slot))
1062          return false;
1063        Slot o = (Slot) other_;
1064        return compareDeep(identifier, o.identifier, true) && compareDeep(serviceCategory, o.serviceCategory, true)
1065           && compareDeep(serviceType, o.serviceType, true) && compareDeep(specialty, o.specialty, true) && compareDeep(appointmentType, o.appointmentType, true)
1066           && compareDeep(schedule, o.schedule, true) && compareDeep(status, o.status, true) && compareDeep(start, o.start, true)
1067           && compareDeep(end, o.end, true) && compareDeep(overbooked, o.overbooked, true) && compareDeep(comment, o.comment, true)
1068          ;
1069      }
1070
1071      @Override
1072      public boolean equalsShallow(Base other_) {
1073        if (!super.equalsShallow(other_))
1074          return false;
1075        if (!(other_ instanceof Slot))
1076          return false;
1077        Slot o = (Slot) other_;
1078        return compareValues(status, o.status, true) && compareValues(start, o.start, true) && compareValues(end, o.end, true)
1079           && compareValues(overbooked, o.overbooked, true) && compareValues(comment, o.comment, true);
1080      }
1081
1082      public boolean isEmpty() {
1083        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, serviceCategory
1084          , serviceType, specialty, appointmentType, schedule, status, start, end, overbooked
1085          , comment);
1086      }
1087
1088  @Override
1089  public ResourceType getResourceType() {
1090    return ResourceType.Slot;
1091   }
1092
1093 /**
1094   * Search parameter: <b>appointment-type</b>
1095   * <p>
1096   * Description: <b>The style of appointment or patient that may be booked in the slot (not service type)</b><br>
1097   * Type: <b>token</b><br>
1098   * Path: <b>Slot.appointmentType</b><br>
1099   * </p>
1100   */
1101  @SearchParamDefinition(name="appointment-type", path="Slot.appointmentType", description="The style of appointment or patient that may be booked in the slot (not service type)", type="token" )
1102  public static final String SP_APPOINTMENT_TYPE = "appointment-type";
1103 /**
1104   * <b>Fluent Client</b> search parameter constant for <b>appointment-type</b>
1105   * <p>
1106   * Description: <b>The style of appointment or patient that may be booked in the slot (not service type)</b><br>
1107   * Type: <b>token</b><br>
1108   * Path: <b>Slot.appointmentType</b><br>
1109   * </p>
1110   */
1111  public static final ca.uhn.fhir.rest.gclient.TokenClientParam APPOINTMENT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_APPOINTMENT_TYPE);
1112
1113 /**
1114   * Search parameter: <b>identifier</b>
1115   * <p>
1116   * Description: <b>A Slot Identifier</b><br>
1117   * Type: <b>token</b><br>
1118   * Path: <b>Slot.identifier</b><br>
1119   * </p>
1120   */
1121  @SearchParamDefinition(name="identifier", path="Slot.identifier", description="A Slot Identifier", type="token" )
1122  public static final String SP_IDENTIFIER = "identifier";
1123 /**
1124   * <b>Fluent Client</b> search parameter constant for <b>identifier</b>
1125   * <p>
1126   * Description: <b>A Slot Identifier</b><br>
1127   * Type: <b>token</b><br>
1128   * Path: <b>Slot.identifier</b><br>
1129   * </p>
1130   */
1131  public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
1132
1133 /**
1134   * Search parameter: <b>schedule</b>
1135   * <p>
1136   * Description: <b>The Schedule Resource that we are seeking a slot within</b><br>
1137   * Type: <b>reference</b><br>
1138   * Path: <b>Slot.schedule</b><br>
1139   * </p>
1140   */
1141  @SearchParamDefinition(name="schedule", path="Slot.schedule", description="The Schedule Resource that we are seeking a slot within", type="reference", target={Schedule.class } )
1142  public static final String SP_SCHEDULE = "schedule";
1143 /**
1144   * <b>Fluent Client</b> search parameter constant for <b>schedule</b>
1145   * <p>
1146   * Description: <b>The Schedule Resource that we are seeking a slot within</b><br>
1147   * Type: <b>reference</b><br>
1148   * Path: <b>Slot.schedule</b><br>
1149   * </p>
1150   */
1151  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SCHEDULE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SCHEDULE);
1152
1153/**
1154   * Constant for fluent queries to be used to add include statements. Specifies
1155   * the path value of "<b>Slot:schedule</b>".
1156   */
1157  public static final ca.uhn.fhir.model.api.Include INCLUDE_SCHEDULE = new ca.uhn.fhir.model.api.Include("Slot:schedule").toLocked();
1158
1159 /**
1160   * Search parameter: <b>service-category</b>
1161   * <p>
1162   * Description: <b>A broad categorization of the service that is to be performed during this appointment</b><br>
1163   * Type: <b>token</b><br>
1164   * Path: <b>Slot.serviceCategory</b><br>
1165   * </p>
1166   */
1167  @SearchParamDefinition(name="service-category", path="Slot.serviceCategory", description="A broad categorization of the service that is to be performed during this appointment", type="token" )
1168  public static final String SP_SERVICE_CATEGORY = "service-category";
1169 /**
1170   * <b>Fluent Client</b> search parameter constant for <b>service-category</b>
1171   * <p>
1172   * Description: <b>A broad categorization of the service that is to be performed during this appointment</b><br>
1173   * Type: <b>token</b><br>
1174   * Path: <b>Slot.serviceCategory</b><br>
1175   * </p>
1176   */
1177  public static final ca.uhn.fhir.rest.gclient.TokenClientParam SERVICE_CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SERVICE_CATEGORY);
1178
1179 /**
1180   * Search parameter: <b>service-type</b>
1181   * <p>
1182   * Description: <b>The type of appointments that can be booked into the slot</b><br>
1183   * Type: <b>token</b><br>
1184   * Path: <b>Slot.serviceType</b><br>
1185   * </p>
1186   */
1187  @SearchParamDefinition(name="service-type", path="Slot.serviceType", description="The type of appointments that can be booked into the slot", type="token" )
1188  public static final String SP_SERVICE_TYPE = "service-type";
1189 /**
1190   * <b>Fluent Client</b> search parameter constant for <b>service-type</b>
1191   * <p>
1192   * Description: <b>The type of appointments that can be booked into the slot</b><br>
1193   * Type: <b>token</b><br>
1194   * Path: <b>Slot.serviceType</b><br>
1195   * </p>
1196   */
1197  public static final ca.uhn.fhir.rest.gclient.TokenClientParam SERVICE_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SERVICE_TYPE);
1198
1199 /**
1200   * Search parameter: <b>specialty</b>
1201   * <p>
1202   * Description: <b>The specialty of a practitioner that would be required to perform the service requested in this appointment</b><br>
1203   * Type: <b>token</b><br>
1204   * Path: <b>Slot.specialty</b><br>
1205   * </p>
1206   */
1207  @SearchParamDefinition(name="specialty", path="Slot.specialty", description="The specialty of a practitioner that would be required to perform the service requested in this appointment", type="token" )
1208  public static final String SP_SPECIALTY = "specialty";
1209 /**
1210   * <b>Fluent Client</b> search parameter constant for <b>specialty</b>
1211   * <p>
1212   * Description: <b>The specialty of a practitioner that would be required to perform the service requested in this appointment</b><br>
1213   * Type: <b>token</b><br>
1214   * Path: <b>Slot.specialty</b><br>
1215   * </p>
1216   */
1217  public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIALTY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SPECIALTY);
1218
1219 /**
1220   * Search parameter: <b>start</b>
1221   * <p>
1222   * Description: <b>Appointment date/time.</b><br>
1223   * Type: <b>date</b><br>
1224   * Path: <b>Slot.start</b><br>
1225   * </p>
1226   */
1227  @SearchParamDefinition(name="start", path="Slot.start", description="Appointment date/time.", type="date" )
1228  public static final String SP_START = "start";
1229 /**
1230   * <b>Fluent Client</b> search parameter constant for <b>start</b>
1231   * <p>
1232   * Description: <b>Appointment date/time.</b><br>
1233   * Type: <b>date</b><br>
1234   * Path: <b>Slot.start</b><br>
1235   * </p>
1236   */
1237  public static final ca.uhn.fhir.rest.gclient.DateClientParam START = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_START);
1238
1239 /**
1240   * Search parameter: <b>status</b>
1241   * <p>
1242   * Description: <b>The free/busy status of the appointment</b><br>
1243   * Type: <b>token</b><br>
1244   * Path: <b>Slot.status</b><br>
1245   * </p>
1246   */
1247  @SearchParamDefinition(name="status", path="Slot.status", description="The free/busy status of the appointment", type="token" )
1248  public static final String SP_STATUS = "status";
1249 /**
1250   * <b>Fluent Client</b> search parameter constant for <b>status</b>
1251   * <p>
1252   * Description: <b>The free/busy status of the appointment</b><br>
1253   * Type: <b>token</b><br>
1254   * Path: <b>Slot.status</b><br>
1255   * </p>
1256   */
1257  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
1258
1259
1260}
1261