package org.example.entity;

public class Patient {
    private String admissionDateTime;  // 入院时间
    private String inpatientNo;        // 住院号
    private String name;               // 患者姓名
    private String sex;                // 性别
    private Integer age;               // 年龄
    private String deptCode;           // 所属科室
    private String wardCode;           // 所属病区
    private String roomNo;             // 房间号
    private String bedNo;              // 床位号
    private String nurseLevel;         // 护理级别
    private String inpatientStatus;    // 在院状态

    // Constructors
    public Patient() {}

    public Patient(String admissionDateTime, String inpatientNo, String name, String sex, Integer age,
                   String deptCode, String wardCode, String roomNo, String bedNo, String nurseLevel,
                   String inpatientStatus) {
        this.admissionDateTime = admissionDateTime;
        this.inpatientNo = inpatientNo;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.deptCode = deptCode;
        this.wardCode = wardCode;
        this.roomNo = roomNo;
        this.bedNo = bedNo;
        this.nurseLevel = nurseLevel;
        this.inpatientStatus = inpatientStatus;
    }

    // Getters and Setters
    public String getAdmissionDateTime() {
        return admissionDateTime;
    }

    public void setAdmissionDateTime(String admissionDateTime) {
        this.admissionDateTime = admissionDateTime;
    }

    public String getInpatientNo() {
        return inpatientNo;
    }

    public void setInpatientNo(String inpatientNo) {
        this.inpatientNo = inpatientNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getWardCode() {
        return wardCode;
    }

    public void setWardCode(String wardCode) {
        this.wardCode = wardCode;
    }

    public String getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }

    public String getNurseLevel() {
        return nurseLevel;
    }

    public void setNurseLevel(String nurseLevel) {
        this.nurseLevel = nurseLevel;
    }

    public String getInpatientStatus() {
        return inpatientStatus;
    }

    public void setInpatientStatus(String inpatientStatus) {
        this.inpatientStatus = inpatientStatus;
    }

    @Override
    public String toString() {
        return "Patient{" +
                "admissionDateTime='" + admissionDateTime + '\'' +
                ", inpatientNo='" + inpatientNo + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", deptCode='" + deptCode + '\'' +
                ", wardCode='" + wardCode + '\'' +
                ", roomNo='" + roomNo + '\'' +
                ", bedNo='" + bedNo + '\'' +
                ", nurseLevel='" + nurseLevel + '\'' +
                ", inpatientStatus='" + inpatientStatus + '\'' +
                '}';
    }
}