Skip to content

Commit a34392d

Browse files
committed
sonar II
1 parent 60fbd2f commit a34392d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

backend/src/models/utils/validation_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ def convert_disease_codes_to_vaccine_type(
5454

5555
if not vaccine_type:
5656
raise ValueError(
57-
"Validation errors: protocolApplied[0].targetDisease[*].coding[?(@.system=='"
58-
Urls.snomed,
59-
f"')].code - {disease_codes_input} is not a valid combination of disease codes for this service"
57+
f"Validation errors: protocolApplied[0].targetDisease[*].coding[?(@.system=='{Urls.snomed}')].code - "
58+
f"{disease_codes_input} is not a valid combination of disease codes for this service"
6059
)
6160
return vaccine_type
6261

0 commit comments

Comments
 (0)