Class: TencentCloud::Aca::V20210323::SmartPredictReqData

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210323/models.rb

Overview

智能预测接口请求对象

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(requestcase = nil, requesttype = nil) ⇒ SmartPredictReqData

Returns a new instance of SmartPredictReqData.



1887
1888
1889
1890
# File 'lib/v20210323/models.rb', line 1887

def initialize(requestcase=nil, requesttype=nil)
  @RequestCase = requestcase
  @RequestType = requesttype
end

Instance Attribute Details

#RequestCaseObject

Parameters:

  • RequestCase:

    病历和处方信息

  • RequestType:

    0–默认值,同时返回**疾病预测**和**用药审查**结果
    1–仅返回**疾病预测**结果
    2–仅返回**用药审查**结果
    已同时激活两个模块时,可按需使用



1885
1886
1887
# File 'lib/v20210323/models.rb', line 1885

def RequestCase
  @RequestCase
end

#RequestTypeObject

Parameters:

  • RequestCase:

    病历和处方信息

  • RequestType:

    0–默认值,同时返回**疾病预测**和**用药审查**结果
    1–仅返回**疾病预测**结果
    2–仅返回**用药审查**结果
    已同时激活两个模块时,可按需使用



1885
1886
1887
# File 'lib/v20210323/models.rb', line 1885

def RequestType
  @RequestType
end

Instance Method Details

#deserialize(params) ⇒ Object



1892
1893
1894
1895
1896
1897
1898
# File 'lib/v20210323/models.rb', line 1892

def deserialize(params)
  unless params['RequestCase'].nil?
    @RequestCase = RequestCase.new
    @RequestCase.deserialize(params['RequestCase'])
  end
  @RequestType = params['RequestType']
end