Overview Schemas Index

SURFACE_CONDITIONS_MIM (jsdai.SSurface_conditions_mim)


RULE restrict_treatment_result FOR (representation);
 LOCAL treatment_results : SET OF representation := [ ] ; END_LOCAL ; treatment_results := QUERY ( r <* representation | ( r . name = 'treatment result' ) ) ; 
WHERE
          wr1:  ( SIZEOF  ( QUERY  ( r <* treatment_results | ( SIZEOF  ( r . items ) > 2 ) ) ) = 0 ) AND ( SIZEOF  ( QUERY  ( r <* treatment_results | ( SIZEOF ( QUERY ( i <* r . items | NOT ( 'surface_conditions_mim.descriptive_representation_item' IN TYPEOF ( i ) ) ) ) > 0 ) ) ) = 0 ) ;
          wr2:  SIZEOF  ( QUERY  ( r <* treatment_results | ( SIZEOF ( QUERY ( i <* r . items | i . name = 'result' ) ) = 0 ) ) ) = 0 ;
          wr3:  SIZEOF  ( QUERY  ( r <* treatment_results | ( SIZEOF ( QUERY ( i <* r . items | i . name = 'purpose' ) ) > 1 ) ) ) = 0 ;
END_RULE; -- restrict_treatment_result

public class RRestrict_treatment_result
          public int rWr3(SdaiContext _context)
          public int rWr2(SdaiContext _context)
          public int rWr1(SdaiContext _context)
          public int run(SdaiContext _context, A_string violations)