Documentation

11.13 Core record consistency: REC01–REC12

Record checks combine fields to decide whether each row tells one coherent event story.

Record anatomy

Figure 11.7. Observation, excluded, dose and other/reset rows require different combinations of EVID, MDV, DV and dose attributes.

REC01–REC04 validate allowed EVID/MDV and require DV on included observations. REC05 lists intentionally excluded observations. REC06 warns about stray DV on event records. REC07–REC09 check positive dose amounts and prevent AMT on observations. REC10–REC12 validate CMT and restrict positive RATE to positive-AMT dose rows.

EVID and MDV together

EVID 0 is an observation candidate. It contributes only with MDV 0. EVID 1 is dose, 2 other, 3 reset, and 4 reset plus dose; these require MDV 1. A dose with MDV 0 does not become an observation—it becomes an inconsistency.

CMT context

CMT is not merely an integer. On a dose it identifies the receiving compartment; on an observation it identifies the observed output. REC11 is informational because multiple compartments can be correct, but the model must agree.

A row-by-row investigation method

For a flagged row, write its intended role in ordinary words: “100 mg oral dose,” “central concentration,” or “excluded assay sample.” Then fill the expected EVID, MDV, DV, AMT, CMT and RATE for that role before comparing with the file. Inspect adjacent rows because a combined dose/observation may need two ordered records. Finally compare the relevant $MODEL, DEFDOSE, DEFOBS and scaling rules; changing CMT without that model context can route an event to the wrong state.

Common mistakes

  • Repairing MDV without checking whether EVID itself is wrong.
  • Leaving a measured DV on a dose row.
  • Moving AMT to an observation without splitting the row.
  • Treating CMT 1/2 as universal across ADVAN structures.

Checklist

  • Classify every row by intended role.
  • Verify EVID, MDV, DV and AMT together.
  • Compare CMT with the actual model compartments.
  • Document excluded observations from REC05.

Further reading

See EVID/MDV/CMT semantics, ADVAN compartments and advanced event checks.