描述

获取文档中所有元素使用的源信息报告。

  • 用于打开文档后,获取文档中所有的元素已使用源的信息情况
  • 表示的是元素需要的源信息汇总

接口

string GetDocSourceReport(const char* doc_name)

参数

参数名 必填 类型 说明 备注
doc_name string 文档名 填””空时表示对该当文档进行处理

返回值

  • 文档质控报告JSON字符串示例如下
    {
      "type": "SourceReport",
      "data": [
          {
              "source-class": "住院资料",
              "source-id": [
                  {
                      "id": "住院号",
                      "has_source": false
                  },
                  {
                      "id": "科室",
                      "has_source": false
                  }
              ]
          },
          {
              "source-class": "基本资料",
              "source-id": [
                  {
                      "id": "姓名",
                      "has_source": true
                  }
              ]
          },
          {
              "source-class": "机构",
              "source-id": [
                  {
                      "id": "机构名",
                      "has_source": true
                  }
              ]
          }
      ],
      "time": "2020-09-09 01:02:03"
    }
字段 类型 说明 备注
type string 固定格式,表示质控报告 “SourceReport”
code int 保留
data json 报告详细信息
time time string 报告产生时间字符串
  • 报告详细信息
字段 类型 说明 备注
source-class string 源类型
source-id string 源ID对象
id string source-id具体值
has_source bool 需要的源是否存(不存在时可使用SetSource加载) true: 源存在 false: 源不存在
文档更新时间: 2025-01-10 11:17   作者:admin