package org.example.entity;

public class HospitalBed {
    private String code;              // 床位代码
    private String outBed;            // 床位外部代码
    private String name;              // 床位名称
    private String type;              // 床位类型（对应数据库bed_type字段）
    private String belongDept;        // 所属科室
    private String belongWard;        // 所属病区
    private String belongRoom;        // 所属病房
    private String doctor;            // 管床医生
    private String nurse;             // 管床护士
    private String used;              // 使用状态
    private Integer sort;             // 排序号
    private Boolean enabled;          // 是否启用
    private String remark;            // 备注

    // Constructors
    public HospitalBed() {}

    public HospitalBed(String code, String outBed, String name, String type, String belongDept,
                       String belongWard, String belongRoom, String doctor, String nurse, String used,
                       Integer sort, Boolean enabled, String remark) {
        this.code = code;
        this.outBed = outBed;
        this.name = name;
        this.type = type;
        this.belongDept = belongDept;
        this.belongWard = belongWard;
        this.belongRoom = belongRoom;
        this.doctor = doctor;
        this.nurse = nurse;
        this.used = used;
        this.sort = sort;
        this.enabled = enabled;
        this.remark = remark;
    }

    // Getters and Setters
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getOutBed() {
        return outBed;
    }

    public void setOutBed(String outBed) {
        this.outBed = outBed;
    }

    public String getName() {
        return name;
    }

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

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBelongDept() {
        return belongDept;
    }

    public void setBelongDept(String belongDept) {
        this.belongDept = belongDept;
    }

    public String getBelongWard() {
        return belongWard;
    }

    public void setBelongWard(String belongWard) {
        this.belongWard = belongWard;
    }

    public String getBelongRoom() {
        return belongRoom;
    }

    public void setBelongRoom(String belongRoom) {
        this.belongRoom = belongRoom;
    }

    public String getDoctor() {
        return doctor;
    }

    public void setDoctor(String doctor) {
        this.doctor = doctor;
    }

    public String getNurse() {
        return nurse;
    }

    public void setNurse(String nurse) {
        this.nurse = nurse;
    }

    public String getUsed() {
        return used;
    }

    public void setUsed(String used) {
        this.used = used;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "HospitalBed{" +
                "code='" + code + '\'' +
                ", outBed='" + outBed + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", belongDept='" + belongDept + '\'' +
                ", belongWard='" + belongWard + '\'' +
                ", belongRoom='" + belongRoom + '\'' +
                ", doctor='" + doctor + '\'' +
                ", nurse='" + nurse + '\'' +
                ", used='" + used + '\'' +
                ", sort=" + sort +
                ", enabled=" + enabled +
                ", remark='" + remark + '\'' +
                '}';
    }
}