Skip to content

Medicine Active checkbox and Other drug names

Compare
Choose a tag to compare
@RyanNerd RyanNerd released this 06 Aug 07:38
· 64 commits to master since this release
54eebb5

User Facing:

  • Edit/Add Medicine has two new fields. Active and OtherNames.
    • Uncheck Active for a medicine if you don't want it to appear in the dropdown. Previously as a work around the drug names were being updated with OLD MedicinceName.
    • The Other Names field is for other names that a drug may be known by. Anything in this field will appear in the dropdown detals

image

Internal Changes:

  • DrugDropdown.tsx changed for the drop down items to display OtherNames field if populated
  • MedicineDetail.tsx changed to disable the + Log Drug button if the medicine isn't Active
  • MedicineEdit.tsx Added Active checkbox and OtherNames textbox entry; also made all the labels unselectable
  • MedicinePage.tsx filters the medicineList based on if Active is true
  • RecordTypes.ts updated for the Active and OtherNames fields
  • Some dependencies updated mostly for types and the TypeScript version was bumped to 4.3.5 and removed the eject script so this never gets executed

Includes groundwork for Pill Box