modelDeficiencyComponent
reports a graded deficiency level; deliberately drives no equation
Information
Emits the severity level and a convenience Boolean, and
warns once at initialization when the subject is deficient. Like
CarriageComponent it has no signal input and no scaled output: the level grades a
safety consequence, not a PK or PD parameter.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| PGx.Deficiency | deficiency | ||
| Boolean | warnIfDeficient | true | warn when the level is worse than Normal |
| String | riskLabel | if Integer(PGx.deficiencyOf(deficiency.gene.allele, deficiency.gene.alleleClass, deficiency.allele[1], deficiency.allele[2])) < Integer(PGx.DeficiencyLevel.Deficient) then "" else deficiency.gene.symbol + " " + deficiency.allele[1] + (if deficiency.allele[2] == "" then "" else "/" + deficiency.allele[2]) + " " + deficiency.gene.outcome | |
| Advanced | |||
| Boolean | checkAlleles | true | assert that both alleles appear in the gene's table |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.IntegerOutput | level | DeficiencyLevel: 1 indeterminate, 2 normal, 3 variable, 4 deficient, 5 CNSHA | |
| PGx.RiskBus | riskBus | connect to a RiskSummary to be counted | |
| Modelica.Blocks.Interfaces.BooleanOutput | deficient | level is Deficient or worse |