Skip to content

Commit

Permalink
Adds Community Nurse's Log; improved Nursing Care section UI (#8522)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Sep 18, 2024
1 parent f7bda46 commit 1481408
Show file tree
Hide file tree
Showing 31 changed files with 1,022 additions and 458 deletions.
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

0 comments on commit 1481408

Please sign in to comment.