{label}
- - {diagnoses.slice(0, !showMore ? nshow : undefined).map((diagnosis) => ( -{diagnosis.label}
- ))} + {diagnoses.slice(0, !showMore ? nshow : undefined).map((diagnosis) => + diagnosis.id === consultationData.icd11_principal_diagnosis ? ( +{diagnosis.label}
+{diagnosis.label}
+ ) + )} {diagnoses.length > nshow && ( <> {!showMore ? ( @@ -359,22 +369,6 @@ export const ConsultationDetails = (props: any) => {{t("medicine")} | - -
- Dosage & -- {!state?.prescriptions[0]?.is_prn ? "Frequency" : "Indicator"} - + |
+
+ {t("medicine")}
+
+
Dosage & ++ {!state?.prescriptions[0]?.is_prn + ? "Frequency" + : "Indicator"} + + + |
@@ -162,8 +184,10 @@ export default function PrescriptionAdministrationsTable({
border
className="mx-2 px-1"
variant="secondary"
- disabled={!pagination.hasPrevious}
- onClick={pagination.previous}
+ disabled={!pagination.hasNext}
+ onClick={pagination.next}
+ tooltip="Next 24 hours"
+ tooltipClassName="tooltip-bottom -translate-x-1/2 text-xs"
>
|
))
- : pagination.slots?.map(({ start, end }, index) => (
-
- {formatDateTime(start, "DD/MM")} -{formatDateTime(start, "HH:mm")} - - - Administration(s) between -- {formatTime(start)} and{" "} - {formatTime(end)} - - on {formatDate(start)} - - |
- ))}
+ : pagination.slots
+ ?.map(({ start, end }, index) => (
+
+ {formatDateTime(end, "DD/MM")} +{formatDateTime(end, "HH:mm")} + + + Administration(s) between ++ {formatTime(start)} and{" "} + {formatTime(end)} + + on {formatDate(start)} + + |
+ ))
+ .reverse()}
|
---|
{prescription.dosage}
-- {!prescription.is_prn - ? t("PRESCRIPTION_FREQUENCY_" + prescription.frequency) - : prescription.indicator} -
-{prescription.dosage}
++ {!prescription.is_prn + ? t("PRESCRIPTION_FREQUENCY_" + prescription.frequency) + : prescription.indicator} +
+