Clinic

data class Clinic(displayName: String, address: Address, phone: String, departmentName: String, smallImageUrl: String, allowedVisitTypes: List<AllowedVisitType>, clinicType: String, brandName: String, isActive: Boolean, departmentID: String, instanceID: String, ehrSystemName: String, latitude: Double, longitude: Double, openDays: List<OpenDay>, timezone: ZoneId) : Parcelable

Represents a retail clinic.

Constructors

Clinic
Link copied to clipboard
fun Clinic(displayName: String, address: Address, phone: String, departmentName: String, smallImageUrl: String, allowedVisitTypes: List<AllowedVisitType> = listOf(), clinicType: String, brandName: String, isActive: Boolean, departmentID: String, instanceID: String, ehrSystemName: String, latitude: Double, longitude: Double, openDays: List<OpenDay> = listOf(), timezone: ZoneId)

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
getDistanceString
Link copied to clipboard
fun getDistanceString(userLocation: Location): String
Helper function that can be used to determine distance between a given location and the clinic.
getLocation
Link copied to clipboard
fun getLocation(): Location
Helper function to return a Location of this clinic.
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

address
Link copied to clipboard
val address: Address
The Address of the clinic.
allowedVisitTypes
Link copied to clipboard
val allowedVisitTypes: List<AllowedVisitType>
A list of AllowedVisitType representing visit types supported/offered by the clinic.
brandName
Link copied to clipboard
val brandName: String
clinicType
Link copied to clipboard
val clinicType: String
departmentID
Link copied to clipboard
val departmentID: String
A unique identifier representing this clinic.
departmentName
Link copied to clipboard
val departmentName: String
The internal name of the department (clinic).
displayName
Link copied to clipboard
val displayName: String
A plaintext name of the clinic which can be displayed to the user.
ehrSystemName
Link copied to clipboard
val ehrSystemName: String
The ehrSystemName associated with this clinic.
instanceID
Link copied to clipboard
val instanceID: String
isActive
Link copied to clipboard
val isActive: Boolean
latitude
Link copied to clipboard
val latitude: Double
The latitude of the clinic.
longitude
Link copied to clipboard
val longitude: Double
The longitude of the clinic.
openDays
Link copied to clipboard
val openDays: List<OpenDay>
A list of OpenDay representing the operational hours of the clinic for each day of the week.
phone
Link copied to clipboard
val phone: String
The phone number of the clinic.
smallImageUrl
Link copied to clipboard
val smallImageUrl: String
A link to a preview image of the clinic.
timezone
Link copied to clipboard
val timezone: ZoneId
The timezone the clinic is located in.