From 43c85d43e64cc645128137c1649ce3cf9148d121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B2=AD=EC=B6=98=EC=95=BD=EA=B5=AD?= Date: Wed, 18 Mar 2026 23:29:26 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20JSON=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20?= =?UTF-8?q?=EC=A0=84=EC=B2=B4=20=ED=91=9C=EC=8B=9C=20-=20interval=5Freason?= =?UTF-8?q?,=20washout,=20clinical=5Fnotes=20=EB=93=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/medication_guide_v2.html | 48 ++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/templates/medication_guide_v2.html b/templates/medication_guide_v2.html index 8db098f..56e38a4 100644 --- a/templates/medication_guide_v2.html +++ b/templates/medication_guide_v2.html @@ -350,8 +350,14 @@ {% endif %}
-
📅 투약
+
📅 투약 주기
{{ drug.dosing.interval }}
+ {% if drug.dosing.interval_reason %} +
{{ drug.dosing.interval_reason }}
+ {% endif %} + {% if drug.dosing.minimum_age or drug.dosing.minimum_weight %} +
최소 연령: {{ drug.dosing.minimum_age }} / 최소 체중: {{ drug.dosing.minimum_weight }}
+ {% endif %} {% if drug.weight_products %}
{% for wp in drug.weight_products %}
{{ wp.size }}({{ wp.weight_range }})
{% endfor %} @@ -361,7 +367,7 @@ {% elif drug.category == 'nsaid' %} -
⚖️ 용량 ({{ drug.dosage.standard }})
+
⚖️ 체중별 용량 ({{ drug.dosage.standard }})
{% for row in drug.dosage_table[:6] %}
@@ -373,7 +379,7 @@ {% if drug.absolute_contraindications %}
-
🚫 절대 금기
+
⭕ 절대 금기
    {% for c in drug.absolute_contraindications %}
  • ❌ {{ c.item }} — {{ c.reason }}
  • @@ -382,6 +388,14 @@
{% endif %} + {% if drug.washout_period %} +
+ ⏱️ 약물 전환 시 휴약기
+ • 다른 NSAIDs로: {{ drug.washout_period.to_other_nsaid }}
+ • 스테로이드로: {{ drug.washout_period.to_steroid }} +
+ {% endif %} + {% elif drug.category == 'antibiotic' %}
@@ -402,11 +416,33 @@
📋 {{ drug.indication }}
-
- 급성구토: {{ drug.dosage.acute_vomiting.dose }} ({{ drug.dosage.acute_vomiting.duration }})
- 멀미예방: {{ drug.dosage.motion_sickness.dose }} ({{ drug.dosage.motion_sickness.timing }}) + +
+
+
🤮 급성구토
+
{{ drug.dosage.acute_vomiting.dose }}
+
({{ drug.dosage.acute_vomiting.duration }})
+
+
+
🚗 멀미예방
+
{{ drug.dosage.motion_sickness.dose }}
+
({{ drug.dosage.motion_sickness.timing }})
+
+ {% if drug.available_strengths %} +
+ 제품 규격: {{ drug.available_strengths | join(', ') }} +
+ {% endif %} + + {% if drug.clinical_notes %} +
+ 💡 임상 참고
+ {% for note in drug.clinical_notes %}• {{ note }}
{% endfor %} +
+ {% endif %} + {% else %}