Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't return 500 on no found causativeAgents

  • Loading branch information...
commit 561de985339b360989a61617a54c8318130fe5b9 1 parent 68a5d75
Martin Westergaard Lassen mwl authored
4 sc-web/src/main/java/dk/sst/snomedcave/controllers/DrugController.java
View
@@ -96,6 +96,10 @@ public boolean evaluate(ConceptRelation relation) {
}
}
+ if (causativesDrugAllergy.size() == 0) {
+ return new ResponseEntity<String>(HttpStatus.NOT_FOUND);
+ }
+
concept = conceptRepository.findOne(causativesDrugAllergy.get(0).getChild().getNodeId());
JsonObject response = new JsonObject();
Please sign in to comment.
Something went wrong with that request. Please try again.