dsh-medrec-qc
病案首页形式质控与逻辑矛盾提示(依据国卫办医发〔2016〕24号等公开文件,仅提示差异,不作出定性结论) 适合医院病案室质控员,用于核对病案首页形式与逻辑自洽性。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PerryLink/dsh-medrec-qcREADME
Read the full README ↗Configuration
Every tunable lives in the Schemastery schema in src/config.ts, so it can be changed from
cordis.yml without editing code. The per-rule field lists and thresholds live in
rules/medrec-qc.yaml.
| Key | Type | Default | Description |
|---|---|---|---|
rulesFile | string | rules/medrec-qc.yaml | Rule-pack path, relative to the package root |
disabledRules | string[] | [] | Rule ids to stop running; each appears in skipped |
onlyRules | string[] | [] | Run only these rule ids; empty runs every rule |
skipNotes | string | "" | Note appended to every skipped reason |
timeoutMs | number | 120000 | Cooperative tool timeout budget |
Rule-level parameters worth knowing:
MR-001fields— the required-column list, taken from 附件1 of 国卫办医发〔2016〕24号. Extend it with your own mandatory columns without touching the code.MR-011underOnePattern/adultPattern— the accepted age spellings.MR-013maxChecked— the other-diagnosis count above which ordering is flagged for review.MR-014rules— the sex-versus-diagnosis term lists, expressed as{ sex, label, pattern }.