bcgov / MOH-PPPP-Enrolment

Apache License 2.0
1 stars 0 forks source link

Service clarification code, diagnostic code, specialty code #125

Closed stephanieharrison-maximus closed 3 years ago

stephanieharrison-maximus commented 3 years ago

Please check if the PR fulfills these requirements:

Please specify the type of change this PR introduces (Bug fix, feature addition, content update, chore, etc.):

--add new ValidateIf function to assist with validations --make changes to clarificationCodeValidator in helpers --change implementation of diagnosticCode validations. now checks if value is alphanumeric in all cases, and only runs diagnosticCodeValidator if route is not CSR. --change test implementation for clarificationCodeValidator given the structural changes made to it

Additional Notes:

The implementation of the clarificationCodeValidator is a little different from the diagnosticCodeValidator one, even though they both accomplish the same thing. Given the time constraints on the project as a whole, I'm not sure it'd be efficient to change the clarificationCode validations to match the diagnosticCode ones, but I can do so if the benefits in maintainability outweigh the time costs.