TimeSlot

data class TimeSlot(slotId: String, providerNationalId: String, providerId: String, departmentId: String, departmentIdentifier: String, slotType: String, visitTypeId: String, durationInMins: Int, slotDateTime: ZonedDateTime) : Parcelable

Represents an available time for an appointment.

Parameters

slotId

A unique identifier for this time slot.

providerNationalId

This time slot's Provider's national id.

providerId

A unique identifier representing the Provider for this time slot.

departmentId

An identifier representing the department for this time slot. Guaranteed to be unique in an ehr system, but not guaranteed to be unique across multiple ehr systems.

departmentIdentifier

A string in the format "{ehrSystemName}|{departmentId}".

slotType

What kind of appointment this time slot is for.

visitTypeId

A unique identifier representing the visit type.

durationInMins

How long the appointment is, in minutes.

slotDateTime

The starting time and day of the appointment.

Constructors

TimeSlot
Link copied to clipboard
fun TimeSlot(slotId: String, providerNationalId: String, providerId: String, departmentId: String, departmentIdentifier: String, slotType: String, visitTypeId: String, durationInMins: Int, slotDateTime: ZonedDateTime)
A unique identifier for this time slot.

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
getEhrSystemName
Link copied to clipboard
fun getEhrSystemName(): String?
Parses the departmentIdentifier to return only the EHR system name portion.
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

departmentId
Link copied to clipboard
val departmentId: String
An identifier representing the department for this time slot.
departmentIdentifier
Link copied to clipboard
val departmentIdentifier: String
A string in the format "{ehrSystemName}|{departmentId}".
durationInMins
Link copied to clipboard
val durationInMins: Int
How long the appointment is, in minutes.
providerId
Link copied to clipboard
val providerId: String
A unique identifier representing the Provider for this time slot.
providerNationalId
Link copied to clipboard
val providerNationalId: String
This time slot's Provider's national id.
slotDateTime
Link copied to clipboard
val slotDateTime: ZonedDateTime
The starting time and day of the appointment.
slotId
Link copied to clipboard
val slotId: String
A unique identifier for this time slot.
slotType
Link copied to clipboard
val slotType: String
What kind of appointment this time slot is for.
visitTypeId
Link copied to clipboard
val visitTypeId: String
A unique identifier representing the visit type.