BodyliaBodylia OpenB2BSign in
← All guides

Lot genealogy (transformation)

nutrab2b.trace.lot_transformed.v2 · Traceability

Purpose
Record that input lots were consumed to produce output lots (harvest → extract → blend → finished), with yield for mass balance. FSMA 204 'transformation' key data elements.
When to send
Each production batch.
Sender → receiver
Producer → Hub (and customers on request)
Expected responses
ACK
Equivalent standards
EPCIS: TransformationEvent · GS1: EPCIS 2.0
Scenarios using it
Recall walks the full genealogy · Genealogy cycle prevented · Mass balance failure

Fields and mappings

FieldTypeReqDescriptionCode list / formatEDI / GS1 / SAP mapping
batch_idstringyesProduction batch
stagestringyesStagelot_stage
facility_glnstringyesWhere^\d{13}$
atdatetimeyesWhen
inputsarray<object>yesConsumed lots
lot_numberstringyesInput lotNB-R018
item_idstringyesItem
quantityobjectyesQuantity consumed
valuenumberyesQuantity
uomstringyesUnit of measureuom
outputsarray<object>yesProduced lots
lot_numberstringyesOutput lotNB-R018
item_idstringyesItem
quantityobjectyesQuantity produced
valuenumberyesQuantity
uomstringyesUnit of measureuom
expected_yield_pctnumberExpected yield output/input %NB-R019
yield_tolerance_pctnumberTolerance ± %

Business rules

Example

{
  "specversion": "2.0",
  "id": "evt-lot_genealogy-EXT-26-118-1",
  "type": "nutrab2b.trace.lot_transformed.v2",
  "source": "urn:gln:4012345000009:erp",
  "subject": "EXT-26-118",
  "time": "2026-11-02T09:00:00Z",
  "datacontenttype": "application/json",
  "dataschema": "https://nutrab2b.org/schemas/2.0/LOT_GENEALOGY.json",
  "sender": {
    "gln": "4012345000009"
  },
  "receiver": {
    "gln": "0614141000012"
  },
  "correlationid": "CONV-RFQ-1001",
  "idempotencykey": "LOT_GENEALOGY:EXT-26-118:1",
  "sequence": 1,
  "env": "test",
  "data": {
    "batch_id": "EXT-26-118",
    "stage": "EXTRACT",
    "facility_gln": "4012345000016",
    "at": "2026-10-01T06:00:00+05:30",
    "inputs": [
      {
        "lot_number": "H-26-ASH-07",
        "item_id": "ASH-ROOT-DRY",
        "quantity": {
          "value": 6000,
          "uom": "KGM"
        }
      }
    ],
    "outputs": [
      {
        "lot_number": "ASH-26-118",
        "item_id": "ASH-KSM-5",
        "quantity": {
          "value": 500,
          "uom": "KGM"
        }
      }
    ],
    "expected_yield_pct": 8.5,
    "yield_tolerance_pct": 1.5
  }
}

Mapping checklist