Skip to content

Commit

Permalink
BS-288| Deploy commit
Browse files Browse the repository at this point in the history
  • Loading branch information
manimaarans committed Nov 8, 2023
1 parent da50010 commit f2e2740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ private void aggregateMedicationsBySubstance(Map<String, AggregatedMedicationsBy
try {
prescribedDailyDoseInUnitOfSubstanceStrength = getPrescribedDailyDoseInUnitOfSubstanceStrength(prescribedDailyDose, strengthValue, strengthUnit, denominatorValue, denominatorUnit);
} catch (Exception e) {
throw new ResponseStatusException(HttpStatus.PRECONDITION_FAILED, String.format("Mismatched Strength units for the medicine %s", snomedMedicationLabel), null);
throw new ResponseStatusException(HttpStatus.PRECONDITION_FAILED, String.format("Mismatched Dose units for the medicine %s", snomedMedicationLabel), null);
}
PrescribedDailyDose prescribedDailyDoseInUnitOfDDD;
try {
prescribedDailyDoseInUnitOfDDD = getPrescribedDailyDoseInUnitOfDDD(prescribedDailyDoseInUnitOfSubstanceStrength.getQuantity(), prescribedDailyDoseInUnitOfSubstanceStrength.getUnit(), substanceDefinedDailyDose.unit());
} catch (Exception e) {
throw new ResponseStatusException(HttpStatus.PRECONDITION_FAILED, String.format("Mismatched Dose units for the medicine %s", snomedMedicationLabel), null);
throw new ResponseStatusException(HttpStatus.PRECONDITION_FAILED, String.format("Mismatched Dose units for the medicine %s", snomedMedicationLabel), null);
}
AggregatedMedicationsBySubstance aggregatedMedicationsBySubstance = aggregatedMedicationsBySubstanceMap.get(substance);
if (aggregatedMedicationsBySubstance == null) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ card-summary-template-content=The amount of %s prescribed is %s times the averag
# who atc url template
who.atc.url-template=https://www.whocc.no/atc_ddd_index/?code={0}

# property to include error message as part of the response
server.error.include-message=always

0 comments on commit f2e2740

Please sign in to comment.