DosageResponse

public class DosageResponse

Dosage details returned from pill reminder module, represents single dosage detail (morning or evening) Also contains information about last dosage confirmation.

Constructors

DosageResponse

public DosageResponse(Long dosageId, Time dosageTime, LocalDate startDate, LocalDate endDate, LocalDate responseLastCapturedDate, List<MedicineResponse> medicines)

Constructs a dosage response.

Parameters:
  • dosageId – unique dosage identifier
  • dosageTime – the time of the dosage
  • startDate – dosage start date, if there are multiple medicines with different start date then first start date will be returned
  • endDate – dosage end date, if there are multiple medicines with different end date then last ending will be returned
  • responseLastCapturedDate – last dosage confirmation from subscriber for this dose
  • medicines – medicines prescribed

Methods

getDosageHour

public int getDosageHour()

Dosage time – hour component

getDosageId

public Long getDosageId()

Unique dosage identifier

getDosageMinute

public int getDosageMinute()

Dosage time – minute component

getEndDate

public LocalDate getEndDate()

Dosage end date, if there are multiple medicines with different end date then last ending will be returned

getMedicines

public List<MedicineResponse> getMedicines()
Returns:Medicines prescribed

getResponseLastCapturedDate

public LocalDate getResponseLastCapturedDate()
Returns:Last dosage confirmation from subscriber for this dose.

getStartDate

public LocalDate getStartDate()

Dosage start date, if there are multiple medicines with different start date then first start date will be returned