intesys / medimemo-uni2grow-2024

React course
0 stars 15 forks source link

Implement Manage therapy - add / edit [GROUP 1] #7

Open almeida1492 opened 1 month ago

almeida1492 commented 1 month ago

https://www.figma.com/design/u3QbbGOEuDUcnEZSngo9EG/Oh---MediMemo-UI?node-id=34-51&t=u43PhigeIpmrmstf-4

Populate “select medicine” by calling GET /medicines.

When you select a medicine, form changes to:

https://www.figma.com/design/u3QbbGOEuDUcnEZSngo9EG/Oh---MediMemo-UI?node-id=339-650&t=u43PhigeIpmrmstf-4

If user selects other medicines, the “medicine” box duplicates for each selection. Also “doctor” and “notes” fields are now shown.

Implement “save” action by calling POST /therapies

When clicking on button “add program”, before navigating to “add prescition“ page, if therapy hasn’t been saved (=doesn’t have and id) you must save current therapy (POST /therapies).

When editing, change the first label to “edit therapy“ (instead of “add…”)

gitsupermel commented 3 weeks ago

The specifications : ( 1'''''''''''''Populate “select medicine” by calling GET /medicines.''''''''''''''''''' 2''''''''''''''''''''''''When you select a medicine, form changes to:

https://www.figma.com/design/u3QbbGOEuDUcnEZSngo9EG/Oh---MediMemo-UI?node-id=339-650&t=u43PhigeIpmrmstf-4''''''''

3"""If user selects other medicines, the “medicine” box duplicates for each selection. Also “doctor” and “notes” fields are now shown."""

) are already done in pull request #51