/*
 * Copyright ©2023 CJB-CNIT Team. All rights reserved
 */
package com.openhis.web.inpatientmanage.dto;

import java.util.Date;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 护理记录单入参
 *
 * @author gaoyy
 * @date 2025-05-30
 */
@Data
@Accessors(chain = true)
public class NursingRecordDto {

    /** 记录单ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long recordId;

    /** 就诊ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull
    private Long encounterId;

    /** 患者ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long patientId;

    /** 记录时间 */
    @NotNull
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recordingTime;

    /** 病历信息 */
    private String contextJson;

    /** 科室ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orgId;

    /** 是否同步到体温单 */
    private Boolean vitalSignsSyncFlag;

}
