Skip to content

Commit

Permalink
Fix SNOMED lookup for invalid BMI
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed Feb 21, 2025
1 parent 8e874f0 commit 873f860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/camcops_server/tasks/bmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def get_snomed_codes(self, req: CamcopsRequest) -> List[SnomedExpression]:
expressions = [] # type: List[SnomedExpression]
procedure_bmi = req.snomed(SnomedLookup.BMI_PROCEDURE_MEASUREMENT)
unit = req.snomed(SnomedLookup.UNIT_OF_MEASURE)
if self.is_complete():
if self.is_complete() and self.bmi() is not None:
kg = req.snomed(SnomedLookup.KILOGRAM)
m = req.snomed(SnomedLookup.METRE)
kg_per_sq_m = req.snomed(SnomedLookup.KG_PER_SQ_M)
Expand Down

0 comments on commit 873f860

Please sign in to comment.