Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRUNK-4279: Add DrugValidator and validate drugReferenceMaps from it #775

Closed
wants to merge 1 commit into from

Conversation

kkaczmarczyk
Copy link
Contributor

No description provided.

ConceptMapType mapType = referenceMap.getConceptMapType();

if (mappedDrug == null) {
errors.rejectValue("drugReferenceMaps[" + index + "].drug", "Drug.drugReferenceMap.mappedDrug");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just use rejectIfEmpty without checking for null, i will fix it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is fine since you want to bind it to the mapping at a specific index

@wluyima
Copy link
Member

wluyima commented Mar 14, 2014

I will fix the review comments and merge the code

@wluyima wluyima closed this Mar 14, 2014
@wluyima wluyima reopened this Mar 14, 2014
@wluyima
Copy link
Member

wluyima commented Mar 14, 2014

Merged at 439377c

@wluyima wluyima closed this Mar 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants