Skip to content

Instantly share code, notes, and snippets.

@JonathanBowker
Created May 22, 2020 08:46
Show Gist options
  • Save JonathanBowker/7ce363f868db033755d5dc73b6d30bca to your computer and use it in GitHub Desktop.
Save JonathanBowker/7ce363f868db033755d5dc73b6d30bca to your computer and use it in GitHub Desktop.
{
"dds_config": [
{
"info_type": {
"value": "Patients MRN 444-5-22222"
},
"regex": {
"pattern": "[1-9]{3}-[1-9]{1}-[1-9]{5}"
},
"confidence": "POSSIBLE",
"rules": [
{
"inclusion_rule": {
"regex": {
"pattern": "MRN"
},
"proximity": 10
}
},
{
"inclusion_rule": {
"regex": {
"pattern": "patient"
},
"proximity": 10
}
},
{
"inclusion_rule": {
"word_list": {
"words": [
"example@example.com"
]
},
"proximity": 50
"matching_type": "FULL",
"confidence_adjustment": 85
}
},
{
"inclusion_rule": {
"dictionary": {
"storage_path": {
"path": "s3://[PATH_TO_TXT_FILE]"
}
},
"matching_type": "FULL",
"confidence_adjustment": 80
}
},
{
"exclusion_rule": {
"dictionary": {
"storage_path": {
"path": "s3://[PATH_TO_TXT_FILE]"
}
},
"matching_type": "FULL"
}
},
{
"exclusion_rule": {
"dictionary": {
"wordList": {
"words": [
"TEST"
]
}
},
"matching_type": "PARTIAL"
}
},
{
"exclusion_rule": {
"dictionary": {
"word_list": {
"words": [
"example@example.com",
"example@example.com"
]
}
},
"matching_type": "FULL"
}
}
]
}
],
"achieved_confidence": "VERY_LIKELY"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment