From 6cfc9631303f0e65fc48900cc5e23a20c4df4843 Mon Sep 17 00:00:00 2001 From: sonika <> Date: Tue, 22 Aug 2023 13:26:25 +0530 Subject: [PATCH] Injury details and design changes --- src/App.css | 1 + .../PatientForm/MedicalHistorySection3.tsx | 2 +- .../PatientForm/PainAnalysisSection4.tsx | 212 ++++++++++++++++-- 3 files changed, 198 insertions(+), 17 deletions(-) diff --git a/src/App.css b/src/App.css index 8328efb..8685c1a 100644 --- a/src/App.css +++ b/src/App.css @@ -7,6 +7,7 @@ .collapsable-form-style .MuiInputBase-root { width: 300px !important; margin: 5%; + height: 50px } .collapsable-form-style label { diff --git a/src/Components/PatientForm/MedicalHistorySection3.tsx b/src/Components/PatientForm/MedicalHistorySection3.tsx index 9d360a9..367e42a 100644 --- a/src/Components/PatientForm/MedicalHistorySection3.tsx +++ b/src/Components/PatientForm/MedicalHistorySection3.tsx @@ -164,7 +164,7 @@ export default function MedicalHistoryForm(){ - + Who can we thank for referring you to our office: ({ initialValues:{ + chiefComplaint:'', painQuality:[], painDuration:'', currentTreatment:'', - treatmentResults:'' + treatmentResults:'', + treatmentGoal:'', }, validationSchema, onSubmit:(values)=>{ @@ -41,26 +47,44 @@ export default function PainAnalysisSection4(){ return( <>
+ + Issue Details: + - + + + + + - Pain Quality - + What makes your pain worse? + } - label="Sharp" + label="Bending" /> } - label="Dull" + label="Standing" /> } - label="Burning" + label="Sitting" /> } - label="Aching" + label="Walking" + /> + } + label="Others" /> {formik.touched.painQuality && formik.errors.painQuality ? ( @@ -68,25 +92,181 @@ export default function PainAnalysisSection4(){ ) : null} - + + - Pain Duration + What makes your pain better? + + } + label="laying down" + /> + } + label="Standing" + /> + } + label="Sitting" + /> + } + label="Walking" + /> + } + label="Others" + /> + + {formik.touched.painQuality && formik.errors.painQuality ? ( +
{formik.errors.painQuality}
+ ) : null} +
+
+ + + + What is the quality of your pain? + + } + label="Sharp" + /> + } + label="Dull/Ache" + /> + } + label="Throbbing" + /> + } + label="Tingling/Numbness/Burning" + /> + } + label="Others" + /> + + {formik.touched.painQuality && formik.errors.painQuality ? ( +
{formik.errors.painQuality}
+ ) : null} +
+
+ + + + What is the worst time for your pain? + + } + label="Morning" + /> + } + label="During day" + /> + } + label="Evening" + /> + } + label="Lying in bed" + /> + } + label="Others" + /> + + {formik.touched.painQuality && formik.errors.painQuality ? ( +
{formik.errors.painQuality}
+ ) : null} +
+
+ + + + How much of the day do you experience your chief complaint? - } label="<1 week" /> - } label="1-4 weeks" /> - } label="1-6 months" /> - } label=">6 months" /> + } label="0-25%" /> + } label="25-50%" /> + } label="50-75%" /> + } label="75-100%" /> {formik.touched.painDuration && formik.errors.painDuration ? (
{formik.errors.painDuration}
) : null}
- + + + + Has your current complaint caused any of the following? + + } + label="Muscle weakness" + /> + } + label="Bowel/Bladder problem" + /> + } + label="Digestion" + /> + } + label="Cardiac/Respiratory" + /> + + + {formik.touched.painQuality && formik.errors.painQuality ? ( +
{formik.errors.painQuality}
+ ) : null} +
+
+ + + + Have you tried any self treatment (ex-ice, heat, excercise) or taken any medication(over the counter or prescription)? + + } label="Yes" /> + } label="No" /> + + {formik.touched.painDuration && formik.errors.painDuration ? ( +
{formik.errors.painDuration}
+ ) : null} +
+
+ + + Expected Treatment Result: + + + + + + {/* {formik.errors.treatmentResults} ) : null} - +
*/}