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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | warnIfAtRisk | true | warn once when any source is flagged |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| PGx.RiskBus | riskBus | connect every risk-emitting component here | |
| Modelica.Blocks.Interfaces.BooleanOutput | atRisk | true when ANY connected pharmacogene flags a risk for this drug | |
| Modelica.Blocks.Interfaces.IntegerOutput | nAtRisk | how many sources are flagged |