Skip to content

Commit a3bf42c

Browse files
committed
Updates for patient form
1 parent 9a88099 commit a3bf42c

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

config/env/env.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ SQL_HOST=db
99
SQL_PORT=5432
1010
DATABASE=postgres
1111
LOGIN_REDIRECT_URL=
12+
OPENAI_API_KEY=
13+
PINECONE_API_KEY=

frontend/src/pages/PatientManager/NewPatientForm.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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 && (

server/api/views/listMeds/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def 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]:

0 commit comments

Comments
 (0)