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

TypeNameDefaultDescription
PGx.Deficiencydeficiency
BooleanwarnIfDeficienttruewarn when the level is worse than Normal
StringriskLabelif 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
BooleancheckAllelestrueassert that both alleles appear in the gene's table

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.IntegerOutputlevelDeficiencyLevel: 1 indeterminate, 2 normal, 3 variable, 4 deficient, 5 CNSHA
PGx.RiskBusriskBusconnect to a RiskSummary to be counted
Modelica.Blocks.Interfaces.BooleanOutputdeficientlevel is Deficient or worse