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
2687 2688 2689 2690 2691 2692 2693 |
# File 'lib/v20200910/models.rb', line 2687 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
2685 2686 2687 |
# File 'lib/v20200910/models.rb', line 2685 def AllergyHistory @AllergyHistory end |
#InfectHistory ⇒ Object
2685 2686 2687 |
# File 'lib/v20200910/models.rb', line 2685 def InfectHistory @InfectHistory end |
#MainDiseaseHistory ⇒ Object
2685 2686 2687 |
# File 'lib/v20200910/models.rb', line 2685 def MainDiseaseHistory @MainDiseaseHistory end |
#SurgeryHistory ⇒ Object
2685 2686 2687 |
# File 'lib/v20200910/models.rb', line 2685 def SurgeryHistory @SurgeryHistory end |
#TransfusionHistory ⇒ Object
2685 2686 2687 |
# File 'lib/v20200910/models.rb', line 2685 def TransfusionHistory @TransfusionHistory end |
Instance Method Details
#deserialize(params) ⇒ Object
2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 |
# File 'lib/v20200910/models.rb', line 2695 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 |