-
+
Showing {currentPage * rowsPerPage - rowsPerPage + 1} to{" "}
{currentPage * rowsPerPage > fileData.length
? fileData.length
@@ -242,7 +242,7 @@ const ExcelViewer = ({
/>
)}
{
setRowsPerPage(+e.target.value);
diff --git a/src/Components/Common/FilePreviewDialog.tsx b/src/Components/Common/FilePreviewDialog.tsx
index 3f55621e8c7..fc4345cc321 100644
--- a/src/Components/Common/FilePreviewDialog.tsx
+++ b/src/Components/Common/FilePreviewDialog.tsx
@@ -105,7 +105,7 @@ const FilePreviewDialog = (props: FilePreviewProps) => {
{fileUrl ? (
<>
-
+
{file_state.name}.{file_state.extension}
@@ -125,7 +125,7 @@ const FilePreviewDialog = (props: FilePreviewProps) => {
-
+
{file_state.isImage ? (
{
Can't preview this file. Try downloading it.
diff --git a/src/Components/Common/GLocationPicker.tsx b/src/Components/Common/GLocationPicker.tsx
index f71583c2322..bfe95735127 100644
--- a/src/Components/Common/GLocationPicker.tsx
+++ b/src/Components/Common/GLocationPicker.tsx
@@ -222,7 +222,7 @@ const Map: React.FC
= ({
>
@@ -240,7 +240,7 @@ const Map: React.FC
= ({
>
)}
diff --git a/src/Components/Common/HeadedTabs.tsx b/src/Components/Common/HeadedTabs.tsx
index 38765431d94..33e8c96a239 100644
--- a/src/Components/Common/HeadedTabs.tsx
+++ b/src/Components/Common/HeadedTabs.tsx
@@ -20,7 +20,7 @@ export default function HeadedTabs(props: headedTabsProps) {
{
handleChange(
@@ -34,7 +34,7 @@ export default function HeadedTabs(props: headedTabsProps) {
-
+
{
handleChange(tab.value);
diff --git a/src/Components/Common/LanguageSelectorLogin.tsx b/src/Components/Common/LanguageSelectorLogin.tsx
index 1f4e8593d2a..1fc4cf4ac77 100644
--- a/src/Components/Common/LanguageSelectorLogin.tsx
+++ b/src/Components/Common/LanguageSelectorLogin.tsx
@@ -18,7 +18,7 @@ export const LanguageSelectorLogin = () => {
};
return (
-
+
{t("available_in")}
diff --git a/src/Components/Common/PageTitle.tsx b/src/Components/Common/PageTitle.tsx
index 990dc7b72cc..3af4c873872 100644
--- a/src/Components/Common/PageTitle.tsx
+++ b/src/Components/Common/PageTitle.tsx
@@ -70,7 +70,7 @@ export default function PageTitle({
>
{" "}
)}
diff --git a/src/Components/Common/Sidebar/Sidebar.tsx b/src/Components/Common/Sidebar/Sidebar.tsx
index abd158b2da7..9c26de9a051 100644
--- a/src/Components/Common/Sidebar/Sidebar.tsx
+++ b/src/Components/Common/Sidebar/Sidebar.tsx
@@ -223,7 +223,7 @@ interface ToggleShrinkProps {
const ToggleShrink = ({ shrinked, toggle }: ToggleShrinkProps) => (
{
@@ -46,9 +46,9 @@ const SidebarUserCard = ({ shrinked }: { shrinked: boolean }) => {
>
-
{t("sign_out")}
+
{t("sign_out")}
diff --git a/src/Components/Common/SlideOver.res b/src/Components/Common/SlideOver.res
index dbcacbe1bad..75f1c963c6e 100644
--- a/src/Components/Common/SlideOver.res
+++ b/src/Components/Common/SlideOver.res
@@ -13,7 +13,7 @@ let make = (~show, ~setShow, ~children) =>
leaveFrom="opacity-100"
leaveTo="opacity-0">
setShow(false)}
/>
diff --git a/src/Components/Common/Steps.tsx b/src/Components/Common/Steps.tsx
index e0b1e03af3f..31c5145835f 100644
--- a/src/Components/Common/Steps.tsx
+++ b/src/Components/Common/Steps.tsx
@@ -13,7 +13,7 @@ export default function Steps(props: { steps: Step[] }) {
{props.steps.map((step, stepIdx) => (
@@ -34,7 +34,7 @@ export default function Steps(props: { steps: Step[] }) {
aria-hidden="true"
/>
-
+
{step.name}
@@ -66,12 +66,12 @@ export default function Steps(props: { steps: Step[] }) {
}`}
>
-
-
+
+
{step.id}
-
+
{step.name}
@@ -85,7 +85,7 @@ export default function Steps(props: { steps: Step[] }) {
aria-hidden="true"
>
+
-
+
{date}
-
+
{incidents.length === 0 ? (
<>
No status for the day
@@ -119,7 +119,7 @@ function UptimeInfo({
);
})}
-
+
Total downtime
@@ -372,7 +372,7 @@ export default function Uptime(
{props.header}
-
+
{getUptimePercent(numDays)}% uptime
@@ -425,7 +425,7 @@ export default function Uptime(
})}
diff --git a/src/Components/Common/UserAutocompleteFormField.tsx b/src/Components/Common/UserAutocompleteFormField.tsx
index 9e94c5e4e68..c7694b74e4e 100644
--- a/src/Components/Common/UserAutocompleteFormField.tsx
+++ b/src/Components/Common/UserAutocompleteFormField.tsx
@@ -48,7 +48,7 @@ export default function UserAutocompleteFormField(props: Props) {
-
+
{props.title}:
{props.children}
diff --git a/src/Components/Common/components/ButtonV2.tsx b/src/Components/Common/components/ButtonV2.tsx
index 3bc5a41e799..2c9579873b1 100644
--- a/src/Components/Common/components/ButtonV2.tsx
+++ b/src/Components/Common/components/ButtonV2.tsx
@@ -102,7 +102,7 @@ const ButtonV2 = ({
}: ButtonProps) => {
const className = classNames(
props.className,
- "inline-flex h-min cursor-pointer items-center justify-center gap-2 whitespace-pre font-medium outline-offset-1 transition-all duration-200 ease-in-out disabled:cursor-not-allowed disabled:bg-gray-200 disabled:text-gray-500",
+ "inline-flex h-min cursor-pointer items-center justify-center gap-2 whitespace-pre font-medium outline-offset-1 transition-all duration-200 ease-in-out disabled:cursor-not-allowed disabled:bg-secondary-200 disabled:text-secondary-500",
`button-size-${size}`,
`button-shape-${circle ? "circle" : "square"}`,
ghost ? `button-${variant}-ghost` : `button-${variant}-default`,
diff --git a/src/Components/Common/components/ContactLink.tsx b/src/Components/Common/components/ContactLink.tsx
index 762558f5bb2..ff13433cc3b 100644
--- a/src/Components/Common/components/ContactLink.tsx
+++ b/src/Components/Common/components/ContactLink.tsx
@@ -13,7 +13,7 @@ export default function ContactLink(props: ContactLinkProps) {
>
{props.tel ? props.tel : props.mailto}
diff --git a/src/Components/Common/components/Menu.tsx b/src/Components/Common/components/Menu.tsx
index 1caac9edc12..a6f66ff9d2f 100644
--- a/src/Components/Common/components/Menu.tsx
+++ b/src/Components/Common/components/Menu.tsx
@@ -34,7 +34,7 @@ export default function DropdownMenu({
-
+
@@ -57,7 +57,7 @@ let profileCard = () =>
-
+
diff --git a/src/Components/Common/components/Switch.tsx b/src/Components/Common/components/Switch.tsx
index 2253e95d155..7be7490f7b1 100644
--- a/src/Components/Common/components/Switch.tsx
+++ b/src/Components/Common/components/Switch.tsx
@@ -29,7 +29,7 @@ export default function SwitchV2
(props: SwitchProps) {
const additionalClassNames = selected
? (props.optionClassName && props.optionClassName(option)) ||
"bg-primary-500 hover:bg-primary-600 text-white border-primary-500 focus:ring-primary-500 focus:border-primary-500"
- : "bg-gray-50 hover:bg-gray-200 border-gray-400 focus:ring-primary-500 focus:border-primary-500";
+ : "bg-secondary-50 hover:bg-secondary-200 border-secondary-400 focus:ring-primary-500 focus:border-primary-500";
return (
+
<>{item}>
);
diff --git a/src/Components/Common/prescription-builder/InvestigationBuilder.tsx b/src/Components/Common/prescription-builder/InvestigationBuilder.tsx
index 6de2a83f1cb..ef99a7f1acc 100644
--- a/src/Components/Common/prescription-builder/InvestigationBuilder.tsx
+++ b/src/Components/Common/prescription-builder/InvestigationBuilder.tsx
@@ -4,6 +4,7 @@ import { PrescriptionMultiDropdown } from "./PrescriptionMultiselect";
import CareIcon from "../../../CAREUI/icons/CareIcon";
import request from "../../../Utils/request/request";
import routes from "../../../Redux/api";
+import { humanizeStrings } from "../../../Utils/utils";
export type InvestigationType = {
type?: string[];
@@ -86,9 +87,9 @@ export default function InvestigationBuilder(
return (
data?.results.map(
(investigation) =>
- `${investigation.name} -- ${investigation.groups
- .map((group) => ` ( ${group.name} ) `)
- .join(", ")}`,
+ `${investigation.name} -- ${humanizeStrings(
+ investigation.groups.map((group) => ` ( ${group.name} ) `),
+ )}`,
) ?? []
);
};
@@ -125,16 +126,16 @@ export default function InvestigationBuilder(
-
+
Investigation No. {i + 1}
setInvestigations(
investigations.filter((investigation, index) => i != index),
@@ -210,7 +211,7 @@ export default function InvestigationBuilder(
Time{" *"}
{
setItem(
@@ -257,7 +258,7 @@ export default function InvestigationBuilder(
onClick={() => {
setInvestigations([...investigations, { repetitive: false }]);
}}
- className="mt-4 block w-full bg-gray-200 px-4 py-2 text-left text-sm font-bold leading-5 text-gray-700 shadow-sm hover:bg-gray-300 hover:text-gray-900 focus:bg-gray-100 focus:text-gray-900 focus:outline-none"
+ className="mt-4 block w-full bg-secondary-200 px-4 py-2 text-left text-sm font-bold leading-5 text-secondary-700 shadow-sm hover:bg-secondary-300 hover:text-secondary-900 focus:bg-secondary-100 focus:text-secondary-900 focus:outline-none"
>
+ Add Investigation
diff --git a/src/Components/Common/prescription-builder/PrescriptionDropdown.tsx b/src/Components/Common/prescription-builder/PrescriptionDropdown.tsx
index dbfa0749ef1..6d122d00a5a 100644
--- a/src/Components/Common/prescription-builder/PrescriptionDropdown.tsx
+++ b/src/Components/Common/prescription-builder/PrescriptionDropdown.tsx
@@ -62,7 +62,7 @@ export function PrescriptionDropdown(props: {
id="frequency-interval"
type="button"
key={i}
- className="block w-full px-4 py-2 text-left text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:bg-gray-100 focus:text-gray-900 focus:outline-none"
+ className="block w-full px-4 py-2 text-left text-sm leading-5 text-secondary-700 hover:bg-secondary-100 hover:text-secondary-900 focus:bg-secondary-100 focus:text-secondary-900 focus:outline-none"
onClick={() => {
setValue(option);
setOpen(false);
diff --git a/src/Components/Common/prescription-builder/PrescriptionMultiselect.tsx b/src/Components/Common/prescription-builder/PrescriptionMultiselect.tsx
index 79ae3356ee4..4f744bcbae7 100644
--- a/src/Components/Common/prescription-builder/PrescriptionMultiselect.tsx
+++ b/src/Components/Common/prescription-builder/PrescriptionMultiselect.tsx
@@ -84,10 +84,10 @@ export function PrescriptionMultiDropdown(props: {
id="investigation-group"
key={i}
className={classNames(
- "block w-full px-4 py-2 text-left text-sm leading-5 text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:outline-none",
+ "block w-full px-4 py-2 text-left text-sm leading-5 text-secondary-700 hover:text-secondary-900 focus:text-secondary-900 focus:outline-none",
selectedValues.includes(option)
? "bg-primary-100 hover:bg-primary-200"
- : "hover:bg-gray-100 focus:bg-gray-100",
+ : "hover:bg-secondary-100 focus:bg-secondary-100",
)}
onClick={() => {
setSelectedValues(
diff --git a/src/Components/Common/prescription-builder/ProcedureBuilder.tsx b/src/Components/Common/prescription-builder/ProcedureBuilder.tsx
index 5eca95354bf..fe7ec3cda3c 100644
--- a/src/Components/Common/prescription-builder/ProcedureBuilder.tsx
+++ b/src/Components/Common/prescription-builder/ProcedureBuilder.tsx
@@ -41,18 +41,18 @@ export default function ProcedureBuilder(props: Props) {
-
+
Procedure No. {i + 1}
setProcedures(
procedures.filter((procedure, index) => i != index),
@@ -69,7 +69,7 @@ export default function ProcedureBuilder(props: Props) {
) {
setActiveIdx(i)}
onBlur={() => setActiveIdx(null)}
@@ -160,7 +160,7 @@ export default function ProcedureBuilder(props: Props) {
Notes
setActiveIdx(i)}
@@ -186,7 +186,7 @@ export default function ProcedureBuilder(props: Props) {
onClick={() => {
setProcedures([...procedures, { repetitive: false }]);
}}
- className="mt-4 block w-full bg-gray-200 px-4 py-2 text-left text-sm font-bold leading-5 text-gray-700 shadow-sm hover:bg-gray-300 hover:text-gray-900 focus:bg-gray-100 focus:text-gray-900 focus:outline-none"
+ className="mt-4 block w-full bg-secondary-200 px-4 py-2 text-left text-sm font-bold leading-5 text-secondary-700 shadow-sm hover:bg-secondary-300 hover:text-secondary-900 focus:bg-secondary-100 focus:text-secondary-900 focus:outline-none"
>
+ Add Procedures
diff --git a/src/Components/CriticalCareRecording/CriticalCare__Index.res b/src/Components/CriticalCareRecording/CriticalCare__Index.res
index 56bc5623264..0290728fd82 100644
--- a/src/Components/CriticalCareRecording/CriticalCare__Index.res
+++ b/src/Components/CriticalCareRecording/CriticalCare__Index.res
@@ -11,17 +11,20 @@ let renderLine = (title, value) => {
let renderIndicators = (title, value, isMin, isMax, minText, maxText) => {
let indicator = if isMax {
- {str(maxText)}
+
+ {str(maxText)}
} else if isMin {
- {str(minText)}
+
+ {str(minText)}
} else {
- {str("Normal")}
+
+ {str("Normal")}
}
@@ -109,25 +112,25 @@ let make = (
+ className="bg-white px-2 md:px-6 py-5 border-b border-secondary-200 sm:px-6 max-w-5xl mx-auto border mt-4 shadow rounded-lg">
{str("Consultation Update")}
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/src/Components/CriticalCareRecording/DailyRound__Medicines.res b/src/Components/CriticalCareRecording/DailyRound__Medicines.res
index 4ecca39a4f5..ce143c24d29 100644
--- a/src/Components/CriticalCareRecording/DailyRound__Medicines.res
+++ b/src/Components/CriticalCareRecording/DailyRound__Medicines.res
@@ -8,20 +8,20 @@ let make = (~prescriptions) => {
:
+ className="align-middle inline-block min-w-full shadow overflow-hidden sm:rounded-lg border-b border-secondary-200">
+ className="px-6 py-3 border-b border-secondary-200 bg-secondary-50 text-left text-xs leading-4 font-medium text-secondary-500 uppercase tracking-wider">
{str("Medicine")}
+ className="px-6 py-3 border-b border-secondary-200 bg-secondary-50 text-left text-xs leading-4 font-medium text-secondary-500 uppercase tracking-wider">
{str("Dosage")}
+ className="px-6 py-3 border-b border-secondary-200 bg-secondary-50 text-left text-xs leading-4 font-medium text-secondary-500 uppercase tracking-wider">
{str("Days")}
@@ -29,13 +29,15 @@ let make = (~prescriptions) => {
{Js.Array.mapi((p, index) => {
+ className="px-6 py-4 whitespace-nowrap text-sm leading-5 font-medium text-secondary-900">
{str(Prescription__Prescription.medicine(p))}
-
+
{str(Prescription__Prescription.dosage(p))}
-
+
{str(string_of_int(Prescription__Prescription.days(p)))}
diff --git a/src/Components/CriticalCareRecording/HemodynamicParameters/CriticalCare__HemodynamicParametersEditor.res b/src/Components/CriticalCareRecording/HemodynamicParameters/CriticalCare__HemodynamicParametersEditor.res
index 829df2aa078..47cc040440e 100644
--- a/src/Components/CriticalCareRecording/HemodynamicParameters/CriticalCare__HemodynamicParametersEditor.res
+++ b/src/Components/CriticalCareRecording/HemodynamicParameters/CriticalCare__HemodynamicParametersEditor.res
@@ -53,7 +53,7 @@ let reducer = (state, action) => {
switch action {
| SetPain(pain) => {
...state,
- pain: pain,
+ pain,
dirty: true,
}
| SetSystolic(systolic) => {
@@ -85,10 +85,10 @@ let reducer = (state, action) => {
resp: Some(resp),
dirty: true,
}
- | SetRhythm(rhythm) => {...state, rhythm: rhythm, dirty: true}
+ | SetRhythm(rhythm) => {...state, rhythm, dirty: true}
| SetRhythmDetails(rhythmDetails) => {
...state,
- rhythmDetails: rhythmDetails,
+ rhythmDetails,
dirty: true,
}
| SetSaving => {...state, saving: true}
@@ -143,7 +143,11 @@ let makePayload = state => {
Js.Dict.set(payload, "bp", Js.Json.object_(makeBpPayload(systolic, diastolic)))
| (_, _) => ()
}
- Js.Dict.set(payload, "pain_scale_enhanced", Js.Json.objectArray(Js.Array.map(makePainField, state.pain)))
+ Js.Dict.set(
+ payload,
+ "pain_scale_enhanced",
+ Js.Json.objectArray(Js.Array.map(makePainField, state.pain)),
+ )
DictUtils.setOptionalNumber("pulse", state.pulse, payload)
DictUtils.setOptionalNumber("ventilator_spo2", state.spo2, payload)
DictUtils.setOptionalFloat(
@@ -256,11 +260,11 @@ let make = (~hemodynamicParameter, ~updateCB, ~id, ~consultationId) => {
hasError={ValidationUtils.isInputInRangeInt(0, 100, state.spo2)}
/>
-
+
ToggleTemperatureUnit->send}>
{state.tempInCelcius ? "C"->str : "F"->str}
}
@@ -291,19 +295,19 @@ let make = (~hemodynamicParameter, ~updateCB, ~id, ~consultationId) => {
{str("Pain")}
-
{str("Mark region and intensity of pain")}
+
{str("Mark region and intensity of pain")}
{
- send(SetPain(data));
+ send(SetPain(data))
}}
id={id}
consultationId={consultationId}
/>
-
+
{