mobile responsive changes
This commit is contained in:
parent
66f0b3941e
commit
d1e1952298
55
src/App.css
55
src/App.css
@ -1,37 +1,34 @@
|
||||
.app-screen-constants .MuiInputBase-root{
|
||||
/* .app-screen-constants .MuiInputBase-root{
|
||||
margin:auto;
|
||||
max-width:1500;
|
||||
height:800 !important;
|
||||
}
|
||||
} */
|
||||
|
||||
.collapsable-form-style .MuiInputBase-root {
|
||||
width: 300px !important;
|
||||
margin: 5%;
|
||||
/* .collapsable-form-style .MuiInputBase-root {
|
||||
margin:3%;
|
||||
height: 50px
|
||||
}
|
||||
|
||||
.collapsable-form-style-form7 .MuiInputBase-root {
|
||||
width: 350px !important;
|
||||
margin: 3%;
|
||||
height: 50px
|
||||
}
|
||||
|
||||
.collapsable-form-style-multiline .MuiInputBase-root {
|
||||
width: 350px !important;
|
||||
margin: 5%;
|
||||
min-height: 100px
|
||||
}
|
||||
.collapsable-form-style-multiline label {
|
||||
} */
|
||||
/* .collapsable-form-style-multiline label {
|
||||
padding: 15px;
|
||||
}
|
||||
} */
|
||||
|
||||
.collapsable-form-style label {
|
||||
/* .collapsable-form-style label {
|
||||
padding: 15px;
|
||||
}
|
||||
} */
|
||||
|
||||
.collapsable-form-style-form7 label {
|
||||
/* .collapsable-form-style-form7 label {
|
||||
padding: 13px;
|
||||
}
|
||||
} */
|
||||
|
||||
.collapsable-form-style-radioButtons{
|
||||
width: 300px !important;
|
||||
@ -41,7 +38,6 @@
|
||||
}
|
||||
|
||||
.collapsable-form-style-radioButtons-fullwidth{
|
||||
/* width: 300px !important; */
|
||||
margin: 5%;
|
||||
padding-top: 12px;
|
||||
padding-left: 16px;
|
||||
@ -58,3 +54,32 @@
|
||||
.addNew-form-table-style label {
|
||||
padding: 0px;
|
||||
}
|
||||
.MuiFormControl-root {
|
||||
width: 95% !important;
|
||||
}
|
||||
|
||||
.MuiGrid-root .MuiTextField-root {
|
||||
margin-top: 3%;
|
||||
margin-bottom: 3%;
|
||||
}
|
||||
|
||||
/* .MuiFormControl-root{
|
||||
width: 90% !important;
|
||||
height: 50px !important;
|
||||
margin-bottom: 1% !important;
|
||||
}
|
||||
|
||||
.MuiTextField-root {
|
||||
margin-top: 3% !important;
|
||||
margin-bottom: 5% !important;
|
||||
}
|
||||
|
||||
.collapsable-form-style-multiline label {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.collapsable-form-style-radioButtons-fullwidth {
|
||||
margin: 5%;
|
||||
padding-top: 12px;
|
||||
padding-left: 16px;
|
||||
} */
|
||||
@ -1,4 +1,17 @@
|
||||
import { Button, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, TextField, Paper, Grid, FormLabel, FormControl } from '@mui/material';
|
||||
import {
|
||||
Button,
|
||||
TableContainer,
|
||||
Table,
|
||||
TableHead,
|
||||
TableRow,
|
||||
TableCell,
|
||||
TableBody,
|
||||
TextField,
|
||||
Paper,
|
||||
Grid,
|
||||
FormLabel,
|
||||
FormControl,
|
||||
} from '@mui/material';
|
||||
import * as React from 'react';
|
||||
|
||||
interface RowData {
|
||||
@ -26,38 +39,51 @@ type Props={
|
||||
ifyesdizzinessFetigue: string | undefined,
|
||||
antiColligent: string | undefined,
|
||||
injuriesHospitalization: string | undefined,
|
||||
supplementsOrDrugs: string|undefined,
|
||||
)=> void
|
||||
supplementsOrDrugs: string | undefined
|
||||
) => void;
|
||||
patientDataDiplay: any;
|
||||
type: string;
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
function DataTable({ handleFormSection5Data, patientDataDiplay, type }: Props) {
|
||||
|
||||
const [illnessFromData, setIllnessFromData] = React.useState<any>({
|
||||
id:0,date:'',illness:'',treatment:'',results:''
|
||||
})
|
||||
id: 0,
|
||||
date: '',
|
||||
illness: '',
|
||||
treatment: '',
|
||||
results: '',
|
||||
});
|
||||
const [illnessData, setIllnessData] = React.useState<any[]>([
|
||||
{id:0,date:'ex-12-01-2020',illness:'knee pain',treatment:'surgery',results:'cured'}
|
||||
{
|
||||
id: 0,
|
||||
date: 'ex-12-01-2020',
|
||||
illness: 'knee pain',
|
||||
treatment: 'surgery',
|
||||
results: 'cured',
|
||||
},
|
||||
]);
|
||||
|
||||
const deleteIllnessData = (idToDelete: number) => {
|
||||
const updatedIllnessData = illnessData.filter(item => item.id !== idToDelete);
|
||||
const updatedIllnessData = illnessData.filter(
|
||||
(item) => item.id !== idToDelete
|
||||
);
|
||||
setIllnessData(updatedIllnessData);
|
||||
};
|
||||
|
||||
|
||||
const handleAddRow = () => {
|
||||
if(illnessFromData.date!='' && illnessFromData.illness!='' && illnessFromData.treatment!='' && illnessFromData.results!=''){
|
||||
|
||||
const newId = Math.max(...illnessData.map(item => item.id)) + 1;
|
||||
if (
|
||||
illnessFromData.date != '' &&
|
||||
illnessFromData.illness != '' &&
|
||||
illnessFromData.treatment != '' &&
|
||||
illnessFromData.results != ''
|
||||
) {
|
||||
const newId = Math.max(...illnessData.map((item) => item.id)) + 1;
|
||||
const newIllnessData = [
|
||||
...illnessData,
|
||||
{
|
||||
...illnessFromData,
|
||||
id: newId
|
||||
}
|
||||
id: newId,
|
||||
},
|
||||
];
|
||||
setIllnessData(newIllnessData);
|
||||
setIllnessFromData({
|
||||
@ -65,22 +91,31 @@ function DataTable({handleFormSection5Data,patientDataDiplay,type}:Props) {
|
||||
date: '',
|
||||
illness: '',
|
||||
treatment: '',
|
||||
results: ''
|
||||
results: '',
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<FormLabel>If yes, Please enter the details below:</FormLabel><br></br>
|
||||
{type!=="display"?
|
||||
<FormLabel>If yes, Please enter the details below:</FormLabel>
|
||||
<br></br>
|
||||
{type !== 'display' ? (
|
||||
<FormControl>
|
||||
<Grid container spacing={1.5} sx={{width:750, marginTop:1}}>
|
||||
<Grid item xs={2} className='addNew-form-table-style'>
|
||||
<Grid container spacing={1.5}>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={3}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='addNew-form-table-style'
|
||||
>
|
||||
<TextField
|
||||
required
|
||||
variant="outlined"
|
||||
label="Date"
|
||||
variant='outlined'
|
||||
label='Date'
|
||||
value={illnessFromData.date}
|
||||
onChange={(event) => {
|
||||
setIllnessFromData((prevValues: any) => ({
|
||||
@ -90,11 +125,19 @@ function DataTable({handleFormSection5Data,patientDataDiplay,type}:Props) {
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={3.7} className='addNew-form-table-style'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={3}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='addNew-form-table-style'
|
||||
>
|
||||
<TextField
|
||||
required
|
||||
variant="outlined"
|
||||
label="Injury/Illness/Surgeries"
|
||||
variant='outlined'
|
||||
label='Injury/Illness/Surgeries'
|
||||
value={illnessFromData.illness}
|
||||
onChange={(event) => {
|
||||
setIllnessFromData((prevValues: any) => ({
|
||||
@ -104,11 +147,19 @@ function DataTable({handleFormSection5Data,patientDataDiplay,type}:Props) {
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={3.5} className='addNew-form-table-style'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={3}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='addNew-form-table-style'
|
||||
>
|
||||
<TextField
|
||||
required
|
||||
variant="outlined"
|
||||
label="Treatment"
|
||||
variant='outlined'
|
||||
label='Treatment'
|
||||
value={illnessFromData.treatment}
|
||||
onChange={(event) => {
|
||||
setIllnessFromData((prevValues: any) => ({
|
||||
@ -118,11 +169,19 @@ function DataTable({handleFormSection5Data,patientDataDiplay,type}:Props) {
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={2} className='addNew-form-table-style'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={3}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='addNew-form-table-style'
|
||||
>
|
||||
<TextField
|
||||
required
|
||||
variant="outlined"
|
||||
label="Results"
|
||||
variant='outlined'
|
||||
label='Results'
|
||||
value={illnessFromData.results}
|
||||
onChange={(event) => {
|
||||
setIllnessFromData((prevValues: any) => ({
|
||||
@ -132,21 +191,36 @@ function DataTable({handleFormSection5Data,patientDataDiplay,type}:Props) {
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={0.8} className='addNew-form-table-style'>
|
||||
<Button sx={{height:'40px', bgcolor:'skyblue'}} onClick={handleAddRow}>Add</Button>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={3}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='addNew-form-table-style'
|
||||
>
|
||||
<Button
|
||||
sx={{ height: '40px', bgcolor: 'skyblue' }}
|
||||
onClick={handleAddRow}
|
||||
>
|
||||
Add
|
||||
</Button>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</FormControl>
|
||||
:""}
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
|
||||
|
||||
<TableContainer sx={{width:800}} className='illness-table-style'>
|
||||
<Table aria-label="simple table">
|
||||
<TableContainer className='illness-table-style'>
|
||||
<Table aria-label='simple table'>
|
||||
<TableHead>
|
||||
<TableRow>
|
||||
<TableCell align='left'>Date</TableCell>
|
||||
<TableCell align='center'>Injury/Fracture/Illness/Surgeries</TableCell>
|
||||
<TableCell align='center'>
|
||||
Injury/Fracture/Illness/Surgeries
|
||||
</TableCell>
|
||||
<TableCell align='left'>Treatment</TableCell>
|
||||
<TableCell align='left'>Results</TableCell>
|
||||
<TableCell align='left'></TableCell>
|
||||
@ -155,25 +229,23 @@ function DataTable({handleFormSection5Data,patientDataDiplay,type}:Props) {
|
||||
<TableBody>
|
||||
{illnessData.map((row, index) => (
|
||||
<TableRow key={index}>
|
||||
<TableCell align='left'>{row.date}</TableCell>
|
||||
<TableCell align='center'>{row.illness}</TableCell>
|
||||
<TableCell align='left'>{row.treatment}</TableCell>
|
||||
<TableCell align='left'>{row.results}</TableCell>
|
||||
<TableCell align='left'>
|
||||
{row.date}
|
||||
</TableCell>
|
||||
<TableCell align='center'>
|
||||
{row.illness}
|
||||
</TableCell>
|
||||
<TableCell align='left'>
|
||||
{row.treatment}
|
||||
</TableCell>
|
||||
<TableCell align='left'>
|
||||
{row.results}
|
||||
</TableCell>
|
||||
<TableCell align='left'>
|
||||
{type!=="display"?
|
||||
<Button sx={{height:'30x',width:20, bgcolor:'skyblue'}}
|
||||
onClick={(e)=>{deleteIllnessData(row.id)}}>
|
||||
{type !== 'display' ? (
|
||||
<Button
|
||||
sx={{ height: '30x', width: 20, bgcolor: 'skyblue' }}
|
||||
onClick={(e) => {
|
||||
deleteIllnessData(row.id);
|
||||
}}
|
||||
>
|
||||
Delete
|
||||
</Button>
|
||||
:""}
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
@ -182,6 +254,6 @@ function DataTable({handleFormSection5Data,patientDataDiplay,type}:Props) {
|
||||
</TableContainer>
|
||||
</>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export default DataTable;
|
||||
|
||||
@ -69,6 +69,10 @@
|
||||
gap: 0;
|
||||
margin-bottom: 2%;
|
||||
}
|
||||
.image-marker-div .marker-div {
|
||||
/* margin-right: 5%; */
|
||||
margin-top: 3%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1400px) {
|
||||
|
||||
@ -1,22 +1,34 @@
|
||||
import { Button, Checkbox, FormControl, FormControlLabel, FormGroup, FormLabel, Grid, Paper, Radio, RadioGroup, TextField } from '@mui/material';
|
||||
import { useFormik } from "formik";
|
||||
import * as yup from "yup";
|
||||
import {
|
||||
Button,
|
||||
Checkbox,
|
||||
FormControl,
|
||||
FormControlLabel,
|
||||
FormGroup,
|
||||
FormLabel,
|
||||
Grid,
|
||||
Paper,
|
||||
Radio,
|
||||
RadioGroup,
|
||||
TextField,
|
||||
} from '@mui/material';
|
||||
import { useFormik } from 'formik';
|
||||
import * as yup from 'yup';
|
||||
import { LocalizationProvider, DatePicker } from '@mui/x-date-pickers';
|
||||
import React, { useEffect } from 'react';
|
||||
|
||||
interface Patient {
|
||||
maritalStatus: string | undefined,
|
||||
numberOfChildren: string | undefined,
|
||||
occupation: string | undefined,
|
||||
hoursPerWeek: number | string | undefined,
|
||||
employer: string | undefined,
|
||||
businessPhone: string | undefined,
|
||||
spouseName: string | undefined,
|
||||
spouseEmployer: string | undefined,
|
||||
spouseBusinessPhone: string | undefined,
|
||||
emergencyContact: string | undefined,
|
||||
relationship: string | undefined,
|
||||
spousePhone: string | undefined,
|
||||
maritalStatus: string | undefined;
|
||||
numberOfChildren: string | undefined;
|
||||
occupation: string | undefined;
|
||||
hoursPerWeek: number | string | undefined;
|
||||
employer: string | undefined;
|
||||
businessPhone: string | undefined;
|
||||
spouseName: string | undefined;
|
||||
spouseEmployer: string | undefined;
|
||||
spouseBusinessPhone: string | undefined;
|
||||
emergencyContact: string | undefined;
|
||||
relationship: string | undefined;
|
||||
spousePhone: string | undefined;
|
||||
}
|
||||
|
||||
type Props = {
|
||||
@ -32,14 +44,17 @@ type Props = {
|
||||
spouseBusinessPhone: string | undefined,
|
||||
emergencyContact: string | undefined,
|
||||
relationship: string | undefined,
|
||||
spousePhone: string | undefined,
|
||||
)=> void
|
||||
spousePhone: string | undefined
|
||||
) => void;
|
||||
patientDataDiplay: any;
|
||||
type: string;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export default function FamilyFormSection({handleFormSection2Data,patientDataDiplay,type}:Props){
|
||||
export default function FamilyFormSection({
|
||||
handleFormSection2Data,
|
||||
patientDataDiplay,
|
||||
type,
|
||||
}: Props) {
|
||||
const [patient, setPatient] = React.useState<Patient>({
|
||||
maritalStatus: '',
|
||||
numberOfChildren: '',
|
||||
@ -52,7 +67,7 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
spouseBusinessPhone: '',
|
||||
emergencyContact: '',
|
||||
relationship: '',
|
||||
spousePhone:''
|
||||
spousePhone: '',
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
@ -68,20 +83,24 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
patient.spouseBusinessPhone,
|
||||
patient.emergencyContact,
|
||||
patient.relationship,
|
||||
patient.spousePhone,
|
||||
)
|
||||
},[patient])
|
||||
patient.spousePhone
|
||||
);
|
||||
}, [patient]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Grid container direction="row">
|
||||
<Grid container direction='row'>
|
||||
<Grid item xs={8} className='collapsable-form-style-radioButtons'>
|
||||
<FormControl>
|
||||
<FormLabel>Marital Status</FormLabel>
|
||||
<RadioGroup
|
||||
aria-labelledby="demo-radio-buttons-group-label"
|
||||
name="maritalStatus"
|
||||
defaultValue={type=='display'?patientDataDiplay.maritalStatus:patient.maritalStatus}
|
||||
aria-labelledby='demo-radio-buttons-group-label'
|
||||
name='maritalStatus'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.maritalStatus
|
||||
: patient.maritalStatus
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(e) => {
|
||||
setPatient((prevValues: any) => ({
|
||||
@ -90,29 +109,54 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel value="married" control={<Radio />} label="Married" disabled={type=='display'}/>
|
||||
<FormControlLabel value="single" control={<Radio />} label="Single" disabled={type=='display'}/>
|
||||
<FormControlLabel value="widowed" control={<Radio />} label="Widowed" disabled={type=='display'}/>
|
||||
<FormControlLabel value="seperated" control={<Radio />} label="Seperated" disabled={type=='display'}/>
|
||||
<FormControlLabel value="divorced" control={<Radio />} label="Divorced" disabled={type=='display'}/>
|
||||
<FormControlLabel
|
||||
value='married'
|
||||
control={<Radio />}
|
||||
label='Married'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value='single'
|
||||
control={<Radio />}
|
||||
label='Single'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value='widowed'
|
||||
control={<Radio />}
|
||||
label='Widowed'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value='seperated'
|
||||
control={<Radio />}
|
||||
label='Seperated'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
value='divorced'
|
||||
control={<Radio />}
|
||||
label='Divorced'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</RadioGroup>
|
||||
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={4} className='collapsable-form-style '></Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '>
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
|
||||
variant="outlined"
|
||||
type="number"
|
||||
label="Number of Children/Ages"
|
||||
variant='outlined'
|
||||
type='number'
|
||||
label='Number of Children/Ages'
|
||||
className='collapsable-form-style'
|
||||
name='numberOfChildren'
|
||||
onChange={(e) => {
|
||||
@ -121,21 +165,27 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
numberOfChildren: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.numberOfChildren:patient.numberOfChildren}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.numberOfChildren
|
||||
: patient.numberOfChildren
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '>
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
// required
|
||||
variant="outlined"
|
||||
label="Occupation"
|
||||
variant='outlined'
|
||||
label='Occupation'
|
||||
className='collapsable-form-style'
|
||||
name='occupation'
|
||||
onChange={(e) => {
|
||||
@ -144,22 +194,27 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
occupation: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.occupation:patient.occupation}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.occupation
|
||||
: patient.occupation
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
|
||||
</Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '>
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Hours/Week"
|
||||
type="number"
|
||||
variant='outlined'
|
||||
label='Hours/Week'
|
||||
type='number'
|
||||
className='collapsable-form-style'
|
||||
name='hoursPerWeek'
|
||||
onChange={(e) => {
|
||||
@ -168,10 +223,13 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
hoursPerWeek: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.hoursPerWeek:patient.hoursPerWeek}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.hoursPerWeek
|
||||
: patient.hoursPerWeek
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
|
||||
</Grid>
|
||||
<Grid
|
||||
xs={12}
|
||||
@ -179,10 +237,11 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '>
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Employer"
|
||||
variant='outlined'
|
||||
label='Employer'
|
||||
className='collapsable-form-style'
|
||||
name='employer'
|
||||
onChange={(e) => {
|
||||
@ -191,21 +250,25 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
employer: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.employer:patient.employer}
|
||||
value={
|
||||
type == 'display' ? patientDataDiplay.employer : patient.employer
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '>
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Business Phone"
|
||||
type="number"
|
||||
variant='outlined'
|
||||
label='Business Phone'
|
||||
type='number'
|
||||
className='collapsable-form-style'
|
||||
name='businessPhone'
|
||||
onChange={(e) => {
|
||||
@ -214,31 +277,40 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
businessPhone: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.businessPhone:patient.businessPhone}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.businessPhone
|
||||
: patient.businessPhone
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '></Grid>
|
||||
className='collapsable-form-style '
|
||||
></Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style '>
|
||||
<FormLabel sx={{ fontWeight: 600 }}>Spouse's Information:</FormLabel>
|
||||
</Grid>
|
||||
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style '>
|
||||
sm={12}
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
variant='outlined'
|
||||
label="Spouse's Name"
|
||||
className='collapsable-form-style'
|
||||
name='spouseName'
|
||||
@ -248,19 +320,25 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
spouseName: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.spouseName:patient.spouseName}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.spouseName
|
||||
: patient.spouseName
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '>
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
variant='outlined'
|
||||
label="Spouse's Employer"
|
||||
className='collapsable-form-style'
|
||||
name='spouseEmployer'
|
||||
@ -270,21 +348,27 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
spouseEmployer: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.spouseEmployer:patient.spouseEmployer}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.spouseEmployer
|
||||
: patient.spouseEmployer
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '>
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Business Phone"
|
||||
type="number"
|
||||
variant='outlined'
|
||||
label='Business Phone'
|
||||
type='number'
|
||||
className='collapsable-form-style'
|
||||
name='spouseBusinessPhone'
|
||||
onChange={(e) => {
|
||||
@ -293,7 +377,11 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
spouseBusinessPhone: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.spouseBusinessPhone:patient.spouseBusinessPhone}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.spouseBusinessPhone
|
||||
: patient.spouseBusinessPhone
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
@ -302,17 +390,18 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
<FormLabel sx={{ fontWeight: 600 }}>Emergency:</FormLabel>
|
||||
</Grid>
|
||||
|
||||
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '>
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Emergency Contact"
|
||||
variant='outlined'
|
||||
label='Emergency Contact'
|
||||
className='collapsable-form-style'
|
||||
name='emergencyContact'
|
||||
onChange={(e) => {
|
||||
@ -321,20 +410,26 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
emergencyContact: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.emergencyContact:patient.emergencyContact}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.emergencyContact
|
||||
: patient.emergencyContact
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style '>
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Relationship"
|
||||
variant='outlined'
|
||||
label='Relationship'
|
||||
className='collapsable-form-style'
|
||||
name='relationship'
|
||||
onChange={(e) => {
|
||||
@ -343,20 +438,27 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
relationship: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.relationship:patient.relationship}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.relationship
|
||||
: patient.relationship
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style '>
|
||||
sm={12}
|
||||
className='collapsable-form-style '
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
type="number"
|
||||
label="Phone"
|
||||
variant='outlined'
|
||||
type='number'
|
||||
label='Phone'
|
||||
className='collapsable-form-style'
|
||||
name='spousePhone'
|
||||
onChange={(e) => {
|
||||
@ -365,11 +467,15 @@ export default function FamilyFormSection({handleFormSection2Data,patientDataDip
|
||||
spousePhone: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.spousePhone:patient.spousePhone}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.spousePhone
|
||||
: patient.spousePhone
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</>
|
||||
)
|
||||
};
|
||||
);
|
||||
}
|
||||
|
||||
@ -1,8 +1,16 @@
|
||||
import { Grid, FormLabel, TextField, FormControl, RadioGroup, FormControlLabel, Radio } from "@mui/material";
|
||||
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
|
||||
import React, { useEffect } from "react";
|
||||
import {
|
||||
Grid,
|
||||
FormLabel,
|
||||
TextField,
|
||||
FormControl,
|
||||
RadioGroup,
|
||||
FormControlLabel,
|
||||
Radio,
|
||||
} from '@mui/material';
|
||||
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
|
||||
import React, { useEffect } from 'react';
|
||||
import { LocalizationProvider, DatePicker } from '@mui/x-date-pickers';
|
||||
import dayjs from "dayjs";
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
interface Patient {
|
||||
familyHistory: string;
|
||||
@ -22,14 +30,17 @@ interface Patient {
|
||||
orthotics: string | undefined,
|
||||
brestExam: any,
|
||||
pregnancy: string | undefined,
|
||||
menstralCycle: any,
|
||||
)=> void
|
||||
menstralCycle: any
|
||||
) => void;
|
||||
patientDataDiplay: any;
|
||||
type: string;
|
||||
}
|
||||
|
||||
export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,type}:Props){
|
||||
};
|
||||
|
||||
export default function OtherDetails8({
|
||||
handleFormSection8Data,
|
||||
patientDataDiplay,
|
||||
type,
|
||||
}: Props) {
|
||||
const [patient, setPatient] = React.useState<Patient>({
|
||||
familyHistory: '',
|
||||
sleep: '',
|
||||
@ -46,11 +57,11 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
patient.sleep,
|
||||
patient.pillow,
|
||||
patient.orthotics,
|
||||
patient.brestExam=dayjs(patient.brestExam),
|
||||
(patient.brestExam = dayjs(patient.brestExam)),
|
||||
patient.pregnancy,
|
||||
patient.menstralCycle=dayjs(patient.menstralCycle)
|
||||
)
|
||||
},[patient])
|
||||
(patient.menstralCycle = dayjs(patient.menstralCycle))
|
||||
);
|
||||
}, [patient]);
|
||||
|
||||
const formatDate = (inputDate: any) => {
|
||||
const date = new Date(inputDate);
|
||||
@ -61,19 +72,29 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
return `${year}-${month}-${day}`;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Grid container direction="row">
|
||||
<Grid item xs={12} className='collapsable-form-style-multiline'>
|
||||
<FormLabel>Family history and health status:</FormLabel><br></br>
|
||||
<Grid container direction='row'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style-multiline'
|
||||
>
|
||||
<FormLabel>Family history and health status:</FormLabel>
|
||||
<br></br>
|
||||
<TextField
|
||||
multiline
|
||||
variant="outlined"
|
||||
label=""
|
||||
value={type=='display'?patientDataDiplay.familyHistory:patient.familyHistory}
|
||||
variant='outlined'
|
||||
label=''
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.familyHistory
|
||||
: patient.familyHistory
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
onChange={(event: any) => {
|
||||
setPatient((prevValues) => ({
|
||||
@ -89,7 +110,9 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
<FormLabel>How do you sleep?</FormLabel>
|
||||
<RadioGroup
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
defaultValue={type=='display'?patientDataDiplay.sleep:patient.sleep}
|
||||
defaultValue={
|
||||
type == 'display' ? patientDataDiplay.sleep : patient.sleep
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -97,9 +120,24 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Back" control={<Radio />} label="Back" />
|
||||
<FormControlLabel disabled={type=='display'} value="Side" control={<Radio />} label="Side" />
|
||||
<FormControlLabel disabled={type=='display'} value="Stomach" control={<Radio />} label="Stomach" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Back'
|
||||
control={<Radio />}
|
||||
label='Back'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Side'
|
||||
control={<Radio />}
|
||||
label='Side'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Stomach'
|
||||
control={<Radio />}
|
||||
label='Stomach'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
@ -109,7 +147,9 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
<FormLabel>Do you use a pillow?</FormLabel>
|
||||
<RadioGroup
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
defaultValue={type=='display'?patientDataDiplay.pillow:patient.pillow}
|
||||
defaultValue={
|
||||
type == 'display' ? patientDataDiplay.pillow : patient.pillow
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -117,8 +157,18 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
@ -128,7 +178,11 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
<FormLabel>Do you wear orthotics or arch support?</FormLabel>
|
||||
<RadioGroup
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
defaultValue={type=='display'?patientDataDiplay.orthotics:patient.orthotics}
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.orthotics
|
||||
: patient.orthotics
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -136,27 +190,52 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||
<FormLabel>Date of last gynecological and brest exam?</FormLabel><br></br>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormLabel>Date of last gynecological and brest exam?</FormLabel>
|
||||
<br></br>
|
||||
<FormControl>
|
||||
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
||||
<DatePicker
|
||||
value={type=='display'?patientDataDiplay.brestExam:patient.brestExam}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.brestExam
|
||||
: patient.brestExam
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
onChange={(event) => {
|
||||
const formattedDate = formatDate(event)
|
||||
const formattedDate = formatDate(event);
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
brestExam: formattedDate,
|
||||
}));
|
||||
}}
|
||||
renderInput={(params) => <TextField variant="outlined" {...params} />}
|
||||
renderInput={(params) => (
|
||||
<TextField variant='outlined' {...params} />
|
||||
)}
|
||||
/>
|
||||
</LocalizationProvider>
|
||||
</FormControl>
|
||||
@ -171,7 +250,11 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
<FormLabel>Possible pregnancy?</FormLabel>
|
||||
<RadioGroup
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
defaultValue={type=='display'?patientDataDiplay.pregnancy:patient.pregnancy}
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.pregnancy
|
||||
: patient.pregnancy
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -179,34 +262,57 @@ export default function OtherDetails8({handleFormSection8Data,patientDataDiplay,
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||
<FormLabel>Date of last menstrual cycle?</FormLabel><br></br>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormLabel>Date of last menstrual cycle?</FormLabel>
|
||||
<br></br>
|
||||
<FormControl>
|
||||
<LocalizationProvider dateAdapter={AdapterDayjs}>
|
||||
<DatePicker
|
||||
value={type=='display'?patientDataDiplay.menstralCycle:patient.menstralCycle}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.menstralCycle
|
||||
: patient.menstralCycle
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
onChange={(event) => {
|
||||
const formattedDate = formatDate(event)
|
||||
const formattedDate = formatDate(event);
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
menstralCycle: formattedDate,
|
||||
}));
|
||||
}}
|
||||
renderInput={(params) => <TextField variant="outlined" {...params} />}
|
||||
renderInput={(params) => (
|
||||
<TextField variant='outlined' {...params} />
|
||||
)}
|
||||
/>
|
||||
</LocalizationProvider>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
|
||||
</Grid>
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -1,5 +1,15 @@
|
||||
import * as React from 'react';
|
||||
import { Checkbox, FormControlLabel, TextField, FormGroup, Grid, FormControl, FormLabel, Radio, RadioGroup } from '@mui/material';
|
||||
import {
|
||||
Checkbox,
|
||||
FormControlLabel,
|
||||
TextField,
|
||||
FormGroup,
|
||||
Grid,
|
||||
FormControl,
|
||||
FormLabel,
|
||||
Radio,
|
||||
RadioGroup,
|
||||
} from '@mui/material';
|
||||
import { useFormik } from 'formik';
|
||||
import * as Yup from 'yup';
|
||||
import path from 'path';
|
||||
@ -29,14 +39,17 @@ interface Patient {
|
||||
painDuration: string | undefined,
|
||||
currentTreatment: string | undefined,
|
||||
treatmentGoal: string | undefined,
|
||||
selfTreatment:string|undefined,
|
||||
)=> void
|
||||
selfTreatment: string | undefined
|
||||
) => void;
|
||||
patientDataDiplay: any;
|
||||
type: string;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export default function PainAnalysisSection4({handleFormSection4Data,patientDataDiplay,type}:Props){
|
||||
export default function PainAnalysisSection4({
|
||||
handleFormSection4Data,
|
||||
patientDataDiplay,
|
||||
type,
|
||||
}: Props) {
|
||||
const [patient, setPatient] = React.useState<Patient>({
|
||||
chiefComplaint: '',
|
||||
painWorse: [],
|
||||
@ -61,11 +74,13 @@ export default function PainAnalysisSection4({handleFormSection4Data,patientData
|
||||
patient.painDuration,
|
||||
patient.currentTreatment,
|
||||
patient.treatmentGoal,
|
||||
patient.selfTreatment,
|
||||
)
|
||||
},[patient])
|
||||
patient.selfTreatment
|
||||
);
|
||||
}, [patient]);
|
||||
|
||||
const handlePainWorseChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const handlePainWorseChange = (
|
||||
event: React.ChangeEvent<HTMLInputElement>
|
||||
) => {
|
||||
const { name, checked } = event.target;
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -75,7 +90,9 @@ export default function PainAnalysisSection4({handleFormSection4Data,patientData
|
||||
}));
|
||||
};
|
||||
|
||||
const handlePainBetterChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const handlePainBetterChange = (
|
||||
event: React.ChangeEvent<HTMLInputElement>
|
||||
) => {
|
||||
const { name, checked } = event.target;
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -85,7 +102,9 @@ export default function PainAnalysisSection4({handleFormSection4Data,patientData
|
||||
}));
|
||||
};
|
||||
|
||||
const handlePainQualityChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const handlePainQualityChange = (
|
||||
event: React.ChangeEvent<HTMLInputElement>
|
||||
) => {
|
||||
const { name, checked } = event.target;
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -95,7 +114,9 @@ export default function PainAnalysisSection4({handleFormSection4Data,patientData
|
||||
}));
|
||||
};
|
||||
|
||||
const handlePainWorstTimeChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const handlePainWorstTimeChange = (
|
||||
event: React.ChangeEvent<HTMLInputElement>
|
||||
) => {
|
||||
const { name, checked } = event.target;
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -105,7 +126,9 @@ export default function PainAnalysisSection4({handleFormSection4Data,patientData
|
||||
}));
|
||||
};
|
||||
|
||||
const handleCurrentComplaintIssuesTimeChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const handleCurrentComplaintIssuesTimeChange = (
|
||||
event: React.ChangeEvent<HTMLInputElement>
|
||||
) => {
|
||||
const { name, checked } = event.target;
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -120,11 +143,19 @@ export default function PainAnalysisSection4({handleFormSection4Data,patientData
|
||||
<Grid item xs={12} className='collapsable-form-style '>
|
||||
<FormLabel sx={{ fontWeight: 600 }}>Issue Details:</FormLabel>
|
||||
</Grid>
|
||||
<Grid container direction="row">
|
||||
<Grid item xs={4} className='collapsable-form-style-form7'>
|
||||
<Grid container direction='row'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={10}
|
||||
lg={10}
|
||||
md={10}
|
||||
sm={12}
|
||||
className='collapsable-form-style-form7'
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="How did your Chief complaint start?(ex-fell on ice)"
|
||||
variant='outlined'
|
||||
label='How did your Chief complaint start?(ex-fell on ice)'
|
||||
name='chiefComplaint'
|
||||
onChange={(e) => {
|
||||
setPatient((prevValues) => ({
|
||||
@ -132,223 +163,400 @@ export default function PainAnalysisSection4({handleFormSection4Data,patientData
|
||||
chiefComplaint: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.chiefComplaint:patient.chiefComplaint}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.chiefComplaint
|
||||
: patient.chiefComplaint
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>What makes your pain worse?</FormLabel>
|
||||
<FormGroup sx={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorseChange} name="Bending" />}
|
||||
label="Bending"
|
||||
control={
|
||||
<Checkbox onChange={handlePainWorseChange} name='Bending' />
|
||||
}
|
||||
label='Bending'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorseChange} name="Standing" />}
|
||||
label="Standing"
|
||||
control={
|
||||
<Checkbox onChange={handlePainWorseChange} name='Standing' />
|
||||
}
|
||||
label='Standing'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorseChange} name="Sitting" />}
|
||||
label="Sitting"
|
||||
control={
|
||||
<Checkbox onChange={handlePainWorseChange} name='Sitting' />
|
||||
}
|
||||
label='Sitting'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorseChange} name="Walking" />}
|
||||
label="Walking"
|
||||
control={
|
||||
<Checkbox onChange={handlePainWorseChange} name='Walking' />
|
||||
}
|
||||
label='Walking'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorseChange} name="Others" />}
|
||||
label="Others"
|
||||
control={
|
||||
<Checkbox onChange={handlePainWorseChange} name='Others' />
|
||||
}
|
||||
label='Others'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>What makes your pain better?</FormLabel>
|
||||
<FormGroup sx={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainBetterChange} name="laying down" />}
|
||||
label="laying down"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handlePainBetterChange}
|
||||
name='laying down'
|
||||
/>
|
||||
}
|
||||
label='laying down'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainBetterChange} name="Standing" />}
|
||||
label="Standing"
|
||||
control={
|
||||
<Checkbox onChange={handlePainBetterChange} name='Standing' />
|
||||
}
|
||||
label='Standing'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainBetterChange} name="Sitting" />}
|
||||
label="Sitting"
|
||||
control={
|
||||
<Checkbox onChange={handlePainBetterChange} name='Sitting' />
|
||||
}
|
||||
label='Sitting'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainBetterChange} name="Walking" />}
|
||||
label="Walking"
|
||||
control={
|
||||
<Checkbox onChange={handlePainBetterChange} name='Walking' />
|
||||
}
|
||||
label='Walking'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainBetterChange} name="Others" />}
|
||||
label="Others"
|
||||
control={
|
||||
<Checkbox onChange={handlePainBetterChange} name='Others' />
|
||||
}
|
||||
label='Others'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</FormGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>What is the quality of your pain?</FormLabel>
|
||||
<FormGroup sx={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainQualityChange} name="sharp" />}
|
||||
label="Sharp"
|
||||
control={
|
||||
<Checkbox onChange={handlePainQualityChange} name='sharp' />
|
||||
}
|
||||
label='Sharp'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainQualityChange} name="Dull/Ache" />}
|
||||
label="Dull/Ache"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handlePainQualityChange}
|
||||
name='Dull/Ache'
|
||||
/>
|
||||
}
|
||||
label='Dull/Ache'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainQualityChange} name="Throbbing" />}
|
||||
label="Throbbing"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handlePainQualityChange}
|
||||
name='Throbbing'
|
||||
/>
|
||||
}
|
||||
label='Throbbing'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainQualityChange} name="Tingling/Numbness/Burning" />}
|
||||
label="Tingling/Numbness/Burning"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handlePainQualityChange}
|
||||
name='Tingling/Numbness/Burning'
|
||||
/>
|
||||
}
|
||||
label='Tingling/Numbness/Burning'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainQualityChange} name="Others" />}
|
||||
label="Others"
|
||||
control={
|
||||
<Checkbox onChange={handlePainQualityChange} name='Others' />
|
||||
}
|
||||
label='Others'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</FormGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>What is the worst time for your pain?</FormLabel>
|
||||
<FormGroup sx={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorstTimeChange} name="Morning" />}
|
||||
label="Morning"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handlePainWorstTimeChange}
|
||||
name='Morning'
|
||||
/>
|
||||
}
|
||||
label='Morning'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorstTimeChange} name="During day" />}
|
||||
label="During day"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handlePainWorstTimeChange}
|
||||
name='During day'
|
||||
/>
|
||||
}
|
||||
label='During day'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorstTimeChange} name="Evening" />}
|
||||
label="Evening"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handlePainWorstTimeChange}
|
||||
name='Evening'
|
||||
/>
|
||||
}
|
||||
label='Evening'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorstTimeChange} name="Lying in bed" />}
|
||||
label="Lying in bed"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handlePainWorstTimeChange}
|
||||
name='Lying in bed'
|
||||
/>
|
||||
}
|
||||
label='Lying in bed'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handlePainWorstTimeChange} name="Others" />}
|
||||
label="Others"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handlePainWorstTimeChange}
|
||||
name='Others'
|
||||
/>
|
||||
}
|
||||
label='Others'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</FormGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>How much of the day do you experience your chief complaint?</FormLabel>
|
||||
<FormLabel>
|
||||
How much of the day do you experience your chief complaint?
|
||||
</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
name='painDuration'
|
||||
onChange={(e) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
painDuration: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.painDuration:patient.painDuration}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.painDuration
|
||||
: patient.painDuration
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="0-25%" control={<Radio />} label="0-25%" />
|
||||
<FormControlLabel disabled={type=='display'} value="25-50%" control={<Radio />} label="25-50%" />
|
||||
<FormControlLabel disabled={type=='display'} value="50-75%" control={<Radio />} label="50-75%" />
|
||||
<FormControlLabel disabled={type=='display'} value="75-100%" control={<Radio />} label="75-100%" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='0-25%'
|
||||
control={<Radio />}
|
||||
label='0-25%'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='25-50%'
|
||||
control={<Radio />}
|
||||
label='25-50%'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='50-75%'
|
||||
control={<Radio />}
|
||||
label='50-75%'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='75-100%'
|
||||
control={<Radio />}
|
||||
label='75-100%'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Has your current complaint caused any of the following?</FormLabel>
|
||||
<FormLabel>
|
||||
Has your current complaint caused any of the following?
|
||||
</FormLabel>
|
||||
<FormGroup sx={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handleCurrentComplaintIssuesTimeChange} name="Muscle weakness" />}
|
||||
label="Muscle weakness"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handleCurrentComplaintIssuesTimeChange}
|
||||
name='Muscle weakness'
|
||||
/>
|
||||
}
|
||||
label='Muscle weakness'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handleCurrentComplaintIssuesTimeChange} name="Bowel/Bladder problem" />}
|
||||
label="Bowel/Bladder problem"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handleCurrentComplaintIssuesTimeChange}
|
||||
name='Bowel/Bladder problem'
|
||||
/>
|
||||
}
|
||||
label='Bowel/Bladder problem'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handleCurrentComplaintIssuesTimeChange} name="Digestion" />}
|
||||
label="Digestion"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handleCurrentComplaintIssuesTimeChange}
|
||||
name='Digestion'
|
||||
/>
|
||||
}
|
||||
label='Digestion'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Checkbox onChange={handleCurrentComplaintIssuesTimeChange} name="Cardiac/Respiratory" />}
|
||||
label="Cardiac/Respiratory"
|
||||
control={
|
||||
<Checkbox
|
||||
onChange={handleCurrentComplaintIssuesTimeChange}
|
||||
name='Cardiac/Respiratory'
|
||||
/>
|
||||
}
|
||||
label='Cardiac/Respiratory'
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
|
||||
</FormGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Have you tried any self treatment (ex-ice, heat, excercise) or taken any medication(over the counter or prescription)?</FormLabel>
|
||||
<FormLabel>
|
||||
Have you tried any self treatment (ex-ice, heat, excercise) or
|
||||
taken any medication(over the counter or prescription)?
|
||||
</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
name='painDuration'
|
||||
onChange={(e) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
selfTreatment: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.selfTreatment:patient.selfTreatment}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.selfTreatment
|
||||
: patient.selfTreatment
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="no" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='no'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style' sx={{marginTop:3 }}>
|
||||
<FormLabel sx={{fontWeight:600}}>Expected Treatment Result:</FormLabel>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style'
|
||||
sx={{ marginTop: 3 }}
|
||||
>
|
||||
<FormLabel sx={{ fontWeight: 600 }}>
|
||||
Expected Treatment Result:
|
||||
</FormLabel>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={4} className='collapsable-form-style-form7'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={10}
|
||||
lg={10}
|
||||
md={10}
|
||||
sm={12}
|
||||
className='collapsable-form-style-form7'
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="What is your goal from treatment?(ex-play golf without pain)"
|
||||
variant='outlined'
|
||||
label='What is your goal from treatment?(ex-play golf without pain)'
|
||||
name='treatmentGoal'
|
||||
onChange={(e) => {
|
||||
setPatient((prevValues) => ({
|
||||
@ -356,13 +564,15 @@ export default function PainAnalysisSection4({handleFormSection4Data,patientData
|
||||
treatmentGoal: e.target.value,
|
||||
}));
|
||||
}}
|
||||
value={type=='display'?patientDataDiplay.treatmentGoal:patient.treatmentGoal}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.treatmentGoal
|
||||
: patient.treatmentGoal
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</>
|
||||
)}
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
@ -1,4 +1,13 @@
|
||||
import { TextField, FormControlLabel,Grid,Checkbox, FormControl, FormLabel, Radio, RadioGroup } from '@mui/material';
|
||||
import {
|
||||
TextField,
|
||||
FormControlLabel,
|
||||
Grid,
|
||||
Checkbox,
|
||||
FormControl,
|
||||
FormLabel,
|
||||
Radio,
|
||||
RadioGroup,
|
||||
} from '@mui/material';
|
||||
import * as React from 'react';
|
||||
import Table from '../Helper/AddNewTable';
|
||||
import { useEffect } from 'react';
|
||||
@ -31,15 +40,17 @@ type Props = {
|
||||
ifyesdizzinessFetigue: string | undefined,
|
||||
antiColligent: string | undefined,
|
||||
injuriesHospitalization: string | undefined,
|
||||
supplementsOrDrugs: string|undefined,
|
||||
)=> void
|
||||
supplementsOrDrugs: string | undefined
|
||||
) => void;
|
||||
patientDataDiplay: any;
|
||||
type: string;
|
||||
}
|
||||
|
||||
|
||||
export default function PastTreatment5({handleFormSection5Data,patientDataDiplay,type}:Props){
|
||||
};
|
||||
|
||||
export default function PastTreatment5({
|
||||
handleFormSection5Data,
|
||||
patientDataDiplay,
|
||||
type,
|
||||
}: Props) {
|
||||
const [patient, setPatient] = React.useState<Patient>({
|
||||
generalHealth: '',
|
||||
presentProblemBefore: '',
|
||||
@ -52,7 +63,7 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
ifyesdizzinessFetigue: '',
|
||||
antiColligent: '',
|
||||
injuriesHospitalization: '',
|
||||
supplementsOrDrugs:''
|
||||
supplementsOrDrugs: '',
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
@ -68,21 +79,28 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
patient.ifyesdizzinessFetigue,
|
||||
patient.antiColligent,
|
||||
patient.injuriesHospitalization,
|
||||
patient.supplementsOrDrugs,
|
||||
)
|
||||
},[patient])
|
||||
patient.supplementsOrDrugs
|
||||
);
|
||||
}, [patient]);
|
||||
|
||||
return (
|
||||
<>
|
||||
<form>
|
||||
<Grid container direction="row">
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid container direction='row'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Overall your General Healgth is:</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.generalHealth:patient.generalHealth}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.generalHealth
|
||||
: patient.generalHealth
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
@ -91,21 +109,56 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Excellent" control={<Radio />} label="Excellent" />
|
||||
<FormControlLabel disabled={type=='display'} value="Very Good" control={<Radio />} label="Very Good" />
|
||||
<FormControlLabel disabled={type=='display'} value="Good" control={<Radio />} label="Good" />
|
||||
<FormControlLabel disabled={type=='display'} value="Fair" control={<Radio />} label="Fair" />
|
||||
<FormControlLabel disabled={type=='display'} value="Poor" control={<Radio />} label="Poor" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Excellent'
|
||||
control={<Radio />}
|
||||
label='Excellent'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Very Good'
|
||||
control={<Radio />}
|
||||
label='Very Good'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Good'
|
||||
control={<Radio />}
|
||||
label='Good'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Fair'
|
||||
control={<Radio />}
|
||||
label='Fair'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Poor'
|
||||
control={<Radio />}
|
||||
label='Poor'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Have you experienced your present problem before?</FormLabel>
|
||||
<FormLabel>
|
||||
Have you experienced your present problem before?
|
||||
</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.presentProblemBefore:patient.presentProblemBefore}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.presentProblemBefore
|
||||
: patient.presentProblemBefore
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
@ -114,24 +167,38 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-form7'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-form7'
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="If yes, when?"
|
||||
variant='outlined'
|
||||
label='If yes, when?'
|
||||
name='treatmentGoal'
|
||||
disabled={patient.presentProblemBefore!=='Yes'||type=='display'}
|
||||
disabled={
|
||||
patient.presentProblemBefore !== 'Yes' || type == 'display'
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -140,18 +207,27 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-form7'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-form7'
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Was treatment provided?If yes, by whom?"
|
||||
variant='outlined'
|
||||
label='Was treatment provided?If yes, by whom?'
|
||||
name='treatmentGoal'
|
||||
disabled={patient.presentProblemBefore!=='Yes'||type=='display'}
|
||||
value={type=='display'?patientDataDiplay.ifYestreatmentProvided:patient.ifYestreatmentProvided}
|
||||
disabled={
|
||||
patient.presentProblemBefore !== 'Yes' || type == 'display'
|
||||
}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.ifYestreatmentProvided
|
||||
: patient.ifYestreatmentProvided
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -160,18 +236,27 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-form7'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-form7'
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="Outcome?"
|
||||
variant='outlined'
|
||||
label='Outcome?'
|
||||
name='treatmentGoal'
|
||||
disabled={patient.presentProblemBefore!=='Yes'||type=='display'}
|
||||
value={type=='display'?patientDataDiplay.ifYesOutcome:patient.ifYesOutcome}
|
||||
disabled={
|
||||
patient.presentProblemBefore !== 'Yes' || type == 'display'
|
||||
}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.ifYesOutcome
|
||||
: patient.ifYesOutcome
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -181,14 +266,27 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Have you ever had a stroke or issues with blood clotting?</FormLabel>
|
||||
<FormLabel>
|
||||
Have you ever had a stroke or issues with blood clotting?
|
||||
</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.strokeBloodclotting:patient.strokeBloodclotting}
|
||||
value={type=='display'?patientDataDiplay.strokeBloodclotting:patient.strokeBloodclotting}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.strokeBloodclotting
|
||||
: patient.strokeBloodclotting
|
||||
}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.strokeBloodclotting
|
||||
: patient.strokeBloodclotting
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
@ -197,19 +295,43 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={4} className='collapsable-form-style-form7'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={10}
|
||||
lg={10}
|
||||
md={10}
|
||||
sm={12}
|
||||
className='collapsable-form-style-form7'
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="If yes, when?"
|
||||
variant='outlined'
|
||||
label='If yes, when?'
|
||||
name='treatmentGoal'
|
||||
value={type=='display'?patientDataDiplay.ifYesstrokeBloodclotting:patient.ifYesstrokeBloodclotting}
|
||||
disabled={patient.strokeBloodclotting!=='Yes'||type=='display'}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.ifYesstrokeBloodclotting
|
||||
: patient.ifYesstrokeBloodclotting
|
||||
}
|
||||
disabled={
|
||||
patient.strokeBloodclotting !== 'Yes' || type == 'display'
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -219,13 +341,24 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Have you recently experienced dizziness, unexplained fatigue, weight loss or blood loss?</FormLabel>
|
||||
<FormLabel>
|
||||
Have you recently experienced dizziness, unexplained fatigue,
|
||||
weight loss or blood loss?
|
||||
</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
name='painDuration'
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
defaultValue={type=='display'?patientDataDiplay.dizzinessFetigue:patient.dizzinessFetigue}
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.dizzinessFetigue
|
||||
: patient.dizzinessFetigue
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -233,19 +366,41 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={4} className='collapsable-form-style-form7'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={10}
|
||||
lg={10}
|
||||
md={10}
|
||||
sm={12}
|
||||
className='collapsable-form-style-form7'
|
||||
>
|
||||
<TextField
|
||||
variant="outlined"
|
||||
label="If yes, when?"
|
||||
variant='outlined'
|
||||
label='If yes, when?'
|
||||
name='treatmentGoal'
|
||||
disabled={patient.dizzinessFetigue !== 'Yes'}
|
||||
value={type=='display'?patientDataDiplay.ifyesdizzinessFetigue:patient.ifyesdizzinessFetigue}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.ifyesdizzinessFetigue
|
||||
: patient.ifyesdizzinessFetigue
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -255,13 +410,24 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Are you currently taking anti-coagulant or blood thinning medication?</FormLabel>
|
||||
<FormLabel>
|
||||
Are you currently taking anti-coagulant or blood thinning
|
||||
medication?
|
||||
</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
name='painDuration'
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
defaultValue={type=='display'?patientDataDiplay.antiColligent:patient.antiColligent}
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.antiColligent
|
||||
: patient.antiColligent
|
||||
}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
...prevValues,
|
||||
@ -269,18 +435,39 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} className='collapsable-form-style-radioButtons-fullwidth'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
className='collapsable-form-style-radioButtons-fullwidth'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Have you ever had any major illness, injuries, hospitalization or surgeries?</FormLabel>
|
||||
<FormLabel>
|
||||
Have you ever had any major illness, injuries, hospitalization
|
||||
or surgeries?
|
||||
</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.injuriesHospitalization:patient.injuriesHospitalization}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.injuriesHospitalization
|
||||
: patient.injuriesHospitalization
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
@ -289,8 +476,18 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
@ -299,21 +496,32 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
<Table
|
||||
handleFormSection5Data={handleFormSection5Data}
|
||||
patientDataDiplay={patientDataDiplay}
|
||||
type={type}/>
|
||||
type={type}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-multiline'>
|
||||
<FormLabel>Please list current supplements or drugs you may be taking:</FormLabel>
|
||||
sm={12}
|
||||
className='collapsable-form-style-multiline'
|
||||
>
|
||||
<FormLabel>
|
||||
Please list current supplements or drugs you may be taking:
|
||||
</FormLabel>
|
||||
<TextField
|
||||
multiline
|
||||
variant="outlined"
|
||||
label=""
|
||||
variant='outlined'
|
||||
label=''
|
||||
name='treatmentGoal'
|
||||
defaultValue={type=='display'?patientDataDiplay.supplementsOrDrugs:patient.supplementsOrDrugs}
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.supplementsOrDrugs
|
||||
: patient.supplementsOrDrugs
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
onChange={(event) => {
|
||||
setPatient((prevValues) => ({
|
||||
@ -323,9 +531,8 @@ export default function PastTreatment5({handleFormSection5Data,patientDataDiplay
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</form>
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -189,7 +189,6 @@ export default function PersonalSection({
|
||||
: ''
|
||||
}
|
||||
/>
|
||||
|
||||
</Grid>
|
||||
|
||||
<Grid
|
||||
|
||||
@ -1,5 +1,13 @@
|
||||
import { FormControl, FormControlLabel, FormLabel, Grid, Radio, RadioGroup, TextField } from "@mui/material";
|
||||
import React, { useEffect } from "react";
|
||||
import {
|
||||
FormControl,
|
||||
FormControlLabel,
|
||||
FormLabel,
|
||||
Grid,
|
||||
Radio,
|
||||
RadioGroup,
|
||||
TextField,
|
||||
} from '@mui/material';
|
||||
import React, { useEffect } from 'react';
|
||||
|
||||
interface Patient {
|
||||
eyes: string;
|
||||
@ -39,13 +47,17 @@ interface Patient {
|
||||
nerves: string | undefined,
|
||||
blood: string | undefined,
|
||||
prostate: string | undefined,
|
||||
explanation:string|undefined,
|
||||
)=> void
|
||||
explanation: string | undefined
|
||||
) => void;
|
||||
patientDataDiplay: any;
|
||||
type: string;
|
||||
}
|
||||
};
|
||||
|
||||
export default function SystemReviewSection6({handleFormSection6Data,patientDataDiplay,type}:Props){
|
||||
export default function SystemReviewSection6({
|
||||
handleFormSection6Data,
|
||||
patientDataDiplay,
|
||||
type,
|
||||
}: Props) {
|
||||
const [patient, setPatients] = React.useState<Patient>({
|
||||
eyes: '',
|
||||
IntestinesBowls: '',
|
||||
@ -84,25 +96,33 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
patient.nerves,
|
||||
patient.blood,
|
||||
patient.prostate,
|
||||
patient.explanation,
|
||||
)
|
||||
},[patient])
|
||||
patient.explanation
|
||||
);
|
||||
}, [patient]);
|
||||
return (
|
||||
<>
|
||||
<Grid item xs={12} className='collapsable-form-style '>
|
||||
<FormLabel sx={{fontWeight:600}}>Please choose body areas or systems where you may have problems:</FormLabel>
|
||||
<FormLabel sx={{ fontWeight: 600 }}>
|
||||
Please choose body areas or systems where you may have problems:
|
||||
</FormLabel>
|
||||
</Grid>
|
||||
<Grid container direction="row">
|
||||
<Grid item xs={12}
|
||||
<Grid container direction='row'>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Eyes</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.eyes:patient.eyes}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display' ? patientDataDiplay.eyes : patient.eyes
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -111,21 +131,39 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Intestines/Bowls</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.IntestinesBowls:patient.IntestinesBowls}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.IntestinesBowls
|
||||
: patient.IntestinesBowls
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -134,21 +172,39 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Joints/Bones</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.jointsBones:patient.jointsBones}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.jointsBones
|
||||
: patient.jointsBones
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -157,21 +213,39 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Allergies</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.allergies:patient.allergies}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.allergies
|
||||
: patient.allergies
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -180,21 +254,39 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Ears, Nose, Mouth, Throat</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.earsNoseMouth:patient.earsNoseMouth}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.earsNoseMouth
|
||||
: patient.earsNoseMouth
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -203,21 +295,37 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Urinary</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.urinary:patient.urinary}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display' ? patientDataDiplay.urinary : patient.urinary
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -226,21 +334,37 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Skin</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.skin:patient.skin}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display' ? patientDataDiplay.skin : patient.skin
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -249,21 +373,39 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Psychological/Emotional</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.psychological:patient.psychological}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.psychological
|
||||
: patient.psychological
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -272,21 +414,37 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Heart</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.heart:patient.heart}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display' ? patientDataDiplay.heart : patient.heart
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -295,21 +453,37 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Muscles</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.muscles:patient.muscles}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display' ? patientDataDiplay.muscles : patient.muscles
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -318,21 +492,39 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Internal Organs</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.internalOrgans:patient.internalOrgans}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.internalOrgans
|
||||
: patient.internalOrgans
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -341,21 +533,39 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Gynecological menstrual/Brest</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.gynecological:patient.gynecological}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.gynecological
|
||||
: patient.gynecological
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -364,22 +574,40 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Lungs/Breathing</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.lungsBreathing:patient.lungsBreathing}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.lungsBreathing
|
||||
: patient.lungsBreathing
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -388,21 +616,37 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Nerves</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.nerves:patient.nerves}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display' ? patientDataDiplay.nerves : patient.nerves
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -411,21 +655,37 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Blood</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.blood:patient.blood}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display' ? patientDataDiplay.blood : patient.blood
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -434,21 +694,39 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={12}
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={3}
|
||||
lg={4}
|
||||
md={6}
|
||||
sm={12} className='collapsable-form-style-radioButtons'>
|
||||
sm={12}
|
||||
className='collapsable-form-style-radioButtons'
|
||||
>
|
||||
<FormControl>
|
||||
<FormLabel>Prostate/Testicular/Penile</FormLabel>
|
||||
<RadioGroup
|
||||
name="painDuration"
|
||||
defaultValue={type=='display'?patientDataDiplay.prostate:patient.prostate}
|
||||
name='painDuration'
|
||||
defaultValue={
|
||||
type == 'display'
|
||||
? patientDataDiplay.prostate
|
||||
: patient.prostate
|
||||
}
|
||||
sx={{ display: 'flex', flexDirection: 'row' }}
|
||||
onChange={(event) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -457,19 +735,42 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}));
|
||||
}}
|
||||
>
|
||||
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='Yes'
|
||||
control={<Radio />}
|
||||
label='Yes'
|
||||
/>
|
||||
<FormControlLabel
|
||||
disabled={type == 'display'}
|
||||
value='No'
|
||||
control={<Radio />}
|
||||
label='No'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
<Grid item xs={6} className='collapsable-form-style-multiline'>
|
||||
<FormLabel>Please explain your check marks:</FormLabel><br></br>
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
xl={10}
|
||||
lg={10}
|
||||
md={10}
|
||||
sm={12}
|
||||
className='collapsable-form-style-multiline'
|
||||
>
|
||||
<FormLabel>Please explain your check marks:</FormLabel>
|
||||
<br></br>
|
||||
<TextField
|
||||
multiline
|
||||
variant="outlined"
|
||||
label=""
|
||||
variant='outlined'
|
||||
label=''
|
||||
name='explanation'
|
||||
value={type=='display'?patientDataDiplay.explanation:patient.explanation}
|
||||
value={
|
||||
type == 'display'
|
||||
? patientDataDiplay.explanation
|
||||
: patient.explanation
|
||||
}
|
||||
disabled={type == 'display'}
|
||||
onChange={(event: any) => {
|
||||
setPatients((prevValues) => ({
|
||||
@ -479,8 +780,7 @@ export default function SystemReviewSection6({handleFormSection6Data,patientData
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user