name: cloud-his-iris description: 此技能应用于开发普瑞HIS系统的InterSystems IRIS/Cache ObjectScript代码时。它提供全面的代码规范和指导,包括表结构定义、类定义、方法编写、Query定义、事务处理和命名规范。在处理ObjectScript类(.cls文件)、表结构或PRHIS系统的业务逻辑时,使用此技能以确保代码质量符合团队标准。 allowed-tools:
本Skill为普瑞HIS系统提供InterSystems IRIS/Cache ObjectScript代码开发规范指导,确保代码质量和团队协作效率。
assets/table-template.cls 模板references/table-standards.md 中的表定义规范scripts/check-iris-code.py 进行代码检查assets/method-template.cls 编写方法references/query-standards.md 编写Query运行Python脚本进行自动化检查:
python scripts/check-iris-code.py
SKILL.md # 本文件,Skill主文档
references/ # 规范参考文档
├── table-standards.md # 表结构定义规范
├── query-standards.md # Query定义规范
├── transaction-standards.md # 事务处理规范
├── method-rule.md # 方法规范
└── naming-conventions.md # 命名规范
assets/ # 代码模板
├── table-template.cls # 表定义模板
├── method-template.cls # 方法定义模板
└── query-template.cls # Query定义模板
scripts/ # 自动化脚本
└── check-iris-code.py # 代码规范检查脚本
Quit:tID="" 正确,Quit:tID = "" 错误)Set rtn=##class(src.util.operatetable).Insert(.insObj)Set rtn=##class(src.util.operatetable).Update(.insObj)$g()、$o()、$lg()等)提取数据,不允许使用 &sql()、%SQL.Statement、%ResultSet 等SQL方式查询数据