描述
获取文档中所有元素使用的源信息报告。
- 用于打开文档后,获取文档中所有的元素已使用源的信息情况
- 表示的是元素需要的源信息汇总
接口
string GetDocSourceReport(const char* docName)
参数
| 参数名 |
必填 |
类型 |
说明 |
备注 |
| docName |
是 |
string |
文档名 |
填””空时表示对该当文档进行处理 |
返回值
- 文档质控报告JSON字符串示例如下
{
"type": "sourceReport",
"data": [
{
"sourceClass": "住院资料",
"sourceId": [
{
"id": "住院号",
"hasSource": false
},
{
"id": "科室",
"hasSource": false
}
]
},
{
"sourceClass": "基本资料",
"sourceId": [
{
"id": "姓名",
"hasSource": true
}
]
},
{
"sourceClass": "机构",
"source-id": [
{
"id": "机构名",
"hasSource": true
}
]
}
],
"time": "2020-09-09 01:02:03"
}
| 字段 |
类型 |
说明 |
备注 |
| type |
string |
固定格式,表示质控报告 |
“SourceReport” |
| code |
int |
保留 |
|
| data |
json |
报告详细信息 |
|
| time |
time string |
报告产生时间字符串 |
|
| 字段 |
类型 |
说明 |
备注 |
| sourceClass |
string |
源类型 |
|
| sourceId |
string |
源ID对象 |
|
| id |
string |
source-id具体值 |
|
| hasSource |
bool |
需要的源是否存(不存在时可使用SetSources/SetDataSouces加载) |
true: 源存在 false: 源不存在 |
文档更新时间: 2025-12-01 09:52 作者:admin