Slot class

A slot of time on a schedule that may be available for booking appointments.

Inheritance
Available extensions

Constructors

Slot({String? id, Meta? meta, FixedList<Identifier>? identifier, List<CodeableConcept>? serviceCategory, List<CodeableConcept>? serviceType, List<CodeableConcept>? specialty, CodeableConcept? appointmentType, String? schedule, SlotStatus? status, DateTime? start, DateTime? end, bool? overbooked, String? comment})
Constructs a new Slot.
Slot.fromJson(JsonObject json)
Creates a Slot instance from the provided JSON object.

Properties

appointmentType → CodeableConcept?
The style of appointment or patient that may be booked in the slot (not service type).
no setter
comment → String?
Comments on the slot to describe any extended information. Such as custom constraints on the slot.
no setter
end → DateTime?
Date/Time that the slot is to conclude.
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The id of the resource
no setterinherited
identifier → FixedList<Identifier>?
External Ids for this item.
no setter
json → JsonObject
finalinherited
meta → Meta?
The metadata of the resource
no setterinherited
overbooked → bool?
This slot has already been overbooked, appointments are unlikely to be accepted for this time.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schedule → String?
The schedule resource that this slot defines an interval of status information.
no setter
serviceCategory → List<CodeableConcept>?
A broad categorization of the service that is to be performed during this appointment.
no setter
serviceType → List<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.
no setter
specialty → List<CodeableConcept>?
The specialty of a practitioner that would be required to perform the service requested in this appointment.
no setter
start → DateTime?
Date/Time that the slot is to begin.
no setter
status → SlotStatus?
The status of the slot.
no setter

Methods

copyWith({String? id, Meta? meta, FixedList<Identifier>? identifier, List<CodeableConcept>? serviceCategory, List<CodeableConcept>? serviceType, List<CodeableConcept>? specialty, CodeableConcept? appointmentType, String? schedule, SlotStatus? status, DateTime? start, DateTime? end, bool? overbooked, String? comment}) → Slot
Creates a copy of the Slot instance and allows for non-destructive mutation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate(List<FieldDefinition> fieldDefinitions) → ValidationResult

Available on Resource, provided by the ResourceValidationExtensions extension

Validates the resource based on the provided fieldDefinitions.
withFieldResource<T2 extends Resource>(FieldDefinition<T2> field, T2 resource, {required T constructor(JsonObject)}) → T

Available on T, provided by the ResourceExtensions extension

Creates a clone of the resource with the provided field updated with another resource
withFieldValue(FieldDefinition field, JsonValue value, {required T constructor(JsonObject)}) → T

Available on T, provided by the ResourceExtensions extension

Creates a clone of the resource with the provided field updated with another resource
withNullField<T2>(FieldDefinition<T2> field, {required T constructor(JsonObject)}) → UpdateResult<T>

Available on T, provided by the ResourceExtensions extension

withUndefinedField<T2>(FieldDefinition<T2> field, {required T constructor(JsonObject)}) → UpdateResult<T>

Available on T, provided by the ResourceExtensions extension

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

appointmentTypeField → const FieldDefinition<CodeableConcept>
Field definition for appointmentType.
commentField → const FieldDefinition<String>
Field definition for comment.
endField → const FieldDefinition<DateTime>
Field definition for end.
fieldDefinitions → const List<FieldDefinition<Object>>
All field definitions for Slot.
identifierField → const FieldDefinition<FixedList<Identifier>>
Field definition for identifier.
overbookedField → const FieldDefinition<bool>
Field definition for overbooked.
scheduleField → const FieldDefinition<String>
Field definition for schedule.
serviceCategoryField → const FieldDefinition<List<CodeableConcept>>
Field definition for serviceCategory.
serviceTypeField → const FieldDefinition<List<CodeableConcept>>
Field definition for serviceType.
specialtyField → const FieldDefinition<List<CodeableConcept>>
Field definition for specialty.
startField → const FieldDefinition<DateTime>
Field definition for start.
statusField → const FieldDefinition<SlotStatus>
Field definition for status.