nx_supp_ingredient.nx
buildroot/runtime/nx_supp_ingredient.nx
about
nx_supp_ingredient.nx -- SUPPLEMENT GTM SUITE / INGREDIENT CATALOG rung.
The input side of taking a supplement to market: what an ingredient IS
legally, what dose the clinical literature actually used, how much volume
that dose occupies, and what it costs.
THE REGULATORY CLASS IS THE MOST IMPORTANT FIELD, and it is not advice --
it decides whether a product can legally exist. Two exclusions do the work:
DRUG PRECLUSION (21 USC 321(ff)(3)(B)): an article approved as a drug, or
authorised for investigation as a new drug with substantial public
clinical trials, CANNOT be a dietary ingredient. Oxytocin (approved as
Pitocin) and bremelanotide (approved as Vyleesi) are on the wrong side of
that line permanently. A compounded oxytocin troche is a PRESCRIPTION
product dispensed by a pharmacy -- it is not a supplement business.
NOT A DIETARY INGREDIENT AT ALL: DSHEA's definition is a closed list
(vitamin, mineral, herb/botanical, amino acid, dietary substance used to
supplement the diet, or a concentrate/metabolite/extract of those).
A synthetic signalling peptide such as Kisspeptin-10 or BPC-157 is none
of them -- it is not an "amino acid" any more than a protein drug is.
FDA has said so directly, and BPC-157 was placed on the 503A category-2
list in 2023 as not eligible even for compounding.
So this catalog REFUSES those by construction, in the same way
nx_ferment_safety refuses an unsafe ferment: a structural verdict, not a
warning string a formulator can scroll past. The nine botanicals and
amino acids on the user's list ARE lawful dietary ingredients and are
catalogued normally.
COSTS ARE INDICATIVE BULK RANGES, NOT QUOTES. They move with harvest,
origin, assay, and volume, and a branded standardised extract is priced by
its owner. si_cost_is_indicative() exists so no downstream model can quietly
present these as a purchase price. Get a real quote before committing.
DOSES ARE THE LOW END OF THE CLINICALLY STUDIED RANGE, which is the honest
floor for a "clinically dosed" claim -- not a marketing dose.
Units: dose in mg, bulk density in mg per mL, cost in CENTS per kg.
Grounding (cited; researcher-groundable):
dependencies 1 imports · 6 importers
imports: nx_syscalls.nx
imported by: nx_gtm_svc.nxnx_plan_svc.nxnx_prodready.nxnx_supp_channel.nxnx_supp_formula.nxnx_supp_jurisdiction.nx
structs
| none |
consts
| 50 | const SI_MAGIC_3000: i64 = 3000 |
| 51 | const SI_MAGIC_1500: i64 = 1500 |
| 52 | const SI_MAGIC_2000: i64 = 2000 |
| 53 | const SI_MAGIC_150000: i64 = 150000 |
| 54 | const SI_MAGIC_15000: i64 = 15000 |
| 55 | const SI_MAGIC_6000: i64 = 6000 |
| 56 | const SI_MAGIC_9000: i64 = 9000 |
| 57 | const SI_MAGIC_18000: i64 = 18000 |
| 58 | const SI_MAGIC_1000000: i64 = 1000000 |
| 62 | const SI_CLASS_UNKNOWN: i64 = 0 // fail-closed: never marketable |
| 63 | const SI_CLASS_ODI: i64 = 1 // old dietary ingredient (pre-1994) |
| 64 | const SI_CLASS_NDI: i64 = 2 // new dietary ingredient, notified |
| 65 | const SI_CLASS_DRUG: i64 = 3 // approved drug -> precluded |
| 66 | const SI_CLASS_NOT_DIETARY: i64 = 4 // not a dietary ingredient at all |
| 70 | const SI_L_CITRULLINE: i64 = 0 |
| 71 | const SI_L_ARGININE: i64 = 1 |
| 72 | const SI_PYCNOGENOL: i64 = 2 |
| 73 | const SI_ASHWAGANDHA: i64 = 3 |
| 74 | const SI_MACA: i64 = 4 |
| 75 | const SI_TRIBULUS: i64 = 5 |
| 76 | const SI_FENUGREEK: i64 = 6 |
| 77 | const SI_PANAX_GINSENG: i64 = 7 |
| 78 | const SI_GINKGO: i64 = 8 |
| 79 | const SI_KISSPEPTIN10: i64 = 9 |
| 80 | const SI_OXYTOCIN: i64 = 10 |
| 81 | const SI_BREMELANOTIDE: i64 = 11 |
| 82 | const SI_BPC157: i64 = 12 |
| 83 | const SI_N: i64 = 13 |
| 85 | const SI_INVALID: i64 = 0 - 1 |
| 213 | const SI_CAP_000: i64 = 1370 |
| 214 | const SI_CAP_00: i64 = 950 |
| 215 | const SI_CAP_0: i64 = 680 |
| 216 | const SI_CAP_1: i64 = 500 |
| 217 | const SI_CAP_2: i64 = 370 |
| 218 | const SI_CAP_3: i64 = 300 |
| 222 | const SI_CAP_FILL_PERMIL: i64 = 900 |
functions
| 87 | func si_valid_id(id: i64) -> i64 |
| 93 | func si_name(id: i64) -> *u8 |
| 111 | func si_class(id: i64) -> i64 |
| 131 | func si_is_lawful_dietary(id: i64) -> i64 |
| 140 | func si_clinical_dose_mg(id: i64) -> i64 |
| 155 | func si_density_mg_per_ml(id: i64) -> i64 called by 1: si_dose_volume_ul |
| 169 | func si_cost_cents_per_kg(id: i64) -> i64 |
| 184 | func si_cost_is_indicative(id: i64) -> i64 called by 1: gtm_ingredient_info |
| 189 | func si_dose_cost_cents(id: i64, dose_mg: i64) -> i64 |
| 198 | func si_dose_volume_ul(id: i64, dose_mg: i64) -> i64 |
| 224 | func si_capsule_usable_ul(shell_ul: i64) -> i64 |
| 229 | func si_capsule_fill_mg(shell_ul: i64, density_mg_per_ml: i64) -> i64 calls 1: si_capsule_usable_ul |