MedicineRequest

public class MedicineRequest

MedicineRequest specifies medicine name and prescription effective date range.

Constructors

MedicineRequest

public MedicineRequest(String name, LocalDate startDate, LocalDate endDate)

Constructs a medicine request.

Parameters:
  • name – the name of the medicine
  • startDate – the start date for taking this medicine
  • endDate – the end date for taking this medicine

Methods

getEndDate

public LocalDate getEndDate()
Returns:the end date for taking this medicine

getName

public String getName()
Returns:the name of the medicine

getStartDate

public LocalDate getStartDate()
Returns:the start date for taking this medicine