package thyyxxk.webserver.entity.examinations.covidexam;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.Objects;

@Data
public class CovidExamResult {
    private String ptntNo;
    private String ptntName;
    private String idCard;
    private String itmStrValue;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private Date ordrCreateDate;
    private String ordrCreateIns = "沭阳铭和医院";
    private String ordrCreateAddr = "沭阳铭和医院";
    private String ctatAddr;
    private String phoneNum;
    private String aplyFlowNum;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private Date lastUpdtDate;
    private String ptntAge;
    private String ptntSex;
    private String smplNum;

    /**
     * 流调报告
     * */
    private String patientId;
    private String phone;
    private String addrProvince;
    private String addrCity;
    private String addrDistrict;
    private String addrAdditional;
    private String address;
    private String temperature;
    private String feverNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;
    private String item1;
    private String item2;
    private String item3;
    private String item4;
    private String item5;
    private String item6;
    private String symptomsString;

    public String getPtntSex() {
        return Objects.equals(ptntSex, "1") ? "男" : "女";
    }
}
