The work-flow of the core process. Red arrows illustrate the retrieval of a person’s next purchase of the same ATC code. The blue background marks the processing of a person’s single purchase of an ATC code. The green background shows the processing of stockpiling. Red numbers link to particular sections in the text. Thin arrows present dataflow, bold arrows logic.