java.lang.Object
de.hitec.nhplus.model.Treatment
-
Constructor Summary
ConstructorDescriptionTreatment
(long tid, long pid, LocalDate date, LocalTime begin, LocalTime end, String description, String remarks) Constructor to initiate an object of classTreatment
with the given parameter.Treatment
(long pid, LocalDate date, LocalTime begin, LocalTime end, String description, String remarks) Constructor to initiate an object of classTreatment
with the given parameter. -
Method Summary
Modifier and TypeMethodDescriptiongetBegin()
getDate()
getEnd()
long
getPid()
long
getTid()
void
void
void
setDescription
(String description) void
void
setRemarks
(String remarks) toString()
-
Constructor Details
-
Treatment
public Treatment(long pid, LocalDate date, LocalTime begin, LocalTime end, String description, String remarks) Constructor to initiate an object of classTreatment
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 classTreatment
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