Class: TencentCloud::Mrs::V20200910::DiseaseHistoryBlock
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::DiseaseHistoryBlock
- Defined in:
- lib/v20200910/models.rb
Overview
疾病史
Instance Attribute Summary collapse
- #AllergyHistory ⇒ Object
- #InfectHistory ⇒ Object
- #MainDiseaseHistory ⇒ Object
- #SurgeryHistory ⇒ Object
- #TransfusionHistory ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(maindiseasehistory = nil, allergyhistory = nil, infecthistory = nil, surgeryhistory = nil, transfusionhistory = nil) ⇒ DiseaseHistoryBlock
constructor
A new instance of DiseaseHistoryBlock.
Constructor Details
#initialize(maindiseasehistory = nil, allergyhistory = nil, infecthistory = nil, surgeryhistory = nil, transfusionhistory = nil) ⇒ DiseaseHistoryBlock
Returns a new instance of DiseaseHistoryBlock.
2676 2677 2678 2679 2680 2681 2682 |
# File 'lib/v20200910/models.rb', line 2676 def initialize(maindiseasehistory=nil, allergyhistory=nil, infecthistory=nil, surgeryhistory=nil, transfusionhistory=nil) @MainDiseaseHistory = maindiseasehistory @AllergyHistory = allergyhistory @InfectHistory = infecthistory @SurgeryHistory = surgeryhistory @TransfusionHistory = transfusionhistory end |
Instance Attribute Details
#AllergyHistory ⇒ Object
2674 2675 2676 |
# File 'lib/v20200910/models.rb', line 2674 def AllergyHistory @AllergyHistory end |
#InfectHistory ⇒ Object
2674 2675 2676 |
# File 'lib/v20200910/models.rb', line 2674 def InfectHistory @InfectHistory end |
#MainDiseaseHistory ⇒ Object
2674 2675 2676 |
# File 'lib/v20200910/models.rb', line 2674 def MainDiseaseHistory @MainDiseaseHistory end |
#SurgeryHistory ⇒ Object
2674 2675 2676 |
# File 'lib/v20200910/models.rb', line 2674 def SurgeryHistory @SurgeryHistory end |
#TransfusionHistory ⇒ Object
2674 2675 2676 |
# File 'lib/v20200910/models.rb', line 2674 def TransfusionHistory @TransfusionHistory end |
Instance Method Details
#deserialize(params) ⇒ Object
2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 |
# File 'lib/v20200910/models.rb', line 2684 def deserialize(params) unless params['MainDiseaseHistory'].nil? @MainDiseaseHistory = MainDiseaseHistoryBlock.new @MainDiseaseHistory.deserialize(params['MainDiseaseHistory']) end unless params['AllergyHistory'].nil? @AllergyHistory = MainDiseaseHistoryBlock.new @AllergyHistory.deserialize(params['AllergyHistory']) end unless params['InfectHistory'].nil? @InfectHistory = MainDiseaseHistoryBlock.new @InfectHistory.deserialize(params['InfectHistory']) end unless params['SurgeryHistory'].nil? @SurgeryHistory = SurgeryHistoryBlock.new @SurgeryHistory.deserialize(params['SurgeryHistory']) end unless params['TransfusionHistory'].nil? @TransfusionHistory = TransfusionHistoryBlock.new @TransfusionHistory.deserialize(params['TransfusionHistory']) end end |