Class Treatment

java.lang.Object
de.hitec.nhplus.model.Treatment

public class Treatment extends Object
  • Constructor Details

    • Treatment

      public Treatment(long pid, LocalDate date, LocalTime begin, LocalTime end, String description, String remarks)
      Constructor to initiate an object of class Treatment with the given parameter. Use this constructor to initiate objects, which are not persisted yet, because it will not have a treatment id (tid).
      Parameters:
      pid - Id of the treated patient.
      date - Date of the Treatment.
      begin - Time of the start of the treatment in format "hh:MM"
      end - Time of the end of the treatment in format "hh:MM".
      description - Description of the treatment.
      remarks - Remarks to the treatment.
    • Treatment

      public Treatment(long tid, long pid, LocalDate date, LocalTime begin, LocalTime end, String description, String remarks)
      Constructor to initiate an object of class Treatment with the given parameter. Use this constructor to initiate objects, which are already persisted and have a treatment id (tid).
      Parameters:
      tid - Id of the treatment.
      pid - Id of the treated patient.
      date - Date of the Treatment.
      begin - Time of the start of the treatment in format "hh:MM"
      end - Time of the end of the treatment in format "hh:MM".
      description - Description of the treatment.
      remarks - Remarks to the treatment.
  • Method Details

    • getTid

      public long getTid()
    • getPid

      public long getPid()
    • getDate

      public String getDate()
    • getBegin

      public String getBegin()
    • getEnd

      public String getEnd()
    • setDate

      public void setDate(String date)
    • setBegin

      public void setBegin(String begin)
    • setEnd

      public void setEnd(String end)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getRemarks

      public String getRemarks()
    • setRemarks

      public void setRemarks(String remarks)
    • toString

      public String toString()
      Overrides:
      toString in class Object