CodeForPhilly / balancer-main

CodeForPhilly balancer project (https://opencollective.com/code-for-philly/projects/balancer)
GNU Affero General Public License v3.0
11 stars 8 forks source link

Rules display for Admin and AI #159

Open taichan03 opened 1 month ago

taichan03 commented 1 month ago

The overall goal is to let the AI look inside and see what rules control the form to make informed decisions.

1) Looking the code base and finding the rules 2) Create table to store the rules 3) Display it in the admin portal.

taichan03 commented 1 month ago

Create a GET Endpoint: Implement a GET endpoint to retrieve a list of medications based on specific rules. Database Schema:

Rules Table: Contains the following columns: id: Primary key Display_question: “History of suicide attempt(s)” Tool_tip: “Lithium is the only medication on the market that has been proven to reduce suicidality in patients with bipolar disorder, so it will be shown at the top of the suggested medications list.” Inclusion_exclusion: Indicates whether the rule is to 'MEDS_INCLUDE' or 'MED_EXCLUDE' medications

This setup ensures that the GET endpoint efficiently returns the medication list based on the rules defined in your database. { “id” : 1, “display_question”: “History of suicide attempt(s)”, “tool_tip”: “Lithium is the only medication on the market that has been proven to reduce suicidality in patients with bipolar disorder, so it will be shown at the top of the suggested medications list.”, “Inclusion_exclusion”: “MEDS_INCLUDE” }