- 一、CA无纸化签署接口
- 1.CA扫码登录
- 2.数据签名
- 3.数据签名v2
- 4.PDF版式文书签署
- 5.PDF版式文件分步签署
- 6.用户信息查询
- 7.WebHook回调
- 8.患者信息查询
- 9.数据同步
- 10.归档签
- Delphi接口调用示例代码
- 二、无纸化病案系统接口
5.1 发起签署流程
POST
/v1/open/hospital/hospitals/templates/form/apply
联系签名系统实施,预先制作对应文件的签名模板。
请求参数
Authorization
Query 参数
access_token
string
必需
默认值:
3e9dec5f-4a9d-4af8-8abc-23e4675a1eb6
Header 参数
X-Signit-App-Id
string
必需
默认值:
1931fabdb516e66ca2f8c42691a
Body 参数application/json
customTagID
string
业务方自定义标识
doctorID
string
医生id
doctorName
string
医生姓名
template
object
业务模板
name
string
模板名称
wsid
string
模板id
hospitalDepartment
object
科室信息
departmentName
string
科室名称
departmentID
string
科室代码
patientID
string
患者id
patientName
string
患者姓名
patientAge
string
患者年龄
patientSex
integer
患者性别
admissionNumber
string
住院号
idCard
string
身份证号
bedNumber
string
床号
mode
string
签署流程模式
AUTO - 自动模式,模板中所有的签名成功后,自动完成签署流程(根据模板的配置,最后一个流程的签署方签署完成后自动完成,如果需要中途完成,要手动调用“完成签署流程”接口)
默认值:AUTO
示例
{
"bedNumber": "bed1234",
"patientID": "A00034616",
"patientName": "刘波",
"patientAge": 28,
"patientSex": 0,
"admissionNumber": "1429202208086819",
"idCard": "510723199601034411",
"template": {
"name": "产科病房胎动计数",
"wsid": "WSID_TEMP_0000018a02112bba72e10ebc53a40001"
},
"hospitalDepartment": {
"departmentName": "产科",
"departmentID": "产科代码"
},
"doctorName": "发起医生",
"doctorID": "job_wutao",
"customTagID": "{{$timestamp}}"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://m1.apifoxmock.com/m1/4604434-0-default/v1/open/hospital/hospitals/templates/form/apply?access_token=' \
--header 'X-Signit-App-Id;' \
--header 'Content-Type: application/json' \
--data-raw '{
"bedNumber": "bed1234",
"patientID": "A00034616",
"patientName": "刘波",
"patientAge": 28,
"patientSex": 0,
"admissionNumber": "1429202208086819",
"idCard": "510723199601034411",
"template": {
"name": "产科病房胎动计数",
"wsid": "WSID_TEMP_0000018a02112bba72e10ebc53a40001"
},
"hospitalDepartment": {
"departmentName": "产科",
"departmentID": "产科代码"
},
"doctorName": "发起医生",
"doctorID": "job_wutao",
"customTagID": "{{$timestamp}}"
}'
返回响应
🟢200成功
application/json
Body
code
string
接口响应码
message
string
接口响应消息
invokeNumber
string
当前请求唯一编号
envelopeWsid
string
当前签署流程唯一标识
customTag
string
业务自定义编码
flowDef
array [object {3}]
流程定义
fillStep
string
流程填写标识
sequence
integer
流程顺序
participantConfigs
array [object {5}]
流程中签署方配置
flowCount
integer
流程数量
示例
{
"code": "100870000",
"message": "操作成功",
"invokeNumber": "202406210939022094001516203001",
"envelopeWsid": "WSID_ENVE_0000019038726f50660be92327670001",
"customTag": "1718933941",
"flowCount": 25,
"flowDef": [
{
"fillStep": "RECORD_1",
"sequence": 1,
"participantConfigs": [
{
"type": "DOCTOR",
"sequence": 1,
"name": "护士",
"forms": [
{
"id": "18087059",
"name": "name",
"type": "TEXT",
"title": "孕妇姓名",
"position": {
"ulx": 79.125,
"uly": 96.64453125,
"lrx": 124.248046875,
"lry": 116.64453125,
"docPage": 1
}
},
{
"id": "94173885",
"name": "bedNo",
"type": "TEXT",
"title": "床号",
"position": {
"ulx": 145.875,
"uly": 95.14453125,
"lrx": 173.560546875,
"lry": 115.14453125,
"docPage": 1
}
},
{
"id": "51302751",
"name": "admissionNumber",
"type": "TEXT",
"title": "住院号",
"position": {
"ulx": 203.625,
"uly": 96.64453125,
"lrx": 266.1796875,
"lry": 116.64453125,
"docPage": 1
}
},
{
"id": "4826199",
"name": "diagnose",
"type": "TEXT",
"title": "诊断",
"position": {
"ulx": 295.875,
"uly": 95.14453125,
"lrx": 409.6171875,
"lry": 115.14453125,
"docPage": 1
}
},
{
"id": "25541730",
"name": "rcDate",
"type": "TEXT",
"title": "日期",
"position": {
"ulx": 37.875,
"uly": 158.89453125,
"lrx": 96.498046875,
"lry": 178.89453125,
"docPage": 1
}
},
{
"id": "37125434",
"name": "rcTime",
"type": "TEXT",
"title": "时间(起始-结束)",
"position": {
"ulx": 37.875,
"uly": 158.89453125,
"lrx": 96.498046875,
"lry": 178.89453125,
"docPage": 1
}
},
{
"id": "10875938",
"name": "weeks",
"type": "TEXT",
"title": "孕周",
"position": {
"ulx": 181.125,
"uly": 159.64453125,
"lrx": 223.435546875,
"lry": 179.64453125,
"docPage": 1
}
},
{
"id": "23196827",
"name": "fetalMovementCount",
"type": "TEXT",
"title": "胎动次数",
"position": {
"ulx": 226.125,
"uly": 159.64453125,
"lrx": 270.123046875,
"lry": 179.64453125,
"docPage": 1
}
},
{
"id": "74985370",
"name": "remark",
"type": "TEXT",
"title": "备注",
"position": {
"ulx": 398.625,
"uly": 158.89453125,
"lrx": 555.6796875,
"lry": 178.89453125,
"docPage": 1
}
}
],
"signs": [
{
"id": "4497415",
"name": "signer",
"type": "WRITE_SIGN",
"title": "护士签名",
"position": {
"ulx": 335.49609375,
"uly": 157.640625,
"lrx": 394.640625,
"lry": 180.28125,
"docPage": 1
}
}
]
},
{
"type": "PATIENT",
"sequence": 2,
"name": "孕妇",
"forms": [],
"signs": [
{
"id": "77379697",
"name": "signer",
"type": "WRITE_SIGN",
"title": "孕妇签名",
"position": {
"ulx": 272.49609375,
"uly": 157.640625,
"lrx": 333.328125,
"lry": 180.97265625,
"docPage": 1
}
}
]
}
]
}
]
}
🟠400参数不正确
修改于 2025-02-17 09:31:22