@if (Model != null && Model.Any()) { var criticalCount = Model.Count(r => r.RiskAssessment?.RiskLevel == Services.AIViewModel.RiskLevel.Critical); var highCount = Model.Count(r => r.RiskAssessment?.RiskLevel == Services.AIViewModel.RiskLevel.High); var immediateAttentionCount = Model.Count(r => r.RiskAssessment?.RequiresImmediateAttention == true);

MENTAL HEALTH ALERT: @Model.Count CASES REQUIRING ATTENTION

@if (criticalCount > 0) { @criticalCount CRITICAL } @if (highCount > 0) { @highCount HIGH RISK } @if (immediateAttentionCount > 0) { @immediateAttentionCount IMMEDIATE ATTENTION }
Professional intervention recommended | Privacy-protected analysis
} @if (Model != null && Model.Any()) {
@foreach (var response in Model.OrderByDescending(r => r.RiskAssessment?.RiskScore ?? 0)) { var riskLevel = response.RiskAssessment?.RiskLevel ?? Services.AIViewModel.RiskLevel.Low; var riskScore = response.RiskAssessment?.RiskScore ?? 0; var requiresAttention = response.RiskAssessment?.RequiresImmediateAttention ?? false; var riskClass = riskLevel.ToString().ToLower();
@riskLevel RISK LEVEL
RESPONSE ID: #@response.ResponseId
@Math.Round(riskScore * 100, 0)%
@if (requiresAttention) {
IMMEDIATE
}
Question Context
@response.QuestionText
Response (Privacy Protected)
@(response.AnonymizedResponseText?.Length > 150 ? response.AnonymizedResponseText.Substring(0, 150) + "..." : response.AnonymizedResponseText)
@if (response.RiskAssessment?.RiskIndicators?.Any() == true) {
Risk Indicators
@foreach (var indicator in response.RiskAssessment.RiskIndicators.Take(3)) { @indicator }
} @if (!string.IsNullOrEmpty(response.RiskAssessment?.RecommendedAction)) {
Recommended Action
@response.RiskAssessment.RecommendedAction
} @if (response.Insights?.Any() == true) {
Key Insights
@foreach (var insight in response.Insights.Take(2)) {
@insight.Category
@insight.RecommendedIntervention
}
} @if (response.RiskAssessment?.ProtectiveFactors?.Any() == true) {
Protective Factors
@foreach (var factor in response.RiskAssessment.ProtectiveFactors.Take(3)) { @factor }
}
}

MENTAL HEALTH PROFESSIONAL ACTIONS

Evidence-based intervention protocols

IMMEDIATE ACTIONS
  • Contact employees with Critical/High risk levels
  • Schedule follow-up conversations
  • Refer to mental health professionals if needed
DOCUMENTATION
  • Document interventions taken
  • Track response to interventions
  • Update risk assessments as needed
ORGANIZATIONAL
  • Alert management to workplace issues
  • Implement preventive measures
  • Schedule team interventions
VIEW TRENDS
} else {

EXCELLENT MENTAL HEALTH STATUS

No high-risk or critical mental health cases were identified in this survey analysis. This indicates a generally positive workplace mental health environment.

}