|
@@ -0,0 +1,37 @@
|
|
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
+
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+
|
|
|
|
|
+import java.io.Serializable;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+
|
|
|
|
|
+@Data
|
|
|
|
|
+@TableName("mental_health_screen")
|
|
|
|
|
+public class MentalHealthScreen implements Serializable {
|
|
|
|
|
+
|
|
|
|
|
+ @TableId(type = IdType.AUTO)
|
|
|
|
|
+ private Long id;
|
|
|
|
|
+
|
|
|
|
|
+ private Long childId;
|
|
|
|
|
+
|
|
|
|
|
+ private String screenType; // PHQ9 / GAD7
|
|
|
|
|
+
|
|
|
|
|
+ private String answers; // JSON 数组: [2, 1, 0, ...]
|
|
|
|
|
+
|
|
|
|
|
+ private Integer totalScore;
|
|
|
|
|
+
|
|
|
|
|
+ private String severityLevel; // none / mild / moderate / moderately_severe / severe
|
|
|
|
|
+
|
|
|
|
|
+ private String riskFlags; // JSON: ["suicide_ideation", "self_harm"]
|
|
|
|
|
+
|
|
|
|
|
+ private String suggestions; // 自动生成的建议文案
|
|
|
|
|
+
|
|
|
|
|
+ private Date completedAt;
|
|
|
|
|
+
|
|
|
|
|
+ private Date createdAt;
|
|
|
|
|
+
|
|
|
|
|
+ private Date updatedAt;
|
|
|
|
|
+}
|