feat: 升级结构化计分可信度
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
export type ScoreDirection = 'risk' | 'protective' | 'ability' | 'trait' | 'mixed';
|
||||
|
||||
export interface AssessmentProfile {
|
||||
id: string;
|
||||
name: string;
|
||||
@@ -5,18 +7,37 @@ export interface AssessmentProfile {
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface ScoreThreshold {
|
||||
min: number;
|
||||
label: string;
|
||||
note?: string;
|
||||
}
|
||||
|
||||
export interface ScoreMetric {
|
||||
key: string;
|
||||
label: string;
|
||||
value: number;
|
||||
min?: number;
|
||||
max?: number;
|
||||
level?: string;
|
||||
direction?: ScoreDirection;
|
||||
highScoreMeaning?: string;
|
||||
thresholds?: ScoreThreshold[];
|
||||
}
|
||||
|
||||
export interface ScoreSummary {
|
||||
primary?: ScoreMetric;
|
||||
metrics: ScoreMetric[];
|
||||
note?: string;
|
||||
questionnaireVersion: string;
|
||||
scoreVersion: string;
|
||||
min: number;
|
||||
max?: number;
|
||||
reverseItems: number[];
|
||||
direction: ScoreDirection;
|
||||
highScoreMeaning: string;
|
||||
thresholds: ScoreThreshold[];
|
||||
scoringStatus: 'structured' | 'raw';
|
||||
}
|
||||
|
||||
export interface RecordedAnswer {
|
||||
@@ -31,6 +52,8 @@ export interface AssessmentRecord {
|
||||
profileId: string;
|
||||
questionnaireId: string;
|
||||
questionnaireTitle: string;
|
||||
questionnaireVersion: string;
|
||||
scoreVersion: string;
|
||||
category: string;
|
||||
completedAt: string;
|
||||
answers: RecordedAnswer[];
|
||||
@@ -57,6 +80,8 @@ export interface EncryptedAssessmentRecord {
|
||||
profileId: string;
|
||||
questionnaireId: string;
|
||||
questionnaireTitle: string;
|
||||
questionnaireVersion: string;
|
||||
scoreVersion: string;
|
||||
category: string;
|
||||
completedAt: string;
|
||||
encrypted: true;
|
||||
|
||||
Reference in New Issue
Block a user