RED-7712 - Published information does not always trigger the skip mechanism

This commit is contained in:
Andrei Isvoran 2023-11-03 08:42:48 +01:00
parent 67cf5659d4
commit 7eb0abf4da
5 changed files with 10 additions and 10 deletions

View File

@ -149,8 +149,8 @@ rule "CBI.7.1: Do not redact Names and Addresses if published information found
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
$tableCell: TableCell() from $table.streamTableCells().toList()
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
TextEntity(type == "published_information") from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
TextEntity(type == "published_information", active()) from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author", active()) from $tableCell.getEntities()
then
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
end

View File

@ -332,8 +332,8 @@ rule "CBI.7.1: Do not redact Names and Addresses if published information found
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
$tableCell: TableCell() from $table.streamTableCells().toList()
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
TextEntity(type == "published_information") from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
TextEntity(type == "published_information", active()) from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author", active()) from $tableCell.getEntities()
then
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
end

View File

@ -145,8 +145,8 @@ rule "CBI.7.1: Do not redact Names and Addresses if published information found
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
$tableCell: TableCell() from $table.streamTableCells().toList()
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
TextEntity(type == "published_information") from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
TextEntity(type == "published_information", active()) from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author", active()) from $tableCell.getEntities()
then
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
end

View File

@ -332,8 +332,8 @@ rule "CBI.7.1: Do not redact Names and Addresses if published information found
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
$tableCell: TableCell() from $table.streamTableCells().toList()
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
TextEntity(type == "published_information") from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
TextEntity(type == "published_information", active()) from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author", active()) from $tableCell.getEntities()
then
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
end

View File

@ -332,8 +332,8 @@ rule "CBI.7.1: Do not redact Names and Addresses if published information found
$table: Table(hasEntitiesOfType("published_information"), hasEntitiesOfType("CBI_author"))
$tableCell: TableCell() from $table.streamTableCells().toList()
$sameRowCell: TableCell(row == $tableCell.row) from $table.streamTableCells().toList()
TextEntity(type == "published_information") from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author") from $tableCell.getEntities()
TextEntity(type == "published_information", active()) from $tableCell.getEntities()
$author: TextEntity(type == "CBI_author", active()) from $tableCell.getEntities()
then
$author.skipWithReferences("CBI.7.1", "Published Information found in row", $table.getEntitiesOfTypeInSameRow("published_information", $author));
end