請注意,所有篩選規則集都需要使用篩選規則介面,才能在「通用存取」內執行。介面的詳細說明如下:
<?xml version="1.0" encoding="UTF-8"?> <RuleSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.curamsoftware.com/ CreoleRulesSchema.xsd" name="ScreeningInterfaceRuleSet"> <!-- 此類別必須由「公民入口網站」篩選結果處理所呼叫的 所有規則集延伸。--> <Class name="AbstractScreeningResult" abstract="true"> <Initialization> <Attribute name="calculationDate"> <type> <javaclass name="curam.util.type.Date"/> </type> </Attribute> </Initialization> <!-- 此「篩選規則集」支援的計劃。--> <Attribute name="programs"> <type> <javaclass name="List"> <ruleclass name="AbstractProgram"/> </javaclass> </type> <derivation> <!-- AbstractScreeningResult 的子類別必須置換 此屬性,才能建立規則集所支援的 「計劃」清單。--> <abstract/> </derivation> </Attribute> </Class> <!-- 此類別必須由規則集中所支援的 所有計劃延伸。--> <Class name="AbstractProgram" abstract="true"> <!-- 將計劃識別成已配置在「公民 入口網站」管理應用程式。--> <Attribute name="programTypeReference"> <type> <javaclass name="String"/> </type> <derivation> <abstract/> </derivation> </Attribute> <!-- 索賠者是否符合此計劃的資格。--> <Attribute name="eligible"> <type> <javaclass name="Boolean"/> </type> <derivation> <abstract/> </derivation> </Attribute> <!-- 有關索賠者符合或不符合 此計劃資格原因的可本地化說明。可包含 HTML formatting/hyperlinks/etc。 --> <Attribute name="explanation"> <type> <javaclass name="curam.creole.value.Message"/> </type> <derivation> <abstract/> </derivation> </Attribute> </Class> </RuleSet>
篩選規則集必須包括一個可延伸以上概述之 AbstractScreeningResult 規則類別的類別。
此 AbstractTriageResult 規則類別用法可保證在規則執行期間,所需的屬性都可供使用。