Factory Flag Rules

A flag rule retrieves information from a flag table. Flag tables have one column for the codes (labeled __mf_key) and other columns for descriptions. Each description column uses a Boolean value—for example, Y (yes), to associate it with one or more codes.

The flag table and flag rule are specified together in a flag-table block directly within the data-set block as shown in the following example:

data-set "Charges" {
  cbase-input "/data/charges.cbase"
  flag-table "Revenue Code Flags" {
    date rule="Posting Date"
    key rule="Revenue Code"
    flag-rule "ICU Charge"
  }
}

This flag rule specifies the following values:

  • flag-table—Retrieve information from the Revenue Code Flags flag table.
  • date rule—The relationships between the codes and descriptions are effective as of the posting date, which comes from the source data.
  • key rule—The values in the __mf_key column are revenue codes.
  • flag-rule—In the ICU Charge column, any row that has a Y (Yes) indicates an ICU charge.

See also: