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