Merge branch 'RED-7712' into 'master'

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

Closes RED-7712

See merge request redactmanager/redaction-service!192
This commit is contained in:
Andrei Isvoran 2023-11-03 08:42:48 +01:00
commit 5a4947372f
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