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

Doctor notes enhancement #4

Open
wants to merge 182 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
7443efd
reply feature for doctor notes
UdaySagar-Git May 13, 2024
3128fd7
code reviews
UdaySagar-Git May 15, 2024
51edb8d
code review
UdaySagar-Git May 16, 2024
ab2ec7e
Merge branch 'develop' into doctors-notes
rithviknishad May 20, 2024
2a3793a
Merge branch 'develop' into doctors-notes
nihal467 May 22, 2024
c23309f
profile picture feature
UdaySagar-Git Jun 7, 2024
7abc974
bug fix
UdaySagar-Git Jun 8, 2024
8eb0dd2
minor ui fix
UdaySagar-Git Jun 8, 2024
1bb7be9
add profile image in the side bar
UdaySagar-Git Jun 11, 2024
9852ae5
Merge branch 'doctors-notes' into gsoc-doctor-notes
UdaySagar-Git Jun 11, 2024
37a5947
Merge branch 'issues/3924/support-for-profile-pic' into gsoc-doctor-n…
UdaySagar-Git Jun 11, 2024
81450b4
Rich text editor
UdaySagar-Git Jun 20, 2024
6600560
Merge branch 'develop' into rich-text-editor
UdaySagar-Git Jun 20, 2024
de5a78e
Merge branch 'rich-text-editor' into gsoc-doctor-notes
UdaySagar-Git Jun 20, 2024
b955e78
code suggestions
UdaySagar-Git Jun 27, 2024
966970f
removes npm i packages
UdaySagar-Git Jun 27, 2024
9b2ae15
thread view
UdaySagar-Git Jun 28, 2024
a1446bd
code suggestions
UdaySagar-Git Jul 3, 2024
f1caca3
Merge branch 'develop' into rich-text-editor
UdaySagar-Git Jul 4, 2024
a3d1bc3
removes depricated commands
UdaySagar-Git Jul 4, 2024
16853d1
use usereducer
UdaySagar-Git Jul 4, 2024
10941b6
removes undo rendo
UdaySagar-Git Jul 4, 2024
e0ee2f5
support for mentions
UdaySagar-Git Jul 4, 2024
02ce215
mention style and strike through style
UdaySagar-Git Jul 5, 2024
d5a450e
file uploads
UdaySagar-Git Jul 5, 2024
ccafa0f
improved ui
UdaySagar-Git Jul 5, 2024
c2709a1
bug fix for file preview
UdaySagar-Git Jul 6, 2024
704cfba
support for camera captures and audio recordings
UdaySagar-Git Jul 6, 2024
9a88d4b
Merge branch 'issues/3924/support-for-profile-pic' into gsoc-doctor-n…
UdaySagar-Git Jul 6, 2024
dd73c02
Merge branch 'rich-text-editor' into gsoc-doctor-notes
UdaySagar-Git Jul 6, 2024
3956329
Merge branch 'rich-text-editor' into gsoc-doctor-notes
UdaySagar-Git Jul 6, 2024
2b93ad7
Merge branch 'thread-view' into gsoc-doctor-notes
UdaySagar-Git Jul 6, 2024
eeeab48
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Jul 6, 2024
a2b9061
mention hover card
UdaySagar-Git Jul 7, 2024
b926262
Merge branch 'rich-text-editor' into gsoc-doctor-notes
UdaySagar-Git Jul 7, 2024
2943843
code refactor for a reusable component
UdaySagar-Git Jul 8, 2024
891cfbf
Merge branch 'rich-text-editor' into gsoc-doctor-notes
UdaySagar-Git Jul 8, 2024
720d8da
integrated with doctor notes
UdaySagar-Git Jul 8, 2024
c8d8935
ui improvements
UdaySagar-Git Jul 8, 2024
32b4695
code suggestions
UdaySagar-Git Jul 9, 2024
82da842
fix cypress tests
UdaySagar-Git Jul 9, 2024
ca7d6ac
fix cypress tests
UdaySagar-Git Jul 9, 2024
b30e989
code suggeestions
UdaySagar-Git Jul 9, 2024
2066844
fix button clicks to remove styles if already updated
UdaySagar-Git Jul 9, 2024
2a57f8d
ui improvements
UdaySagar-Git Jul 10, 2024
149b74b
improvements in thread view
UdaySagar-Git Jul 10, 2024
85c1c5b
fix quote and hyperlink
UdaySagar-Git Jul 10, 2024
5f6ce4c
fix strike through
UdaySagar-Git Jul 10, 2024
4aba764
code refactor
UdaySagar-Git Jul 10, 2024
9720d23
sugeestions
UdaySagar-Git Jul 12, 2024
20a01ef
suggestions
UdaySagar-Git Jul 12, 2024
bdaa6b5
ui enhancement
UdaySagar-Git Jul 12, 2024
3036acf
fix bug
UdaySagar-Git Jul 12, 2024
362b80b
support for file upload
UdaySagar-Git Jul 12, 2024
6a472cb
fix preview
UdaySagar-Git Jul 12, 2024
266b494
fix deploy and minor fix
UdaySagar-Git Jul 12, 2024
e29837f
bug fix - enter uploading a notes
UdaySagar-Git Jul 12, 2024
cdfdf8f
bug fix
UdaySagar-Git Jul 12, 2024
f6c39b3
code review
UdaySagar-Git Jul 12, 2024
913f898
suggestions
UdaySagar-Git Jul 12, 2024
8364851
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Jul 20, 2024
e2b826a
Merge branch 'develop' into issues/3924/support-for-profile-pic
UdaySagar-Git Aug 15, 2024
de199bc
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Aug 15, 2024
cc51d0e
refetch user on save
UdaySagar-Git Aug 15, 2024
4dcebd7
Merge branch 'issues/3924/support-for-profile-pic' into gsoc-doctor-n…
UdaySagar-Git Aug 16, 2024
cca0084
improvements in thread view , to view in same page
UdaySagar-Git Aug 19, 2024
212bf59
Show Uploaded files under patient consultation page
UdaySagar-Git Aug 19, 2024
d3f2801
some ui fixes by keeping track of parent note
UdaySagar-Git Aug 20, 2024
646d770
mention preview improvements
UdaySagar-Git Aug 21, 2024
ad6acc4
improve filtering for mentions
UdaySagar-Git Aug 21, 2024
a26c956
supports for controlling dropdown menu with keyboard arrows and enter…
UdaySagar-Git Aug 21, 2024
2719bca
redirects to notes page on clicking on notification
UdaySagar-Git Aug 21, 2024
18989ea
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Aug 21, 2024
b7d617c
Avoid unnecessary `toReversed` fn. invocation (#8392)
rithviknishad Aug 22, 2024
9d2640d
Corrected Spelling mistake of daily rounds fields: ventilator_fi02 to…
SagarSharma2809 Aug 22, 2024
d67a23a
Fix Scroll Issue with Pressure Sores Popup (#8400)
gigincg Aug 22, 2024
e14acb4
Migrate to Headless UI v2 (#8260)
khavinshankar Aug 22, 2024
2ab8f4d
Fixed: #8265: Neurological Tables Padding Issue (#8386)
0xvish Aug 22, 2024
7f51640
Hide N/A and null values in event log #8376 (#8381)
Nithin9585 Aug 22, 2024
1340a23
Update react-pdf; pdfjs worker; Fixes for il8n (#8395)
gigincg Aug 22, 2024
c26c3de
Enable Facility Cover Image Uploads on Mobile Screens (#8402)
gigincg Aug 22, 2024
da6bed1
Improve Notes TextArea; Improve i18n (#8396)
gigincg Aug 22, 2024
fa7c1fd
Fix pdf previews (#8405)
sainak Aug 23, 2024
8aa4e9f
Fix clipping issue login page (#7891)
sunny-thakurwar Aug 23, 2024
62febd1
Fixes facility cover image from not reloading after upload (#8412)
rithviknishad Aug 23, 2024
5bff760
Refactored FileUpload component (#8329)
UdaySagar-Git Aug 23, 2024
a170fdb
fix merge
UdaySagar-Git Aug 23, 2024
cc4b73c
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Aug 23, 2024
54153b8
lint fix
UdaySagar-Git Aug 23, 2024
c900e9a
ui fixes
UdaySagar-Git Aug 23, 2024
66fb4fc
switch to plain markdown
UdaySagar-Git Aug 24, 2024
7dd1d81
improved dispaly of files ui to use existing components
UdaySagar-Git Aug 24, 2024
a66e9a2
shows fileuploads in notes under patient consultation page
UdaySagar-Git Aug 24, 2024
16664d5
santize markdown , fix mention trigger even after insertion , fix cur…
UdaySagar-Git Aug 24, 2024
8859914
fix lists and quotes
UdaySagar-Git Aug 24, 2024
85ea7e8
imporve styling
UdaySagar-Git Aug 24, 2024
c61e2ec
fix reload to happen only after all file uploads to prevent incomplet…
UdaySagar-Git Aug 24, 2024
2222e31
removes unused packages
UdaySagar-Git Aug 24, 2024
71a328b
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Sep 20, 2024
7164603
fix conflicts
UdaySagar-Git Sep 20, 2024
5dc990f
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Oct 1, 2024
17a6fb7
fix build and add missing imports
UdaySagar-Git Oct 1, 2024
4e06cf2
cleanup and some fixes
UdaySagar-Git Oct 1, 2024
88dae0b
fix file name during upload
UdaySagar-Git Oct 2, 2024
d61a2fd
Merge branch 'develop' into gsoc-doctor-notes
nihal467 Oct 3, 2024
ea1f0fe
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Oct 5, 2024
1996f6e
fix cypress test run
UdaySagar-Git Oct 5, 2024
5d869c4
Merge branch 'develop' into gsoc-doctor-notes
khavinshankar Oct 9, 2024
93f3f86
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Oct 13, 2024
287aa4f
ui improvements and bug fixes
UdaySagar-Git Oct 13, 2024
0e6fded
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Oct 17, 2024
09a23eb
fix build
UdaySagar-Git Oct 18, 2024
ade1875
Merge branch 'develop' into gsoc-doctor-notes
khavinshankar Oct 23, 2024
76164b1
suggestions
UdaySagar-Git Oct 23, 2024
e7580d1
refactor file upload logic to use existing modals
UdaySagar-Git Oct 23, 2024
e9e9a5b
Merge remote-tracking branch 'upstream/develop' into gsoc-doctor-notes
UdaySagar-Git Oct 23, 2024
49a8af9
fix imports
UdaySagar-Git Oct 23, 2024
c930f08
try moving files
UdaySagar-Git Oct 23, 2024
d500866
Fix casing issues
UdaySagar-Git Oct 23, 2024
618a407
Re-index all files
UdaySagar-Git Oct 23, 2024
cfccbff
use child_notes field
UdaySagar-Git Oct 24, 2024
ce0aa97
rename 'parent_note' to 'root_note'
UdaySagar-Git Oct 25, 2024
7089f59
Merge branch 'develop' into gsoc-doctor-notes
UdaySagar-Git Nov 2, 2024
1e008aa
Merge remote-tracking branch 'upstream/develop' into gsoc-doctor-notes
UdaySagar-Git Nov 12, 2024
87a4807
fix import errors
UdaySagar-Git Nov 12, 2024
0d0e53b
suggestions
UdaySagar-Git Nov 17, 2024
b2d3856
switch to use existing lib (marked instead of react-markdown)
UdaySagar-Git Nov 17, 2024
1fe415b
improve hover styling
UdaySagar-Git Nov 17, 2024
1952514
suggestions
UdaySagar-Git Nov 18, 2024
b75bc8b
suggestions
UdaySagar-Git Nov 18, 2024
860072a
drop page for discussion files
UdaySagar-Git Nov 22, 2024
4bc655b
simplify logic
UdaySagar-Git Nov 30, 2024
dc92f73
drop richtext support
UdaySagar-Git Dec 1, 2024
f5ffa65
refactor NOTES to PATIENT_NOTES and fix reload issue before file upload
UdaySagar-Git Dec 2, 2024
8ebe615
Merge branch 'ohcnetwork:develop' into doctor-notes-enhancement
UdaySagar-Git Dec 3, 2024
f9799a1
supports audio preview and code refactor
UdaySagar-Git Dec 3, 2024
7458c11
fix scroll position issues and incorrect data issues on switching thread
UdaySagar-Git Dec 3, 2024
453042e
fix markdown dropdown position
UdaySagar-Git Dec 4, 2024
3ec736b
update regex and reuse editor component
UdaySagar-Git Dec 4, 2024
60978df
suggestions
UdaySagar-Git Dec 4, 2024
24660b1
Merge branch 'develop' into doctor-notes-enhancement
UdaySagar-Git Dec 4, 2024
585cea2
ui improvements
UdaySagar-Git Dec 4, 2024
8ceb326
update avatar in mention dropdown
UdaySagar-Git Dec 5, 2024
563ef7a
suggestions
UdaySagar-Git Dec 5, 2024
b1b1762
switch to absolute imports
UdaySagar-Git Dec 5, 2024
b4979e5
coderabbit suggestion
UdaySagar-Git Dec 5, 2024
fe109e8
switch to use secondary and some suggestions
UdaySagar-Git Dec 5, 2024
d85a3ee
refactored a lot of compoents related to notes
UdaySagar-Git Dec 5, 2024
4702d32
Merge branch 'develop' into doctor-notes-enhancement
UdaySagar-Git Dec 5, 2024
d0186b6
code suggestions
UdaySagar-Git Dec 5, 2024
52decf5
add loding state for audio and imporve styling
UdaySagar-Git Dec 5, 2024
d29a2c1
Refactor notification event name
UdaySagar-Git Dec 5, 2024
2dc1e10
suggestions
UdaySagar-Git Dec 10, 2024
b910707
fix cypress tests
UdaySagar-Git Dec 10, 2024
af5d5aa
Merge branch 'develop' into doctor-notes-enhancement
UdaySagar-Git Dec 11, 2024
ad78704
Merge branch 'develop' into doctor-notes-enhancement
UdaySagar-Git Dec 15, 2024
681625b
Merge branch 'develop' into doctor-notes-enhancement
UdaySagar-Git Dec 15, 2024
95aa142
Merge branch 'develop' into doctor-notes-enhancement
nihal467 Dec 16, 2024
6e2ab87
fix deployment
UdaySagar-Git Dec 16, 2024
bfbc5d3
Merge branch 'develop' into doctor-notes-enhancement
UdaySagar-Git Dec 17, 2024
25a4bbe
disable prefetch when consultationId is not present
UdaySagar-Git Dec 17, 2024
32e7b39
replace useQuery with tanstack/react-query and some suggestions
UdaySagar-Git Dec 17, 2024
b58cfad
Merge branch 'develop' into doctor-notes-enhancement
UdaySagar-Git Dec 17, 2024
8553b6f
add translation key for patient_notes
UdaySagar-Git Dec 17, 2024
ba80ea9
Adds `useMutation` compatible utility function and other abstractions…
rithviknishad Dec 17, 2024
927c399
Search UI for discharge patients (#9320)
Mahendar0701 Dec 17, 2024
9ac5225
Fixes UI Bug Issue in Symptom Editor (#9270)
JavidSumra Dec 17, 2024
2e82999
Occupancy bed tooltip fully visible in mobile view (#9235)
Rishith25 Dec 17, 2024
10bfd6c
Disallowing out of date range (#9201)
Rishith25 Dec 17, 2024
59625d2
Merge branch 'develop' into doctor-notes-enhancement
UdaySagar-Git Dec 17, 2024
ab45147
suggestions
UdaySagar-Git Dec 17, 2024
f56e6f5
Bump @sentry/browser from 8.42.0 to 8.45.1 (#9473)
dependabot[bot] Dec 17, 2024
3618853
Fix: UI changes in shifting and resources pages (#9437)
SathishAdithiyaaSV Dec 18, 2024
a01321b
Create 'copyToClipboard' utility function (#9449)
rajku-dev Dec 18, 2024
3979b53
Cypress tests replace cy.wait with cy.intercept or dynamic waits (#8963)
Rishith25 Dec 18, 2024
4a560f4
FIXED: The APPROVAL LETTER is not wrapped with the <PrintPreview> com…
modamaan Dec 18, 2024
1d50f53
Fix avatar upload stuck state and update header after changing avatar…
shauryag2002 Dec 18, 2024
d113b56
Fixed Flaky Test in cypress develop branch (#9492)
nihal467 Dec 19, 2024
c2ec59a
Bump cypress from 13.15.2 to 13.17.0 (#9482)
dependabot[bot] Dec 19, 2024
c1890ed
Bump @radix-ui/react-tooltip from 1.1.4 to 1.1.6 (#9481)
dependabot[bot] Dec 19, 2024
5bb768f
Merge branch 'develop' into doctor-notes-enhancement
UdaySagar-Git Dec 19, 2024
542a615
replace with usemutation
UdaySagar-Git Dec 19, 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
2 changes: 1 addition & 1 deletion .cursorrules
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ UI and Styling

General Guidelines

- Care uses a custom useQuery hook to fetch data from the API. (Docs @ /Utils/request/useQuery)
- Care uses TanStack Query for data fetching from the API along with query and mutate utilities for the queryFn and mutationFn. (Docs @ /Utils/request/README.md)
- APIs are defined in the api.tsx file.
1 change: 0 additions & 1 deletion cypress/e2e/assets_spec/AssetHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ rolesToTest.forEach((role) => {
it("Export the list of assets in CSV & Json", () => {
if (role === "districtAdmin") {
assetHome.selectAssetImportButton("click");
cy.wait(2000);
assetHome.selectJsonExportButton();
assetHome.selectAssetImportButton("click");
assetHome.selectCsvExportButton();
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/facility_spec/FacilityCreation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ describe("Facility Creation with multiple user roles", () => {
beforeEach(() => {
cy.viewport(1280, 720);
cy.restoreLocalStorage();
cy.awaitUrl("/facility");
});

it("Create a new facility with all fields | Edit Existing Data | Verify its reflection", () => {
Expand Down
2 changes: 2 additions & 0 deletions cypress/e2e/facility_spec/FacilityHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ describe("Facility Homepage Function", () => {
});

it("Verify the bed capacity badge reflection", () => {
facilityHome.interceptFacilitySearchReq();
facilityHome.typeFacilitySearch(facilityWithNoAvailableBeds);
facilityHome.verifyFacilitySearchReq();
facilityHome.assertFacilityInCard(facilityWithNoAvailableBeds);
cy.url().then((url) => {
const facilityUrl = url.toString();
Expand Down
13 changes: 9 additions & 4 deletions cypress/e2e/facility_spec/FacilityInventory.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,20 @@ describe("Inventory Management Section", () => {

it("Add New Inventory | Modify data and delete last entry ", () => {
// add a new item
facilityPage.interceptManageInventoryItem();
facilityPage.clickManageInventory();
facilityPage.verifyManageInventoryItem();
facilityPage.fillInventoryDetails("PPE", "Add Stock", "10");
facilityPage.clickAddInventory();
facilityPage.verifySuccessNotification("Inventory created successfully");
cy.closeNotification();
facilityPage.clickManageInventory();
// modify the new item
facilityPage.fillInventoryDetails("PPE", "Use Stock", "5");
facilityPage.clickAddInventory();
facilityPage.verifySuccessNotification("Inventory created successfully");
facilityPage.verifySuccessNotification(
"Inventory use stock updated successfully",
);
// verify the new modification
facilityPage.verifyPpeQuantity("PPE");
facilityPage.verifyPpeQuantity("5");
Expand All @@ -43,7 +48,6 @@ describe("Inventory Management Section", () => {
// verify the last entry deletion
facilityPage.verifyStockInRow("#row-0", "Added Stock");
facilityPage.verifyStockInRow("#row-1", "Used Stock");
cy.wait(3000);
facilityHome.navigateBack();
facilityPage.verifyPpeQuantity("PPE");
});
Expand All @@ -57,9 +61,10 @@ describe("Inventory Management Section", () => {
cy.closeNotification();
// Verify Backend minimum badge
facilityPage.verifyBadgeWithText(".badge-danger", "Low Stock");
facilityPage.interceptMinimumQuantity();
// modify with manual minimum badge
facilityPage.clickAddMinimumQuanitity();
cy.wait(3000);
facilityPage.clickAddMinimumQuantity();
facilityPage.verifyMinimumQuantity();
cy.get("body").then(($body) => {
if ($body.find("#update-minimum-quantity").is(":visible")) {
// If the 'update-minimum-quantity' element is visible, click it
Expand Down
5 changes: 4 additions & 1 deletion cypress/e2e/patient_spec/PatientConsultationCreation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ describe("Patient Consultation in multiple combination", () => {
patientPrescription.selectMedicine(medicineOne);
patientPrescription.enterDosage("3");
patientPrescription.selectDosageFrequency("Twice daily");
patientPrescription.interceptPrescriptions();
cy.clickSubmitButton("Submit");
cy.wait(2000);
patientPrescription.verifyPrescription();
cy.verifyNotification("Medicine prescribed");
patientPrescription.clickReturnToDashboard();
// Verify the data's across the dashboard
Expand Down Expand Up @@ -376,7 +377,9 @@ describe("Patient Consultation in multiple combination", () => {

it("Edit created consultation to existing patient", () => {
patientPage.visitPatient("Dummy Patient Thirteen");
patientConsultationPage.interceptConsultation();
patientConsultationPage.clickEditConsultationButton();
patientConsultationPage.verifyConsultation();
patientConsultationPage.typePatientIllnessHistory("editted");
patientConsultationPage.selectPatientDiagnosis(
diagnosis5,
Expand Down
12 changes: 8 additions & 4 deletions cypress/e2e/patient_spec/PatientConsultationDischarge.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ describe("Patient Discharge based on multiple reason", () => {
patientDischarge.clickDischarge();
patientDischarge.selectDischargeReason(patientDischargeReason4);
cy.clickSubmitButton("Confirm Discharge");
patientDischarge.interceptDischargePatient();
cy.clickSubmitButton("Acknowledge & Submit");
patientDischarge.verifyDischargePatient();
cy.verifyNotification("Patient Discharged Successfully");
cy.closeNotification();
// Verify the consultation dashboard reflection
Expand All @@ -53,7 +55,9 @@ describe("Patient Discharge based on multiple reason", () => {
patientDischarge.typeDischargeNote(patientDeathCause);
patientDischarge.typeDoctorName(doctorName);
cy.clickSubmitButton("Confirm Discharge");
patientDischarge.interceptDischargePatient();
cy.clickSubmitButton("Acknowledge & Submit");
patientDischarge.verifyDischargePatient();
cy.verifyNotification("Patient Discharged Successfully");
cy.closeNotification();
// Verify the consultation dashboard reflection
Expand All @@ -76,10 +80,10 @@ describe("Patient Discharge based on multiple reason", () => {
patientDischarge.clickClearButton();
// select a non-registered facility and perform the discharge
patientDischarge.typeReferringFacility(referringFreetextFacility);
cy.wait(2000);
cy.clickSubmitButton("Confirm Discharge");
patientDischarge.interceptDischargePatient();
cy.clickSubmitButton("Acknowledge & Submit");
cy.wait(2000);
patientDischarge.verifyDischargePatient();
cy.verifyNotification("Patient Discharged Successfully");
cy.closeNotification();
// Verify the consultation dashboard reflection
Expand All @@ -106,12 +110,12 @@ describe("Patient Discharge based on multiple reason", () => {
patientPrescription.selectDosageFrequency("Twice daily");
cy.clickSubmitButton("Submit");
cy.verifyNotification("Medicine prescribed");
cy.wait(2000);
cy.closeNotification();
// submit the discharge pop-up
cy.clickSubmitButton("Confirm Discharge");
patientDischarge.interceptDischargePatient();
cy.clickSubmitButton("Acknowledge & Submit");
cy.wait(2000);
patientDischarge.verifyDischargePatient();
cy.verifyNotification("Patient Discharged Successfully");
cy.closeNotification();
// Verify the consultation dashboard reflection
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/patient_spec/PatientHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ describe("Patient Homepage present functionalities", () => {
.then((patientOne: string) => {
firstPatientPageOne = patientOne.trim();
pageNavigation.navigateToNextPage();
cy.wait(2000);
pageNavigation.verifyCurrentPageNumber(2);
cy.get('[data-cy="patient"]')
.first()
Expand Down
38 changes: 30 additions & 8 deletions cypress/e2e/patient_spec/PatientLogUpdate.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
const patientInvestigation = new PatientInvestigation();
const patientPrescription = new PatientPrescription();
const patientCategory = "Moderate";
const patientModifiedCategory = "Critical";
const additionalSymptoms = "Fever";
const physicalExamination = "physical examination details";
const otherExamination = "Other";
Expand Down Expand Up @@ -58,7 +59,9 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.clickSubmitButton("Update Consultation");
cy.verifyNotification("Consultation updated successfully");
cy.closeNotification();
patientPage.interceptGetPatient();
patientLogupdate.clickLogupdate();
patientPage.verifyGetPatientResponse();
patientLogupdate.typePhysicalExamination(physicalExamination);
patientLogupdate.selectRoundType("Tele-medicine Log");
patientLogupdate.selectPatientCategory(patientCategory);
Expand All @@ -80,11 +83,15 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {

it("Create a new Progress log update for a admitted patient and edit it", () => {
patientPage.visitPatient(patientOne);
patientLogupdate.interceptConsultationBed();
patientLogupdate.clickLogupdate();
patientLogupdate.verifyConsultationBed();
cy.verifyNotification("Please assign a bed to the patient");
patientLogupdate.selectBed(bedOne);
cy.closeNotification();
patientPage.interceptGetPatient();
patientLogupdate.clickLogupdate();
patientPage.verifyGetPatientResponse();
// Only will be using random non-unique progress note fields
patientLogupdate.selectRoundType("Progress Note");
patientLogupdate.selectPatientCategory(patientCategory);
Expand Down Expand Up @@ -112,15 +119,18 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.verifyNotification("Medicine prescribed");
cy.closeNotification();
// Submit the doctors log update
patientLogupdate.interceptDailyRounds();
cy.clickSubmitButton("Save and Continue");
cy.wait(2000);
patientLogupdate.verifyDailyRounds();
cy.verifyNotification("Progress Note created successfully");
cy.closeNotification();
// modify the relevant critical care log update
patientLogupdate.selectCriticalCareSection("Neurological Monitoring");
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
cy.get("#left_pupil_light_reaction-option-FIXED").click();
patientLogupdate.interceptpatchDailyRounds();
cy.clickSubmitButton("Update Details");
patientLogupdate.verifypatchDailyRounds();
cy.verifyNotification(
"Neurological Monitoring details succesfully updated.",
);
Expand All @@ -141,6 +151,9 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
]);
// verify the edit functionality
patientLogupdate.clickUpdateDetail();
patientLogupdate.verifyPatientCategory(patientCategory);
patientLogupdate.verifyRoundType("Progress Note");
patientLogupdate.selectPatientCategory(patientModifiedCategory);
patientLogupdate.typeSystolic(patientModifiedSystolic);
patientLogupdate.typeDiastolic(patientModifiedDiastolic);
cy.clickSubmitButton("Continue");
Expand All @@ -156,7 +169,9 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.clickLogupdate();
patientLogupdate.selectRoundType("Detailed Update");
patientLogupdate.selectPatientCategory(patientCategory);
patientLogupdate.interceptDailyRounds();
cy.clickSubmitButton("Save and Continue");
patientLogupdate.verifyDailyRounds();
cy.verifyNotification("Detailed Update created successfully");
cy.closeNotification();
// Select two Section - First One is Respiratory Support
Expand Down Expand Up @@ -235,9 +250,12 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.verifyNotification("Please assign a bed to the patient");
patientLogupdate.selectBed(bedThree);
cy.closeNotification();
patientPage.interceptGetPatient();
patientLogupdate.clickLogupdate();
patientLogupdate.typePhysicalExamination(physicalExamination);
patientPage.verifyGetPatientResponse();
patientLogupdate.verifyRoundType("Brief Update");
patientLogupdate.selectPatientCategory(patientCategory);
patientLogupdate.typePhysicalExamination(physicalExamination);
patientLogupdate.typeOtherDetails(otherExamination);
patientLogupdate.selectSymptomsDate("01012024");
patientLogupdate.typeAndMultiSelectSymptoms("fe", ["Fever"]);
Expand All @@ -251,9 +269,11 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.selectRhythm(patientRhythmType);
patientLogupdate.typeRhythm(patientRhythm);
cy.get("#consciousness_level-option-RESPONDS_TO_PAIN").click();
patientConsultationPage.interceptConsultation();
cy.clickSubmitButton("Save");
cy.wait(2000);
patientConsultationPage.verifyConsultation();
cy.verifyNotification("Brief Update created successfully");
cy.closeNotification();
// Verify the card content
cy.get("#basic-information").scrollIntoView();
cy.verifyContentPresence("#encounter-symptoms", [additionalSymptoms]);
Expand All @@ -267,11 +287,13 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.verifyNotification("Consultation updated successfully");
cy.closeNotification();
patientLogupdate.clickLogupdate();
patientLogupdate.verifyRoundType("Brief Update"); // Verify the default round type
patientLogupdate.selectRoundType("Brief Update");
patientLogupdate.selectPatientCategory(patientCategory);
patientLogupdate.typePhysicalExamination(physicalExamination);
patientLogupdate.typeOtherDetails(otherExamination);
patientLogupdate.selectSymptomsDate("01012024");
patientLogupdate.typeAndMultiSelectSymptoms("fe", ["Fever"]);
patientLogupdate.selectPatientCategory(patientCategory);
patientLogupdate.typeSystolic(patientSystolic);
patientLogupdate.typeDiastolic(patientDiastolic);
patientLogupdate.typePulse(patientPulse);
Expand Down Expand Up @@ -303,10 +325,10 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientRhythm,
]);
patientLogupdate.clickUpdateDetail();
patientLogupdate.clearIntoElementById("#systolic");
patientLogupdate.typeSystolic(patientModifiedSystolic);
patientLogupdate.clearIntoElementById("#diastolic");
patientLogupdate.typeDiastolic(patientModifiedDiastolic);
patientLogupdate.verifyPatientCategory(patientCategory);
patientLogupdate.verifyRoundType("Brief Update");
patientLogupdate.typeSystolic(patientModifiedSystolic, true);
patientLogupdate.typeDiastolic(patientModifiedDiastolic, true);
cy.clickSubmitButton("Continue");
cy.verifyNotification("Brief Update updated successfully");
cy.contains("button", "Log Updates").click();
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/patient_spec/PatientPrescription.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ describe("Patient Medicine Administration", () => {
cy.closeNotification();
// Administer the medicine in edit form
patientPrescription.clickAdministerButton();
cy.wait(2000);
patientPrescription.enterAdministerDosage(medicineBaseDosage);
patientPrescription.enterAdministerNotes(medicineAdministerNote);
cy.clickSubmitButton("Administer Medicine");
Expand Down
Loading
Loading