Skip to content

Commit 50f7cc5

Browse files
committed
fixed the paitant panel where other info selected was not being diaplyed
1 parent beae306 commit 50f7cc5

File tree

2 files changed

+67
-4
lines changed

2 files changed

+67
-4
lines changed

frontend/src/pages/PatientManager/NewPatientForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ const NewPatientForm = ({
388388
<p className="text-sm leading-6 text-gray-600 ">
389389
Select patient characteristics
390390
</p>
391-
<fieldset className="justify-between mt-6 md:mt-0 md:grid md:grid-cols-3 md:gap-4 md:px-4 md:py-6">
391+
{/* <fieldset className="justify-between mt-6 md:mt-0 md:grid md:grid-cols-3 md:gap-4 md:px-4 md:py-6">
392392
<dt className="flex text-sm font-semibold leading-6 text-gray-900 ">
393393
Currently psychotic
394394
</dt>
@@ -428,7 +428,7 @@ const NewPatientForm = ({
428428
</label>
429429
</div>
430430
</dd>
431-
</fieldset>
431+
</fieldset> */}
432432
<fieldset className="justify-between mt-6 md:mt-0 md:grid md:grid-cols-3 md:gap-4 md:px-4 md:py-6">
433433
<dt className="flex text-sm font-semibold leading-6 text-gray-900">
434434
History of suicide attempt(s)

frontend/src/pages/PatientManager/PatientSummary.tsx

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,11 @@ const PatientSummary = ({
621621
role="list"
622622
className="border border-gray-200 divide-y divide-gray-100 rounded-md"
623623
>
624-
{patientInfo.Psychotic === "Yes" && (
624+
{/* {patientInfo.Psychotic === "Yes" && (
625625
<li className="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-4 border-b border-gray-900/10 hover:bg-indigo-100">
626626
Currently psychotic
627627
</li>
628-
)}
628+
)} */}
629629
{patientInfo.Suicide === "Yes" && (
630630
<li className="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-4 border-b border-gray-900/10 hover:bg-indigo-100">
631631
<Tooltip text="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.">
@@ -636,6 +636,69 @@ const PatientSummary = ({
636636
</Tooltip>
637637
</li>
638638
)}
639+
{patientInfo.Kidney === "Yes" && (
640+
<li className="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-4 border-b border-gray-900/10 hover:bg-indigo-100">
641+
<Tooltip text="Lithium can affect kidney function, so it will not be included in the suggested medication list for patients with a risk or history of kidney disease.">
642+
Patient has a history or risk of kidney
643+
disease
644+
<span className="ml-1 material-symbols-outlined">
645+
info
646+
</span>
647+
</Tooltip>
648+
</li>
649+
)}
650+
{patientInfo.Liver === "Yes" && (
651+
<li className="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-4 border-b border-gray-900/10 hover:bg-indigo-100">
652+
<Tooltip text="Depakote is processed through the liver, so it will not be included in the suggested medication list for patients with a risk or history of liver disease.">
653+
Patient has a history or risk of liver disease
654+
<span className="ml-1 material-symbols-outlined">
655+
info
656+
</span>
657+
</Tooltip>
658+
</li>
659+
)}
660+
{patientInfo.blood_pressure === "Yes" && (
661+
<li className="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-4 border-b border-gray-900/10 hover:bg-indigo-100">
662+
<Tooltip text="Second-generation antipsychotics can cause low blood pressure upon standing, putting the patient at risk of passing out and hitting their head, so they will not be included in suggested medication list for patients with a risk or history of low blood pressure.">
663+
Patient has a history or risk of low blood
664+
pressure, or concern for falls
665+
<span className="ml-1 material-symbols-outlined">
666+
info
667+
</span>
668+
</Tooltip>
669+
</li>
670+
)}
671+
{patientInfo.weight_gain === "Yes" && (
672+
<li className="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-4 border-b border-gray-900/10 hover:bg-indigo-100">
673+
<Tooltip text="Seroquel, Risperdal, Abilify, and Zyprexa are known for causing weight gain, so they will not be included in the suggested medications list for patients with concerns about weight gain.">
674+
PatienthHas weight gain concerns
675+
<span className="ml-1 material-symbols-outlined">
676+
info
677+
</span>
678+
</Tooltip>
679+
</li>
680+
)}
681+
682+
{patientInfo.risk_pregnancy === "Yes" && (
683+
<li className="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-4 border-b border-gray-900/10 hover:bg-indigo-100">
684+
<Tooltip text="Depakote is known for causing birth defects and will not be included in the suggested medications list for patients interested in becoming pregnant.">
685+
Patient wants to conceive in next 2 years
686+
<span className="ml-1 material-symbols-outlined">
687+
info
688+
</span>
689+
</Tooltip>
690+
</li>
691+
)}
692+
{patientInfo.any_pregnancy === "Yes" && (
693+
<li className="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-4 border-b border-gray-900/10 hover:bg-indigo-100">
694+
<Tooltip text="Depakote is known for causing birth defects and will not be included in the suggested medications list for patients interested in becoming pregnant.">
695+
Patient has a possibility of becoming pregnant
696+
<span className="ml-1 material-symbols-outlined">
697+
info
698+
</span>
699+
</Tooltip>
700+
</li>
701+
)}
639702
</ul>
640703
</dd>
641704
</div>

0 commit comments

Comments
 (0)