[WIP] Claim Encounters

This commit is contained in:
R
2023-03-24 14:41:02 +07:00
parent 229908e492
commit 7b9a341ccd
23 changed files with 1099 additions and 37 deletions

View File

@@ -17,6 +17,7 @@ export default function AutocompleteDoctor({
currentValue,
textLabel,
currentOptions = [],
...other
}: autocompleteDoctorType) {
const [options, setOptions] = useState<IcdType>(currentOptions);
const [loading, setLoading] = useState(false);
@@ -56,7 +57,7 @@ export default function AutocompleteDoctor({
}}
loading={loading}
renderInput={(params) => (
<TextField {...params} label={textLabel} variant="outlined" fullWidth onChange={(event) => {getOptions(event.target.value)}}/>
<TextField {...params} {...other} label={textLabel} variant="outlined" fullWidth onChange={(event) => {getOptions(event.target.value)}}/>
)}
/>
);

View File

@@ -17,6 +17,7 @@ export default function AutocompleteHealthcare({
currentValue,
textLabel,
currentOptions = [],
...other
}: autocompleteHealthcareType) {
const [options, setOptions] = useState<IcdType>(currentOptions);
const [loading, setLoading] = useState(false);
@@ -56,7 +57,7 @@ export default function AutocompleteHealthcare({
}}
loading={loading}
renderInput={(params) => (
<TextField {...params} label={textLabel} variant="outlined" fullWidth onChange={(event) => {getOptions(event.target.value)}}/>
<TextField {...params} {...other} label={textLabel} variant="outlined" fullWidth onChange={(event) => {getOptions(event.target.value)}}/>
)}
/>
);

View File

@@ -49,13 +49,30 @@ export default function RHFDatepicker({ name, ...other }: IProps & TextFieldProp
/>
)}
/> */}
<DesktopDatePicker
{/* <DesktopDatePicker
value={field.value}
inputFormat="dd/MM/yyyy"
onChange={(value) => {
field.onChange(value)
}}
renderInput={(params) => <TextField {...params} fullWidth />}
/> */}
<DesktopDatePicker
value={field.value}
inputFormat="dd/MM/yyyy"
onChange={(value) => {
field.onChange(value);
}}
renderInput={(params) => (
<TextField
{...params}
fullWidth
error={!!error}
helperText={error?.message}
{...other}
/>
)}
/>
</LocalizationProvider>
)}