Package com.ibm.fhir.model.resource
Class Slot
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.Slot
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class Slot extends DomainResource
A slot of time on a schedule that may be available for booking appointments.Maturity level: FMM3 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlot.Builder
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Slot.Builderbuilder()booleanequals(Object obj)CodeableConceptgetAppointmentType()The style of appointment or patient that may be booked in the slot (not service type).StringgetComment()Comments on the slot to describe any extended information.InstantgetEnd()Date/Time that the slot is to conclude.List<Identifier>getIdentifier()External Ids for this item.BooleangetOverbooked()This slot has already been overbooked, appointments are unlikely to be accepted for this time.ReferencegetSchedule()The schedule resource that this slot defines an interval of status information.List<CodeableConcept>getServiceCategory()A broad categorization of the service that is to be performed during this appointment.List<CodeableConcept>getServiceType()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).List<CodeableConcept>getSpecialty()The specialty of a practitioner that would be required to perform the service requested in this appointment.InstantgetStart()Date/Time that the slot is to begin.SlotStatusgetStatus()busy | free | busy-unavailable | busy-tentative | entered-in-error.booleanhasChildren()inthashCode()Slot.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
External Ids for this item.- Returns:
- An unmodifiable list containing immutable objects of type
Identifierthat may be empty.
-
getServiceCategory
public List<CodeableConcept> getServiceCategory()
A broad categorization of the service that is to be performed during this appointment.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getServiceType
public List<CodeableConcept> getServiceType()
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.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getSpecialty
public List<CodeableConcept> getSpecialty()
The specialty of a practitioner that would be required to perform the service requested in this appointment.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getAppointmentType
public CodeableConcept getAppointmentType()
The style of appointment or patient that may be booked in the slot (not service type).- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getSchedule
public Reference getSchedule()
The schedule resource that this slot defines an interval of status information.- Returns:
- An immutable object of type
Referencethat is non-null.
-
getStatus
public SlotStatus getStatus()
busy | free | busy-unavailable | busy-tentative | entered-in-error.- Returns:
- An immutable object of type
SlotStatusthat is non-null.
-
getStart
public Instant getStart()
Date/Time that the slot is to begin.- Returns:
- An immutable object of type
Instantthat is non-null.
-
getEnd
public Instant getEnd()
Date/Time that the slot is to conclude.- Returns:
- An immutable object of type
Instantthat is non-null.
-
getOverbooked
public Boolean getOverbooked()
This slot has already been overbooked, appointments are unlikely to be accepted for this time.- Returns:
- An immutable object of type
Booleanthat may be null.
-
getComment
public String getComment()
Comments on the slot to describe any extended information. Such as custom constraints on the slot.- Returns:
- An immutable object of type
Stringthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public Slot.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static Slot.Builder builder()
-
-