Merge branch 'RED-8840-bp' into 'release/4.244.x'
RED-8840 - Add PII.4 rules for sanitisation with correct legal basis See merge request redactmanager/redaction-service!336
This commit is contained in:
commit
3deb002eb7
@ -636,6 +636,62 @@ rule "PII.4.1: Redact line after contact information keywords"
|
|||||||
.forEach(contactEntity -> contactEntity.redact("PII.4.1", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 4(1)(b), Regulation (EC) No 1049/2001 (Personal data)"));
|
.forEach(contactEntity -> contactEntity.redact("PII.4.1", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 4(1)(b), Regulation (EC) No 1049/2001 (Personal data)"));
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rule "PII.4.2: Redact line after contact information keywords (Non vertebrate study)"
|
||||||
|
when
|
||||||
|
not FileAttribute(label == "Vertebrate Study", value soundslike "Yes" || value.toLowerCase() == "y")
|
||||||
|
$contactKeyword: String() from List.of("Contact point:",
|
||||||
|
"Contact:",
|
||||||
|
"Alternative contact:",
|
||||||
|
"European contact:",
|
||||||
|
"No:",
|
||||||
|
"Contact:",
|
||||||
|
"Tel.:",
|
||||||
|
"Tel:",
|
||||||
|
"Telephone number:",
|
||||||
|
"Telephone No:",
|
||||||
|
"Telephone:",
|
||||||
|
"Phone No.",
|
||||||
|
"Phone:",
|
||||||
|
"Fax number:",
|
||||||
|
"Fax:",
|
||||||
|
"E-mail:",
|
||||||
|
"Email:",
|
||||||
|
"e-mail:",
|
||||||
|
"E-mail address:")
|
||||||
|
$section: Section(containsString($contactKeyword))
|
||||||
|
then
|
||||||
|
entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section)
|
||||||
|
.forEach(contactEntity -> contactEntity.redact("PII.4.2", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 39(e)(3) of Regulation (EC) No 178/2002"));
|
||||||
|
end
|
||||||
|
|
||||||
|
rule "PII.4.3: Redact line after contact information keywords (Vertebrate study)"
|
||||||
|
when
|
||||||
|
FileAttribute(label == "Vertebrate Study", value soundslike "Yes" || value.toLowerCase() == "y")
|
||||||
|
$contactKeyword: String() from List.of("Contact point:",
|
||||||
|
"Contact:",
|
||||||
|
"Alternative contact:",
|
||||||
|
"European contact:",
|
||||||
|
"No:",
|
||||||
|
"Contact:",
|
||||||
|
"Tel.:",
|
||||||
|
"Tel:",
|
||||||
|
"Telephone number:",
|
||||||
|
"Telephone No:",
|
||||||
|
"Telephone:",
|
||||||
|
"Phone No.",
|
||||||
|
"Phone:",
|
||||||
|
"Fax number:",
|
||||||
|
"Fax:",
|
||||||
|
"E-mail:",
|
||||||
|
"Email:",
|
||||||
|
"e-mail:",
|
||||||
|
"E-mail address:")
|
||||||
|
$section: Section(containsString($contactKeyword))
|
||||||
|
then
|
||||||
|
entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section)
|
||||||
|
.forEach(contactEntity -> contactEntity.redact("PII.4.3", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 39(e)(2) of Regulation (EC) No 178/2002"));
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
// Rule unit: PII.5
|
// Rule unit: PII.5
|
||||||
rule "PII.5.0: Redact line after contact information keywords reduced"
|
rule "PII.5.0: Redact line after contact information keywords reduced"
|
||||||
|
|||||||
@ -1091,6 +1091,62 @@ rule "PII.4.1: Redact line after contact information keywords"
|
|||||||
.forEach(contactEntity -> contactEntity.redact("PII.4.1", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 4(1)(b), Regulation (EC) No 1049/2001 (Personal data)"));
|
.forEach(contactEntity -> contactEntity.redact("PII.4.1", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 4(1)(b), Regulation (EC) No 1049/2001 (Personal data)"));
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rule "PII.4.2: Redact line after contact information keywords (Non vertebrate study)"
|
||||||
|
when
|
||||||
|
not FileAttribute(label == "Vertebrate Study", value soundslike "Yes" || value.toLowerCase() == "y")
|
||||||
|
$contactKeyword: String() from List.of("Contact point:",
|
||||||
|
"Contact:",
|
||||||
|
"Alternative contact:",
|
||||||
|
"European contact:",
|
||||||
|
"No:",
|
||||||
|
"Contact:",
|
||||||
|
"Tel.:",
|
||||||
|
"Tel:",
|
||||||
|
"Telephone number:",
|
||||||
|
"Telephone No:",
|
||||||
|
"Telephone:",
|
||||||
|
"Phone No.",
|
||||||
|
"Phone:",
|
||||||
|
"Fax number:",
|
||||||
|
"Fax:",
|
||||||
|
"E-mail:",
|
||||||
|
"Email:",
|
||||||
|
"e-mail:",
|
||||||
|
"E-mail address:")
|
||||||
|
$section: Section(containsString($contactKeyword))
|
||||||
|
then
|
||||||
|
entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section)
|
||||||
|
.forEach(contactEntity -> contactEntity.redact("PII.4.2", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 39(e)(3) of Regulation (EC) No 178/2002"));
|
||||||
|
end
|
||||||
|
|
||||||
|
rule "PII.4.3: Redact line after contact information keywords (Vertebrate study)"
|
||||||
|
when
|
||||||
|
FileAttribute(label == "Vertebrate Study", value soundslike "Yes" || value.toLowerCase() == "y")
|
||||||
|
$contactKeyword: String() from List.of("Contact point:",
|
||||||
|
"Contact:",
|
||||||
|
"Alternative contact:",
|
||||||
|
"European contact:",
|
||||||
|
"No:",
|
||||||
|
"Contact:",
|
||||||
|
"Tel.:",
|
||||||
|
"Tel:",
|
||||||
|
"Telephone number:",
|
||||||
|
"Telephone No:",
|
||||||
|
"Telephone:",
|
||||||
|
"Phone No.",
|
||||||
|
"Phone:",
|
||||||
|
"Fax number:",
|
||||||
|
"Fax:",
|
||||||
|
"E-mail:",
|
||||||
|
"Email:",
|
||||||
|
"e-mail:",
|
||||||
|
"E-mail address:")
|
||||||
|
$section: Section(containsString($contactKeyword))
|
||||||
|
then
|
||||||
|
entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section)
|
||||||
|
.forEach(contactEntity -> contactEntity.redact("PII.4.3", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 39(e)(2) of Regulation (EC) No 178/2002"));
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
// Rule unit: PII.5
|
// Rule unit: PII.5
|
||||||
rule "PII.5.0: Redact line after contact information keywords reduced"
|
rule "PII.5.0: Redact line after contact information keywords reduced"
|
||||||
|
|||||||
@ -722,6 +722,62 @@ rule "PII.4.1: Redact line after contact information keywords"
|
|||||||
.forEach(contactEntity -> contactEntity.redact("PII.4.1", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 4(1)(b), Regulation (EC) No 1049/2001 (Personal data)"));
|
.forEach(contactEntity -> contactEntity.redact("PII.4.1", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 4(1)(b), Regulation (EC) No 1049/2001 (Personal data)"));
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rule "PII.4.2: Redact line after contact information keywords (Non vertebrate study)"
|
||||||
|
when
|
||||||
|
not FileAttribute(label == "Vertebrate Study", value soundslike "Yes" || value.toLowerCase() == "y")
|
||||||
|
$contactKeyword: String() from List.of("Contact point:",
|
||||||
|
"Contact:",
|
||||||
|
"Alternative contact:",
|
||||||
|
"European contact:",
|
||||||
|
"No:",
|
||||||
|
"Contact:",
|
||||||
|
"Tel.:",
|
||||||
|
"Tel:",
|
||||||
|
"Telephone number:",
|
||||||
|
"Telephone No:",
|
||||||
|
"Telephone:",
|
||||||
|
"Phone No.",
|
||||||
|
"Phone:",
|
||||||
|
"Fax number:",
|
||||||
|
"Fax:",
|
||||||
|
"E-mail:",
|
||||||
|
"Email:",
|
||||||
|
"e-mail:",
|
||||||
|
"E-mail address:")
|
||||||
|
$section: Section(containsString($contactKeyword))
|
||||||
|
then
|
||||||
|
entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section)
|
||||||
|
.forEach(contactEntity -> contactEntity.redact("PII.4.2", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 39(e)(3) of Regulation (EC) No 178/2002"));
|
||||||
|
end
|
||||||
|
|
||||||
|
rule "PII.4.3: Redact line after contact information keywords (Vertebrate study)"
|
||||||
|
when
|
||||||
|
FileAttribute(label == "Vertebrate Study", value soundslike "Yes" || value.toLowerCase() == "y")
|
||||||
|
$contactKeyword: String() from List.of("Contact point:",
|
||||||
|
"Contact:",
|
||||||
|
"Alternative contact:",
|
||||||
|
"European contact:",
|
||||||
|
"No:",
|
||||||
|
"Contact:",
|
||||||
|
"Tel.:",
|
||||||
|
"Tel:",
|
||||||
|
"Telephone number:",
|
||||||
|
"Telephone No:",
|
||||||
|
"Telephone:",
|
||||||
|
"Phone No.",
|
||||||
|
"Phone:",
|
||||||
|
"Fax number:",
|
||||||
|
"Fax:",
|
||||||
|
"E-mail:",
|
||||||
|
"Email:",
|
||||||
|
"e-mail:",
|
||||||
|
"E-mail address:")
|
||||||
|
$section: Section(containsString($contactKeyword))
|
||||||
|
then
|
||||||
|
entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section)
|
||||||
|
.forEach(contactEntity -> contactEntity.redact("PII.4.3", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 39(e)(2) of Regulation (EC) No 178/2002"));
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
// Rule unit: PII.6
|
// Rule unit: PII.6
|
||||||
rule "PII.6.0: Redact line between contact keywords"
|
rule "PII.6.0: Redact line between contact keywords"
|
||||||
|
|||||||
@ -1091,6 +1091,62 @@ rule "PII.4.1: Redact line after contact information keywords"
|
|||||||
.forEach(contactEntity -> contactEntity.redact("PII.4.1", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 4(1)(b), Regulation (EC) No 1049/2001 (Personal data)"));
|
.forEach(contactEntity -> contactEntity.redact("PII.4.1", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 4(1)(b), Regulation (EC) No 1049/2001 (Personal data)"));
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rule "PII.4.2: Redact line after contact information keywords (Non vertebrate study)"
|
||||||
|
when
|
||||||
|
not FileAttribute(label == "Vertebrate Study", value soundslike "Yes" || value.toLowerCase() == "y")
|
||||||
|
$contactKeyword: String() from List.of("Contact point:",
|
||||||
|
"Contact:",
|
||||||
|
"Alternative contact:",
|
||||||
|
"European contact:",
|
||||||
|
"No:",
|
||||||
|
"Contact:",
|
||||||
|
"Tel.:",
|
||||||
|
"Tel:",
|
||||||
|
"Telephone number:",
|
||||||
|
"Telephone No:",
|
||||||
|
"Telephone:",
|
||||||
|
"Phone No.",
|
||||||
|
"Phone:",
|
||||||
|
"Fax number:",
|
||||||
|
"Fax:",
|
||||||
|
"E-mail:",
|
||||||
|
"Email:",
|
||||||
|
"e-mail:",
|
||||||
|
"E-mail address:")
|
||||||
|
$section: Section(containsString($contactKeyword))
|
||||||
|
then
|
||||||
|
entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section)
|
||||||
|
.forEach(contactEntity -> contactEntity.redact("PII.4.2", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 39(e)(3) of Regulation (EC) No 178/2002"));
|
||||||
|
end
|
||||||
|
|
||||||
|
rule "PII.4.3: Redact line after contact information keywords (Vertebrate study)"
|
||||||
|
when
|
||||||
|
FileAttribute(label == "Vertebrate Study", value soundslike "Yes" || value.toLowerCase() == "y")
|
||||||
|
$contactKeyword: String() from List.of("Contact point:",
|
||||||
|
"Contact:",
|
||||||
|
"Alternative contact:",
|
||||||
|
"European contact:",
|
||||||
|
"No:",
|
||||||
|
"Contact:",
|
||||||
|
"Tel.:",
|
||||||
|
"Tel:",
|
||||||
|
"Telephone number:",
|
||||||
|
"Telephone No:",
|
||||||
|
"Telephone:",
|
||||||
|
"Phone No.",
|
||||||
|
"Phone:",
|
||||||
|
"Fax number:",
|
||||||
|
"Fax:",
|
||||||
|
"E-mail:",
|
||||||
|
"Email:",
|
||||||
|
"e-mail:",
|
||||||
|
"E-mail address:")
|
||||||
|
$section: Section(containsString($contactKeyword))
|
||||||
|
then
|
||||||
|
entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section)
|
||||||
|
.forEach(contactEntity -> contactEntity.redact("PII.4.3", "Found after \"" + $contactKeyword + "\" contact keyword", "Article 39(e)(2) of Regulation (EC) No 178/2002"));
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
// Rule unit: PII.5
|
// Rule unit: PII.5
|
||||||
rule "PII.5.0: Redact line after contact information keywords reduced"
|
rule "PII.5.0: Redact line after contact information keywords reduced"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user