feat(pmr): 라벨 단위 정규화 + 제형 컬럼 제거
- SUNG_CODE 기반 단위 자동 판별 (정/캡슐/mL/포 등) - 제형 컬럼 제거, 용량에 단위 직접 표시 (예: 1정, 0.5mL) - previewLabels() 셀 인덱스 수정
This commit is contained in:
@@ -11,6 +11,7 @@ from PIL import Image, ImageDraw, ImageFont
|
||||
import io
|
||||
import base64
|
||||
import os
|
||||
from utils.drug_unit import get_drug_unit
|
||||
|
||||
pmr_bp = Blueprint('pmr', __name__, url_prefix='/pmr')
|
||||
|
||||
@@ -363,6 +364,7 @@ def get_prescription_detail(prescription_id):
|
||||
'total_qty': float(row.INV_QUAN) if row.INV_QUAN else 0,
|
||||
'type': '급여' if row.PS_Type in ['0', '4'] else '비급여' if row.PS_Type == '1' else row.PS_Type,
|
||||
'sung_code': row.SUNG_CODE or '',
|
||||
'unit': get_drug_unit(row.GoodsName or '', row.SUNG_CODE or ''),
|
||||
'ps_type': row.PS_Type or '0',
|
||||
'unit_code': unit_code,
|
||||
'is_substituted': is_substituted,
|
||||
|
||||
Reference in New Issue
Block a user