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