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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlot.SlotStatusstatic classSlot.SlotStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected CodeableConceptappointmentTypeThe style of appointment or patient that has been booked in the slot (not service type).protected StringTypecommentComments on the slot to describe any extended information.protected InstantTypeendDate/Time that the slot is to conclude.protected List<Identifier>identifierExternal Ids for this item.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_SCHEDULEConstant for fluent queries to be used to add include statements.protected BooleanTypeoverbookedThis slot has already been overbooked, appointments are unlikely to be accepted for this time.protected ReferencescheduleThe schedule resource that this slot defines an interval of status information.static ca.uhn.fhir.rest.gclient.ReferenceClientParamSCHEDULEFluent Client search parameter constant for scheduleprotected SchedulescheduleTargetThe actual object that is the target of the reference (The schedule resource that this slot defines an interval of status information.)protected CodeableConceptserviceCategoryA broad categorisation of the service that is to be performed during this appointment.protected List<CodeableConcept>serviceTypeThe 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).static ca.uhn.fhir.rest.gclient.TokenClientParamSLOT_TYPEFluent Client search parameter constant for slot-typestatic StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_SCHEDULESearch parameter: schedulestatic StringSP_SLOT_TYPESearch parameter: slot-typestatic StringSP_STARTSearch parameter: startstatic StringSP_STATUSSearch parameter: statusprotected List<CodeableConcept>specialtyThe specialty of a practitioner that would be required to perform the service requested in this appointment.protected InstantTypestartDate/Time that the slot is to begin.static ca.uhn.fhir.rest.gclient.DateClientParamSTARTFluent Client search parameter constant for startprotected Enumeration<Slot.SlotStatus>statusbusy | free | busy-unavailable | busy-tentative.static ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for status-
Fields inherited from class org.hl7.fhir.dstu2016may.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2016may.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Slot()ConstructorSlot(Reference schedule, Enumeration<Slot.SlotStatus> status, InstantType start, InstantType end)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected List<Identifier> identifier
External Ids for this item.
-
serviceCategory
protected CodeableConcept serviceCategory
A broad categorisation of the service that is to be performed during this appointment.
-
serviceType
protected List<CodeableConcept> 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.
-
specialty
protected List<CodeableConcept> specialty
The specialty of a practitioner that would be required to perform the service requested in this appointment.
-
appointmentType
protected CodeableConcept appointmentType
The style of appointment or patient that has been booked in the slot (not service type).
-
schedule
protected Reference schedule
The schedule resource that this slot defines an interval of status information.
-
scheduleTarget
protected Schedule scheduleTarget
The actual object that is the target of the reference (The schedule resource that this slot defines an interval of status information.)
-
status
protected Enumeration<Slot.SlotStatus> status
busy | free | busy-unavailable | busy-tentative.
-
start
protected InstantType start
Date/Time that the slot is to begin.
-
end
protected InstantType end
Date/Time that the slot is to conclude.
-
overbooked
protected BooleanType overbooked
This slot has already been overbooked, appointments are unlikely to be accepted for this time.
-
comment
protected StringType comment
Comments on the slot to describe any extended information. Such as custom constraints on the slot.
-
SP_SCHEDULE
public static final String SP_SCHEDULE
Search parameter: scheduleDescription: The Schedule Resource that we are seeking a slot within
Type: reference
Path: Slot.schedule
- See Also:
- Constant Field Values
-
SCHEDULE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SCHEDULE
Fluent Client search parameter constant for scheduleDescription: The Schedule Resource that we are seeking a slot within
Type: reference
Path: Slot.schedule
-
INCLUDE_SCHEDULE
public static final ca.uhn.fhir.model.api.Include INCLUDE_SCHEDULE
Constant for fluent queries to be used to add include statements. Specifies the path value of "Slot:schedule".
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: The free/busy status of the appointment
Type: token
Path: Slot.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: The free/busy status of the appointment
Type: token
Path: Slot.status
-
SP_START
public static final String SP_START
Search parameter: startDescription: Appointment date/time.
Type: date
Path: Slot.start
- See Also:
- Constant Field Values
-
START
public static final ca.uhn.fhir.rest.gclient.DateClientParam START
Fluent Client search parameter constant for startDescription: Appointment date/time.
Type: date
Path: Slot.start
-
SP_SLOT_TYPE
public static final String SP_SLOT_TYPE
Search parameter: slot-typeDescription: The type of appointments that can be booked into the slot
Type: token
Path: Slot.serviceType
- See Also:
- Constant Field Values
-
SLOT_TYPE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SLOT_TYPE
Fluent Client search parameter constant for slot-typeDescription: The type of appointments that can be booked into the slot
Type: token
Path: Slot.serviceType
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: A Slot Identifier
Type: token
Path: Slot.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: A Slot Identifier
Type: token
Path: Slot.identifier
-
-
Constructor Detail
-
Slot
public Slot()
Constructor
-
Slot
public Slot(Reference schedule, Enumeration<Slot.SlotStatus> status, InstantType start, InstantType end)
Constructor
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(External Ids for this item.)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(External Ids for this item.)
-
addIdentifier
public Slot addIdentifier(Identifier t)
-
getServiceCategory
public CodeableConcept getServiceCategory()
- Returns:
serviceCategory(A broad categorisation of the service that is to be performed during this appointment.)
-
hasServiceCategory
public boolean hasServiceCategory()
-
setServiceCategory
public Slot setServiceCategory(CodeableConcept value)
- Parameters:
value-serviceCategory(A broad categorisation of the service that is to be performed during this appointment.)
-
getServiceType
public List<CodeableConcept> getServiceType()
- Returns:
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.)
-
hasServiceType
public boolean hasServiceType()
-
addServiceType
public CodeableConcept addServiceType()
- Returns:
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.)
-
addServiceType
public Slot addServiceType(CodeableConcept t)
-
getSpecialty
public List<CodeableConcept> getSpecialty()
- Returns:
specialty(The specialty of a practitioner that would be required to perform the service requested in this appointment.)
-
hasSpecialty
public boolean hasSpecialty()
-
addSpecialty
public CodeableConcept addSpecialty()
- Returns:
specialty(The specialty of a practitioner that would be required to perform the service requested in this appointment.)
-
addSpecialty
public Slot addSpecialty(CodeableConcept t)
-
getAppointmentType
public CodeableConcept getAppointmentType()
- Returns:
appointmentType(The style of appointment or patient that has been booked in the slot (not service type).)
-
hasAppointmentType
public boolean hasAppointmentType()
-
setAppointmentType
public Slot setAppointmentType(CodeableConcept value)
- Parameters:
value-appointmentType(The style of appointment or patient that has been booked in the slot (not service type).)
-
getSchedule
public Reference 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
public Schedule getScheduleTarget()
- Returns:
scheduleThe 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
public Slot setScheduleTarget(Schedule value)
- Parameters:
value-scheduleThe 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.)
-
getStatusElement
public Enumeration<Slot.SlotStatus> getStatusElement()
- Returns:
status(busy | free | busy-unavailable | busy-tentative.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public Slot setStatusElement(Enumeration<Slot.SlotStatus> value)
- Parameters:
value-status(busy | free | busy-unavailable | busy-tentative.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public Slot.SlotStatus getStatus()
- Returns:
- busy | free | busy-unavailable | busy-tentative.
-
setStatus
public Slot setStatus(Slot.SlotStatus value)
- Parameters:
value- busy | free | busy-unavailable | busy-tentative.
-
getStartElement
public InstantType 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
public Slot setStartElement(InstantType value)
- 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
-
getEndElement
public InstantType 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
-
getOverbookedElement
public BooleanType 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
public Slot setOverbookedElement(BooleanType value)
- 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
public StringType 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
public Slot setCommentElement(StringType value)
- 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:
listChildrenin classDomainResource
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
Description copied from class:Basemake an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property- Overrides:
makePropertyin classDomainResource- Returns:
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Slot copy()
- Specified by:
copyin classDomainResource
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-