Vietnam Prescription Checker
Check an outpatient prescription against Circular 26/2025/TT-BYT (fields, INN names, day limits, N / H types, code format) and print it as PDF.
Result
Press “Run” to see the result.
Send the prescription as JSON: facility (name, address, phone, 5-character code), prescriber, patient (name, personal ID, birth date, sex, address, weight and caregiver for children under 72 months), diagnosis (text + ICD-10, checked against the Ministry of Health list) and drugs (inn, optional brand, strength, unit, dose per use, times_per_day, days, route, timing, optional quantity and class).
The validator applies Circular 26/2025/TT-BYT (in force 1/7/2025): required fields (birth date and sex may be omitted with a 12-digit personal ID), single-ingredient drugs written by INN (optionally "INN (brand)"), quantity = dose × times × days with a leading 0 under 10 and in words for narcotics, at most 30 days per drug (90 for chronic diseases of Annex VII with chronic=true), narcotic "N" prescriptions 7 days for acute disease or 3 periods of up to 10 days for cancer pain, psychotropic / precursor "H" prescriptions 10 or 30 days, poisons first, the 5-day collection window, and the e-prescription code format xxxxxyyyyyyy-z (5-character facility code, 7 random characters, type N / H / C) — a code is generated from facility.code when none is sent.
Errors and warnings cite the article. format=pdf renders an A5 prescription in the form of Annex I / II / III with a QR code of the prescription code (Be Vietnam Pro font). Nothing is stored and nothing is sent to the national prescription system; the drug class hint covers only common active ingredients, so send class from Circular 20/2017.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/vn-eprescription" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"facility":{"name":"Phòng khám Đa khoa An Bình","address":"12 Lê Lợi, Phường Sài Gòn, TP. Hồ Chí Minh","phone":"028 3822 0000","code":"79123"},"prescriber":{"name":"BS. Nguyễn Văn An","title":"Bác sỹ"},"patient":{"name":"Trần Thị Bình","id_number":"079190000001","address":"Phường Bến Thành, TP. Hồ Chí Minh"},"diagnosis":[{"text":"Viêm họng cấp","icd10":"J02.9"}],"date":"2026-11-11","drugs":[{"inn":"paracetamol","strength":"500mg","unit":"viên","dose":1,"times_per_day":3,"days":5,"route":"uống","timing":"sau ăn"},{"inn":"amoxicillin","brand":"Augmentin","strength":"500mg","unit":"viên","dose":1,"times_per_day":2,"days":7,"route":"uống","timing":"sau ăn sáng, tối"}]}'const res = await fetch('https://apibox.io.vn/v1/vn-eprescription', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"facility": {
"name": "Phòng khám Đa khoa An Bình",
"address": "12 Lê Lợi, Phường Sài Gòn, TP. Hồ Chí Minh",
"phone": "028 3822 0000",
"code": "79123"
},
"prescriber": {
"name": "BS. Nguyễn Văn An",
"title": "Bác sỹ"
},
"patient": {
"name": "Trần Thị Bình",
"id_number": "079190000001",
"address": "Phường Bến Thành, TP. Hồ Chí Minh"
},
"diagnosis": [
{
"text": "Viêm họng cấp",
"icd10": "J02.9"
}
],
"date": "2026-11-11",
"drugs": [
{
"inn": "paracetamol",
"strength": "500mg",
"unit": "viên",
"dose": 1,
"times_per_day": 3,
"days": 5,
"route": "uống",
"timing": "sau ăn"
},
{
"inn": "amoxicillin",
"brand": "Augmentin",
"strength": "500mg",
"unit": "viên",
"dose": 1,
"times_per_day": 2,
"days": 7,
"route": "uống",
"timing": "sau ăn sáng, tối"
}
]
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-eprescription",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"facility": {"name": "Phòng khám Đa khoa An Bình", "address": "12 Lê Lợi, Phường Sài Gòn, TP. Hồ Chí Minh", "phone": "028 3822 0000", "code": "79123"}, "prescriber": {"name": "BS. Nguyễn Văn An", "title": "Bác sỹ"}, "patient": {"name": "Trần Thị Bình", "id_number": "079190000001", "address": "Phường Bến Thành, TP. Hồ Chí Minh"}, "diagnosis": [{"text": "Viêm họng cấp", "icd10": "J02.9"}], "date": "2026-11-11", "drugs": [{"inn": "paracetamol", "strength": "500mg", "unit": "viên", "dose": 1, "times_per_day": 3, "days": 5, "route": "uống", "timing": "sau ăn"}, {"inn": "amoxicillin", "brand": "Augmentin", "strength": "500mg", "unit": "viên", "dose": 1, "times_per_day": 2, "days": 7, "route": "uống", "timing": "sau ăn sáng, tối"}]},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-eprescription');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"facility":{"name":"Phòng khám Đa khoa An Bình","address":"12 Lê Lợi, Phường Sài Gòn, TP. Hồ Chí Minh","phone":"028 3822 0000","code":"79123"},"prescriber":{"name":"BS. Nguyễn Văn An","title":"Bác sỹ"},"patient":{"name":"Trần Thị Bình","id_number":"079190000001","address":"Phường Bến Thành, TP. Hồ Chí Minh"},"diagnosis":[{"text":"Viêm họng cấp","icd10":"J02.9"}],"date":"2026-11-11","drugs":[{"inn":"paracetamol","strength":"500mg","unit":"viên","dose":1,"times_per_day":3,"days":5,"route":"uống","timing":"sau ăn"},{"inn":"amoxicillin","brand":"Augmentin","strength":"500mg","unit":"viên","dose":1,"times_per_day":2,"days":7,"route":"uống","timing":"sau ăn sáng, tối"}]}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Does it submit the prescription to the national system?
No. It checks and renders only; submission needs the facility's own account and connection.
How is a narcotic or psychotropic drug detected?
Send class N or H per drug (Circular 20/2017 lists). A short built-in hint list of common ingredients raises a warning when the class is missing.
Can I prescribe 90 days?
Only for diseases in Annex VII of the circular, at the prescriber's judgement: send chronic=true; otherwise the limit is 30 days per drug.