flowchart TD
classDef terminator fill:#4338ca,stroke:#312e81,stroke-width:2px,color:#fff,font-weight:700;
classDef decision fill:#fef3c7,stroke:#d97706,stroke-width:2.5px,color:#78350f,font-weight:700;
classDef process fill:#ffffff,stroke:#475569,stroke-width:1.5px,color:#0f172a;
classDef processReq fill:#ffffff,stroke:#475569,stroke-width:1.5px,color:#0f172a,font-weight:600;
classDef input fill:#cffafe,stroke:#0891b2,stroke-width:1.8px,color:#164e63;
classDef inputReq fill:#cffafe,stroke:#0891b2,stroke-width:1.8px,color:#164e63,font-weight:600;
classDef decisionReq fill:#fef3c7,stroke:#d97706,stroke-width:2.5px,color:#78350f,font-weight:700;
classDef chOk fill:#dcfce7,stroke:#16a34a,color:#14532d;
classDef chWarn fill:#fef3c7,stroke:#d97706,color:#78350f;
classDef chRisk fill:#fee2e2,stroke:#dc2626,color:#7f1d1d;
linkStyle default stroke:#94a3b8,stroke-width:1.6px;
START(["🟢 문진 시작: 주간졸림 평가 (Epworth, ESS)"]):::terminator
RESULT(["🏁 결과 산출"]):::terminator
subgraph S122 ["섹션 1: 다음 상황에서 졸 가능성"]
direction LR
Q610["E1<br/>★ 앉아서 책을 읽을 때"]:::processReq
Q611["E2<br/>★ TV를 볼 때"]:::processReq
Q610 --> Q611
Q612["E3<br/>★ 공공장소에서 가만히 앉아 있을 때"]:::processReq
Q611 --> Q612
Q613["E4<br/>★ 차에 1시간 동안 승객으로 탔을 때"]:::processReq
Q612 --> Q613
Q614["E5<br/>★ 오후에 누워 쉴 때"]:::processReq
Q613 --> Q614
Q615["E6<br/>★ 앉아서 누군가와 대화할 때"]:::processReq
Q614 --> Q615
Q616["E7<br/>★ 점심 식사 후 조용히 앉아 있을 때"]:::processReq
Q615 --> Q616
Q617["E8<br/>★ 운전 중 신호 대기로 잠시 멈췄을 때"]:::processReq
Q616 --> Q617
Q3249["Q_ENR_DURATION<br/>★ 주간 졸림 증상이 얼마나 오래 지속되었습니까?"]:::processReq
Q617 --> Q3249
Q3250["Q_ENR_WEEKDAY_SLEEP_TIME<br/>★ 최근 한 달간 평일(또는 일하는 날)의 하루 평균 수면 시간은<br/>어느 정도입니까?"]:::processReq
Q3249 --> Q3250
Q3251["Q_ENR_SNORING<br/>★ 코골이가 있습니까? 있다면 그 정도는 어느 정도입니까?"]:::processReq
Q3250 --> Q3251
Q3252["Q_ENR_APNEA_WITNESSED<br/>★ 수면 중 숨을 멈추거나 헐떡이는 증상(수면무호흡)을 동거인이나<br/>가족이 목격한 적이 있습니까?"]:::processReq
Q3251 --> Q3252
Q3253["Q_ENR_MORNING_HEADACHE<br/>★ 아침에 일어났을 때 머리가 무겁거나 두통을 느끼는 빈도는 어느<br/>정도입니까?"]:::processReq
Q3252 --> Q3253
Q3254[/"Q_ENR_SLEEP_PARALYSIS_CATAPLEXY<br/>★ 다음 중 경험한 적이 있는 증상을 모두 선택해 주십시오."/]:::inputReq
Q3253 --> Q3254
Q3255["Q_ENR_DROWSY_DRIVING<br/>★ 최근 1년 이내에 운전 중 졸음으로 인해 사고가 날 뻔하거나<br/>사고가 난 적이 있습니까?"]:::processReq
Q3254 --> Q3255
Q3256["Q_ENR_WEIGHT_GAIN<br/>★ 최근 6개월 동안의 체중 변화는 어떠합니까?"]:::processReq
Q3255 --> Q3256
Q3257[/"Q_ENR_FAMILY_HISTORY<br/>★ 가족(부모, 형제, 자매) 중 다음의 수면 질환을 진단받거나<br/>의심되는 분이 있습니까?"/]:::inputReq
Q3256 --> Q3257
Q3258["Q_ENR_CAFFEINE_INTAKE<br/>★ 졸음을 쫓기 위해 하루에 섭취하는 카페인 음료(커피, 에너지<br/>드링크 등)는 대략 몇 잔입니까?"]:::processReq
Q3257 --> Q3258
end
START --> Q610
Q3258 --> RESULT