zdavatz / smart-order

Smart Order REST API
GNU General Public License v3.0
3 stars 2 forks source link

Improve Regex for Multi Preparation comparison #134

Closed zdavatz closed 8 months ago

zdavatz commented 8 months ago
  1. Some names have no distance between the value and mg
  2. 100/800mg versus 100/800 mg
  3. CO-CANDESARTAN Spirig HC Tabl 16/12.5mg 98 Stk vs CO-CANDESARTAN Sandoz Tabl 16/12.5 mg 28 Stk
  4. Note: the space before the mg
  5. If there is a space before the mg the Regex works, otherwise it will only show alternatives with no mg at all.
  6. CANSARTAN Mepha plus Tabl 16/12.5 28 Stk
  7. So we have to look at the combination 'number mg' without spacing: "800mg"
zdavatz commented 8 months ago

Das Problem sind die Namen, welche kein „mg“ enthalten: 16/12.5 98 Stk -> 16/12.5 mg 98 Stk und dort wo vor dem „mg“ kein Abstand ist. 16/12.5mg 98 Stk -> 16/12.5 mg 98 Stk