Skip to content

Commit

Permalink
2 different pages for symptoms and profile UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
Klivree committed Apr 2, 2022
1 parent c1ddd3d commit df91b92
Show file tree
Hide file tree
Showing 6 changed files with 490 additions and 154 deletions.
3 changes: 2 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import UserProfileFacade from "./components/UserProfile/UserProfileFacade";


import PatientProfileUpdate from './Services/ProfileUpdateSercices/PatientProfileUpdate/PatientProfileUpdate'

import PatientSymptomsUpdate from './Services/ProfileUpdateSercices/PatientProfileUpdate/PatientSymptomsUpdate'
import DoctorProfileUpdate from './Services/ProfileUpdateSercices/DoctorProfileUpdate/DoctorProfileUpdate'
import AppointmentScheduler from "./Services/AppointmentService/AppointmentScheduler";
import QuarantineTab from './components/Dashboard/PatientDashboard/QuarantineTab';
Expand All @@ -42,6 +42,7 @@ function App() {
<Route path='/patient-registration' element={[<NavbarRegister/>, <PatientRegistration/>]} />
<Route path='/organization-registration' element={[<NavbarRegister/>, <OrganizationRegistration/>]} />
<Route path='/patient-profile-edit' element={[<PatientProfileUpdate/>]} />
<Route path='/patient-symptoms-edit' element={[<PatientSymptomsUpdate/>]} />
<Route path='/doctor-profile-edit' element={[<DoctorProfileUpdate/>]} />
<Route path='/quarantine' element={[<QuarantineTab/>]} />
</Routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,126 +381,39 @@ export default function ProfilePatient() {
onChange={handleFormChange}
/>
<div className={classes.field}>
<p>Insurance Number</p>
<p>Private insurance</p>
<TextField
type="text"
name="insurance"
placeholder="insurance"
placeholder="Organization name"
value={editFormData.insurance}
onChange={handleFormChange}
/>
</div>
</div>
<div className={classes.field}>
<p> Covid symptoms</p>
<FormGroup>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom1}
onChange={() => setEditFormData((val) => {
return {...val, symptom1: !val.symptom1}
})}
name="symptom1" label="New or worsening cough"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom2}
onChange={() => setEditFormData((val) => {
return {...val, symptom2: !val.symptom2}
})}
name="symptom2"
label="Shortness of breath or difficulty breathing"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom3}
onChange={() => setEditFormData((val) => {
return {...val, symptom3: !val.symptom3}
})}
name="symptom3"
label="Temperature equal or more than 38 C"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom4}
onChange={() => setEditFormData((val) => {
return {...val, symptom4: !val.symptom4}
})}
name="symptom4"
label="feeling feverish"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom5}
onChange={() => setEditFormData((val) => {
return {...val, symptom5: !val.symptom5}
})}
name="symptom5"
label="Chills"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom6}
onChange={() => setEditFormData((val) => {
return {...val, symptom6: !val.symptom6}
})}
name="symptom6"
label="Fatigue and/or weakness"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom7}
onChange={() => setEditFormData((val) => {
return {...val, symptom7: !val.symptom7}
})}
name="symptom7"
label="muscles and/or body ache"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom8}
onChange={() => setEditFormData((val) => {
return {...val, symptom8: !val.symptom8}
})}
name="symptom8"
label="headache"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom9}
onChange={() => setEditFormData((val) => {
return {...val, symptom9: !val.symptom9}
})}
name="symptom9"
label="abdominal pain"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom10}
onChange={() => setEditFormData((val) => {
return {...val, symptom10: !val.symptom10}
})}
name="symptom10"
label="diarrhea and vomiting"/>
<FormControlLabel control={<Checkbox/>}
checked={editFormData.symptom11}
onChange={() => setEditFormData((val) => {
return {...val, symptom11: !val.symptom11}
})}
name="symptom11"
label="feelings of malaise"/>

</FormGroup>
<p>Other comments</p>
<TextField fullWidth={true}
id="outlined-multiline-static"
label=""
multiline
rows={2}
defaultValue="add comments"
name="comments"
placeholder="Comments"
value={editFormData.comments}
onChange={handleFormChange}
<TextField
type="text"
name="insuranceNum"
placeholder="Insurance Number"
value={editFormData.insuranceNumber}
onChange={handleFormChange}
/>
<Button
type="submit"
fullWidth={true}
variant="contained"
className={classes.submit}
>
Update profile
</Button>
<Button
type="button"
fullWidth={true}
variant="contained"
onClick={(event) => [handleNotifyDoctorButtonClick(event), alert('Your doctor will be notified!')]}
>
Notify my doctor
</Button>
</div>
<Button
type="submit"
fullWidth={true}
variant="contained"
className={classes.submit}
>
Update profile
</Button>
<Button
type="button"
fullWidth={true}
variant="contained"
onClick={(event) => [handleNotifyDoctorButtonClick(event), alert('Your doctor will be notified!')]}
>
Notify my doctor
</Button>
</div>
</div>
</form>
</div>
Expand Down
Loading

0 comments on commit df91b92

Please sign in to comment.