kdrug-inventory-system/find_jihwang.py
시골약사 f1034c197f feat: 월비탕 및 삼소음 처방 추가
- 월비탕 1차~4차 단계별 처방 추가 (WBT001-1 ~ WBT001-4)
- 삼소음 처방 추가 (SSE001)
- 처방 추가 가이드 문서 작성
- 약재 성분 코드 확인 및 검증 스크립트 추가

월비탕: 단계별 비만치료 처방 (1차~4차)
삼소음: 리기화담, 해표산한 효능의 기침/가래 치료 처방

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-18 04:36:38 +00:00

29 lines
622 B
Python

#!/usr/bin/env python3
"""
지황 관련 약재 찾기
"""
import sqlite3
conn = sqlite3.connect('database/kdrug.db')
cursor = conn.cursor()
# 지황 관련 약재 검색
cursor.execute("""
SELECT ingredient_code, herb_name, herb_name_hanja
FROM herb_masters
WHERE herb_name LIKE '%지황%'
OR herb_name LIKE '%생지%'
OR herb_name LIKE '%건지%'
OR herb_name LIKE '%숙지%'
ORDER BY herb_name
""")
results = cursor.fetchall()
print("🌿 지황 관련 약재 검색 결과:")
print("="*60)
for code, name, hanja in results:
print(f"{code}: {name} ({hanja})")
conn.close()