Class: TencentCloud::Mrs::V20200910::Prescription

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

Overview

处方单

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(medicinelist = nil, page = nil) ⇒ Prescription

Returns a new instance of Prescription.



8914
8915
8916
8917
# File 'lib/v20200910/models.rb', line 8914

def initialize(medicinelist=nil, page=nil)
  @MedicineList = medicinelist
  @Page = page
end

Instance Attribute Details

#MedicineListObject

Parameters:

  • MedicineList:

    药品列表

  • Page:

    数据在原PDF文件中的第几页



8912
8913
8914
# File 'lib/v20200910/models.rb', line 8912

def MedicineList
  @MedicineList
end

#PageObject

Parameters:

  • MedicineList:

    药品列表

  • Page:

    数据在原PDF文件中的第几页



8912
8913
8914
# File 'lib/v20200910/models.rb', line 8912

def Page
  @Page
end

Instance Method Details

#deserialize(params) ⇒ Object



8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
# File 'lib/v20200910/models.rb', line 8919

def deserialize(params)
  unless params['MedicineList'].nil?
    @MedicineList = []
    params['MedicineList'].each do |i|
      medicine_tmp = Medicine.new
      medicine_tmp.deserialize(i)
      @MedicineList << medicine_tmp
    end
  end
  @Page = params['Page']
end