From 6af50c495ea00c77bbf09bf451c86126aa295d52 Mon Sep 17 00:00:00 2001 From: sonika <> Date: Sun, 27 Aug 2023 14:50:37 +0530 Subject: [PATCH] section 7 --- src/Components/PatientForm/PatientForm.tsx | 11 + .../RecreationalHobbiesSection7.tsx | 230 ++++++++++++++++++ 2 files changed, 241 insertions(+) create mode 100644 src/Components/PatientForm/RecreationalHobbiesSection7.tsx diff --git a/src/Components/PatientForm/PatientForm.tsx b/src/Components/PatientForm/PatientForm.tsx index fa88c64..19e1735 100644 --- a/src/Components/PatientForm/PatientForm.tsx +++ b/src/Components/PatientForm/PatientForm.tsx @@ -17,6 +17,7 @@ import FamilyFormSection from './FamilyFormSection2'; import PainAnalysisSection4 from './PainAnalysisSection4'; import PastTreatment5 from './PastTreatment5'; import SystemReviewSection6 from './SyestemReviewSection6'; +import RecreationalHobbiesSection7 from './RecreationalHobbiesSection7'; interface Patient { fullName: string; @@ -180,6 +181,16 @@ export default function PatientForm(){ + + + Recreational Activities/Hobbies Details + + + + + + + ({ + hobbies: '', + educationLevel: '', + excercise:'', + tobacco: '', + alcohol: '', + healthyDiet: '', + sleep: '', + workSchool: '', + familyLife: '', + drugs: '', + }); + return( + <> + {/* + Please choose body areas or systems where you may have problems: + */} + + + Recreational Activities/Hobbies: + { + setValues((prevValues) => ({ + ...prevValues, + hobbies: event.target.value, + })); + }} + /> + + + + + Your education level: + { + setValues((prevValues) => ({ + ...prevValues, + educationLevel: event.target.value, + })); + }} + > + } label="High School" /> + } label="Some college" /> + } label="College Graduate" /> + } label="Post college" /> + } label="Other" /> + + + + + + Do you excercise? + { + setValues((prevValues) => ({ + ...prevValues, + excercise: event.target.value, + })); + }} + > + } label="Yes" /> + } label="No" /> + + + + + + + Use tobacco? + { + setValues((prevValues) => ({ + ...prevValues, + tobacco: event.target.value, + })); + }} + > + } label="Yes" /> + } label="No" /> + + + + + + + Consume alcohol? + { + setValues((prevValues) => ({ + ...prevValues, + alcohol: event.target.value, + })); + }} + > + } label="Yes" /> + } label="No" /> + + + + + + + Have a healthy diet? + { + setValues((prevValues) => ({ + ...prevValues, + healthyDiet: event.target.value, + })); + }} + > + } label="Yes" /> + } label="No" /> + + + + + + + Get adequate sleep? + { + setValues((prevValues) => ({ + ...prevValues, + sleep: event.target.value, + })); + }} + > + } label="Yes" /> + } label="No" /> + + + + + + + Is Work/School stressful to you? + { + setValues((prevValues) => ({ + ...prevValues, + workSchool: event.target.value, + })); + }} + > + } label="Yes" /> + } label="No" /> + + + + + + + Family life stressful to you? + { + setValues((prevValues) => ({ + ...prevValues, + familyLife: event.target.value, + })); + }} + > + } label="Yes" /> + } label="No" /> + + + + + + + use recreational drugs? + { + setValues((prevValues) => ({ + ...prevValues, + drugs: event.target.value, + })); + }} + > + } label="Yes" /> + } label="No" /> + + + + + + + + + + ) +} \ No newline at end of file