AppointmentChangeRecord

public class AppointmentChangeRecord

AppointmentChangeRecord class to capture the changes in the status of the appointment

Constructors

AppointmentChangeRecord

public AppointmentChangeRecord(String externalId, String appointmentId, DateTime appointmentDate, AppointmentStatus fromStatus, AppointmentStatus toStatus)

Constructs a new record.

Parameters:
  • externalId – external Id of the patient
  • appointmentId – appointment id of the appointment being changed
  • appointmentDate – date of the appointment creation/change
  • fromStatus – previous appointment status being changed
  • toStatus – current appointment status to change to

Methods

getAppointmentDate

public DateTime getAppointmentDate()
Returns:date of the appointment creation/change

getAppointmentId

public String getAppointmentId()
Returns:appointment id of the appointment being changed

getExternalId

public String getExternalId()
Returns:external Id of the patient

getFromStatus

public AppointmentStatus getFromStatus()
Returns:previous appointment status being changed

getToStatus

public AppointmentStatus getToStatus()
Returns:current appointment status to change to

setAppointmentDate

public void setAppointmentDate(DateTime appointmentDate)
Parameters:
  • appointmentDate – date of the appointment creation/change

setAppointmentId

public void setAppointmentId(String appointmentId)
Parameters:
  • appointmentId – appointment id of the appointment being changed

setExternalId

public void setExternalId(String externalId)
Parameters:
  • externalId – external Id of the patient

setFromStatus

public void setFromStatus(AppointmentStatus fromStatus)
Parameters:
  • fromStatus – previous appointment status being changed

setToStatus

public void setToStatus(AppointmentStatus toStatus)
Parameters:
  • toStatus – current appointment status to change to