Slaiwala commited on
Commit
56691fc
·
verified ·
1 Parent(s): 9deb1ad

Update spine_coder/spine_coder_core.py

Browse files
Files changed (1) hide show
  1. spine_coder/spine_coder_core.py +5 -3
spine_coder/spine_coder_core.py CHANGED
@@ -410,13 +410,15 @@ def suggest_with_cpt_billing(note: str, payer: str = "Medicare", top_k: int = 10
410
  r"|"
411
  r"\bbilateral\b(?!\s*(pedicle|screw|screws|rod|rods|instrumentation|hardware))"
412
  )
 
413
  case_laterality = "na"
414
- if _has(t, bilateral_procedure_pat):
415
- case_laterality = "bilateral"
416
- elif _has(t, r"\bleft[- ]sided|\bleft\b"):
417
  case_laterality = "left"
418
  elif _has(t, r"\bright[- ]sided|\bright\b"):
419
  case_laterality = "right"
 
 
 
420
 
421
  return {
422
  "payer": payer,
 
410
  r"|"
411
  r"\bbilateral\b(?!\s*(pedicle|screw|screws|rod|rods|instrumentation|hardware))"
412
  )
413
+
414
  case_laterality = "na"
415
+ if _has(t, r"\bleft[- ]sided|\bleft\b"):
 
 
416
  case_laterality = "left"
417
  elif _has(t, r"\bright[- ]sided|\bright\b"):
418
  case_laterality = "right"
419
+ elif _has(t, bilateral_procedure_pat):
420
+ case_laterality = "bilateral"
421
+
422
 
423
  return {
424
  "payer": payer,