Class: TencentCloud::Mrs::V20200910::DrugHistoryBlock

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

Overview

药物史

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, src = nil, druglist = nil, value = nil) ⇒ DrugHistoryBlock

Returns a new instance of DrugHistoryBlock.



2809
2810
2811
2812
2813
2814
# File 'lib/v20200910/models.rb', line 2809

def initialize(name=nil, src=nil, druglist=nil, value=nil)
  @Name = name
  @Src = src
  @DrugList = druglist
  @Value = value
end

Instance Attribute Details

#DrugListObject

Parameters:

  • Name:

    药品名称

  • Src:

    原文

  • DrugList:

    药物列表

  • Value:

    归一化值



2807
2808
2809
# File 'lib/v20200910/models.rb', line 2807

def DrugList
  @DrugList
end

#NameObject

Parameters:

  • Name:

    药品名称

  • Src:

    原文

  • DrugList:

    药物列表

  • Value:

    归一化值



2807
2808
2809
# File 'lib/v20200910/models.rb', line 2807

def Name
  @Name
end

#SrcObject

Parameters:

  • Name:

    药品名称

  • Src:

    原文

  • DrugList:

    药物列表

  • Value:

    归一化值



2807
2808
2809
# File 'lib/v20200910/models.rb', line 2807

def Src
  @Src
end

#ValueObject

Parameters:

  • Name:

    药品名称

  • Src:

    原文

  • DrugList:

    药物列表

  • Value:

    归一化值



2807
2808
2809
# File 'lib/v20200910/models.rb', line 2807

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
# File 'lib/v20200910/models.rb', line 2816

def deserialize(params)
  @Name = params['Name']
  @Src = params['Src']
  unless params['DrugList'].nil?
    @DrugList = []
    params['DrugList'].each do |i|
      druglistblock_tmp = DrugListBlock.new
      druglistblock_tmp.deserialize(i)
      @DrugList << druglistblock_tmp
    end
  end
  @Value = params['Value']
end