Skip to content

Commit 511499b

Browse files
committed
unit test
1 parent 3670d39 commit 511499b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

backend/tests/test_immunization_pre_validator.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,14 @@ def test_pre_validate_vaccine_code(self):
14041404
actual_error_messages,
14051405
)
14061406

1407+
def test_pre_validate_vaccination_procedure_display(self):
1408+
"""Test test_pre_validate_vaccination_procedure_display accepts valid values and rejects invalid values"""
1409+
ValidatorModelTests.test_string_value(
1410+
self,
1411+
field_location="extension[?(@.url=='https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-VaccinationProcedure')].valueCodeableConcept.coding[?(@.system=='http://snomed.info/sct')].display",
1412+
valid_strings_to_test=["DUMMY"],
1413+
)
1414+
14071415

14081416
class TestImmunizationModelPreValidationRulesForReduceValidation(unittest.TestCase):
14091417
"""Test immunization pre validation rules on the FHIR model using the status="reduce validation" data"""

0 commit comments

Comments
 (0)