medical.dose_weight_based
Calculate weight-based medication doses from weight and dose per kg, optionally capping at a maximum dose and flagging when the cap applies. Use Decimal inputs for precise results.
Instructions
체중 기반 약물 용량을 계산한다. dose = weight_kg * dose_per_kg, max_dose를 주면 초과 시 max_dose로 제한하고 capped=true를 돌려준다. 입력은 kg과 kg당 용량의 Decimal 문자열(0 이상), 결과는 소수 4자리 HALF_EVEN 반올림 후 후행 0을 제거한 고정소수점 문자열. unit은 표시용 문자열이며 환산하지 않는다. 단위가 다른 dose_per_kg와 max_dose를 섞으면 안 된다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | mg | |
| max_dose | No | ||
| weight_kg | Yes | ||
| dose_per_kg | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dose | Yes | ||
| unit | Yes | ||
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| capped | Yes |