Updates logging to include how the contention is classified #3925
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What was the problem?
During the classification process, a claim for increase can either be classified using the diagnostic code or the contention text. Our logging only included if the contention was classified, but not how the contention was classified. This is important for us to know to be able to track diagnostic codes that we do not have mapped that we are able to classify via contention text. It can also help us add new Diagnostic Codes that are being sent to the service to help cover more increase contentions.
The example of the new logging is below:
{
"vagov_claim_id": 100,
"claim_type": "claim_for_increase",
"classification_code": null,
"classification_name": null
"contention_text": "unmapped contention text",
"diagnostic_code": 1234,
"is_in_dropdown": false,
"is_lookup_table_match": true,
"is_multi_contention": true,
"endpoint": "/expanded-contention-classification",
"classification_method": "unmapped_contention",
"processed_contention_text": null,
"date": "2025-01-02 10:09:02",
"level": "info"
}
Associated tickets or Slack threads:
How does this fix it?1
How to test this PR
Footnotes
Pull-Requests guidelines. If PR is significant, update Current Software State wiki page. ↩