{% set drugs_per_page = 4 %} {% set total_pages = ((drugs|length - 1) // drugs_per_page) + 1 %} {% for page_num in range(total_pages) %}
{% if page_num == 0 %}
{{ patient_name }} 반려인님
{{ pet_name }} · {{ pet_species }} · {{ pet_age }}
{{ pharmacy_name }}
동물약 전문 상담
TEL
{{ pharmacy_tel }}
{{ issue_date }}
{% endif %}
{% set start_idx = page_num * drugs_per_page %} {% set end_idx = [start_idx + drugs_per_page, drugs|length] | min %} {% for drug in drugs[start_idx:end_idx] %}
{% if drug.image_url %} {{ drug.name }} {% elif drug.apc_code is not none and drug.apc_code and (drug.apc_code|string)[:4] != '0519' and (drug.apc_code|string)[:4] != 'None' %} {{ drug.name }} {% else %} {% endif %}
{{ drug.name }}
{{ drug.english_name }}
{{ drug.category_display }} {% for animal in drug.target_animal %}{{ animal }}{% endfor %}
{% if drug.category == 'antiparasitic' %}
🎯 구충 범위
{% for item in drug.coverage_summary.covered %}
{{ item }}
{% endfor %} {% for item in drug.coverage_summary.not_covered %}
{{ item }}
{% endfor %}
{% if drug.coverage_summary.gap_solution %}
⚠️ 보완: {{ drug.coverage_summary.gap_solution }}
{% 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 %}
{% endif %}
{% elif drug.category == 'nsaid' %}
⚖️ 체중별 용량 ({{ drug.dosage.standard }})
{% for row in drug.dosage_table[:6] %}
{{ row.weight }}
{{ row.tablets }}
{% endfor %}
{% if drug.absolute_contraindications %}
⭕ 절대 금기
    {% for c in drug.absolute_contraindications %}
  • ❌ {{ c.item }} — {{ c.reason }}
  • {% endfor %}
{% endif %} {% if drug.washout_period %}
⏱️ 약물 전환 시 휴약기
• 다른 NSAIDs로: {{ drug.washout_period.to_other_nsaid }}
• 스테로이드로: {{ drug.washout_period.to_steroid }}
{% endif %} {% elif drug.category == 'antibiotic' %}
📋 {{ drug.indication[:40] if drug.indication is string else drug.indication }}...
{{ drug.dosage.standard if drug.dosage.standard is defined else drug.dosage }}
{% if drug.dosage.duration is defined %}
기간: {{ drug.dosage.duration }}
{% endif %}
{% if drug.dosage_table %}
⚖️ 체중별 용량
{% for row in drug.dosage_table[:6] %}
{{ row.weight }}
{{ row.tablets_per_dose if row.tablets_per_dose is defined else (row.tablets if row.tablets is defined else row.dose) }}
{% endfor %}
{% endif %} {% if drug.treatment_timeline %}
📅 효과 시기
{% if drug.treatment_timeline.phases is defined %} {% for phase in drug.treatment_timeline.phases[:4] %} • {{ phase.week }}: {{ phase.expected[:30] }}...
{% endfor %} {% else %} {% for key, val in drug.treatment_timeline.items() %} {% if key not in ['realistic_expectation', 'important_note', 'description', 'phases'] %} • {{ key }}: {{ val }}
{% endif %} {% endfor %} {% endif %}
{% endif %} {% if drug.clinical_notes %}
💡 임상 참고
{% for note in drug.clinical_notes[:3] %}• {{ note }}
{% endfor %}
{% endif %} {% if drug.cat_warning %}
🐱 고양이 주의
최대: {{ drug.cat_warning.max_dose }} ({{ drug.cat_warning.risk }})
{% endif %} {% elif drug.category == 'antiemetic' %}
📋 {{ drug.indication }}
🤮 급성구토
{{ 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 %} {% elif drug.category == 'immunomodulator' %}
📋 {{ drug.indication }}
{% if drug.mechanism %}
{{ drug.mechanism.action }}
{% endif %}
⚖️ 체중별 용량
{% for row in drug.dosage_table[:6] %}
{{ row.weight }}
{{ row.tablets }}
{% endfor %}
💊 투약법
• {{ drug.dosage.note }}
{% elif drug.category == 'analgesic' %}
📋 {{ drug.indication }}
{% if drug.dosage.dog_pain %}🐕 개: {{ drug.dosage.dog_pain }}
{% endif %} {% if drug.dosage.cat_pain %}🐱 고양이: {{ drug.dosage.cat_pain }}
{% endif %} {% if drug.dosage.cat_anxiety %}🐱 불안: {{ drug.dosage.cat_anxiety }}{% endif %}
{% if drug.clinical_notes %}
💡 임상 참고
{% for note in drug.clinical_notes %}• {{ note }}
{% endfor %}
{% endif %} {% else %}
📋 {{ drug.indication }}
{% if drug.dosage %}
{% if drug.dosage.frequency %}빈도: {{ drug.dosage.frequency }}
{% endif %} {% if drug.dosage.duration %}기간: {{ drug.dosage.duration }}
{% endif %} {% if drug.dosage.max_duration %}최대: {{ drug.dosage.max_duration }}
{% endif %} {% if drug.dosage.application %}방법: {{ drug.dosage.application }}{% endif %}
{% endif %} {% if drug.application_method %}
🖐️ 도포 방법
{% for key, val in drug.application_method.items() %} {% if key.startswith('step') and val.action is defined %} {{ loop.index }}. {{ val.action[:12] }} {% endif %} {% endfor %}
{% endif %} {% if drug.progress_monitoring %}
📅 경과 관찰
{% for key, val in drug.progress_monitoring.items() %} {% if val.description is defined %} • {{ key.replace('_', ' ') }}: {{ val.description }}
{% endif %} {% endfor %}
{% endif %} {% if drug.pharmacy_tips %}
💡 약사 꿀팁
{% if drug.pharmacy_tips.human_vs_animal %} • {{ drug.pharmacy_tips.human_vs_animal }}
{% endif %} {% if drug.pharmacy_tips.ph_tip %} • {{ drug.pharmacy_tips.ph_tip }}
{% endif %}
{% endif %} {% if drug.clinical_notes %}
💡 임상 참고
{% for note in drug.clinical_notes[:3] %}• {{ note }}
{% endfor %}
{% endif %} {% endif %} {% if drug.warnings %}
⚠️ 주의사항
    {% for w in drug.warnings %}
  • {{ w }}
  • {% endfor %}
{% endif %}
{% endfor %}
{% endfor %}