modelRiskSummary

ONE flag an application checks: does any pharmacogene flag a risk?

Information

Collects the risk flags of any number of pharmacogene components into the single variable an application reads to decide whether this drug is safe for this subject. Connect each component's riskBus here; there is no count to maintain, because the bus sizes itself from the connections (see PGx.RiskBus).

Nothing here stops the simulation

A risk carrier's PK is perfectly well defined, and simulating it is often exactly the point: you may want the exposure profile precisely because the subject is the one you are worried about. So carriage warns and the run continues, and this component aggregates rather than gates. The only PGx condition that raises an ERROR is an allele name that appears in no table, which is a data-entry mistake rather than a finding about a patient.

Parameters

TypeNameDefaultDescription
BooleanwarnIfAtRisktruewarn once when any source is flagged

Connectors

TypeNameDefaultDescription
PGx.RiskBusriskBusconnect every risk-emitting component here
Modelica.Blocks.Interfaces.BooleanOutputatRisktrue when ANY connected pharmacogene flags a risk for this drug
Modelica.Blocks.Interfaces.IntegerOutputnAtRiskhow many sources are flagged