tencentcloud-sdk-mrs 3.0.687 → 3.0.689
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/v20200910/client.rb +48 -0
- data/lib/v20200910/models.rb +114 -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: 0cd993e480c5b39f3cd1f1257d3b4b47416433c1
|
4
|
+
data.tar.gz: c4a2a477498b96ad8387bfd471305aa84f27f548
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd733554bc67a0429f7588440d9d6e8f2f382275885a7aa593943e3b37b5f086d4018a8ab4e1d4721e4e09d6f4edea82189b1a9a8b67d54a0743343a5af9bd7a
|
7
|
+
data.tar.gz: 701511852925fc8f9c0c4cc8d917ff90cda22ec39b7a8fbf135d73cf2c3d8d323bcd1659cb750cfc2a8b4f6edbdf7800d94d3717c98bda499783e852854577ab
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.689
|
data/lib/v20200910/client.rb
CHANGED
@@ -152,6 +152,54 @@ module TencentCloud
|
|
152
152
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
153
153
|
end
|
154
154
|
|
155
|
+
# 体检报告PDF文件结构化-异步接口
|
156
|
+
|
157
|
+
# @param request: Request instance for TurnPDFToObjectAsync.
|
158
|
+
# @type request: :class:`Tencentcloud::mrs::V20200910::TurnPDFToObjectAsyncRequest`
|
159
|
+
# @rtype: :class:`Tencentcloud::mrs::V20200910::TurnPDFToObjectAsyncResponse`
|
160
|
+
def TurnPDFToObjectAsync(request)
|
161
|
+
body = send_request('TurnPDFToObjectAsync', request.serialize)
|
162
|
+
response = JSON.parse(body)
|
163
|
+
if response['Response'].key?('Error') == false
|
164
|
+
model = TurnPDFToObjectAsyncResponse.new
|
165
|
+
model.deserialize(response['Response'])
|
166
|
+
model
|
167
|
+
else
|
168
|
+
code = response['Response']['Error']['Code']
|
169
|
+
message = response['Response']['Error']['Message']
|
170
|
+
reqid = response['Response']['RequestId']
|
171
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
172
|
+
end
|
173
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
174
|
+
raise e
|
175
|
+
rescue StandardError => e
|
176
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
177
|
+
end
|
178
|
+
|
179
|
+
# 体检报告PDF文件结构化异步获取结果接口
|
180
|
+
|
181
|
+
# @param request: Request instance for TurnPDFToObjectAsyncGetResult.
|
182
|
+
# @type request: :class:`Tencentcloud::mrs::V20200910::TurnPDFToObjectAsyncGetResultRequest`
|
183
|
+
# @rtype: :class:`Tencentcloud::mrs::V20200910::TurnPDFToObjectAsyncGetResultResponse`
|
184
|
+
def TurnPDFToObjectAsyncGetResult(request)
|
185
|
+
body = send_request('TurnPDFToObjectAsyncGetResult', request.serialize)
|
186
|
+
response = JSON.parse(body)
|
187
|
+
if response['Response'].key?('Error') == false
|
188
|
+
model = TurnPDFToObjectAsyncGetResultResponse.new
|
189
|
+
model.deserialize(response['Response'])
|
190
|
+
model
|
191
|
+
else
|
192
|
+
code = response['Response']['Error']['Code']
|
193
|
+
message = response['Response']['Error']['Message']
|
194
|
+
reqid = response['Response']['RequestId']
|
195
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
196
|
+
end
|
197
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
198
|
+
raise e
|
199
|
+
rescue StandardError => e
|
200
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
201
|
+
end
|
202
|
+
|
155
203
|
|
156
204
|
end
|
157
205
|
end
|
data/lib/v20200910/models.rb
CHANGED
@@ -6837,8 +6837,8 @@ module TencentCloud
|
|
6837
6837
|
|
6838
6838
|
attr_accessor :Part, :Size, :Envelope, :Edge, :InnerEcho, :Gland, :Shape, :Thickness, :ShapeAttr, :CDFI, :SymDesc, :SizeStatus, :Outline, :Structure, :Density, :Vas, :Cysticwall, :Capsule, :IsthmusThicknese, :InnerEchoDistribution, :Src, :Index, :Transparent, :MriAdc, :MriDwi, :MriT1, :MriT2, :CtHu, :Suvmax, :Metabolism, :RadioactiveUptake, :LymphEnlargement, :ImageFeature, :Duct, :Trend, :Operation, :Coords, :IsthmusThickness
|
6839
6839
|
extend Gem::Deprecate
|
6840
|
-
deprecate :IsthmusThicknese, :none, 2023,
|
6841
|
-
deprecate :IsthmusThicknese=, :none, 2023,
|
6840
|
+
deprecate :IsthmusThicknese, :none, 2023, 11
|
6841
|
+
deprecate :IsthmusThicknese=, :none, 2023, 11
|
6842
6842
|
|
6843
6843
|
def initialize(part=nil, size=nil, envelope=nil, edge=nil, innerecho=nil, gland=nil, shape=nil, thickness=nil, shapeattr=nil, cdfi=nil, symdesc=nil, sizestatus=nil, outline=nil, structure=nil, density=nil, vas=nil, cysticwall=nil, capsule=nil, isthmusthicknese=nil, innerechodistribution=nil, src=nil, index=nil, transparent=nil, mriadc=nil, mridwi=nil, mrit1=nil, mrit2=nil, cthu=nil, suvmax=nil, metabolism=nil, radioactiveuptake=nil, lymphenlargement=nil, imagefeature=nil, duct=nil, trend=nil, operation=nil, coords=nil, isthmusthickness=nil)
|
6844
6844
|
@Part = part
|
@@ -7429,8 +7429,8 @@ module TencentCloud
|
|
7429
7429
|
|
7430
7430
|
attr_accessor :IncisionHealingText, :AuxiliaryExaminationText, :SpecialExamText, :OutpatientDiagnosisText, :AdmissionConditionText, :CheckAndTreatmentProcessText, :SymptomsAndSignsText, :DischargeInstructionsText, :AdmissionDiagnosisText, :SurgeryConditionText, :PathologicalDiagnosisText, :DischargeConditionText, :CheckRecordText, :ChiefComplaintText, :DischargeDiagnosisText, :MainDiseaseHistoryText, :DiseasePresentText, :PersonalHistoryText, :MenstruallHistoryText, :ObstericalHistoryText, :FamilyHistoryText, :AllergyHistoryText, :DiseaseHistoryText, :OtherDiagnosisText, :BodyExaminationText, :SpecialistExaminationText, :TreatmentResultText, :MenstrualHistoryText
|
7431
7431
|
extend Gem::Deprecate
|
7432
|
-
deprecate :MenstruallHistoryText, :none, 2023,
|
7433
|
-
deprecate :MenstruallHistoryText=, :none, 2023,
|
7432
|
+
deprecate :MenstruallHistoryText, :none, 2023, 11
|
7433
|
+
deprecate :MenstruallHistoryText=, :none, 2023, 11
|
7434
7434
|
|
7435
7435
|
def initialize(incisionhealingtext=nil, auxiliaryexaminationtext=nil, specialexamtext=nil, outpatientdiagnosistext=nil, admissionconditiontext=nil, checkandtreatmentprocesstext=nil, symptomsandsignstext=nil, dischargeinstructionstext=nil, admissiondiagnosistext=nil, surgeryconditiontext=nil, pathologicaldiagnosistext=nil, dischargeconditiontext=nil, checkrecordtext=nil, chiefcomplainttext=nil, dischargediagnosistext=nil, maindiseasehistorytext=nil, diseasepresenttext=nil, personalhistorytext=nil, menstruallhistorytext=nil, obstericalhistorytext=nil, familyhistorytext=nil, allergyhistorytext=nil, diseasehistorytext=nil, otherdiagnosistext=nil, bodyexaminationtext=nil, specialistexaminationtext=nil, treatmentresulttext=nil, menstrualhistorytext=nil)
|
7436
7436
|
@IncisionHealingText = incisionhealingtext
|
@@ -11025,8 +11025,8 @@ module TencentCloud
|
|
11025
11025
|
|
11026
11026
|
attr_accessor :Type, :Part, :Size, :Multiple, :AspectRatio, :Edge, :InnerEcho, :RearEcho, :Elastic, :Shape, :ShapeAttr, :SkinMedulla, :Trend, :Calcification, :Envelope, :Enhancement, :LymphEnlargement, :LymphDoor, :Activity, :Operation, :CDFI, :Index, :SizeStatus, :InnerEchoDistribution, :InnerEchoType, :Outline, :Structure, :Density, :Vas, :Cysticwall, :Capsule, :IsthmusThicknese, :Src, :Transparent, :MriAdc, :MriDwi, :MriT1, :MriT2, :CtHu, :Suvmax, :Metabolism, :RadioactiveUptake, :SymDesc, :ImageFeature, :Coords, :IsthmusThickness
|
11027
11027
|
extend Gem::Deprecate
|
11028
|
-
deprecate :IsthmusThicknese, :none, 2023,
|
11029
|
-
deprecate :IsthmusThicknese=, :none, 2023,
|
11028
|
+
deprecate :IsthmusThicknese, :none, 2023, 11
|
11029
|
+
deprecate :IsthmusThicknese=, :none, 2023, 11
|
11030
11030
|
|
11031
11031
|
def initialize(type=nil, part=nil, size=nil, multiple=nil, aspectratio=nil, edge=nil, innerecho=nil, rearecho=nil, elastic=nil, shape=nil, shapeattr=nil, skinmedulla=nil, trend=nil, calcification=nil, envelope=nil, enhancement=nil, lymphenlargement=nil, lymphdoor=nil, activity=nil, operation=nil, cdfi=nil, index=nil, sizestatus=nil, innerechodistribution=nil, innerechotype=nil, outline=nil, structure=nil, density=nil, vas=nil, cysticwall=nil, capsule=nil, isthmusthicknese=nil, src=nil, transparent=nil, mriadc=nil, mridwi=nil, mrit1=nil, mrit2=nil, cthu=nil, suvmax=nil, metabolism=nil, radioactiveuptake=nil, symdesc=nil, imagefeature=nil, coords=nil, isthmusthickness=nil)
|
11032
11032
|
@Type = type
|
@@ -11271,6 +11271,114 @@ module TencentCloud
|
|
11271
11271
|
end
|
11272
11272
|
end
|
11273
11273
|
|
11274
|
+
# TurnPDFToObjectAsyncGetResult请求参数结构体
|
11275
|
+
class TurnPDFToObjectAsyncGetResultRequest < TencentCloud::Common::AbstractModel
|
11276
|
+
# @param TaskID: 加密任务ID。在上一步通过TurnPDFToObjectAsync 接口返回的TaskID。
|
11277
|
+
# 1、建议在上一步调用TurnPDFToObjectAsync接口传入PDF之后,等5-10分钟再调用此接口获取 json 结果。如果任务还没完成,可以等待几分钟之后再重新调用此接口获取 json 结果。
|
11278
|
+
# 2、临时加密存储的 json 结果会 24 小时后定时自动删除,因此TaskID 仅 24 小时内有效。
|
11279
|
+
# 3、TaskID 与腾讯云的账号绑定,通过 TurnPDFToObjectAsync 传入 PDF 文件和通过 TurnPDFToObjectAsyncGetResult 获取 json 结果,必须是同一个腾讯云账号,否则无法获取到 json 结果。
|
11280
|
+
# @type TaskID: String
|
11281
|
+
|
11282
|
+
attr_accessor :TaskID
|
11283
|
+
|
11284
|
+
def initialize(taskid=nil)
|
11285
|
+
@TaskID = taskid
|
11286
|
+
end
|
11287
|
+
|
11288
|
+
def deserialize(params)
|
11289
|
+
@TaskID = params['TaskID']
|
11290
|
+
end
|
11291
|
+
end
|
11292
|
+
|
11293
|
+
# TurnPDFToObjectAsyncGetResult返回参数结构体
|
11294
|
+
class TurnPDFToObjectAsyncGetResultResponse < TencentCloud::Common::AbstractModel
|
11295
|
+
# @param Template: 报告结构化结果
|
11296
|
+
# @type Template: :class:`Tencentcloud::Mrs.v20200910.models.Template`
|
11297
|
+
# @param TextTypeList: 多级分类结果
|
11298
|
+
# @type TextTypeList: Array
|
11299
|
+
# @param Block: 报告结构化结果(体检报告PDF结构化接口返回的 json 内容非常多,建议通过本地代码调用)
|
11300
|
+
# @type Block: :class:`Tencentcloud::Mrs.v20200910.models.Block`
|
11301
|
+
# @param IsBlock: 是否使用Block字段
|
11302
|
+
# @type IsBlock: Boolean
|
11303
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
11304
|
+
# @type RequestId: String
|
11305
|
+
|
11306
|
+
attr_accessor :Template, :TextTypeList, :Block, :IsBlock, :RequestId
|
11307
|
+
|
11308
|
+
def initialize(template=nil, texttypelist=nil, block=nil, isblock=nil, requestid=nil)
|
11309
|
+
@Template = template
|
11310
|
+
@TextTypeList = texttypelist
|
11311
|
+
@Block = block
|
11312
|
+
@IsBlock = isblock
|
11313
|
+
@RequestId = requestid
|
11314
|
+
end
|
11315
|
+
|
11316
|
+
def deserialize(params)
|
11317
|
+
unless params['Template'].nil?
|
11318
|
+
@Template = Template.new
|
11319
|
+
@Template.deserialize(params['Template'])
|
11320
|
+
end
|
11321
|
+
unless params['TextTypeList'].nil?
|
11322
|
+
@TextTypeList = []
|
11323
|
+
params['TextTypeList'].each do |i|
|
11324
|
+
texttype_tmp = TextType.new
|
11325
|
+
texttype_tmp.deserialize(i)
|
11326
|
+
@TextTypeList << texttype_tmp
|
11327
|
+
end
|
11328
|
+
end
|
11329
|
+
unless params['Block'].nil?
|
11330
|
+
@Block = Block.new
|
11331
|
+
@Block.deserialize(params['Block'])
|
11332
|
+
end
|
11333
|
+
@IsBlock = params['IsBlock']
|
11334
|
+
@RequestId = params['RequestId']
|
11335
|
+
end
|
11336
|
+
end
|
11337
|
+
|
11338
|
+
# TurnPDFToObjectAsync请求参数结构体
|
11339
|
+
class TurnPDFToObjectAsyncRequest < TencentCloud::Common::AbstractModel
|
11340
|
+
# @param PdfInfo: 体检报告PDF文件信息, 目前只支持传PDF文件的Base64编码字符(PDF文件不能超过10MB,如果超过建议先压缩PDF,再转成base64)
|
11341
|
+
# @type PdfInfo: :class:`Tencentcloud::Mrs.v20200910.models.PdfInfo`
|
11342
|
+
|
11343
|
+
attr_accessor :PdfInfo
|
11344
|
+
|
11345
|
+
def initialize(pdfinfo=nil)
|
11346
|
+
@PdfInfo = pdfinfo
|
11347
|
+
end
|
11348
|
+
|
11349
|
+
def deserialize(params)
|
11350
|
+
unless params['PdfInfo'].nil?
|
11351
|
+
@PdfInfo = PdfInfo.new
|
11352
|
+
@PdfInfo.deserialize(params['PdfInfo'])
|
11353
|
+
end
|
11354
|
+
end
|
11355
|
+
end
|
11356
|
+
|
11357
|
+
# TurnPDFToObjectAsync返回参数结构体
|
11358
|
+
class TurnPDFToObjectAsyncResponse < TencentCloud::Common::AbstractModel
|
11359
|
+
# @param TaskID: 加密任务ID。
|
11360
|
+
# 1、此 ID 是经过加密生成,是用于获取 PDF 返回 json 的凭证,需要由客户存储该 TaskID。
|
11361
|
+
# 2、建议在获取到TaskID 后,5-10分钟后再调用 TurnPDFToObjectAsyncGetResult 接口获取 json 结果。
|
11362
|
+
# 3、使用此接口,腾讯不会存储传入的 PDF 文件,但是会临时加密存储对应的 json 结果。如果不希望腾讯临时加密存储 json 结果,请使用 TurnPDFToObject 接口。
|
11363
|
+
# 4、加密存储的 json 结果会24小时后定时自动删除,因此TaskID 仅 24 小时内有效,请在24小时内调用接口 TurnPDFToObjectAsyncGetResult 获取对应 json 结果。
|
11364
|
+
# 5、TaskID 与腾讯云的账号绑定,通过 TurnPDFToObjectAsync 传入PDF文件和通过 TurnPDFToObjectAsyncGetResult 获取 json 结果,必须是同一个腾讯云账号。即其它人就算获取到 TaskID 也无法获取到 json 结果。
|
11365
|
+
# @type TaskID: String
|
11366
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
11367
|
+
# @type RequestId: String
|
11368
|
+
|
11369
|
+
attr_accessor :TaskID, :RequestId
|
11370
|
+
|
11371
|
+
def initialize(taskid=nil, requestid=nil)
|
11372
|
+
@TaskID = taskid
|
11373
|
+
@RequestId = requestid
|
11374
|
+
end
|
11375
|
+
|
11376
|
+
def deserialize(params)
|
11377
|
+
@TaskID = params['TaskID']
|
11378
|
+
@RequestId = params['RequestId']
|
11379
|
+
end
|
11380
|
+
end
|
11381
|
+
|
11274
11382
|
# TurnPDFToObject请求参数结构体
|
11275
11383
|
class TurnPDFToObjectRequest < TencentCloud::Common::AbstractModel
|
11276
11384
|
# @param PdfInfo: 体检报告PDF文件信息, 目前只支持传PDF文件的Base64编码字符(PDF文件不能超过10MB,如果超过建议先压缩PDF,再转成base64)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mrs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.689
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|