Class: TencentCloud::Aca::V20210323::RationalDrugInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Aca::V20210323::RationalDrugInfo
- Defined in:
- lib/v20210323/models.rb
Overview
合理用药信息
Instance Attribute Summary collapse
- #Abnormals ⇒ Object
- #DrugAllergys ⇒ Object
- #DrugIncompatibility ⇒ Object
- #DrugIndications ⇒ Object
- #DrugInteractions ⇒ Object
- #DrugList ⇒ Object
- #DrugRepeats ⇒ Object
- #DrugRoutes ⇒ Object
- #DrugTaboos ⇒ Object
- #DrugUsages ⇒ Object
- #Hit ⇒ Object
- #SpecialPopulations ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(hit = nil, drugusages = nil, drugrepeats = nil, drugroutes = nil, specialpopulations = nil, drugtaboos = nil, druginteractions = nil, drugincompatibility = nil, drugallergys = nil, drugindications = nil, abnormals = nil, druglist = nil) ⇒ RationalDrugInfo
constructor
A new instance of RationalDrugInfo.
Constructor Details
#initialize(hit = nil, drugusages = nil, drugrepeats = nil, drugroutes = nil, specialpopulations = nil, drugtaboos = nil, druginteractions = nil, drugincompatibility = nil, drugallergys = nil, drugindications = nil, abnormals = nil, druglist = nil) ⇒ RationalDrugInfo
Returns a new instance of RationalDrugInfo.
1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 |
# File 'lib/v20210323/models.rb', line 1259 def initialize(hit=nil, drugusages=nil, drugrepeats=nil, drugroutes=nil, specialpopulations=nil, drugtaboos=nil, druginteractions=nil, drugincompatibility=nil, drugallergys=nil, drugindications=nil, abnormals=nil, druglist=nil) @Hit = hit @DrugUsages = drugusages @DrugRepeats = drugrepeats @DrugRoutes = drugroutes @SpecialPopulations = specialpopulations @DrugTaboos = drugtaboos @DrugInteractions = druginteractions @DrugIncompatibility = drugincompatibility @DrugAllergys = drugallergys @DrugIndications = drugindications @Abnormals = abnormals @DrugList = druglist end |
Instance Attribute Details
#Abnormals ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def Abnormals @Abnormals end |
#DrugAllergys ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def DrugAllergys @DrugAllergys end |
#DrugIncompatibility ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def DrugIncompatibility @DrugIncompatibility end |
#DrugIndications ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def DrugIndications @DrugIndications end |
#DrugInteractions ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def DrugInteractions @DrugInteractions end |
#DrugList ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def DrugList @DrugList end |
#DrugRepeats ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def DrugRepeats @DrugRepeats end |
#DrugRoutes ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def DrugRoutes @DrugRoutes end |
#DrugTaboos ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def DrugTaboos @DrugTaboos end |
#DrugUsages ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def DrugUsages @DrugUsages end |
#Hit ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def Hit @Hit end |
#SpecialPopulations ⇒ Object
1257 1258 1259 |
# File 'lib/v20210323/models.rb', line 1257 def SpecialPopulations @SpecialPopulations end |
Instance Method Details
#deserialize(params) ⇒ Object
1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 |
# File 'lib/v20210323/models.rb', line 1274 def deserialize(params) @Hit = params['Hit'] unless params['DrugUsages'].nil? @DrugUsages = [] params['DrugUsages'].each do |i| riskinfo_tmp = RiskInfo.new riskinfo_tmp.deserialize(i) @DrugUsages << riskinfo_tmp end end unless params['DrugRepeats'].nil? @DrugRepeats = [] params['DrugRepeats'].each do |i| riskinfo_tmp = RiskInfo.new riskinfo_tmp.deserialize(i) @DrugRepeats << riskinfo_tmp end end unless params['DrugRoutes'].nil? @DrugRoutes = [] params['DrugRoutes'].each do |i| riskinfo_tmp = RiskInfo.new riskinfo_tmp.deserialize(i) @DrugRoutes << riskinfo_tmp end end unless params['SpecialPopulations'].nil? @SpecialPopulations = [] params['SpecialPopulations'].each do |i| riskinfo_tmp = RiskInfo.new riskinfo_tmp.deserialize(i) @SpecialPopulations << riskinfo_tmp end end unless params['DrugTaboos'].nil? @DrugTaboos = [] params['DrugTaboos'].each do |i| riskinfo_tmp = RiskInfo.new riskinfo_tmp.deserialize(i) @DrugTaboos << riskinfo_tmp end end unless params['DrugInteractions'].nil? @DrugInteractions = [] params['DrugInteractions'].each do |i| riskinfo_tmp = RiskInfo.new riskinfo_tmp.deserialize(i) @DrugInteractions << riskinfo_tmp end end unless params['DrugIncompatibility'].nil? @DrugIncompatibility = [] params['DrugIncompatibility'].each do |i| riskinfo_tmp = RiskInfo.new riskinfo_tmp.deserialize(i) @DrugIncompatibility << riskinfo_tmp end end unless params['DrugAllergys'].nil? @DrugAllergys = [] params['DrugAllergys'].each do |i| riskinfo_tmp = RiskInfo.new riskinfo_tmp.deserialize(i) @DrugAllergys << riskinfo_tmp end end unless params['DrugIndications'].nil? @DrugIndications = [] params['DrugIndications'].each do |i| riskinfo_tmp = RiskInfo.new riskinfo_tmp.deserialize(i) @DrugIndications << riskinfo_tmp end end unless params['Abnormals'].nil? @Abnormals = [] params['Abnormals'].each do |i| abnormals_tmp = Abnormals.new abnormals_tmp.deserialize(i) @Abnormals << abnormals_tmp end end unless params['DrugList'].nil? @DrugList = [] params['DrugList'].each do |i| druglist_tmp = DrugList.new druglist_tmp.deserialize(i) @DrugList << druglist_tmp end end end |