@Handler(supports=Diagnosis.class, order=50) public class DiagnosisValidator extends Object implements org.springframework.validation.Validator
Validator
objects
This class ensures that the condition object is valid and properly structuredConstructor and Description |
---|
DiagnosisValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
supports(Class<?> aClass)
Should support Diagnosis class
|
void |
validate(Object o,
org.springframework.validation.Errors errors) |
public boolean supports(Class<?> aClass)
supports
in interface org.springframework.validation.Validator
public void validate(Object o, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
Should fail validation if rank is null or a non-positive integer
Should fail validation if certainty is null
Should fail validation if diagnosis is null
Should fail validation if encounter is null
Copyright © 2024 OpenMRS Inc.. All rights reserved.