Compounding

Calculation, weighing and label for each formula, in the same system.

Marcos, an AI agent, calculates the formula with each lot’s factors, chooses the capsule and packaging by the pharmacy’s rules and prepares the compounding order and label. The pharmacist approves the order, the compounding technician weighs and the pharmacist releases.

A pharmacist weighs powder on an analytical balance in a modern compounding lab, with a tablet on the bench.
Marcos Tavares
Marcos TavaresAI agent
Example · compounding order 0318Patient: M. S.
FormulaVitamin D3 and magnesium chelate · 60 capsules
Volume per capsule0.39 mL
Capsulesize 1 · chosen by volume
Packaging100 mL jar · by capacity
StatusAwaiting the pharmacist

Illustrative values.

Marcos Tavares
AI agentMarcos TavaresCompounding · Calculation and order

The module agent

Marcos calculates and prepares. The pharmacist approves.

Marcos Tavares receives the order Iris entered from the prescription and calculates each component with the factors of the lot that will be used. He chooses the capsule and packaging by the rules the pharmacy has entered and prepares the order and label. When a factor is missing, he rejects the calculation and shows what is missing.

Marcos Tavares
Marcos TavaresCompounding · Calculation and order · AI agent

Calculates each component with the correction factor, equivalence and density of the product and lot

Chooses the capsule by the formula’s volume and the packaging by capacity, following the rules on file

Prepares the compounding order, weighing sheet and label

Example · conversation with MarcosOrder 0318
You

Calculate M. S.’s formula and prepare the order.

Marcos Tavares
Marcos TavaresAI agent

I calculated the formula with the released lots: per capsule, 20 mg of vitamin D3 from the lot with 100,000 IU/g and 210 mg of magnesium chelate, with the lot’s correction factor of 1.05. The formula takes up 0.39 mL per capsule, so I chose a size 1 capsule, topped up with excipient, and the 100 mL jar by capacity. Order 0318 and the label are awaiting your approval.

Awaiting the pharmacist

Illustrative example.

Formula calculation

Each component calculated with the lot’s factors.

Marcos calculates the quantity of each component per capsule and for the whole formula, with the lot’s factors and, when the lot does not have them, with the product’s. Density and the per-gram factor convert the unit; the correction factor, equivalence and dilution adjust the quantity to weigh. Without the factor, the calculation is rejected.

The lot’s correction factor, applied to the quantity to weigh

Equivalence factor to the pure substance, when the product records it in the catalog

Dilution or concentration of the raw material, and IU, CFU or TRU by the lot’s per-gram factor

Density, to arrive at the formula’s volume

Quantity per capsule times the number of capsules, and the excipient that fills the remaining volume

Example · calculation per capsuleOrder 0318
Vitamin D3 · 2,000 IU20 mg · lot with 100,000 IU/g
Magnesium chelate · 200 mg210 mg · correction factor 1.05
Volume per capsule0.39 mL · from the lots’ density
Capsulesize 1 · 0.50 mL
Excipient88 mg · fills the volume
Total to weigh · 60 capsules19.080 g

Illustrative values.

Capsule, packaging and lots

Chosen by the rules the pharmacy has entered.

Capsule by volume

Using the formula’s volume, Marcos chooses the capsule that holds it, in the priority order the pharmacy has set. Inactive sizes are left out.

Packaging by capacity

The packaging is chosen by capacity, from the options the pharmacy has entered for that dosage form.

Catalog rules first

When the pharmacy has set the capsule for a product, or the packaging for a product in a dosage form, that rule applies before automatic selection.

Lots from inventory

The order uses the branch’s released lots, within their expiration date and with available balance. When the compounding technician confirms the weighing, the quantity comes out of the balance through the stock ledger, and an error is corrected by a reversal.

At the bench

From order to label, each step with its own owner.

01

Compounding order

Marcos prepares the order with the components and excipient, the lot and the quantity to weigh for each one, and the capsule size and color. The pharmacist assesses the prescription and approves.

Pharmacist approval

02

Monitored weighing

The compounding technician weighs each component on the integrated scale and confirms. Outside the tolerance the pharmacy has set, the weighing is not accepted. For low therapeutic index substances, weighing is double-checked, and one of the checks is done by the pharmacist.

Compounding technician · weighs and confirms

03

Average weight

When the dosage form requires it, as with capsules, the compounding technician weighs the units and the system calculates the average weight, the standard deviation and the coefficient of variation. The result stays on the work order.

Compounding technician · quality control

04

Label and release

The label comes out of the label printer, with the data RDC 67/2007 requires. The pharmacist reviews the results and releases the formula.

Pharmacist’s release

What stays with people

Marcos prepares. People approve, weigh and release.

01

Assess and approve

The pharmacist assesses the prescription before compounding and approves the work order. Without that approval, the work order does not go to the bench.

02

Weigh and confirm

The compounding technician weighs each component and confirms. The scale records the weight, and the name of the person who weighed it stays on the work order.

03

Release the formula

The pharmacist reviews the weighing and the assay results, such as the average weight, and releases the formula for dispensing. The release is recorded under the pharmacist’s name.

Questions about compounding.

No. He calculates and prepares the work order and the label. The pharmacist assesses the prescription, approves the work order and releases the formula after weighing.
The calculation is rejected, and Marcos shows which factor is missing. The system never assumes a factor of 1.
Yes. The pharmacist can change them before approving the work order. When the capsule changes, the excipient is recalculated, and the change is recorded with who made it.
The data RDC 67/2007 requires: prescriber, patient, the formula’s registration number in the prescription book, compounding date, expiration date, components and quantities, number of units, weight or volume, dosage instructions, identification, the pharmacy’s CNPJ and address, and the responsible pharmacist with their CRF number. Warnings such as “Keep refrigerated” are added when the formula calls for them.
They follow pharmacopeia notation, with method and potency. As in the Homeopathy module, Marcos does not convert between scales.

See a formula calculated, weighed and labeled.

In the demo, you see the calculation with the lot’s factors, the capsule selection, the weighing and the label. We handle your pharmacy’s migration at no cost.