section 6 display
This commit is contained in:
parent
44cb8ce9ff
commit
3fc6f628bb
@ -458,9 +458,9 @@ export default function PatientForm({type}:Props){
|
|||||||
|
|
||||||
<AccordionDetails>
|
<AccordionDetails>
|
||||||
<PastTreatment5
|
<PastTreatment5
|
||||||
|
handleFormSection5Data={handleFormSection5Data}
|
||||||
patientDataDiplay={patientData.pastTreatment}
|
patientDataDiplay={patientData.pastTreatment}
|
||||||
type={type}
|
type={type}/>
|
||||||
handleFormSection5Data={handleFormSection5Data}/>
|
|
||||||
</AccordionDetails>
|
</AccordionDetails>
|
||||||
</Accordion>
|
</Accordion>
|
||||||
|
|
||||||
@ -470,7 +470,11 @@ export default function PatientForm({type}:Props){
|
|||||||
</AccordionSummary>
|
</AccordionSummary>
|
||||||
|
|
||||||
<AccordionDetails>
|
<AccordionDetails>
|
||||||
<SystemReviewSection6 handleFormSection6Data={handleFormSection6Data}/>
|
<SystemReviewSection6
|
||||||
|
handleFormSection6Data={handleFormSection6Data}
|
||||||
|
patientDataDiplay={patientData.systemReviewQuestions}
|
||||||
|
type={type}
|
||||||
|
/>
|
||||||
</AccordionDetails>
|
</AccordionDetails>
|
||||||
</Accordion>
|
</Accordion>
|
||||||
|
|
||||||
|
|||||||
@ -41,9 +41,11 @@ interface Patient {
|
|||||||
prostate: string|undefined,
|
prostate: string|undefined,
|
||||||
explanation:string|undefined,
|
explanation:string|undefined,
|
||||||
)=> void
|
)=> void
|
||||||
|
patientDataDiplay:any;
|
||||||
|
type:string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
export default function SystemReviewSection6({handleFormSection6Data,patientDataDiplay,type}:Props){
|
||||||
const [patient, setPatients] = React.useState<Patient>({
|
const [patient, setPatients] = React.useState<Patient>({
|
||||||
eyes: '',
|
eyes: '',
|
||||||
IntestinesBowls: '',
|
IntestinesBowls: '',
|
||||||
@ -96,6 +98,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Eyes</FormLabel>
|
<FormLabel>Eyes</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.eyes:patient.eyes}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -104,8 +107,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -114,6 +117,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Intestines/Bowls</FormLabel>
|
<FormLabel>Intestines/Bowls</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.IntestinesBowls:patient.IntestinesBowls}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -122,8 +126,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -132,6 +136,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Joints/Bones</FormLabel>
|
<FormLabel>Joints/Bones</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.jointsBones:patient.jointsBones}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -140,8 +145,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -150,6 +155,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Allergies</FormLabel>
|
<FormLabel>Allergies</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.allergies:patient.allergies}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -158,8 +164,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -168,6 +174,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Ears, Nose, Mouth, Throat</FormLabel>
|
<FormLabel>Ears, Nose, Mouth, Throat</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.earsNoseMouth:patient.earsNoseMouth}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -176,8 +183,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -186,6 +193,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Urinary</FormLabel>
|
<FormLabel>Urinary</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.urinary:patient.urinary}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -194,8 +202,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -204,6 +212,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Skin</FormLabel>
|
<FormLabel>Skin</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.skin:patient.skin}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -212,8 +221,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -222,6 +231,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Psychological/Emotional</FormLabel>
|
<FormLabel>Psychological/Emotional</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.psychological:patient.psychological}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -230,8 +240,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -240,6 +250,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Heart</FormLabel>
|
<FormLabel>Heart</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.heart:patient.heart}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -248,8 +259,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -258,6 +269,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Muscles</FormLabel>
|
<FormLabel>Muscles</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.muscles:patient.muscles}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -266,8 +278,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -276,6 +288,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Internal Organs</FormLabel>
|
<FormLabel>Internal Organs</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.internalOrgans:patient.internalOrgans}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -284,8 +297,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -294,6 +307,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Gynecological menstrual/Brest</FormLabel>
|
<FormLabel>Gynecological menstrual/Brest</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.gynecological:patient.gynecological}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -302,8 +316,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -313,6 +327,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Lungs/Breathing</FormLabel>
|
<FormLabel>Lungs/Breathing</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.lungsBreathing:patient.lungsBreathing}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -321,8 +336,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -331,6 +346,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Nerves</FormLabel>
|
<FormLabel>Nerves</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.nerves:patient.nerves}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -339,8 +355,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -349,6 +365,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Blood</FormLabel>
|
<FormLabel>Blood</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.blood:patient.blood}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -357,8 +374,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -367,6 +384,7 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
<FormLabel>Prostate/Testicular/Penile</FormLabel>
|
<FormLabel>Prostate/Testicular/Penile</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
|
defaultValue={type=='display'?patientDataDiplay.prostate:patient.prostate}
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
@ -375,8 +393,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
}));
|
}));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="Yes" control={<Radio />} label="Yes" />
|
<FormControlLabel disabled={type=='display'} value="Yes" control={<Radio />} label="Yes" />
|
||||||
<FormControlLabel value="No" control={<Radio />} label="No" />
|
<FormControlLabel disabled={type=='display'} value="No" control={<Radio />} label="No" />
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
@ -387,7 +405,8 @@ export default function SystemReviewSection6({handleFormSection6Data}:Props){
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
label=""
|
label=""
|
||||||
name='explanation'
|
name='explanation'
|
||||||
value={patient.explanation}
|
value={type=='display'?patientDataDiplay.explanation:patient.explanation}
|
||||||
|
disabled={type=='display'}
|
||||||
onChange={(event:any) => {
|
onChange={(event:any) => {
|
||||||
setPatients((prevValues) => ({
|
setPatients((prevValues) => ({
|
||||||
...prevValues,
|
...prevValues,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user