tencentcloud-sdk-cii 1.0.220 → 1.0.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210408/client.rb +24 -0
- data/lib/v20210408/models.rb +104 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51b367509fbf88136dadac594ef784cebaeacaaf
|
4
|
+
data.tar.gz: 5819ddcc6b414fe071709b43d3ef88b1a52d3038
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4adff189497a48d51264f3e5d8aeba32a464861a3d08a2a065dc9ad30b652c6d7944acf19008adecbfa5223c64e544e1f75fe763776dd2b39530ca486ba898e
|
7
|
+
data.tar.gz: 38f64fb9aef6da58620647793df8fe8df7eba6768e645bc995c5273007aaec8c8780647d64b31e09467bbaf3ba13abf4847d88cda00a1a96d9a2da6de533e44c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.224
|
data/lib/v20210408/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 本接口(CreateAutoClassifyStructureTask)基于提供的客户及保单信息,创建并启动结构化识别任务。
|
33
|
+
|
34
|
+
# @param request: Request instance for CreateAutoClassifyStructureTask.
|
35
|
+
# @type request: :class:`Tencentcloud::cii::V20210408::CreateAutoClassifyStructureTaskRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::cii::V20210408::CreateAutoClassifyStructureTaskResponse`
|
37
|
+
def CreateAutoClassifyStructureTask(request)
|
38
|
+
body = send_request('CreateAutoClassifyStructureTask', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = CreateAutoClassifyStructureTaskResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 本接口(CreateStructureTask)基于提供的客户及保单信息,创建并启动结构化识别任务。
|
33
57
|
|
34
58
|
# @param request: Request instance for CreateStructureTask.
|
data/lib/v20210408/models.rb
CHANGED
@@ -95,9 +95,107 @@ module TencentCloud
|
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
98
|
+
# 创建自动分类的结构化任务子任务信息
|
99
|
+
class CreateAutoClassifyStructureTaskInfo < TencentCloud::Common::AbstractModel
|
100
|
+
# @param FileList: 报告文件上传的地址列表,需按顺序排列。如果使用ImageList参数,置为空数组即可
|
101
|
+
# @type FileList: Array
|
102
|
+
# @param CustomerId: 客户号
|
103
|
+
# @type CustomerId: String
|
104
|
+
# @param CustomerName: 客户姓名
|
105
|
+
# @type CustomerName: String
|
106
|
+
# @param ImageList: 报告上传的图片内容数组,图片内容采用base64编码,需按顺序排列
|
107
|
+
# @type ImageList: Array
|
108
|
+
|
109
|
+
attr_accessor :FileList, :CustomerId, :CustomerName, :ImageList
|
110
|
+
|
111
|
+
def initialize(filelist=nil, customerid=nil, customername=nil, imagelist=nil)
|
112
|
+
@FileList = filelist
|
113
|
+
@CustomerId = customerid
|
114
|
+
@CustomerName = customername
|
115
|
+
@ImageList = imagelist
|
116
|
+
end
|
117
|
+
|
118
|
+
def deserialize(params)
|
119
|
+
@FileList = params['FileList']
|
120
|
+
@CustomerId = params['CustomerId']
|
121
|
+
@CustomerName = params['CustomerName']
|
122
|
+
@ImageList = params['ImageList']
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# CreateAutoClassifyStructureTask请求参数结构体
|
127
|
+
class CreateAutoClassifyStructureTaskRequest < TencentCloud::Common::AbstractModel
|
128
|
+
# @param ServiceType: 服务类型
|
129
|
+
# Structured 仅结构化
|
130
|
+
# Underwrite 结构化+核保
|
131
|
+
# @type ServiceType: String
|
132
|
+
# @param TaskInfos: 创建任务时可以上传多个报告,后台生成多个识别子任务,子任务的详细信息
|
133
|
+
# @type TaskInfos: Array
|
134
|
+
# @param PolicyId: 保单号
|
135
|
+
# @type PolicyId: String
|
136
|
+
# @param TriggerType: 核保触发方式
|
137
|
+
# Auto 自动
|
138
|
+
# Manual 手动
|
139
|
+
# @type TriggerType: String
|
140
|
+
# @param InsuranceTypes: 险种,如果是体检报告类型,此参数是必填,类型说明如下:
|
141
|
+
# CriticalDiseaseInsurance:重疾险
|
142
|
+
# LifeInsurance:寿险
|
143
|
+
# AccidentInsurance:意外险
|
144
|
+
# @type InsuranceTypes: Array
|
145
|
+
# @param CallbackUrl: 回调地址,接收Post请求传送结果
|
146
|
+
# @type CallbackUrl: String
|
147
|
+
|
148
|
+
attr_accessor :ServiceType, :TaskInfos, :PolicyId, :TriggerType, :InsuranceTypes, :CallbackUrl
|
149
|
+
|
150
|
+
def initialize(servicetype=nil, taskinfos=nil, policyid=nil, triggertype=nil, insurancetypes=nil, callbackurl=nil)
|
151
|
+
@ServiceType = servicetype
|
152
|
+
@TaskInfos = taskinfos
|
153
|
+
@PolicyId = policyid
|
154
|
+
@TriggerType = triggertype
|
155
|
+
@InsuranceTypes = insurancetypes
|
156
|
+
@CallbackUrl = callbackurl
|
157
|
+
end
|
158
|
+
|
159
|
+
def deserialize(params)
|
160
|
+
@ServiceType = params['ServiceType']
|
161
|
+
unless params['TaskInfos'].nil?
|
162
|
+
@TaskInfos = []
|
163
|
+
params['TaskInfos'].each do |i|
|
164
|
+
createautoclassifystructuretaskinfo_tmp = CreateAutoClassifyStructureTaskInfo.new
|
165
|
+
createautoclassifystructuretaskinfo_tmp.deserialize(i)
|
166
|
+
@TaskInfos << createautoclassifystructuretaskinfo_tmp
|
167
|
+
end
|
168
|
+
end
|
169
|
+
@PolicyId = params['PolicyId']
|
170
|
+
@TriggerType = params['TriggerType']
|
171
|
+
@InsuranceTypes = params['InsuranceTypes']
|
172
|
+
@CallbackUrl = params['CallbackUrl']
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# CreateAutoClassifyStructureTask返回参数结构体
|
177
|
+
class CreateAutoClassifyStructureTaskResponse < TencentCloud::Common::AbstractModel
|
178
|
+
# @param MainTaskId: 创建的主任务号,用于查询结果
|
179
|
+
# @type MainTaskId: String
|
180
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
181
|
+
# @type RequestId: String
|
182
|
+
|
183
|
+
attr_accessor :MainTaskId, :RequestId
|
184
|
+
|
185
|
+
def initialize(maintaskid=nil, requestid=nil)
|
186
|
+
@MainTaskId = maintaskid
|
187
|
+
@RequestId = requestid
|
188
|
+
end
|
189
|
+
|
190
|
+
def deserialize(params)
|
191
|
+
@MainTaskId = params['MainTaskId']
|
192
|
+
@RequestId = params['RequestId']
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
98
196
|
# 创建结构化任务子任务信息
|
99
197
|
class CreateStructureTaskInfo < TencentCloud::Common::AbstractModel
|
100
|
-
# @param TaskType:
|
198
|
+
# @param TaskType: 任务类型:HealthReport(体检报告); BUltraReport(B超报告);MedCheckReport(检查报告);LaboratoryReport(检验报告); PathologyReport(病理报告);AdmissionReport(入院记录);DischargeReport(出院记录); DischargeSummary(出院小结);DiagnosisReport(诊断证明); MedicalRecordFront(病案首页);OperationReport(手术记录);OutpatientMedicalRecord(门诊病历)
|
101
199
|
# @type TaskType: String
|
102
200
|
# @param FileList: 报告文件上传的地址列表,需按顺序排列。如果使用ImageList参数,置为空数组即可
|
103
201
|
# @type FileList: Array
|
@@ -574,7 +672,7 @@ module TencentCloud
|
|
574
672
|
|
575
673
|
# 包含险种的各个核保结论
|
576
674
|
class InsuranceResult < TencentCloud::Common::AbstractModel
|
577
|
-
# @param InsuranceType:
|
675
|
+
# @param InsuranceType: 险种:CriticalDiseaseInsurance(重疾险);LifeInsurance(寿险);AccidentInsurance(意外险);MedicalInsurance(医疗险)
|
578
676
|
# @type InsuranceType: String
|
579
677
|
# @param Result: 对应险种的机器核保结果
|
580
678
|
# @type Result: Array
|
@@ -687,7 +785,7 @@ module TencentCloud
|
|
687
785
|
class PerStructDifference < TencentCloud::Common::AbstractModel
|
688
786
|
# @param SubTaskId: 子任务ID
|
689
787
|
# @type SubTaskId: String
|
690
|
-
# @param TaskType:
|
788
|
+
# @param TaskType: 任务类型:HealthReport(体检报告); BUltraReport(B超报告);MedCheckReport(检查报告);LaboratoryReport(检验报告); PathologyReport(病理报告);AdmissionReport(入院记录);DischargeReport(出院记录); DischargeSummary(出院小结);DiagnosisReport(诊断证明); MedicalRecordFront(病案首页);OperationReport(手术记录);OutpatientMedicalRecord(门诊病历)
|
691
789
|
# @type TaskType: String
|
692
790
|
# @param ModifyItems: 修改的项
|
693
791
|
# @type ModifyItems: Array
|
@@ -776,7 +874,7 @@ module TencentCloud
|
|
776
874
|
# @type SubTaskId: String
|
777
875
|
# @param TaskName: 任务名
|
778
876
|
# @type TaskName: String
|
779
|
-
# @param TaskType:
|
877
|
+
# @param TaskType: 任务类型:HealthReport(体检报告); BUltraReport(B超报告);MedCheckReport(检查报告);LaboratoryReport(检验报告); PathologyReport(病理报告);AdmissionReport(入院记录);DischargeReport(出院记录); DischargeSummary(出院小结);DiagnosisReport(诊断证明); MedicalRecordFront(病案首页);OperationReport(手术记录);OutpatientMedicalRecord(门诊病历)
|
780
878
|
# @type TaskType: String
|
781
879
|
|
782
880
|
attr_accessor :MainTaskId, :SubTaskId, :TaskName, :TaskType
|
@@ -847,9 +945,9 @@ module TencentCloud
|
|
847
945
|
|
848
946
|
# 结构化结果
|
849
947
|
class StructureResultObject < TencentCloud::Common::AbstractModel
|
850
|
-
# @param Code: 0
|
948
|
+
# @param Code: 0表示正常返回;1代表结果未生成;2代表任务执行失败
|
851
949
|
# @type Code: Integer
|
852
|
-
# @param TaskType:
|
950
|
+
# @param TaskType: 报告类型:HealthReport(体检报告); BUltraReport(B超报告);MedCheckReport(检查报告);LaboratoryReport(检验报告); PathologyReport(病理报告);AdmissionReport(入院记录);DischargeReport(出院记录); DischargeSummary(出院小结);DiagnosisReport(诊断证明); MedicalRecordFront(病案首页);OperationReport(手术记录);OutpatientMedicalRecord(门诊病历)
|
853
951
|
# @type TaskType: String
|
854
952
|
# @param StructureResult: 结构化结果
|
855
953
|
# @type StructureResult: String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cii
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.224
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|