Showing 1,644 of 1,645 total issues
Similar blocks of code found in 2 locations. Consider refactoring. Open
const handleSeverityChange = useCallback( (value: string) => onUpdate(index, { severity: value as SymptomRequest["severity"], }),
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
<div className="xl:w-1/4 p-1 bg-white rounded-md shadow-md h-full"> <SideOverview encounter={encounter} canAccess={canAccess} canEdit={canEdit}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 3 locations. Consider refactoring. Open
) : resourceRequests?.results?.length ? ( resourceRequests.results.map((request, index) => ( <TableRow key={index}> <TableCell className="font-medium"> {RESOURCE_CATEGORY_CHOICES.find(
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
function StatusSelector({ value, onChange,}: { value: QuestionStatus;
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
const handleStatusChange = useCallback( (value: string) => onUpdate(index, { clinical_status: value as SymptomRequest["clinical_status"], }),
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
{isLoading ? ( <div> <div className="grid gap-5 my-5"> <CardListSkeleton count={RESULTS_PER_PAGE_LIMIT} /> </div>
- Read upRead up
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return { unit: "days", value: daysDiff, };
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return true;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return ( <DiagnosisQuestion {...commonProps} encounterId={encounterId} /> );
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return <span>{t("questionnaire_no_encounter")}</span>;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return <span>{t("questionnaire_diagnosis_no_encounter")}</span>;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return ( <EncounterQuestion {...commonProps} facilityId={facilityId} encounterId={encounterId}
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return ( <FilesQuestion {...commonProps} encounterId={encounterId} /> );
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return null;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return (await res.text()) as TData;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return <span>{t("questionnaire_files_no_encounter")}</span>;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return ( <SymptomQuestion {...commonProps} encounterId={encounterId} patientId={patientId}
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
return ( <AppointmentQuestion {...commonProps} facilityId={facilityId} /> );
- Create a ticketCreate a ticket