Skip to content

feat(web): 대시보드 환자 목록 위험 표기를 CTRS 단계로 전환 + 척도 범례 - #105

Merged
Seohyunjho merged 2 commits into
Masterfrom
feat/dashboard-ctrs-badge
Jul 28, 2026
Merged

Seohyunjho merged 2 commits into
Masterfrom
feat/dashboard-ctrs-badge

Conversation

@Seohyunjho

Copy link
Copy Markdown
Collaborator

요약

대시보드 환자 목록의 위험 배지를 CTRS(위기분류척도) 단계로 전환. 사용자 제공 CTRS 정의(위험성 Rating A / 지지체계 Rating B) 반영.

매핑 (위험성 Rating A 기준, safety level→CTRS)

level CTRS 라벨
critical 1 고위험
high 2 위험
medium 3 주의
low 4 관찰
RiskEvent 없음 5 안정
  • 전원 배지 표기(무위험=5·안정). 기존엔 위험이벤트 있는 환자만 표기 → 이제 전원.
  • 배지 형식: CTRS N · 라벨.

변경

  • lib/tokens: CtrsStage/ctrsFromLevel/CTRS_META
  • components/CtrsBadge(신규): 목록 전용 CTRS 배지. 리포트/세션의 RiskBadge는 신호별 safety level 의미라 미변경.
  • components/CtrsLegend(신규): 목록 우측 범례 — Rating A 5단계 정의 + Rating B(지지체계) 접이식 참고 축.
  • dashboard/page: 목록+범례 2단 반응형 레이아웃.

검증(로컬)

  • 환자 전원 CTRS 배지 렌더(대부분 5·안정, 일부 1 고위험/2 위험/4 관찰), 범례 렌더, tsc 통과.

🤖 Generated with Claude Code

Seohyunjho and others added 2 commits July 29, 2026 00:52
기존 safety risk level 라벨(안전/주의/위험/긴급)을 CTRS(위기분류척도) 단계로 표기.
위험성(Rating A) 기준으로 level→단계 환산(critical→1 고위험, high→2 위험,
medium→3 주의, low→4 관찰, RiskEvent 없음→5 안정), 전원 배지 표기(무위험=5·안정).

- lib/tokens: CtrsStage/ctrsFromLevel/CTRS_META 추가
- components/CtrsBadge: 목록 전용 `CTRS N · 라벨` 배지(항상 표기). 리포트/세션의
  RiskBadge는 신호별 safety level 의미라 그대로 유지.
- components/CtrsLegend: 목록 우측 범례 — 위험성(Rating A) 5단계 정의 + 지지체계
  (Rating B) 임상 참고 축(접이식). 사용자 제공 CTRS 정의 반영.
- dashboard/page: 목록+범례 2단 레이아웃(반응형).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
lg→md 브레이크포인트로 낮춰 데스크톱 폭에서 하단 스택 방지, 범례 md:sticky top-20으로
스크롤 시 우측 상단 고정. 로컬 검증 완료.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Seohyunjho
Seohyunjho merged commit ec41008 into Master Jul 28, 2026
2 checks passed
@Seohyunjho
Seohyunjho deleted the feat/dashboard-ctrs-badge branch July 28, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant