Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
@@ -96,6 +96,10 @@ public boolean evaluate(ConceptRelation relation) {
96 96 }
97 97 }
98 98
  99 + if (causativesDrugAllergy.size() == 0) {
  100 + return new ResponseEntity<String>(HttpStatus.NOT_FOUND);
  101 + }
  102 +
99 103 concept = conceptRepository.findOne(causativesDrugAllergy.get(0).getChild().getNodeId());
100 104
101 105 JsonObject response = new JsonObject();

0 comments on commit 561de98

Please sign in to comment.
Something went wrong with that request. Please try again.