Add Category: To add a new category, users can click on an "Add Category" button, which opens a modal or a form for entering the new category's information.
Edit Category: Users can edit categories by clicking on an edit button next to each category. This action opens a modal or a separate page where users can modify the category's details.
Delete Category: When deleting a category that is currently in use by stubs, a confirmation dialog or modal is displayed. This dialog lists the stubs that are using the category and provides links to each stub's edit page. From there, users can either manually edit the stubs or reassign them to another category.
2. Scheme Create and Edit Pages:
Display Categories and Stubs: Categories are displayed on the scheme create and edit pages, along with their associated stubs. This display can be organized into expandable sections or tabs for better navigation.
Report Generation Buttons: The scheme pages feature new buttons for report generation:
Button 1: "Generate Patient Report (HTML)"
--> Generates a patient report in HTML format using the description of the therapy stubs.
Button 2: "Generate Patient Report (PDF)"
--> Generates a patient report in PDF format using the description of the therapy stubs.
Button 3: "Generate Short Report (HTML)"
--> Generates a short report in HTML format using the excerpt of the therapy stubs.
Button 4: "Generate Combined Report (HTML)"
--> Generates a combined report in HTML format. This report first uses the description of the therapy stubs and then appends the report generated by Button 3 to the bottom of the page, effectively combining them.
1. Stubs Category Dashboard:
2. Scheme Create and Edit Pages: