Class: TencentCloud::Aca::V20210323::Drug
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Aca::V20210323::Drug
- Defined in:
- lib/v20210323/models.rb
Overview
药品信息
Instance Attribute Summary collapse
- #Amount ⇒ Object
- #ApprovalNumber ⇒ Object
- #DefinedDailyDose ⇒ Object
- #DosageForm ⇒ Object
- #DosageFormCode ⇒ Object
- #DrugBasicCode ⇒ Object
- #DrugCommodityName ⇒ Object
- #DrugName ⇒ Object
- #DrugOrgId ⇒ Object
- #Manufacturer ⇒ Object
- #PropertyInfo ⇒ Object
- #Specifications ⇒ Object
- #Unuse ⇒ Object
- #YbCode ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(drugorgid = nil, drugname = nil, drugcommodityname = nil, specifications = nil, approvalnumber = nil, manufacturer = nil, dosageform = nil, unuse = nil, dosageformcode = nil, defineddailydose = nil, amount = nil, ybcode = nil, drugbasiccode = nil, propertyinfo = nil) ⇒ Drug
constructor
A new instance of Drug.
Constructor Details
#initialize(drugorgid = nil, drugname = nil, drugcommodityname = nil, specifications = nil, approvalnumber = nil, manufacturer = nil, dosageform = nil, unuse = nil, dosageformcode = nil, defineddailydose = nil, amount = nil, ybcode = nil, drugbasiccode = nil, propertyinfo = nil) ⇒ Drug
Returns a new instance of Drug.
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/v20210323/models.rb', line 423 def initialize(drugorgid=nil, drugname=nil, drugcommodityname=nil, specifications=nil, approvalnumber=nil, manufacturer=nil, dosageform=nil, unuse=nil, dosageformcode=nil, defineddailydose=nil, amount=nil, ybcode=nil, drugbasiccode=nil, =nil) @DrugOrgId = drugorgid @DrugName = drugname @DrugCommodityName = drugcommodityname @Specifications = specifications @ApprovalNumber = approvalnumber @Manufacturer = manufacturer @DosageForm = dosageform @Unuse = unuse @DosageFormCode = dosageformcode @DefinedDailyDose = defineddailydose @Amount = amount @YbCode = ybcode @DrugBasicCode = drugbasiccode @PropertyInfo = end |
Instance Attribute Details
#Amount ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def Amount @Amount end |
#ApprovalNumber ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def ApprovalNumber @ApprovalNumber end |
#DefinedDailyDose ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def DefinedDailyDose @DefinedDailyDose end |
#DosageForm ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def DosageForm @DosageForm end |
#DosageFormCode ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def DosageFormCode @DosageFormCode end |
#DrugBasicCode ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def DrugBasicCode @DrugBasicCode end |
#DrugCommodityName ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def DrugCommodityName @DrugCommodityName end |
#DrugName ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def DrugName @DrugName end |
#DrugOrgId ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def DrugOrgId @DrugOrgId end |
#Manufacturer ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def Manufacturer @Manufacturer end |
#PropertyInfo ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def PropertyInfo @PropertyInfo end |
#Specifications ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def Specifications @Specifications end |
#Unuse ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def Unuse @Unuse end |
#YbCode ⇒ Object
421 422 423 |
# File 'lib/v20210323/models.rb', line 421 def YbCode @YbCode end |
Instance Method Details
#deserialize(params) ⇒ Object
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 |
# File 'lib/v20210323/models.rb', line 440 def deserialize(params) @DrugOrgId = params['DrugOrgId'] @DrugName = params['DrugName'] @DrugCommodityName = params['DrugCommodityName'] @Specifications = params['Specifications'] @ApprovalNumber = params['ApprovalNumber'] @Manufacturer = params['Manufacturer'] @DosageForm = params['DosageForm'] @Unuse = params['Unuse'] @DosageFormCode = params['DosageFormCode'] @DefinedDailyDose = params['DefinedDailyDose'] @Amount = params['Amount'] @YbCode = params['YbCode'] @DrugBasicCode = params['DrugBasicCode'] unless params['PropertyInfo'].nil? @PropertyInfo = DurgPropertyInfo.new @PropertyInfo.deserialize(params['PropertyInfo']) end end |