code wiki / (root) / nx_supp_ingredient.nx

nx_supp_ingredient.nx

buildroot/runtime/nx_supp_ingredient.nx

9667 B232 linesdepth 2pulls 2 transitivereach 6 importersview sourcekind librarytopic supp
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_supp_ingredient.nx nx_gtm_svc.nx nx_plan_svc.nx nx_prodready.nx nx_supp_channel.nx nx_supp_formula.nx nx_supp_jurisdiction.nx

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

50const SI_MAGIC_3000: i64 = 3000
51const SI_MAGIC_1500: i64 = 1500
52const SI_MAGIC_2000: i64 = 2000
53const SI_MAGIC_150000: i64 = 150000
54const SI_MAGIC_15000: i64 = 15000
55const SI_MAGIC_6000: i64 = 6000
56const SI_MAGIC_9000: i64 = 9000
57const SI_MAGIC_18000: i64 = 18000
58const SI_MAGIC_1000000: i64 = 1000000
62const SI_CLASS_UNKNOWN: i64 = 0 // fail-closed: never marketable
63const SI_CLASS_ODI: i64 = 1 // old dietary ingredient (pre-1994)
64const SI_CLASS_NDI: i64 = 2 // new dietary ingredient, notified
65const SI_CLASS_DRUG: i64 = 3 // approved drug -> precluded
66const SI_CLASS_NOT_DIETARY: i64 = 4 // not a dietary ingredient at all
70const SI_L_CITRULLINE: i64 = 0
71const SI_L_ARGININE: i64 = 1
72const SI_PYCNOGENOL: i64 = 2
73const SI_ASHWAGANDHA: i64 = 3
74const SI_MACA: i64 = 4
75const SI_TRIBULUS: i64 = 5
76const SI_FENUGREEK: i64 = 6
77const SI_PANAX_GINSENG: i64 = 7
78const SI_GINKGO: i64 = 8
79const SI_KISSPEPTIN10: i64 = 9
80const SI_OXYTOCIN: i64 = 10
81const SI_BREMELANOTIDE: i64 = 11
82const SI_BPC157: i64 = 12
83const SI_N: i64 = 13
85const SI_INVALID: i64 = 0 - 1
213const SI_CAP_000: i64 = 1370
214const SI_CAP_00: i64 = 950
215const SI_CAP_0: i64 = 680
216const SI_CAP_1: i64 = 500
217const SI_CAP_2: i64 = 370
218const SI_CAP_3: i64 = 300
222const SI_CAP_FILL_PERMIL: i64 = 900

functions

87func si_valid_id(id: i64) -> i64
93func si_name(id: i64) -> *u8
111func si_class(id: i64) -> i64
131func si_is_lawful_dietary(id: i64) -> i64
140func si_clinical_dose_mg(id: i64) -> i64
155func si_density_mg_per_ml(id: i64) -> i64
called by 1: si_dose_volume_ul
169func si_cost_cents_per_kg(id: i64) -> i64
184func si_cost_is_indicative(id: i64) -> i64
called by 1: gtm_ingredient_info
189func si_dose_cost_cents(id: i64, dose_mg: i64) -> i64
198func si_dose_volume_ul(id: i64, dose_mg: i64) -> i64
224func si_capsule_usable_ul(shell_ul: i64) -> i64
229func si_capsule_fill_mg(shell_ul: i64, density_mg_per_ml: i64) -> i64