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