Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Community Nurse's Log; improved Nursing Care section UI #8522

Merged
merged 19 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
542f41f
Improved Nursing Care UI; fixes #8521
rithviknishad Sep 11, 2024
d395aa0
make multi-select menu options type immutable
rithviknishad Sep 11, 2024
dcce340
Adds support for community nurses log update
rithviknishad Sep 12, 2024
ba1cc23
fix error: no key for repeating elements; fix i18n's; fix missing val…
rithviknishad Sep 13, 2024
cb23669
Update view details page; fixes #8532
rithviknishad Sep 13, 2024
20cb8ee
skip parent is section check; coz why not detail be present outside s…
rithviknishad Sep 13, 2024
beb0833
fix pressure sore and I/O balance accidentally getting hidden
rithviknishad Sep 13, 2024
08cc4d9
FIxes issues reported in QA
rithviknishad Sep 13, 2024
37840e4
Merge branch 'develop' into rithviknishad/feat/community-nurses-log-u…
rithviknishad Sep 17, 2024
8287ab5
change title from Nursing analysis to Nursing information; i18n consu…
rithviknishad Sep 17, 2024
307f50a
add routine view in nursing tab and improve i18n and other minor impr…
rithviknishad Sep 18, 2024
39464d0
Merge branch 'develop' into rithviknishad/feat/community-nurses-log-u…
rithviknishad Sep 18, 2024
f9ab0d2
make responsive in mobile screen
rithviknishad Sep 18, 2024
809d835
fix responsiveness
rithviknishad Sep 18, 2024
ae43d7a
add space to nutrition route
rithviknishad Sep 18, 2024
33748dd
fix cypress and adds missing i18n
rithviknishad Sep 18, 2024
0b75296
fix update log failing due to null sent to backend
rithviknishad Sep 18, 2024
54d8f48
fix cypress
rithviknishad Sep 18, 2024
5603345
make routine rows global const
rithviknishad Sep 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions cypress/e2e/patient_spec/PatientLogUpdate.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.selectPatientCategory(patientCategory);
patientLogupdate.selectRoundType("Detailed Update");
cy.submitButton("Save and Continue");
cy.verifyNotification("Detailed Update log created successfully");
cy.verifyNotification("Detailed Update created successfully");
cy.closeNotification();
// Select two Section - First One is Respiratory Support
patientLogupdate.selectCriticalCareSection("Respiratory Support");
Expand Down Expand Up @@ -162,7 +162,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.closeNotification();
// Submit the doctors log update
cy.submitButton("Save and Continue");
cy.verifyNotification("Progress Note log created successfully");
cy.verifyNotification("Progress Note created successfully");
cy.closeNotification();
// modify the relevant critical care log update
patientLogupdate.selectCriticalCareSection("Neurological Monitoring");
Expand Down Expand Up @@ -192,7 +192,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typeSystolic(patientModifiedSystolic);
patientLogupdate.typeDiastolic(patientModifiedDiastolic);
cy.submitButton("Continue");
cy.verifyNotification("Progress Note log updated successfully");
cy.verifyNotification("Progress Note updated successfully");
});

it("Create a new TeleIcu log update for a domicilary care patient", () => {
Expand All @@ -204,7 +204,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.closeNotification();
patientLogupdate.clickLogupdate();
patientLogupdate.typePhysicalExamination(physicalExamination);
patientLogupdate.selectRoundType("Telemedicine");
patientLogupdate.selectRoundType("Tele-medicine Log");
patientLogupdate.typeOtherDetails(otherExamination);
patientLogupdate.selectSymptomsDate("01012024");
patientLogupdate.typeAndMultiSelectSymptoms("fe", ["Fever"]);
Expand All @@ -219,7 +219,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typeRhythm(patientRhythm);
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
cy.submitButton("Save");
cy.verifyNotification("Telemedicine log created successfully");
cy.verifyNotification("Tele-medicine Log created successfully");
});

it("Create a new Normal Log update for a domicilary care patient and edit it", () => {
Expand All @@ -245,7 +245,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typeRhythm(patientRhythm);
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
cy.submitButton("Save");
cy.verifyNotification("Brief Update log created successfully");
cy.verifyNotification("Brief Update created successfully");
cy.closeNotification();
// edit the card and verify the data.
cy.contains("button", "Daily Rounds").click();
Expand All @@ -271,7 +271,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.clickClearButtonInElement("#diastolic");
patientLogupdate.typeDiastolic(patientModifiedDiastolic);
cy.submitButton("Continue");
cy.verifyNotification("Brief Update log updated successfully");
cy.verifyNotification("Brief Update updated successfully");
cy.contains("button", "Daily Rounds").click();
patientLogupdate.clickLogUpdateViewDetails(
"#dailyround-entry",
Expand Down Expand Up @@ -307,7 +307,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
cy.submitButton("Save");
cy.wait(2000);
cy.verifyNotification("Brief Update log created successfully");
cy.verifyNotification("Brief Update created successfully");
// Verify the card content
cy.get("#basic-information").scrollIntoView();
cy.verifyContentPresence("#encounter-symptoms", [additionalSymptoms]);
Expand All @@ -330,7 +330,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typeRespiratory(patientRespiratory);
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
cy.submitButton("Save");
cy.verifyNotification("Brief Update log created successfully");
cy.verifyNotification("Brief Update created successfully");
cy.closeNotification();
cy.verifyContentPresence("#consultation-buttons", ["9"]);
// Verify the Incomplete data will give blank info
Expand All @@ -340,7 +340,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typeDiastolic(patientDiastolic);
patientLogupdate.typePulse(patientPulse);
cy.submitButton("Save");
cy.verifyNotification("Brief Update log created successfully");
cy.verifyNotification("Brief Update created successfully");
cy.closeNotification();
cy.verifyContentPresence("#consultation-buttons", ["-"]);
});
Expand Down
75 changes: 59 additions & 16 deletions src/Common/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -773,28 +773,71 @@ export const MOTOR_RESPONSE_SCALE = [
{ value: 5, text: "Moves to localized pain" },
{ value: 6, text: "Obeying commands/Normal acrivity" },
];
export const CONSULTATION_TABS = [
{ text: "UPDATES", desc: "Overview" },
{ text: "FEED", desc: "Feed" },
{ text: "SUMMARY", desc: "Vitals" },
{ text: "ABG", desc: "ABG" },
{ text: "MEDICINES", desc: "Medicines" },
{ text: "FILES", desc: "Files" },
{ text: "INVESTIGATIONS", desc: "Investigations" },
{ text: "NEUROLOGICAL_MONITORING", desc: "Neuro" },
{ text: "VENTILATOR", desc: "Ventilation" },
{ text: "NUTRITION", desc: "Nutrition" },
{ text: "PRESSURE_SORE", desc: "Pressure Sore" },
{ text: "NURSING", desc: "Nursing" },
{ text: "DIALYSIS", desc: "Dialysis" },
{ text: "ABDM", desc: "ABDM Records" },
];

export const RHYTHM_CHOICES = [
{ id: 5, text: "REGULAR", desc: "Regular" },
{ id: 10, text: "IRREGULAR", desc: "Irregular" },
] as const;

export const BOWEL_ISSUE_CHOICES = [
"NO_DIFFICULTY",
"CONSTIPATION",
"DIARRHOEA",
] as const;

export const BLADDER_DRAINAGE_CHOICES = [
"NORMAL",
"CONDOM_CATHETER",
"DIAPER",
"INTERMITTENT_CATHETER",
"CONTINUOUS_INDWELLING_CATHETER",
"CONTINUOUS_SUPRAPUBIC_CATHETER",
"UROSTOMY",
] as const;

export const BLADDER_ISSUE_CHOICES = [
"NO_ISSUES",
"INCONTINENCE",
"RETENTION",
"HESITANCY",
] as const;

export const URINATION_FREQUENCY_CHOICES = [
"NORMAL",
"DECREASED",
"INCREASED",
] as const;

export const SLEEP_CHOICES = [
"EXCESSIVE",
"SATISFACTORY",
"UNSATISFACTORY",
"NO_SLEEP",
] as const;

export const NUTRITION_ROUTE_CHOICES = [
"ORAL",
"RYLES_TUBE",
"GASTROSTOMY_OR_JEJUNOSTOMY",
"PEG",
"PARENTERAL_TUBING_FLUID",
"PARENTERAL_TUBING_TPN",
] as const;

export const ORAL_ISSUE_CHOICES = [
"NO_ISSUE",
"DYSPHAGIA",
"ODYNOPHAGIA",
] as const;

export const APPETITE_CHOICES = [
"INCREASED",
"SATISFACTORY",
"REDUCED",
"NO_TASTE_FOR_FOOD",
"CANNOT_BE_ASSESSED",
] as const;

export const LOCATION_BED_TYPES = [
{ id: "ISOLATION", name: "Isolation" },
{ id: "ICU", name: "ICU" },
Expand Down
Loading
Loading