Clarix
Formulas

Master Formula Bundle Import

Import a complete master formula in one transaction at /formulas/import — formula.csv, bom.csv, admix-supplies.csv, and procedure.jsonl.

The Import Master Formula Bundle section at /formulas/import is the fastest path to stand up a production-ready master formula. Upload four coordinated files and Clarix creates the draft formula, BOM lines, admix supplies, and phased manufacturing steps in a single transactional import.

Formula import page with bundle section

Recommended path: Use the bundle import for new products. Use the legacy header CSV import only when you need empty formula shells without BOM or steps.

The four files

FileCreates
formula.csvDraft master formula header (product identity, batch size, BUD, storage)
bom.csvBill of Materials lines linked to inventory SKUs
admix-supplies.csvNon-inventory admix supplies (vessels, stir bars, etc.)
procedure.jsonlManufacturing phases and step references by shortLabel

Import order inside the bundle:

  1. formula.csv — creates the formula record
  2. bom.csv — adds ingredient lines
  3. admix-supplies.csv — adds admix supply rows
  4. procedure.jsonl — creates phases and pulls steps from the Step Library

If any step fails validation, the entire bundle rolls back — no partial formulas.

Prerequisites

Before importing a bundle:

  1. Inventory items referenced in bom.csv must exist (import SKUs at /inventory/import).
  2. Step Library steps referenced in procedure.jsonl must exist — import JSONL at /manufacturing-steps/import first.
  3. Optional document and equipment codes in step resources should exist for full linkage.

Product example: VITC-489 Ascorbic Acid

The demo dataset documents Ascorbic Acid 500 mg/mL 30 mL IV (VITC-489):

FileContents
formula.csvSterile injectable header — 7296 mL batch, 243 vials, refrigerated BUD
bom.csvFive ingredients: Ascorbic Acid, EDTA, NaOH, Phenol, SWFI (by SKU)
admix-supplies.csvMixing vessel, stir bar, filtration supplies
procedure.jsonl18 phases, 74 steps referencing VITC-* shortLabels

formula.csv key columns

ColumnRequiredNotes
product_codeYese.g., VITC-489
product_nameYesFull product name
batch_size_quantity / batch_size_unitYesNumeric size and UOM (ml, g, vial, etc.)
target_yield_unitsExpected finished units
bud_days, bud_conditions, storage_conditionsBUD and storage
sterile, hazardous_drug, preservative_freeBoolean flags
route_of_administration, unit_sizee.g., IV, 30 mL

bom.csv key columns

ColumnRequiredNotes
skuYesMust match an inventory item SKU
quantity_per_batchYesTotal batch quantity
unitYesValid UOM
is_active_ingredient, is_critical, quantum_satisBOM flags
sort_orderDisplay order

admix-supplies.csv key columns

ColumnRequiredNotes
material_nameYesFree-text supply name
expected_quantityYesNumeric quantity
unitYese.g., each, ml

procedure.jsonl record types

Phase:

{"type":"phase","phaseNumber":2,"name":"Admix Preparation","predecessors":[1],"description":"..."}

Step (references Step Library):

{"type":"step","phaseNumber":2,"shortLabel":"VITC-TARE-WEIGHT","stepNumber":14}

Each shortLabel must match an active step in /manufacturing-steps.

Step-by-step: import the bundle

  1. Complete prerequisites (inventory items, Step Library JSONL).
  2. Go to Formulas → Import (/formulas/import).
  3. Scroll to Import Master Formula Bundle.
  4. Upload all four files (formula, BOM, admix supplies, procedure).
  5. Review the preview summary: formula attributes, BOM row count, phase/step counts, and errors.
  6. Click Import bundle.
  7. Open the created draft formula and verify phases in the Builder tab.
  8. Submit for pharmacist review and approve with facility PIN when ready.

After import

  • Formula status is Draft with auto-generated formula number.
  • Calculation step variables referencing other steps may need wiring in the builder (UUIDs are unknown at import time).
  • Submit through your normal approval workflow.

Role requirements

ActionMinimum role
Import master formula bundlePIC, QA Manager, or formula editor
Approve imported formulaPIC (facility PIN)

Regulatory reference

21 CFR 211.186 — Master production and control records must be prepared before batch production. The bundle import assembles header, BOM, supplies, and procedure structure under controlled validation so the approved master formula reflects your validated manufacturing record.


On this page