Class Slot

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource

public class Slot extends DomainResource
A slot of time on a schedule that may be available for booking appointments.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getIdentifier

      Returns:
      identifier (External Ids for this item.)
    • hasIdentifier

      public boolean hasIdentifier()
    • addIdentifier

      Returns:
      identifier (External Ids for this item.)
    • addIdentifier

    • getType

      Returns:
      type (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.)
    • hasType

      public boolean hasType()
    • setType

      public Slot setType(CodeableConcept value)
      Parameters:
      value - type (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.)
    • getSchedule

      Returns:
      schedule (The schedule resource that this slot defines an interval of status information.)
    • hasSchedule

      public boolean hasSchedule()
    • setSchedule

      public Slot setSchedule(Reference value)
      Parameters:
      value - schedule (The schedule resource that this slot defines an interval of status information.)
    • getScheduleTarget

      Returns:
      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.)
    • setScheduleTarget

      Parameters:
      value - 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.)
    • getFreeBusyTypeElement

      Returns:
      freeBusyType (busy | free | busy-unavailable | busy-tentative.). This is the underlying object with id, value and extensions. The accessor "getFreeBusyType" gives direct access to the value
    • hasFreeBusyTypeElement

      public boolean hasFreeBusyTypeElement()
    • hasFreeBusyType

      public boolean hasFreeBusyType()
    • setFreeBusyTypeElement

      Parameters:
      value - freeBusyType (busy | free | busy-unavailable | busy-tentative.). This is the underlying object with id, value and extensions. The accessor "getFreeBusyType" gives direct access to the value
    • getFreeBusyType

      Returns:
      busy | free | busy-unavailable | busy-tentative.
    • setFreeBusyType

      Parameters:
      value - busy | free | busy-unavailable | busy-tentative.
    • getStartElement

      Returns:
      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
    • hasStartElement

      public boolean hasStartElement()
    • hasStart

      public boolean hasStart()
    • setStartElement

      Parameters:
      value - 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
    • getStart

      public Date getStart()
      Returns:
      Date/Time that the slot is to begin.
    • setStart

      public Slot setStart(Date value)
      Parameters:
      value - Date/Time that the slot is to begin.
    • getEndElement

      Returns:
      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
    • hasEndElement

      public boolean hasEndElement()
    • hasEnd

      public boolean hasEnd()
    • setEndElement

      public Slot setEndElement(InstantType value)
      Parameters:
      value - 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
    • getEnd

      public Date getEnd()
      Returns:
      Date/Time that the slot is to conclude.
    • setEnd

      public Slot setEnd(Date value)
      Parameters:
      value - Date/Time that the slot is to conclude.
    • getOverbookedElement

      Returns:
      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
    • hasOverbookedElement

      public boolean hasOverbookedElement()
    • hasOverbooked

      public boolean hasOverbooked()
    • setOverbookedElement

      Parameters:
      value - 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
    • getOverbooked

      public boolean getOverbooked()
      Returns:
      This slot has already been overbooked, appointments are unlikely to be accepted for this time.
    • setOverbooked

      public Slot setOverbooked(boolean value)
      Parameters:
      value - This slot has already been overbooked, appointments are unlikely to be accepted for this time.
    • getCommentElement

      Returns:
      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
    • hasCommentElement

      public boolean hasCommentElement()
    • hasComment

      public boolean hasComment()
    • setCommentElement

      Parameters:
      value - 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
    • getComment

      public String getComment()
      Returns:
      Comments on the slot to describe any extended information. Such as custom constraints on the slot.
    • setComment

      public Slot setComment(String value)
      Parameters:
      value - Comments on the slot to describe any extended information. Such as custom constraints on the slot.
    • listChildren

      protected void listChildren(List<Property> childrenList)
      Overrides:
      listChildren in class DomainResource
    • setProperty

      public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DomainResource
    • copy

      public Slot copy()
      Specified by:
      copy in class DomainResource
    • typedCopy

      protected Slot typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow(Base other)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DomainResource
    • getResourceType

      Specified by:
      getResourceType in class Resource