package thyyxxk.webserver.entity.medicalinsurance.digitalreceipt.request;

import lombok.Data;
import thyyxxk.webserver.constants.sidicts.ReadCardType;
import thyyxxk.webserver.entity.medicalinsurance.digitalreceipt.RxDiseInfo;
import thyyxxk.webserver.entity.medicalinsurance.digitalreceipt.RxDrugDetail;
import thyyxxk.webserver.entity.medicalinsurance.digitalreceipt.RxMdtrtInfo;
import thyyxxk.webserver.entity.medicalinsurance.digitalreceipt.RxPreCheck;

import java.util.List;

@Data
public class RxPreCheckRequest {
    private RxPreCheck rxPreCheck;
    private RxMdtrtInfo rxMdtrtinfo;
    private List<RxDrugDetail> rxDrugDetailList;
    private List<RxDiseInfo> rxDiseInfoList;

    private String hospRxno;
    private String staffId;

    private ReadCardType readCardType;
    private String readCardResult;

    public ReadCardType getReadCardType() {
        return null == readCardType ? ReadCardType.SFZ : readCardType;
    }
}
