File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
frontend/src/pages/PatientManager
server/api/views/listMeds Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,5 @@ SQL_HOST=db
99SQL_PORT=5432
1010DATABASE=postgres
1111LOGIN_REDIRECT_URL=
12+ OPENAI_API_KEY=
13+ PINECONE_API_KEY=
Original file line number Diff line number Diff line change @@ -298,11 +298,11 @@ const NewPatientForm = ({
298298 className = { isLoading ? " url_input_loading" : "dropdown" }
299299 >
300300 < option value = "Null" > </ option >
301- < option value = "mania " > Manic </ option >
302- < option value = "depression " > Depressed</ option >
303- < option value = "hypomania " > Hypomanic</ option >
304- < option value = "euthymic " > Euthymic</ option >
305- < option value = "Mixed" > Mixed</ option >
301+ < option value = "Manic " > Manic </ option >
302+ < option value = "Depressed " > Depressed</ option >
303+ < option value = "Hypomanic " > Hypomanic</ option >
304+ < option value = "Euthymic " > Euthymic</ option >
305+ { /* <option value="Mixed">Mixed</option> */ }
306306 </ select >
307307 </ div >
308308 { /* {errorMessage && (
Original file line number Diff line number Diff line change 88def get_medication (request ):
99 if request .method == 'POST' :
1010 data = json .loads (request .body )
11- state_query = data .get ('state' )
11+ state_query = data .get ('state' , '' ). lower ( )
1212 print ("Debug: state_query =" , state_query )
1313
1414 if state_query not in [choice [0 ] for choice in StateMedication .STATE_CHOICES ]:
You can’t perform that action at this time.
0 commit comments