Skip to content

Commit

Permalink
Lnk-1857 (#642)
Browse files Browse the repository at this point in the history
* Added 2 categories

* ST 2/1/24 added categorized un-categorized errors

---------

Co-authored-by: Shanai <shanai.thornton@lantanagroup.com>
Co-authored-by: Sean McIlvenna <seanmcilvenna@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 2, 2024
1 parent 2dc87a1 commit 43a4a76
Showing 1 changed file with 83 additions and 2 deletions.
85 changes: 83 additions & 2 deletions core/src/main/resources/validation-categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,13 @@
{
"field": "DETAILS_TEXT",
"regex": "^The value provided \\(.*\\) is not in the value set '.*' \\(.*\\), and a code is required from this value set"
},
{
"field": "DETAILS_TEXT",
"regex": "^The code provided \\(.+?\\) is not in the value set '.+?' \\(.+?\\), and a code from this value set is required"
}
],
"andOperator": true
"andOperator": false
}
]
},
Expand Down Expand Up @@ -483,9 +487,19 @@
"field": "DETAILS_TEXT",
"regex": "None of the codings provided are in the value set '.*' \\(.*\\), and a coding should come from this value set unless it has no suitable code \\(note that the validator cannot judge what is suitable\\)",
"inverse": false
},
{
"field": "DETAILS_TEXT",
"regex": "The value provided \\('(?:[A-Za-z]+|)'\\) is not in the value set 'USPS Two Letter Alphabetic Codes' \\(http:\\/\\/hl7\\.org\\/fhir\\/us\\/core\\/ValueSet\\/us-core-usps-state\\|(?:\\d+\\.\\d+\\.\\d+)?\\), and a code should come from this value set unless it has no suitable code \\(note that the validator cannot judge what is suitable\\)",
"inverse": false
},
{
"field": "DETAILS_TEXT",
"regex": "Could not confirm that the codes provided are in the value set \\'.*\\' \\(http\\:\\/\\/terminology\\.hl7\\.org\\/ValueSet\\/.*\\)\\, and a code should come from this value set unless it has no suitable code .*",
"inverse": false
}
],
"andOperator": true
"andOperator": false
}
]
},
Expand Down Expand Up @@ -531,5 +545,72 @@
"andOperator": false
}
]
},
{
"id": "Minimum_requirement_not_met_for_profile",
"title": "Minimum requirement not met for profile.",
"severity": "ERROR",
"acceptable": false,
"guidance": "Needs investigation, cardinality is not being met based on profile. Reference and review profile to meet profile requirements.",
"ruleSets": [
{
"rules": [
{
"field": "DETAILS_TEXT",
"regex": "minimum required = 1, but only found 0 \\(from http:\\/\\/www\\.cdc\\.gov\\/nhsn\\/fhirportal\\/dqm\\/ig\\/StructureDefinition\\/.+?\\)",
"inverse": false
}
],
"andOperator": false
}
]
},
{
"id": "Invalid_whitespace_(non-identifier)",
"title": "Invalid whitespace (non-identifier).",
"severity": "WARNING",
"acceptable": true,
"guidance": "Source systems SHOULD remove any leading or trailing whitespace in text elements before sending.",
"ruleSets": [
{
"rules": [
{
"field": "DETAILS_TEXT",
"regex": "Canonical URL '.*' does not resolve",
"inverse": false
},
{
"field": "DETAILS_TEXT",
"regex": "The Measure '.*' could not be resolved, so no validation can be performed against the Measure",
"inverse": false
}
],
"andOperator": false
}
]
},
{
"id": "Invalid_code_system",
"title": "Invalid code system.",
"severity": "ERROR",
"acceptable": true,
"guidance": "URI must be valid and the System should identify a valid coding system.",
"ruleSets": [
{
"rules": [
{
"field": "DETAILS_TEXT",
"regex": "Canonical URL '.*' does not resolve",
"inverse": false
},
{
"field": "DETAILS_TEXT",
"regex": "The Measure '.*' could not be resolved, so no validation can be performed against the Measure",
"inverse": false
}
],
"andOperator": false
}
]
}
]

0 comments on commit 43a4a76

Please sign in to comment.