Class Slot
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.resource.Resource
-
- org.linuxforhealth.fhir.model.resource.DomainResource
-
- org.linuxforhealth.fhir.model.resource.Slot
-
- All Implemented Interfaces:
Visitable
@Generated("org.linuxforhealth.fhir.tools.CodeGenerator") public class Slot extends DomainResourceA 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 org.linuxforhealth.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Slot.Builderbuilder()booleanequals(java.lang.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.java.util.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.java.util.List<CodeableConcept>getServiceCategory()A broad categorization of the service that is to be performed during this appointment.java.util.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).java.util.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 org.linuxforhealth.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
External Ids for this item.- Returns:
- An unmodifiable list containing immutable objects of type
Identifierthat may be empty.
-
getServiceCategory
public java.util.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 java.util.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 java.util.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(java.lang.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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
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()
-
-