EhrPatient

class EhrPatient(firstName: String, lastName: String, gender: Gender, dateOfBirth: LocalDate, phone: String, email: String, address: Address, ehrIdentifier: String, ehrIdentifierType: String, homeEhr: String, homeMarket: String?) : Patient

A Patient that represents an existing patient in Epic, but not DexCare.

Parameters

firstName

The Patient's given name

lastName

The Patient's family name

gender

The Patient's gender

dateOfBirth

The Patient's birthdate

phone

The Patient's contact phone number

email

The Patient's email

address

The Patient's address

ehrIdentifier

An identifier of the patient record in Epic.

ehrIdentifierType

The type of identifier being sent in ehrIdentifier, e.g. "MRN" or "EPI".

homeEhr

Home EHR code.

Constructors

EhrPatient
Link copied to clipboard
fun EhrPatient(firstName: String, lastName: String, gender: Gender, dateOfBirth: LocalDate, phone: String, email: String, address: Address, ehrIdentifier: String, ehrIdentifierType: String, homeEhr: String, homeMarket: String? = null)
The Patient's given name

Functions

validate
Link copied to clipboard
open override fun validate(): MissingInformationError?
A helper method used internally by the SDK to perform minimal validation on the object before sending it to the server.

Properties

address
Link copied to clipboard
val address: Address
The Patient's address
dateOfBirth
Link copied to clipboard
val dateOfBirth: LocalDate
The Patient's birthdate
ehrIdentifier
Link copied to clipboard
val ehrIdentifier: String
An identifier of the patient record in Epic.
ehrIdentifierType
Link copied to clipboard
val ehrIdentifierType: String
The type of identifier being sent in ehrIdentifier, e.g.
email
Link copied to clipboard
val email: String
The Patient's email
firstName
Link copied to clipboard
val firstName: String
The Patient's given name
gender
Link copied to clipboard
val gender: Gender
The Patient's gender
homeEhr
Link copied to clipboard
val homeEhr: String
Home EHR code.
lastName
Link copied to clipboard
val lastName: String
The Patient's family name
phone
Link copied to clipboard
val phone: String
The Patient's contact phone number