Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STPA/HFMEA 医疗流程分析器(MVP)

面向场景:ED triage + handoff(急诊分诊与交接)。

目录结构

stpa_tool/
  __init__.py
  cli.py
  schema.py
  extract.py
  analyze.py
  render.py
  utils.py
examples/
  process_ed_triage.md
  case1_delay_ecg.md
  case2_wrong_patient_id.md
  case3_handoff_missing_allergy.md
tests/
  test_extract.py
  test_cli_smoke.py
README.md
pyproject.toml
.gitignore

安装

python3.11 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .

CLI 帮助

python -m stpa_tool --help

运行分析

python -m stpa_tool analyze examples/case1_delay_ecg.md --out outputs/

当前初始版本可运行并导出以下文件:

  • actors.csv
  • steps.csv
  • artifacts.csv
  • handoff_points.csv
  • hazards.csv
  • ucas.csv
  • control_defects.csv
  • constraints_mitigations.csv
  • summary.md

测试

pytest -q

说明

  • 当前为骨架版本,extract.py 为占位实现(返回空列表)。
  • 后续可逐步补充实现半自动抽取与风险分析。

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages