From 803e3ed8b99b031f058054e13cee02d587c3417c Mon Sep 17 00:00:00 2001 From: Codinab Date: Tue, 20 Feb 2024 16:02:49 +0100 Subject: [PATCH] MedicalRecord.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Mario Fernandez -Àlex Codina --- .../softarch/demo/domain/MedicalRecord.java | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/main/java/cat/udl/eps/softarch/demo/domain/MedicalRecord.java diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/MedicalRecord.java b/src/main/java/cat/udl/eps/softarch/demo/domain/MedicalRecord.java new file mode 100644 index 00000000..b045124e --- /dev/null +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/MedicalRecord.java @@ -0,0 +1,51 @@ +package cat.udl.eps.softarch.demo.domain; + +import java.util.Date; + +public class MedicalRecord { + private Integer id; + private String issue; + private String description; + private Date date; + + // Constructor + public MedicalRecord(Integer id, String issue, String description, Date date) { + this.id = id; + this.issue = issue; + this.description = description; + this.date = date; + } + + // Getters and Setters + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getIssue() { + return issue; + } + + public void setIssue(String issue) { + this.issue = issue; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Date getDate() { + return date; + } + + public void setDate(Date date) { + this.date = date; + } +} \ No newline at end of file