**4.3. Generation of the CAG table**

The CAG table stores the following information for each segment of a coronary artery: the presence or absence of a stenosis, the severity of the stenosis, and the type of stenosis (Fig‐ ure 16 (a), bottom). The system automatically generates a CAG table from a graphical coro‐ nary schema by checking for the existence of a stenosis in each segment. It stores the result in XML format (Figure 16 (a), middle and bottom).

When the user edits the CAG table, the system first finds the corresponding stenosis in the XML file (Figure 16 (b), top and middle). It then obtains the information for that stenosis and changes it on the coronary schema. In this way, the system automatically updates the sten‐ oses on the coronary schema from the corresponding CAG table (Figure 16 (b), bottom).
