Closed episodes are moved to an archive created on the storage means, such as a hard disk or CD-ROM. [0101] The management record is examined and the first diagnosis code on record is read, a diagnosis code (dx) by ETG table 201 is read from the storage means and all valid ETGs for the first diagnosis code on record are identified at step 216.