.Pharmacolibrary.Pharmacogenomics.PGx.phStatus

Information

Function phStatus(ph, a1, a2) maps a pair of star-alleles to a MetabolizerStatus according to the lists defined in the PhenotypeTemplate record.

Inputs

Output

Algorithm

  1. Initialize s = Normal.
  2. If either allele is listed in ph.poor, set s = Poor.
  3. Else if in ph.rapid, set s = Rapid.
  4. Else if in ph.intermediate, set s = Intermediate.
  5. Else if in ph.ultra, set s = Ultra.
  6. Otherwise remain Normal.

Interface

function phStatus
  input Phenotype ph;
  input String a1;
  input String a2;
  output MetabolizerStatus s;
end phStatus;

Generated at 2025-06-04T18:20:49Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos