auto detect patient id type

This commit is contained in:
2026-05-08 22:39:42 +08:00
parent 11600e7d09
commit d21dae3231
3 changed files with 64 additions and 5 deletions

View File

@@ -48,6 +48,7 @@ def index() -> str:
<div>
<label for="data_type">\u60a3\u8005\u7f16\u53f7\u7c7b\u578b</label>
<select id="data_type" name="data_type">
<option value="auto">\u81ea\u52a8\u8bc6\u522b</option>
<option value="pat_no">\u60a3\u8005\u53f7 pat_no</option>
<option value="zhuyuanhao">\u4f4f\u9662\u53f7 zhuyuanhao</option>
</select>
@@ -78,7 +79,7 @@ def index() -> str:
async def process(
file: UploadFile = File(...),
mode: str = Form("auto"),
data_type: str = Form("pat_no"),
data_type: str = Form("auto"),
result_name: str = Form("Result"),
preview_rows: int = Form(20),
include_basic_sheets: str | None = Form(None),