diff --git a/cypress/pageobject/Patient/PatientConsultation.ts b/cypress/pageobject/Patient/PatientConsultation.ts
index 6937559d548..2eb6550cb8b 100644
--- a/cypress/pageobject/Patient/PatientConsultation.ts
+++ b/cypress/pageobject/Patient/PatientConsultation.ts
@@ -49,7 +49,7 @@ export class PatientConsultationPage {
.click()
.type("1A");
cy.get("#icd11_diagnoses_object [role='option']")
- .contains("1A03 Intestinal infections due to Escherichia coli")
+ .contains("1A00 Cholera")
.scrollIntoView()
.click();
cy.get("label[for='icd11_diagnoses_object']").click();
@@ -57,7 +57,7 @@ export class PatientConsultationPage {
cy.get("#icd11_principal_diagnosis [role='combobox']").click().type("1A");
cy.get("#icd11_principal_diagnosis [role='option']")
- .contains("1A03 Intestinal infections due to Escherichia coli")
+ .contains("1A00 Cholera")
.click();
cy.get("#consultation_notes").click().type(consulationNotes);
diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts
index 7f5484564fc..2dd8c477233 100644
--- a/cypress/support/commands.ts
+++ b/cypress/support/commands.ts
@@ -81,7 +81,7 @@ Cypress.Commands.add(
Cypress.Commands.add("verifyNotification", (text) => {
cy.get(".pnotify-container").should("exist").contains(text);
- return cy.get(".pnotify-container").click({ force: true });
+ return cy.get(".pnotify-container").contains(text).click({ force: true });
});
Cypress.on("uncaught:exception", () => {
diff --git a/package-lock.json b/package-lock.json
index 4871fbe374b..2a9fe3f520f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -14496,8 +14496,6 @@
},
"node_modules/npm/node_modules/cross-spawn/node_modules/which": {
"version": "2.0.2",
- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"dev": true,
"inBundle": true,
"license": "ISC",
@@ -15254,8 +15252,6 @@
},
"node_modules/npm/node_modules/minipass": {
"version": "5.0.0",
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
- "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
"dev": true,
"inBundle": true,
"license": "ISC",
@@ -16398,8 +16394,6 @@
},
"node_modules/npm/node_modules/tar": {
"version": "6.1.15",
- "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz",
- "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==",
"dev": true,
"inBundle": true,
"license": "ISC",
@@ -16500,8 +16494,6 @@
},
"node_modules/npm/node_modules/util-deprecate": {
"version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
"dev": true,
"inBundle": true,
"license": "MIT"
@@ -16569,8 +16561,6 @@
},
"node_modules/npm/node_modules/wrap-ansi": {
"version": "8.1.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
- "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",
"dev": true,
"inBundle": true,
"license": "MIT",
@@ -16589,8 +16579,6 @@
"node_modules/npm/node_modules/wrap-ansi-cjs": {
"name": "wrap-ansi",
"version": "7.0.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"inBundle": true,
"license": "MIT",
@@ -16670,8 +16658,6 @@
},
"node_modules/npm/node_modules/wrappy": {
"version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
"dev": true,
"inBundle": true,
"license": "ISC"
@@ -16691,8 +16677,6 @@
},
"node_modules/npm/node_modules/yallist": {
"version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
"dev": true,
"inBundle": true,
"license": "ISC"
diff --git a/src/CAREUI/display/RecordMeta.tsx b/src/CAREUI/display/RecordMeta.tsx
index 83928f1f23a..48cc8d370ad 100644
--- a/src/CAREUI/display/RecordMeta.tsx
+++ b/src/CAREUI/display/RecordMeta.tsx
@@ -11,13 +11,14 @@ interface Props {
last_name: string;
last_login: string | undefined;
};
+ inlineUser?: boolean;
}
/**
* A generic component to display relative time along with a tooltip and a user
* if provided.
*/
-const RecordMeta = ({ time, user, prefix, className }: Props) => {
+const RecordMeta = ({ time, user, prefix, className, inlineUser }: Props) => {
const isOnline = user && isUserOnline(user);
let child = (
@@ -25,14 +26,15 @@ const RecordMeta = ({ time, user, prefix, className }: Props) => {
{relativeTime(time)}
{formatDateTime(time)}
- {user && (
- <>
+ {user && !inlineUser && (
+
+ by
- Update record for asset + {t("update_record_for_asset")} {props.asset?.name}
Edited On
++ {t("edited_on")} +
{formatDateTime(editRecord.edited_on)}
Edited By
++ {t("edited_by")} +
{editRecord.edited_by.username}
@@ -125,7 +129,7 @@ export const AssetServiceEditModal = (props: {- Serviced On + {t("serviced_on")}
Notes
++ {t("notes")} +
{editRecord.note || "-"}
@@ -151,7 +157,7 @@ export const AssetServiceEditModal = (props: { editRecord ? setEditRecord(undefined) : props.handleClose(); }} > - {editRecord ? "Back" : "Close"} + {editRecord ? t("back") : t("close")}- Update record for asset + {t("update_record_for_asset")} {props.asset?.name}
- You need at least a location to create an assest. + {t("you_need_at_least_a_location_to_create_an_assest")}
@@ -440,7 +441,8 @@ const AssetCreate = (props: AssetProps) => { onClick={() => setIsScannerActive(false)} className="btn btn-default mb-2" > - Close Scanner + + {t("close_scanner")}{t("medicine")} | - -
- Dosage & -- {!state?.prescriptions[0]?.is_prn ? "Frequency" : "Indicator"} - + |
+
+ {t("medicine")}
+
+
Dosage & ++ {!state?.prescriptions[0]?.is_prn + ? "Frequency" + : "Indicator"} + + + |
@@ -164,6 +184,8 @@ export default function PrescriptionAdministrationsTable({
variant="secondary"
disabled={!pagination.hasPrevious}
onClick={pagination.previous}
+ tooltip="Previous 24 hours"
+ tooltipClassName="tooltip-bottom -translate-x-1/2 text-xs"
>
|
---|
{prescription.dosage}
++ {!prescription.is_prn + ? t("PRESCRIPTION_FREQUENCY_" + prescription.frequency) + : prescription.indicator} +
+{prescription.dosage}
-- {!prescription.is_prn - ? t("PRESCRIPTION_FREQUENCY_" + prescription.frequency) - : prescription.indicator} -
-