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(["🟢 문진 시작: 두통 영향 평가 (HIT-6)"]):::terminator
RESULT(["🏁 결과 산출"]):::terminator
subgraph S125 ["섹션 1: 지난 한 달 두통"]
direction LR
Q631["H1<br/>★ 두통이 심합니까?"]:::processReq
Q632["H2<br/>★ 두통으로 일·집안일·학업·사회활동이 제한됩니까?"]:::processReq
Q631 --> Q632
Q633["H3<br/>★ 두통이 있을 때 눕고 싶습니까?"]:::processReq
Q632 --> Q633
Q634["H4<br/>★ 두통으로 너무 피곤해 일·활동이 어렵습니까?"]:::processReq
Q633 --> Q634
Q635["H5<br/>★ 두통으로 짜증나거나 화가 납니까?"]:::processReq
Q634 --> Q635
Q636["H6<br/>★ 두통으로 집중하기 어렵습니까?"]:::processReq
Q635 --> Q636
Q3282["Q_ENR_HEADACHE_FREQ<br/>★ 지난 한 달 동안 두통이 발생한 날은 총 며칠입니까?"]:::processReq
Q636 --> Q3282
Q3283["Q_ENR_HEADACHE_DURATION<br/>★ 한 번 두통이 시작되면 진통제를 먹지 않았을 때 보통 얼마나<br/>지속됩니까?"]:::processReq
Q3282 --> Q3283
Q3284[/"Q_ENR_HEADACHE_CHARACTER<br/>★ 두통의 주된 느낌(양상)은 어떻습니까? (해당하는 대로 모두<br/>선택)"/]:::inputReq
Q3283 --> Q3284
Q3285[/"Q_ENR_HEADACHE_ACCOMPANY<br/>★ 두통이 있을 때 동반되는 증상이 있습니까? (해당하는 대로<br/>모두 선택)"/]:::inputReq
Q3284 --> Q3285
Q3286["Q_ENR_MEDICATION_DAYS<br/>★ 지난 한 달 동안 두통을 가라앉히기 위해 진통제나 두통약을<br/>복용한 날은 총 며칠입니까?"]:::processReq
Q3285 --> Q3286
Q3287["Q_ENR_MEDICATION_EFFECT<br/>★ 두통약을 복용했을 때 보통 2시간 이내에 통증이 충분히<br/>가라앉습니까?"]:::processReq
Q3286 --> Q3287
Q3288[/"Q_ENR_AGGRAVATING_FACTORS<br/>★ 두통을 유발하거나 악화시키는 요인이 있습니까? (해당하는 대로<br/>모두 선택)"/]:::inputReq
Q3287 --> Q3288
Q3289["Q_ENR_ONSET_TIME<br/>★ 현재와 같은 양상의 두통이 처음 시작된 것은 대략 언제입니까?"]:::processReq
Q3288 --> Q3289
Q3290[/"Q_ENR_RED_FLAGS<br/>★ 다음 중 해당하는 두통의 특징이 있습니까? (위험 신호 확인,<br/>해당하는 대로 모두 선택)"/]:::inputReq
Q3289 --> Q3290
Q3291{"Q_ENR_FAMILY_HISTORY<br/>★ 직계 가족(부모, 형제, 자녀) 중 편두통이나 만성 두통으로<br/>진단받거나 치료받은 분이 있습니까?"}:::decisionReq
Q3290 --> Q3291
Q3292["Q_ENR_SLEEP_IMPACT<br/>★ 두통으로 인해 밤에 잠에서 깬 적이 있습니까?"]:::processReq
Q3291 --> Q3292
Q3293["Q_ENR_PREVIOUS_DIAGNOSIS<br/>★ 과거에 의사로부터 특정 종류의 두통을 진단받은 적이 있습니까?"]:::processReq
Q3292 --> Q3293
end
START --> Q631
Q3293 --> RESULT