Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rules display for Admin and AI #159

Open
taichan03 opened this issue Jul 30, 2024 · 1 comment
Open

Rules display for Admin and AI #159

taichan03 opened this issue Jul 30, 2024 · 1 comment
Assignees

Comments

@taichan03
Copy link
Collaborator

taichan03 commented Jul 30, 2024

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 taichan03 moved this to To do in Balancer Jul 30, 2024
@taichan03 taichan03 self-assigned this Jul 30, 2024
@taichan03
Copy link
Collaborator Author

taichan03 commented Aug 11, 2024

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”
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants