Skip to main content

presence_condition

Function presence_condition 

Source
pub fn presence_condition(message_type: &str) -> Option<u32>
Expand description

The number of a message type’s bare “Wenn vorhanden” condition, if it has one.

The condition is self-referential: its value is whether the element or group it annotates is present. Soll [166] on a group means “send it if you have it”, which only the sender knows, so an absent group annotated with it is never missing. The generated evaluators answer it with True (“the rule applies wherever it is evaluated”), which is right for a present element and wrong for an absent one — see AbsentTarget.

The numbers are stable across every format version in xml-migs-and-ahbs/ (FV2410–FV2610); keyed by ConditionEvaluator::message_type rather than by evaluator so aliased and regenerated evaluators need no edit.