ci(cd): Diff translations workaround for checkout action fetching tags on trigger tag push#6695
Merged
dannash100 merged 2 commits intomainfrom Nov 17, 2024
Merged
ci(cd): Diff translations workaround for checkout action fetching tags on trigger tag push#6695dannash100 merged 2 commits intomainfrom
dannash100 merged 2 commits intomainfrom
Conversation
jaskfla
approved these changes
Nov 14, 2024
Contributor
jaskfla
left a comment
There was a problem hiding this comment.
Does this need a comment if it’s a workaround waiting for real fix?
Contributor
|
Ah, whoops, just saw that this one actually needs Kamaka stamp! |
Contributor
Author
|
@jaskfla no this fix is fine going forwards. Tags are fetched further down anyway so it's a double up |
passcod
approved these changes
Nov 17, 2024
dannash100
added a commit
that referenced
this pull request
Nov 17, 2024
* ci(cd): Diff translations workaround for checkout action fetching tags on trigger tag push (#6695) * workaround for fetching tags on trigger tag push * workaround for tag fetch issue * fix warning model on x press outpatients * weird * fix some labels
1 task
dannash100
added a commit
that referenced
this pull request
Nov 18, 2024
* ci(cd): Diff translations workaround for checkout action fetching tags on trigger tag push (#6695) * workaround for fetching tags on trigger tag push * workaround for tag fetch issue * fix appt status update * dog
NavarroEmilioLuis
added a commit
that referenced
this pull request
Dec 4, 2024
* feat(server): create tasking models * Update Task model to use DataTypes instead of Sequelize * addressed feedbacks * add unique index * feat(tasking): EPI-943: Add new reference data type 'Designation' (#6243) * Add new reference data type Designation * add validation for designation name uniqueness * separate the validation handlers for each model type * check existing designation on database to ensure name uniqueness * validate for name uniqueness for all reference data type within sheet * lint issue and prettier format * Revert reference data unique name validation * Add full reference associations to User model and update alias * feat(tasking): EPI-944: Add new column to user table to capture designation * Refactor userLoader function to filter out empty designations * remove unused parameter * Fix foreign key in TaskTemplate model * address feedbacks * feat(tasking): EPI-931: Build 'Tasks' importer * fix syncing issue for new models * remove index of tasking tables due sync error * feat(tasking): EPI-960: Add new reference data type for task deletion reason (#6310) * feat(tasking): Add new reference data type for task deletion reason * change reference data type to taskDeletionReason * feat(tasking): EPI-958: Add new reference data type for task not complete reason (#6309) feat(tasking): Add new reference data type for task not complete reason * add fake data for tasking models * revert adding index for tasking models * update uuid generator * revert fake id generator * fix taskTemplate foreign key * remove fake tasks script * Add Tasking tables and update data generation * Drop 'tasks' table in migration * Add unique constraint to reference_data_id in migrations and TaskTemplate model * address feedbacks * address feedback and remove index * Refactor Task model associations * fix lint issue * fix lint issue * move PatientFieldValue validation to patient loader * update error message validation * update fake script * fix test cases fail * fix fake script * fix unit test failed * fix lint package error * fix Error instance throw out when validation * Refactor data loaders and schemas * feat(tasking): EPI-932: task sets importer (#6312) * feat(tasking): implementing taskset importer and exporter * fix: remove empty task in taskset * fix: missing type on reference data relation import * feat: Refactor TaskSetExporter * fix: Remove unused tasks from taskset during taskSetLoader * refactor: update TaskSetExporter * Merge branch 'epic/tasking' into feature/epi-932-build-tasks-importer * address feedbacks * address feedbacks * resolve conflicts * rename Task to TaskTemplate * try to fix testing error * feat(tasking): EPI-932: task sets importer (#6338) * fix: alter reference data relations unique index * refactor: throw human readable error on taskset import * fix: switching to use existingTaskIds instead of taskIds * feat(tasking): add children relation to reference data * fix(tasking): update constraint instead of index * refactor(tasking): update REFERENCE_DATA_RELATION_TYPES constant * fix(tasking): existence checking for reference data relation * fix: linter error * feat(tasking): EPI-936: build mark task as completed workflow (#6339) * feat(tasking): implement task completion workflow & endpoint * fix: missing status update in task completion workflow * refactor(tasking): remove tasking route * fix build error * feat(tasking): allow model exporter to have plain object data * feat(tasking): EPI-937: build mark task as not completed workflow (#6340) * feat(tasking): implement task not completion workflow & endpoint * feat(tasking): add migration for task not complete reason * fix: remove deprecated field causing error * refactor(tasking): remove tasking route * fix: determinism test fail * fix: determinism test fail * refactor(tasking): renaming taskRoute to follow convention * fix: change http request method for set completion and set not completed task * feat(tasking): EPI-933: Build combined dropdown with multiple sections (#6299) * feat(tasking): build combined dropdown for selecting tasks or task sets * rename variables for clarification and fix lint issue * Revert "feat(tasking): build combined dropdown for selecting tasks or task sets" This reverts commit 91b507cd1df2987ba8ed50a6f70cc663f620047b. * create endpoint for fetching multiple reference data types * allow AutocompleteInput to receive multi section reference data * move data grouping into suggester and optimize code * fix wrong comment placement * reuse the createSuggester function and move label variable to constant file * add missing task.jsx file * unallow multi reference data from creating custom value * resolve review feedback * lint issue * rename createSuggestionPayload to baseBodyParameters * add section order and fix styling of free text option when there are multiple sections * remove type from custom option and make body override baseBodyParameters * fix lint issue * feat(tasking): EPI-936: Convert mark task completed to bulk action (#6372) feat(tasking): convert mark task completion to bulk action * feat(tasking): EPI-937: Convert mark task not completed to bulk action (#6371) * feat(tasking): convert mark task not completed to bulk action * misc(taskiing): update comments * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) (#6354) * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * address feedbacks * sanitize input * use sequelize escape function * use sequelize replacement instead of escape function * feat(tasking): EPI-934: Build 'Tasks' tab in encounter view (front-end) (#6271) * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * fix api query not receive lower case order --------- Co-authored-by: khoi.nguyen <khoi@bes.au> * merge: main into tasking epic (#6409) * feat(invoicing): EPI-975: add support for imaging area pricing (#6373) * feat(invoicing): add support for imaging area pricing * fix(invoicing): wrong imaging type source * fix(invoicing): invalid imagingTypes array * feat(server): EPI-962: Exporting Program Form from Admin Panel - questions in wrong order (Demo 2) (#6325) * feat(server): EPI-962: Exporting Program Form from Admin Panel - questions in wrong order (Demo 2) * address feedback * Update exportProgram.js * Refactor surveys.map to surveys.forEach * Refactor surveySheets assignment in exportProgram.js --------- Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> * feat(pm2): opt into multi-process facility deployment (#6359) * feat(pm2): simplify cwd to a single line This makes it easier to use a fully-custom pm2 config by copying it outside of the release folder and adjusting the cwd line to point to the right place on upgrade. * fix(pm2): use the canonical subcommand for startApi * feat(pm2): use shorter pm2 process names Less typing and better clarity in tables for $ pm2 status. * feat(pm2): use fork mode for non-scaled processes This has less overhead. * feat(pm2): use memory/scale calculation for facility server Like #6320 * feat(servers): always respect PORT env var * tweak(servers): default sync api to port 5000 This is because port 400x is used for scaling out the api in a non-cluster load balancer. * feat(pm2): run servers in fork mode This requires external load-balancing (caddy) but reduces overhead, enables multiple different servers, and allows greater configuration opportunities. * feat(pm2): default facility-server to multiprocess deployment * tweak(fhir): run 2 separate fhir worker processes for refresh and resolver jobs --------- Co-authored-by: Rohan Port <rohan@bes.au> * chore: NASS-1322: change all references to ref data type `icd10` to `diagnosis` (#6355) * nass-1304: start nuking icd10 rename * nass-1322: tonnes more changes * nass-1322: tonnes mo * nass-1322: tonnes mo * nass-1322: support depricated icd10 by proxy to diagnosis * nass-1322: mobile survey handling" * nass-1322: add migrate data in batches migration * nass-1322: fix test * nass-1322: cleanup * nass-1322: mo" * nass-1322: lint going cray * nass-1322: request change * nass-1322: common nw * nass-1322: change * nass-1322: bye bye * nass-1322: comment" * release: Bump version to 2.17.0 * feat(sync): SAV-744: Sync lookup table (#6167) * initial commit * cleaned up * added updateLookupTable * update lookup table key * sav-744: changed method name * cleaned up sql * sav-744: tweak updateLookupTable * sav-744: updated logs * sav-744: cleaned up * sav-744: updated syncAllLabRequest logic * sav-744: fixed * sav-744: updated schema * sav-744: added indexes and encounter_id column * sav-744: added indexes * sav-744: addressed reviews * sav-744: turn off lookup tabl * sav-744: fixed tests * sav-744: fixed tests * sav-744: fixed tests * sav-744: added sync_lookup table * [generate-fake-db] * addressed reviews * sav-744: added enabled to the scheduled task * sav-744: reused function * sav-744: tweak select * sav-744: added util to build extra columns * sav-744: tweaked index * sav-744: tweak sql * sav-744: added allow true to updated_at_by_field_sum * sav-744: updated SyncLookup model * sav-744: removed updatedAtSyncTick * sav-744: bring back updated_at_sync_tick * reverted comment * feat(sync): SAV-747: Change build sync filter (#6166) * sav-747: changed build sync filter * sav-747: cleaned up * sav-747: cleaned up * sav-747: fixed merge conflict * sav-744: added util to build columns * sav-747: tweak buildSyncLookupFilter * sav-747: fixed patient_facility * sav-747: fixed tests * sav-747: fixed lint * sav-747: cleaned up * sav-747: passed the whole select from model into updateLookupTable * sav-747: fixed lint * [generate-fake-db] * sav-747: fixed buildSyncLookupSelect * sav-747: moved code * sav-747: changed to buildSyncLookupQueryDetails * sav-747: updated new model * sav-747: fixed bugs * chore(sync): SAV-751: Add tests for Sync lookup table (#6218) * sav-747: changed build sync filter * sav-747: cleaned up * sav-747: cleaned up * sav-747: fixed merge conflict * sav-751: initial tests * sav-751: tweak tests * sav-751: added more tests * sav-751: separate test files * sav-751: removed console log * sav-744: added util to build columns * sav-747: tweak buildSyncLookupFilter * sav-747: fixed patient_facility * sav-751: added repeatbleReadTransaction * sav-751: cleaned up * sav-747: fixed tests * sav-747: fixed lint * sav-751: use dateTimeType in Invoice * sav-751: removed unused import * sav-747: cleaned up * sav-751: added comma * sav-751: added more tests * sav-747: passed the whole select from model into updateLookupTable * sav-747: fixed lint * [generate-fake-db] * sav-751: clean up tests * sav-751: tweak tests * sav-751: reverted comment * sav-751: tweak test * reverted selectedGraphedVitalsOnFilter * sav-747: fixed buildSyncLookupSelect * sav-747: moved code * sav-751: fixed lint + added truncate in beforeEach * sav-747: changed to buildSyncLookupQueryDetails * sav-751: updated to buildSyncLookupQueryDetails * sav-751: addressed reviews * sav-747: updated new model * sav-751: updated tests after merging * sav-747: fixed bugs * feat(sync): SAV-793: Restart update sync_lookup table process if it takes too long (#6256) * sav-747: changed build sync filter * sav-747: cleaned up * sav-747: cleaned up * sav-747: fixed merge conflict * sav-751: initial tests * sav-751: tweak tests * sav-751: added more tests * sav-751: separate test files * sav-751: removed console log * sav-744: added util to build columns * sav-747: tweak buildSyncLookupFilter * sav-747: fixed patient_facility * sav-751: added repeatbleReadTransaction * sav-751: cleaned up * sav-747: fixed tests * sav-747: fixed lint * sav-751: use dateTimeType in Invoice * sav-751: removed unused import * sav-747: cleaned up * sav-751: added comma * sav-751: added more tests * sav-747: passed the whole select from model into updateLookupTable * sav-747: fixed lint * [generate-fake-db] * sav-751: clean up tests * sav-751: tweak tests * sav-751: reverted comment * sav-751: tweak test * reverted selectedGraphedVitalsOnFilter * sav-747: fixed buildSyncLookupSelect * sav-747: moved code * sav-751: fixed lint + added truncate in beforeEach * sav-747: changed to buildSyncLookupQueryDetails * sav-751: updated to buildSyncLookupQueryDetails * sav-751: addressed reviews * sav-793: Restart update sync_lookup table process if it takes too long * sav-793: Removed test code * sav-793: use it inside query transaction * sav-793: reverted syncLookupRefresher * sav-793: reverted constructor * sav-793: updated config name * sav-747: updated new model * sav-751: updated tests after merging * sav-793: removed console.log * sav-793: fixed failing tests * sav-747: fixed bugs * sav-793: added new tests * sav-793: fixed tests * sav-744: fixed lint * sav-744: removed test code * sav-744: added test to check for record_types * sav-744: handle edge case * sav-744: put test code * sav-744: fixed test * sav-744: removed redundant filter * sav-744: use current tick for updated_at_sync_tick * sav-744: added more tests for every model * sav-744: removed test code * sav-744: added more tests * sav-744: fixed issue that notes do not select patient_id for non encounter notes * feat(sync): SAV-804: Log debug info when update sync_lookup table (#6285) * sav-804: add debug_logs table * sav-804: used JSON not JSONB * sav-744: used sequence for generating id in sync_lookup table * sav-744: fixed batch ordering * sav-744: fixed error logs * sav-744: use ticks from the actual tables when first building the sync_lookup table * Change import to be relative - absolute import path looks for dist folder and causes mayhem * saav-744: added debug_info to know a sync session is using syncLookupTable * sav-744: used current sync tick at the end of update lookup table transaction * sav-744: fixed tests * sav-744: fixed more tests * sav-744: added afterAll * sv-793: fixed test * sav-744: fixed default text for clinical notes * sav-744: added more tests for new fixes * sav-744: fixed lint --------- Co-authored-by: Emilio Navarro <DevNavarroEmilioLuis@gmail.com> * release: Bump version to 2.18.0 * add buildSyncLookupQueryDetails for Task model * add buildSyncLookupQueryDetails for other tasking models * add missing import * add tasking mock data to test --------- Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> Co-authored-by: Félix Saparelli <felix@bes.au> Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: chris-bes <63621318+chris-bes@users.noreply.github.com> Co-authored-by: Emilio Navarro <DevNavarroEmilioLuis@gmail.com> * feat(tasking): EPI-954: Build task scheduler for repeating tasks (#6398) * feat(tasking): EPI-954: Build task scheduler for repeating tasks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * address feedbacks * update task generated properties order * fix lint error * feat(tasking): EPI-935: Build add task workflow (#6378) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * feat(tasking): build add task modal * add form validation, high priority check field and optimize code * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * feat: build reference data children endpoint and task set table * refine endpoint for task creation and add include builder for multi suggester * add initial values and fix table not refreshing after adding task * handle creating task set * lint issue and optimise code * feat(tasking): EPI-954: Build task scheduler for repeating tasks * apply repeating tasks generation and add facilityId attribute * fix form value reset when select task and optimise yup validation * use constants for task type * Update packages/web/app/components/Tasks/TaskSetTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * resolve feedbacks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * add zod validation schema and optimize code * lint issue * combine task set creation into task creation endpoint * make empty cell show dash in task table * disable submit button when creating tasks and rename onCreateTaskSuccess * relocate TaskModal.jsx * address feedbacks * update task generated properties order * fix lint error * fix duplicate import --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> * feat(tasking): EPI-936: Build mark task as completed workflow (front-end) (#6424) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * feat(tasking): build add task modal * add form validation, high priority check field and optimize code * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * feat: build reference data children endpoint and task set table * refine endpoint for task creation and add include builder for multi suggester * add initial values and fix table not refreshing after adding task * handle creating task set * lint issue and optimise code * feat(tasking): EPI-954: Build task scheduler for repeating tasks * apply repeating tasks generation and add facilityId attribute * fix form value reset when select task and optimise yup validation * use constants for task type * Update packages/web/app/components/Tasks/TaskSetTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * resolve feedbacks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * add zod validation schema and optimize code * lint issue * combine task set creation into task creation endpoint * make empty cell show dash in task table * disable submit button when creating tasks and rename onCreateTaskSuccess * feat(tasking): Build mark task as completed workflow (front-end) * relocate TaskModal.jsx * add yup validation for MarkTaskCompletedForm * Update packages/web/app/api/mutations/useTaskMutation.js Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * address feedback * remove saveDateAsString from completedTime field --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> * update fake script * fix(tasking): fix invalid input properties for complete and non completed endpoints (#6490) fix(tasking): fix invalid input properties for complete and non complete endpoints * feat(tasking): EPI-940: add mark task as todo workflow (#6479) * feat(tasking): add mark task as todo workflow * misc: remove unused import * fix: tasking models alias (#6499) * fix: tasking models alias * address feedback * fix: add missing config for task scheduler (#6504) * feat: EPI-964: Optimize action buttons of tasks table (#6501) * optimize action buttons of tasks table * lint issue * feat(tasking): EPI-937: Build mark task as not completed workflow (front-end) (#6427) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * feat(tasking): build add task modal * add form validation, high priority check field and optimize code * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * feat: build reference data children endpoint and task set table * refine endpoint for task creation and add include builder for multi suggester * add initial values and fix table not refreshing after adding task * handle creating task set * lint issue and optimise code * feat(tasking): EPI-954: Build task scheduler for repeating tasks * apply repeating tasks generation and add facilityId attribute * fix form value reset when select task and optimise yup validation * use constants for task type * Update packages/web/app/components/Tasks/TaskSetTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * resolve feedbacks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * add zod validation schema and optimize code * lint issue * combine task set creation into task creation endpoint * make empty cell show dash in task table * disable submit button when creating tasks and rename onCreateTaskSuccess * feat(tasking): Build mark task as completed workflow (front-end) * relocate TaskModal.jsx * add yup validation for MarkTaskCompletedForm * feat(tasking): front-end for build mark task as not completed workflow * Update packages/web/app/api/mutations/useTaskMutation.js Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * address feedback * add translatedLabel * remove saveDateAsString from completedTime field * remove saveDateAsString from notCompletedTime field * get modal title and description based on action props * update TranslatedText stringId * change notCompletedBy to notCompletedByUserId * add min to zod schema --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> * feat: EPI-940: Build mark task as to-do workflow (front-end) (#6507) feat: build mark task as to-do workflow (front-end) * fix: Task template models alias (#6505) fix: task template models alias * feat(tasking): EPI-987: Tasks table pagination behaviour (#6512) * feat(tasking): EPI-987: Tasks table pagination behaviour * revert change in useSelectableColumn * Update packages/facility-server/app/routes/apiv1/encounter.js Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * feat(tasking): EPI-939: build delete task workflow backend (#6489) feat(tasking): delete task workflow * feat: EPI-939: Build delete task workflow (front-end) (#6478) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * feat(tasking): build add task modal * add form validation, high priority check field and optimize code * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * feat: build reference data children endpoint and task set table * refine endpoint for task creation and add include builder for multi suggester * add initial values and fix table not refreshing after adding task * handle creating task set * lint issue and optimise code * feat(tasking): EPI-954: Build task scheduler for repeating tasks * apply repeating tasks generation and add facilityId attribute * fix form value reset when select task and optimise yup validation * use constants for task type * Update packages/web/app/components/Tasks/TaskSetTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * resolve feedbacks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * add zod validation schema and optimize code * lint issue * combine task set creation into task creation endpoint * make empty cell show dash in task table * disable submit button when creating tasks and rename onCreateTaskSuccess * feat(tasking): Build mark task as completed workflow (front-end) * relocate TaskModal.jsx * add yup validation for MarkTaskCompletedForm * Update packages/web/app/api/mutations/useTaskMutation.js Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * address feedback * remove saveDateAsString from completedTime field * feat: build delete task workflow (front-end) * feat(tasking): delete task workflow * integrate to backend * fix(tasking): update tasking input schemas * address feedback * fix task not created properly --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> Co-authored-by: Nam Hoang <nam@bes.au> Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> * feat: EPI-973: Add tooltip for completed and not completed status icons (#6526) feat: add tooltip for completed and not completed status icons * fix(tasking): mark task as todo (#6522) * feat(tasking): add deletion reason for future repeating task instances (#6542) * fix(tasking): Error after mark as not completed (#6541) fix(tasking): error after mark task as not completed * feat: EPI-982: Build logic to mark 'old' repeating tasks as not completed (#6540) * feat: build logic to mark old repeating tasks as not completed * use sequelize methods instead of raw query * address feedback * feat: EPI-956: Implement behaviour for selecting a task and select all (#6525) * feat: implement behaviour for selecting a task and select all * reuse task action display for bulk action * resolve lint issue * resolve feedback * reset selected rows when task table is filtered by seach params * Update packages/web/app/components/Table/useSelectableColumn.jsx Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> * correct select all logic --------- Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> * feat(tasking): EPI-984: include task in encounter deletion workflow (#6543) * feat(tasking): include task in encounter deletion workflow * feat(tasking): update deletion info for tasks deleted on encouter deletion * feat: EPI-983: Create clinician dashboard (#6555) * feat: Create clinician dashboard page * lint issue * add dashboard to sidebar unit test * release: v2.17.0 * release: Bump version to 2.17.1 * release: Cut-off for release/2.18 * feat(tasking): EPI-941: Tasking permissions (#6572) * feat(fhir): SAV-825: Add coding for the imaging modality code to the FHIR ServiceRequests (#6470) feat(fhir): Add coding for the imaging modality code to the FHIR ServiceRequests Co-authored-by: Rohan Port <rohan@bes.au> * feat(tasking): EPI-981: Build logic to clean-up repeating tasks on patient discharge (#6557) * feat(tasking): EPI-981: Build logic to clean-up repeating tasks on patient discharge * address feedbacks * update sql query * fix(tasking): EPI-935: Resolve testing feedback (#6568) * fix: validation error when frequency value is empty * resolve feedback and small test cases * fix: wrong timezone when submitting default datetime * decrease fontweight of tooltip * pluralize frequency in task tables * add todo tooltip and remove conditional tooltip for applying style * redundant whitespace * fix(tasking): EPI-931: Build 'Tasks' importer (#6590) * fix(tasking): EPI-931: Build 'Tasks' importer * feedback * address feedback * fix(tasking): EPI-987: Tasks table pagination behaviour (#6591) * fix: EPI-935: Wrong submitted datetime due to timezone difference (#6585) * fix: wrong submitted datetime due to timezone difference * move datetimeCustomValidation to datetime utils * prevent action record time from the future * feat: EPI-934: Add feature flag for the tasking feature (#6576) * feat: add feature flag for tasking feature * migrate to use setting instead of config * pluralize task set dropdown label * fix(sync): SAV-842: Facility should prevent multiple syncs HOTFIX 2.17 (#6595) fix(sync): SAV-842: Facility should prevent multiple syncs HOTFIX 2.16 (#6583) * sav-842: facility should prevent multiple syncs * sav-842: added comment * release: v2.17.1 * release: Bump version to 2.17.2 * fix(tasking): EPI-954: Build task scheduler for repeating tasks (#6599) * feat: EPI-983: Build recently viewed patients section in dashboard (#6584) * feat: build recently viewed patients section in dashboard * add dashboard to global config * add validation for startTime and requestTime past date * tweak(imaging): 2.18 fix: Imaging request change status submission (#6606) tweak: imaging request change status fix * tweak(imaging): 2.18 fix: Finalise and print imaging request (#6607) * tweak: fix finalise and print * tweak: fix finalise and print * fix(tasking): EPI-939: Build delete task workflow (#6605) * fix: build delete task workflow * change translate stringId * fix: EPI-932: Record deleted task still appear in task set table (#6604) fix: recorded deleted at task still appear in task set table * fix: EPI: 964: Task action tooltip misalignment to the left (#6602) * fix: task action tooltip misalign to the left on windows * lint issue * remove disablePortal * remove unnecessary PopperProps * fix(translations): Fix incorrectly passed prop for getTranslation to IDCardPrintout (#6611) * fix(translations): Fix incorrectly passed prop for getTranslation to IDCardPrintout * fix id printout --------- Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Daniel Nash <dannash200@gmail.com> * fix(mobile): release 2.18 small fixes (#6615) * typo * fix setting bug on mobile * fix(tasking): fix generate repeating task schedule job (#6618) * fix: release-2.18: Fix infinite loading survey responses printout modal (#6620) fix: infinite loading survey responses printout modal * feat(tasking): EPI-999: Add notifications to the clinician dashboard (#6593) * feat(tasking): EPI-999: Add notifications to the clinician dashboard * Add LAB_REQUEST_STATUSES.CANCELLED to valid status list * address feedbacks * move patientId to metadata * fix(tasking): EPI-999: add notifications to the clinician dashboard backend (#6637) * feat(tasking): EPI-999: Add notifications to the clinician dashboard * Add LAB_REQUEST_STATUSES.CANCELLED to valid status list * address feedbacks * move patientId to metadata * Remove LAB_REQUEST_STATUSES.CANCELLED from valid status check * fix(vitals): Release fix v2.18: Missed facilityIds for vitals endpoints (#6636) * send facility id with endpoint requests * Update packages/web/app/forms/EditVitalCellForm.jsx Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> --------- Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> * fix(tasking): fix generate tasks (#6638) * fix(tasking): fix generate repeating task schedule job * fix generate task * fix: EPI-937: Fix mark task as not completed and delete task workflow (#6622) * fix: EPI-937: Fix mark task as not completed workflow * remove status to-do tooltip * filter out deleted by system reason option * fix: EPI-934: Build tasks tab in encounter view (#6639) exclude second from task due time * fix: release-2.18: EPI-1044: Fix calculated question still display if left empty (#6621) * Filter out empty calculated response result * fix lint issue * fix calculated value return 0.0 instead of null if all fields are left empty * check for input length * handle case when input value is 0 * extract variable using mathjs parse * add unit tests for calculations * release: v2.18.0 * release: Bump version to 2.18.1 * release: Cut-off for release/2.19 * fix(tasking): EPI-981: Build logic to clean-up repeating tasks on patient discharge (#6648) * fix(tasking): EPI-941: tasking permissions (#6649) * fix(tasking): EPI-941: tasking permissions * fix lint error * Update packages/web/app/components/Tasks/TasksTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * address feedbacks * address feedbacks --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * fix: EPI-983: Dashboard is redirected after login even when it is hidden (#6603) * fix: dashboard is redirected after login even it is hidden * check for settings loaded before redirect * fix(settings): hotfix 2.18: Question code email should be validated as any string not email (#6665) email is actully a code here * fix(settings): release 2.19: Question code email should be validated as any string not email (#6666) email is actully a code here * release: v2.18.1 * release: Bump version to 2.18.2 * fix(tasking): EPI-935: fix error when creating new task template by suggestion api (#6652) * fix(tasking): EPI-935: fix error when creating new task template by suggestion api * add permission checking * merge: Update DBT models of epic tasking * fix: EPI-940: Build mark task as to-do workflow (#6663) * fix: hide to do action when task is overdue * Update packages/web/app/components/Tasks/TasksTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * optimize code --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * merge: Update user preferences models doc * fix(tasking): EPI-940: restrict marking tasks as todo to those not older than 48 hours. (#6671) * fix(tasking): restrict marking tasks as todo to those not older than 48 hours. * misc: Remove useless comment * chore: remove empty unused test file in root (#6672) remove unused file in root * [generate-fake-db] * release: v2.19.0 * release: Bump version to 2.19.1 * fix: EPI-941: High priority icon placement issue when no action tasking permissions (#6693) fix: high priority icon placement issue * fix(labs): SAV-848: Fix incorrect limit of lab test results form (HOTFIX 2.19) (#6701) sav-848: fixed hardcoded limit of lab test results * fix(labs): SAV-848: Fix incorrect limit of lab test results form (main) (#6702) sav-848: fixed hardcoded limit of lab test results * release: v2.19.1 * release: Bump version to 2.19.2 * tweak(settings): Add description for mandateSpecimenType (#6705) * feat(tasking): EPI-1025: Drag and drop encounter tab reordering (#6668) * feat(tasking): EPI-1025: Drag and drop encounter tab reordering * Merge branch 'epic/tasking' into feature/epi-1025-drag-and-drop-encounter-tab-reordering * update package-lock file * fix dbt model issue * update dbt model docs * docs: update user_preferences documentation to describe encounter tab order storage * address feedbacks * fix(tasking): epi-981 build logic to clean up repeating tasks on patient discharge (#6709) * fix(tasking): EPI-981: Build logic to clean-up repeating tasks on patient discharge * fix(task): ensure tasks are only deleted if encounter has an end time on discharge * fix(discharge): refactor encounter discharge logic and remove redundant hooks --------- Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> * fix(tasking): update parentTaskId for repeating tasks without a parent (#6710) * fix(tasking): epi-979 support bulk actions for tasks with a status of completed (#6711) fix(tasking): update parentTaskId for repeating tasks with new parentTaskId * fix(sync): SAV-846: Use UUIDV4 as deviceId (#6677) * sav-846: use uuid as deviceId * sav-846: fixed test --------- Co-authored-by: Da-ntp <105630649+Da-ntp@users.noreply.github.com> * fix(invoices): SAV-849: Fix crash when opening invoice details (HOTFIX 2.19) (#6716) sav-849: only show tooltip when there is updatedByUser * release: v2.19.2 * release: Bump version to 2.19.3 * feat(mobile): EPI-902: SurveyAnswer question type not working correctly on mobile (#6690) * feat(mobile): EPI-902: SurveyAnswer question type not working correctly on mobile * feat(mobile): Add SurveyAnswerResult component to display survey answers * feat(mobile): Refactor SurveyAnswerField and SurveyAnswerResult components to improve answer rendering * fix(mobile): Correctly set answer in SurveyAnswerField component --------- Co-authored-by: Da-ntp <105630649+Da-ntp@users.noreply.github.com> * feat(desktop): EPI-1025: drag and drop encounter tab reordering (#6712) * feat(tasking): EPI-1025: Drag and drop encounter tab reordering * Merge branch 'epic/tasking' into feature/epi-1025-drag-and-drop-encounter-tab-reordering * update package-lock file * fix dbt model issue * update dbt model docs * docs: update user_preferences documentation to describe encounter tab order storage * address feedbacks * address feedbacks * refactor(TabDisplayDraggable): simplify drag-and-drop logic by removing unused placeholder handling * refactor(App): remove unused user preferences query and simplify logic * feat(desktop): EPI-892: SurveyAnswer question type not working correctly on desktop (#6692) * feat(desktop): EPI-892: SurveyAnswer question type not working correctly on desktop * fix(web): ensure answer body is checked before setting field value in SurveyAnswerField * feat(survey): update getAutocompleteComponentMap to include models and enhance autocomplete logic * feat(survey): add relation between ProgramDataElement and SurveyScreenComponent; refactor answer transformation logic * fix(reports): update date format in convertDateAnswer function from 'dd/MM/yyyy' to 'dd-MM-yyyy' * feat(survey): enhance survey answer handling by adding sourceType to answers and updating display components * fix(survey): update error messages in SurveyResponse tests and enhance error handling in transformAnswers function * fix(tests): remove redundant test for empty answer body in SurveyResponse tests * feat(fhir): SAV-820: Only rematerialise active Imaging/Lab requests (#6631) * feat(fhir): SAV-820: Add 'is_live' column to fhir resource tables * feat(fhir): SAV-820: Added LAB_REQUEST_TABLE_STATUS_GROUPINGS to keep isActive logic for Lab Requests DRY * feat(fhir): SAV-820: Add rematerialisation rules for ServiceRequests * feat(fhir): SAV-820: Add unit tests * feat(fhir): SAV-820: Swith LabRequest Listing views over to using LAB_REQUEST_TABLE_GROUPINGS for defining which statuses they want to see * feat(fhir): SAV-820: Add is_live to non_fhir_medici_report * feat(fhir): SAV-820: Fixed tests --------- Co-authored-by: Rohan Port <rohan@bes.au> * feat(translation): NASS-1460: Translate encounter record printout (#6687) * start translating * better do sum stringId cleanup as go * mo * refac * mo * finish all columns * use language xontext * oh yeh * yep" * yep * mo * yes * yep * mo * fix the build * oopsy daisiy * yes * consistently * hola * multi page header * and mo: * cleaner * more * more * mo * mo cleanup * fix * sort deps * missed * missed * missed * missed * fix sillyness * fix sillyness * small tweaks * print date missed spot * Update packages/shared/src/utils/patientCertificates/printComponents/Footer.jsx Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> * requests * wip * ready * remove ting * mabye will work shoot * way better * way better * add missing label * try * try * think i got it * didnt mean to change that * nor that * lower touch with package-lock --------- Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> * release: Cut-off for release/2.20 * release: Bump version to 2.21.0 * ci(cd): Diff translations workaround for checkout action fetching tags on trigger tag push (#6695) * workaround for fetching tags on trigger tag push * workaround for tag fetch issue * tweak(dbt): Re-generate models (#6733) * tweak(dbt): Re-generate models * tweak(dbt): Added generic is_live description * tweak(dbt): Fix up conflicts in auto generated models and prettier auto formatting * Added missing newline --------- Co-authored-by: Rohan Port <rohan@bes.au> * fix(desktop): release-v2.20: fix encounter tabs draggable ui (#6730) * fix(desktop): release-v2.20: fix encounter tabs draggable ui * feat(tabs): add custom cursor for draggable tabs * fix(tabs): restore custom cursor for draggable tabs * fix(tabs): optimize cursor style handling for draggable tabs * fix(tabs): update cursor style for draggable tabs to use SVG cursor * fix(tabs): replace inline SVG cursor with variable for draggable tabs * tweak(printouts): release 2.20 fix: Update package-lock for pdf font fixes (#6746) tweak: pdf override * fix(labs): Status filter behavour tweaks (#6745) * Update labs.ts * fix status filter logic * allow table statuses to be overwritten by proper filter name * use better form name * Update LabRequestsTable.jsx * Update LabRequestsTable.jsx * Update LabRequestsTable.jsx * for real this time * fix: release: 2.20: Modify tile font size of recently viewed patient list in dashboard (#6748) fix: modify font size of recently viewed patient list in dashboard * fix(mobile): release-v2.20: fix sync errors on mobile (#6750) * feat(alerts): TAMOC-248: SQL Proactive alerting for FHIR jobs and various queues (#6661) Co-authored-by: Edwin Monk-Fromont <edwin.monkfromont@gmail.com> Co-authored-by: Félix Saparelli <felix@bes.au> * fix(imagingRequests): release 2.20 flash of error when finalising & printing imaging request (#6761) * fix flash of error * remove debug log * organise imports * restore memoisation * fix(scripts): Update script to be able to work with NPM plus fix DBT (#6747) * Update script to be able to work with NPM * remove the model files that aren't in this branch * Update DBT models thing * Generate DBT model and complete TODOs * Do it again * Update final details * Dedupe last file hopefully * Remove newline? IDK * Bring them back * Type change? * For the love of god * Delete files --------- Co-authored-by: Félix Saparelli <felix@bes.au> * fix: release 2.20: EPI-1071: Correct JSON display on printable report from program forms (#6768) fix: correct JSON display on printable report from program forms * release: v2.20.0 * release: Bump version to 2.20.1 * fix(syncLookup): TAMOC-251: Save facility ID for appointments (#6796) * Store facility ID * Update test accordingly * fix(syncLookup): TAMOC-251: Save facility ID for appointments hotfix to 2.20 (#6802) * fix(syncLookup): TAMOC-251: Save facility ID for appointments (#6796) * Store facility ID * Update test accordingly * Update DBT * chore(referenceData): NASS-1364: remove unused maritalStatus as importable reference data (#6798) remove maritial status from reference data * fix(mobile): SAV-856: Remove shared constant from mobile to fix Appcenter build (#6812) sav-856: removed constant use from mobile * fix(translations): TAMOC-250: Improve translated suggestions query (#6808) * Pass a limit on the translations query * Update model to use limit * Remove debug timer * release: v2.20.1 * release: Bump version to 2.20.2 * ci(mobile): Restore shared package usage in appcenter mobile builds (#6811) * try 3 * fix * fix * fix * test * test * the actual fix * unrelated --------- Co-authored-by: Chris Tran <chris@beyondessential.com.au> * fix(desktop): release-v2.20: survey questions pulled incorrect answers (#6820) * ci: KAM-302: toolbox (#6754) * release: v2.20.2 * release: Bump version to 2.20.3 * release: Bump version to 2.22.0 * ci: avoid false positives for dbt up-to-date check (#6875) * Update migration accordingly * Truly fix the migration now * Fix it for good * Make it deterministic * Remove column from model * Remove unnecessary endpoint * Updation mutation usage --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: huytranbes <160376020+huytranbes@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> Co-authored-by: Nam Hoang <nam@bes.au> Co-authored-by: Huy-Tran-Huu-Le <huy@bes.au> Co-authored-by: Félix Saparelli <felix@bes.au> Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: chris-bes <63621318+chris-bes@users.noreply.github.com> Co-authored-by: Rohan Port <59544282+rohan-bes@users.noreply.github.com> Co-authored-by: chris-bes <chris@beyondessential.com.au> Co-authored-by: Daniel Nash <dannash200@gmail.com> Co-authored-by: Thomas Codling <58054247+tcodling@users.noreply.github.com> Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> Co-authored-by: MeganLane29 <60370593+MeganLane29@users.noreply.github.com> Co-authored-by: Da-ntp <105630649+Da-ntp@users.noreply.github.com> Co-authored-by: Edwin Monk-Fromont <edwin.monkfromont@gmail.com>
NavarroEmilioLuis
added a commit
that referenced
this pull request
Dec 5, 2024
* feat(server): create tasking models * Update Task model to use DataTypes instead of Sequelize * addressed feedbacks * add unique index * feat(tasking): EPI-943: Add new reference data type 'Designation' (#6243) * Add new reference data type Designation * add validation for designation name uniqueness * separate the validation handlers for each model type * check existing designation on database to ensure name uniqueness * validate for name uniqueness for all reference data type within sheet * lint issue and prettier format * Revert reference data unique name validation * Add full reference associations to User model and update alias * feat(tasking): EPI-944: Add new column to user table to capture designation * Refactor userLoader function to filter out empty designations * remove unused parameter * Fix foreign key in TaskTemplate model * address feedbacks * feat(tasking): EPI-931: Build 'Tasks' importer * fix syncing issue for new models * remove index of tasking tables due sync error * feat(tasking): EPI-960: Add new reference data type for task deletion reason (#6310) * feat(tasking): Add new reference data type for task deletion reason * change reference data type to taskDeletionReason * feat(tasking): EPI-958: Add new reference data type for task not complete reason (#6309) feat(tasking): Add new reference data type for task not complete reason * add fake data for tasking models * revert adding index for tasking models * update uuid generator * revert fake id generator * fix taskTemplate foreign key * remove fake tasks script * Add Tasking tables and update data generation * Drop 'tasks' table in migration * Add unique constraint to reference_data_id in migrations and TaskTemplate model * address feedbacks * address feedback and remove index * Refactor Task model associations * fix lint issue * fix lint issue * move PatientFieldValue validation to patient loader * update error message validation * update fake script * fix test cases fail * fix fake script * fix unit test failed * fix lint package error * fix Error instance throw out when validation * Refactor data loaders and schemas * feat(tasking): EPI-932: task sets importer (#6312) * feat(tasking): implementing taskset importer and exporter * fix: remove empty task in taskset * fix: missing type on reference data relation import * feat: Refactor TaskSetExporter * fix: Remove unused tasks from taskset during taskSetLoader * refactor: update TaskSetExporter * Merge branch 'epic/tasking' into feature/epi-932-build-tasks-importer * address feedbacks * address feedbacks * resolve conflicts * rename Task to TaskTemplate * try to fix testing error * feat(tasking): EPI-932: task sets importer (#6338) * fix: alter reference data relations unique index * refactor: throw human readable error on taskset import * fix: switching to use existingTaskIds instead of taskIds * feat(tasking): add children relation to reference data * fix(tasking): update constraint instead of index * refactor(tasking): update REFERENCE_DATA_RELATION_TYPES constant * fix(tasking): existence checking for reference data relation * fix: linter error * feat(tasking): EPI-936: build mark task as completed workflow (#6339) * feat(tasking): implement task completion workflow & endpoint * fix: missing status update in task completion workflow * refactor(tasking): remove tasking route * fix build error * feat(tasking): allow model exporter to have plain object data * feat(tasking): EPI-937: build mark task as not completed workflow (#6340) * feat(tasking): implement task not completion workflow & endpoint * feat(tasking): add migration for task not complete reason * fix: remove deprecated field causing error * refactor(tasking): remove tasking route * fix: determinism test fail * fix: determinism test fail * refactor(tasking): renaming taskRoute to follow convention * fix: change http request method for set completion and set not completed task * feat(tasking): EPI-933: Build combined dropdown with multiple sections (#6299) * feat(tasking): build combined dropdown for selecting tasks or task sets * rename variables for clarification and fix lint issue * Revert "feat(tasking): build combined dropdown for selecting tasks or task sets" This reverts commit 91b507c. * create endpoint for fetching multiple reference data types * allow AutocompleteInput to receive multi section reference data * move data grouping into suggester and optimize code * fix wrong comment placement * reuse the createSuggester function and move label variable to constant file * add missing task.jsx file * unallow multi reference data from creating custom value * resolve review feedback * lint issue * rename createSuggestionPayload to baseBodyParameters * add section order and fix styling of free text option when there are multiple sections * remove type from custom option and make body override baseBodyParameters * fix lint issue * feat(tasking): EPI-936: Convert mark task completed to bulk action (#6372) feat(tasking): convert mark task completion to bulk action * feat(tasking): EPI-937: Convert mark task not completed to bulk action (#6371) * feat(tasking): convert mark task not completed to bulk action * misc(taskiing): update comments * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) (#6354) * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * address feedbacks * sanitize input * use sequelize escape function * use sequelize replacement instead of escape function * feat(tasking): EPI-934: Build 'Tasks' tab in encounter view (front-end) (#6271) * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * fix api query not receive lower case order --------- Co-authored-by: khoi.nguyen <khoi@bes.au> * merge: main into tasking epic (#6409) * feat(invoicing): EPI-975: add support for imaging area pricing (#6373) * feat(invoicing): add support for imaging area pricing * fix(invoicing): wrong imaging type source * fix(invoicing): invalid imagingTypes array * feat(server): EPI-962: Exporting Program Form from Admin Panel - questions in wrong order (Demo 2) (#6325) * feat(server): EPI-962: Exporting Program Form from Admin Panel - questions in wrong order (Demo 2) * address feedback * Update exportProgram.js * Refactor surveys.map to surveys.forEach * Refactor surveySheets assignment in exportProgram.js --------- Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> * feat(pm2): opt into multi-process facility deployment (#6359) * feat(pm2): simplify cwd to a single line This makes it easier to use a fully-custom pm2 config by copying it outside of the release folder and adjusting the cwd line to point to the right place on upgrade. * fix(pm2): use the canonical subcommand for startApi * feat(pm2): use shorter pm2 process names Less typing and better clarity in tables for $ pm2 status. * feat(pm2): use fork mode for non-scaled processes This has less overhead. * feat(pm2): use memory/scale calculation for facility server Like #6320 * feat(servers): always respect PORT env var * tweak(servers): default sync api to port 5000 This is because port 400x is used for scaling out the api in a non-cluster load balancer. * feat(pm2): run servers in fork mode This requires external load-balancing (caddy) but reduces overhead, enables multiple different servers, and allows greater configuration opportunities. * feat(pm2): default facility-server to multiprocess deployment * tweak(fhir): run 2 separate fhir worker processes for refresh and resolver jobs --------- Co-authored-by: Rohan Port <rohan@bes.au> * chore: NASS-1322: change all references to ref data type `icd10` to `diagnosis` (#6355) * nass-1304: start nuking icd10 rename * nass-1322: tonnes more changes * nass-1322: tonnes mo * nass-1322: tonnes mo * nass-1322: support depricated icd10 by proxy to diagnosis * nass-1322: mobile survey handling" * nass-1322: add migrate data in batches migration * nass-1322: fix test * nass-1322: cleanup * nass-1322: mo" * nass-1322: lint going cray * nass-1322: request change * nass-1322: common nw * nass-1322: change * nass-1322: bye bye * nass-1322: comment" * release: Bump version to 2.17.0 * feat(sync): SAV-744: Sync lookup table (#6167) * initial commit * cleaned up * added updateLookupTable * update lookup table key * sav-744: changed method name * cleaned up sql * sav-744: tweak updateLookupTable * sav-744: updated logs * sav-744: cleaned up * sav-744: updated syncAllLabRequest logic * sav-744: fixed * sav-744: updated schema * sav-744: added indexes and encounter_id column * sav-744: added indexes * sav-744: addressed reviews * sav-744: turn off lookup tabl * sav-744: fixed tests * sav-744: fixed tests * sav-744: fixed tests * sav-744: added sync_lookup table * [generate-fake-db] * addressed reviews * sav-744: added enabled to the scheduled task * sav-744: reused function * sav-744: tweak select * sav-744: added util to build extra columns * sav-744: tweaked index * sav-744: tweak sql * sav-744: added allow true to updated_at_by_field_sum * sav-744: updated SyncLookup model * sav-744: removed updatedAtSyncTick * sav-744: bring back updated_at_sync_tick * reverted comment * feat(sync): SAV-747: Change build sync filter (#6166) * sav-747: changed build sync filter * sav-747: cleaned up * sav-747: cleaned up * sav-747: fixed merge conflict * sav-744: added util to build columns * sav-747: tweak buildSyncLookupFilter * sav-747: fixed patient_facility * sav-747: fixed tests * sav-747: fixed lint * sav-747: cleaned up * sav-747: passed the whole select from model into updateLookupTable * sav-747: fixed lint * [generate-fake-db] * sav-747: fixed buildSyncLookupSelect * sav-747: moved code * sav-747: changed to buildSyncLookupQueryDetails * sav-747: updated new model * sav-747: fixed bugs * chore(sync): SAV-751: Add tests for Sync lookup table (#6218) * sav-747: changed build sync filter * sav-747: cleaned up * sav-747: cleaned up * sav-747: fixed merge conflict * sav-751: initial tests * sav-751: tweak tests * sav-751: added more tests * sav-751: separate test files * sav-751: removed console log * sav-744: added util to build columns * sav-747: tweak buildSyncLookupFilter * sav-747: fixed patient_facility * sav-751: added repeatbleReadTransaction * sav-751: cleaned up * sav-747: fixed tests * sav-747: fixed lint * sav-751: use dateTimeType in Invoice * sav-751: removed unused import * sav-747: cleaned up * sav-751: added comma * sav-751: added more tests * sav-747: passed the whole select from model into updateLookupTable * sav-747: fixed lint * [generate-fake-db] * sav-751: clean up tests * sav-751: tweak tests * sav-751: reverted comment * sav-751: tweak test * reverted selectedGraphedVitalsOnFilter * sav-747: fixed buildSyncLookupSelect * sav-747: moved code * sav-751: fixed lint + added truncate in beforeEach * sav-747: changed to buildSyncLookupQueryDetails * sav-751: updated to buildSyncLookupQueryDetails * sav-751: addressed reviews * sav-747: updated new model * sav-751: updated tests after merging * sav-747: fixed bugs * feat(sync): SAV-793: Restart update sync_lookup table process if it takes too long (#6256) * sav-747: changed build sync filter * sav-747: cleaned up * sav-747: cleaned up * sav-747: fixed merge conflict * sav-751: initial tests * sav-751: tweak tests * sav-751: added more tests * sav-751: separate test files * sav-751: removed console log * sav-744: added util to build columns * sav-747: tweak buildSyncLookupFilter * sav-747: fixed patient_facility * sav-751: added repeatbleReadTransaction * sav-751: cleaned up * sav-747: fixed tests * sav-747: fixed lint * sav-751: use dateTimeType in Invoice * sav-751: removed unused import * sav-747: cleaned up * sav-751: added comma * sav-751: added more tests * sav-747: passed the whole select from model into updateLookupTable * sav-747: fixed lint * [generate-fake-db] * sav-751: clean up tests * sav-751: tweak tests * sav-751: reverted comment * sav-751: tweak test * reverted selectedGraphedVitalsOnFilter * sav-747: fixed buildSyncLookupSelect * sav-747: moved code * sav-751: fixed lint + added truncate in beforeEach * sav-747: changed to buildSyncLookupQueryDetails * sav-751: updated to buildSyncLookupQueryDetails * sav-751: addressed reviews * sav-793: Restart update sync_lookup table process if it takes too long * sav-793: Removed test code * sav-793: use it inside query transaction * sav-793: reverted syncLookupRefresher * sav-793: reverted constructor * sav-793: updated config name * sav-747: updated new model * sav-751: updated tests after merging * sav-793: removed console.log * sav-793: fixed failing tests * sav-747: fixed bugs * sav-793: added new tests * sav-793: fixed tests * sav-744: fixed lint * sav-744: removed test code * sav-744: added test to check for record_types * sav-744: handle edge case * sav-744: put test code * sav-744: fixed test * sav-744: removed redundant filter * sav-744: use current tick for updated_at_sync_tick * sav-744: added more tests for every model * sav-744: removed test code * sav-744: added more tests * sav-744: fixed issue that notes do not select patient_id for non encounter notes * feat(sync): SAV-804: Log debug info when update sync_lookup table (#6285) * sav-804: add debug_logs table * sav-804: used JSON not JSONB * sav-744: used sequence for generating id in sync_lookup table * sav-744: fixed batch ordering * sav-744: fixed error logs * sav-744: use ticks from the actual tables when first building the sync_lookup table * Change import to be relative - absolute import path looks for dist folder and causes mayhem * saav-744: added debug_info to know a sync session is using syncLookupTable * sav-744: used current sync tick at the end of update lookup table transaction * sav-744: fixed tests * sav-744: fixed more tests * sav-744: added afterAll * sv-793: fixed test * sav-744: fixed default text for clinical notes * sav-744: added more tests for new fixes * sav-744: fixed lint --------- Co-authored-by: Emilio Navarro <DevNavarroEmilioLuis@gmail.com> * release: Bump version to 2.18.0 * add buildSyncLookupQueryDetails for Task model * add buildSyncLookupQueryDetails for other tasking models * add missing import * add tasking mock data to test --------- Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> Co-authored-by: Félix Saparelli <felix@bes.au> Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: chris-bes <63621318+chris-bes@users.noreply.github.com> Co-authored-by: Emilio Navarro <DevNavarroEmilioLuis@gmail.com> * feat(tasking): EPI-954: Build task scheduler for repeating tasks (#6398) * feat(tasking): EPI-954: Build task scheduler for repeating tasks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * address feedbacks * update task generated properties order * fix lint error * feat(tasking): EPI-935: Build add task workflow (#6378) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * feat(tasking): build add task modal * add form validation, high priority check field and optimize code * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * feat: build reference data children endpoint and task set table * refine endpoint for task creation and add include builder for multi suggester * add initial values and fix table not refreshing after adding task * handle creating task set * lint issue and optimise code * feat(tasking): EPI-954: Build task scheduler for repeating tasks * apply repeating tasks generation and add facilityId attribute * fix form value reset when select task and optimise yup validation * use constants for task type * Update packages/web/app/components/Tasks/TaskSetTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * resolve feedbacks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * add zod validation schema and optimize code * lint issue * combine task set creation into task creation endpoint * make empty cell show dash in task table * disable submit button when creating tasks and rename onCreateTaskSuccess * relocate TaskModal.jsx * address feedbacks * update task generated properties order * fix lint error * fix duplicate import --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> * feat(tasking): EPI-936: Build mark task as completed workflow (front-end) (#6424) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * feat(tasking): build add task modal * add form validation, high priority check field and optimize code * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * feat: build reference data children endpoint and task set table * refine endpoint for task creation and add include builder for multi suggester * add initial values and fix table not refreshing after adding task * handle creating task set * lint issue and optimise code * feat(tasking): EPI-954: Build task scheduler for repeating tasks * apply repeating tasks generation and add facilityId attribute * fix form value reset when select task and optimise yup validation * use constants for task type * Update packages/web/app/components/Tasks/TaskSetTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * resolve feedbacks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * add zod validation schema and optimize code * lint issue * combine task set creation into task creation endpoint * make empty cell show dash in task table * disable submit button when creating tasks and rename onCreateTaskSuccess * feat(tasking): Build mark task as completed workflow (front-end) * relocate TaskModal.jsx * add yup validation for MarkTaskCompletedForm * Update packages/web/app/api/mutations/useTaskMutation.js Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * address feedback * remove saveDateAsString from completedTime field --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> * update fake script * fix(tasking): fix invalid input properties for complete and non completed endpoints (#6490) fix(tasking): fix invalid input properties for complete and non complete endpoints * feat(tasking): EPI-940: add mark task as todo workflow (#6479) * feat(tasking): add mark task as todo workflow * misc: remove unused import * fix: tasking models alias (#6499) * fix: tasking models alias * address feedback * fix: add missing config for task scheduler (#6504) * feat: EPI-964: Optimize action buttons of tasks table (#6501) * optimize action buttons of tasks table * lint issue * feat(tasking): EPI-937: Build mark task as not completed workflow (front-end) (#6427) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * feat(tasking): build add task modal * add form validation, high priority check field and optimize code * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * feat: build reference data children endpoint and task set table * refine endpoint for task creation and add include builder for multi suggester * add initial values and fix table not refreshing after adding task * handle creating task set * lint issue and optimise code * feat(tasking): EPI-954: Build task scheduler for repeating tasks * apply repeating tasks generation and add facilityId attribute * fix form value reset when select task and optimise yup validation * use constants for task type * Update packages/web/app/components/Tasks/TaskSetTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * resolve feedbacks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * add zod validation schema and optimize code * lint issue * combine task set creation into task creation endpoint * make empty cell show dash in task table * disable submit button when creating tasks and rename onCreateTaskSuccess * feat(tasking): Build mark task as completed workflow (front-end) * relocate TaskModal.jsx * add yup validation for MarkTaskCompletedForm * feat(tasking): front-end for build mark task as not completed workflow * Update packages/web/app/api/mutations/useTaskMutation.js Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * address feedback * add translatedLabel * remove saveDateAsString from completedTime field * remove saveDateAsString from notCompletedTime field * get modal title and description based on action props * update TranslatedText stringId * change notCompletedBy to notCompletedByUserId * add min to zod schema --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> * feat: EPI-940: Build mark task as to-do workflow (front-end) (#6507) feat: build mark task as to-do workflow (front-end) * fix: Task template models alias (#6505) fix: task template models alias * feat(tasking): EPI-987: Tasks table pagination behaviour (#6512) * feat(tasking): EPI-987: Tasks table pagination behaviour * revert change in useSelectableColumn * Update packages/facility-server/app/routes/apiv1/encounter.js Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * feat(tasking): EPI-939: build delete task workflow backend (#6489) feat(tasking): delete task workflow * feat: EPI-939: Build delete task workflow (front-end) (#6478) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * feat(tasking): build add task modal * add form validation, high priority check field and optimize code * feat(server): EPI-934: Build 'Tasks' tab in encounter view (BackEnd) * feat(tasking): Build Tasks tab in encounter view * add Assigned to filter for the tasks list * add tooltip for task cell * enable sorting for task and due at column in tasks table * fix lint issue * use styled component instead of inline style for icons * design no data message box and remove border of last table item * remove table heading according to the design * hide header if there is no data * add show completed and show not completed checkbox * integrate backend into tasks table * optimize code * remove console log * handle status column on task table * fix task name sorting error * feat: build reference data children endpoint and task set table * refine endpoint for task creation and add include builder for multi suggester * add initial values and fix table not refreshing after adding task * handle creating task set * lint issue and optimise code * feat(tasking): EPI-954: Build task scheduler for repeating tasks * apply repeating tasks generation and add facilityId attribute * fix form value reset when select task and optimise yup validation * use constants for task type * Update packages/web/app/components/Tasks/TaskSetTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * Update packages/web/app/forms/TaskForm.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * resolve feedbacks * move scheduled task to central server * Remove generateRepeatingTasks schedule * Update Task.js * add zod validation schema and optimize code * lint issue * combine task set creation into task creation endpoint * make empty cell show dash in task table * disable submit button when creating tasks and rename onCreateTaskSuccess * feat(tasking): Build mark task as completed workflow (front-end) * relocate TaskModal.jsx * add yup validation for MarkTaskCompletedForm * Update packages/web/app/api/mutations/useTaskMutation.js Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * address feedback * remove saveDateAsString from completedTime field * feat: build delete task workflow (front-end) * feat(tasking): delete task workflow * integrate to backend * fix(tasking): update tasking input schemas * address feedback * fix task not created properly --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> Co-authored-by: Nam Hoang <nam@bes.au> Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> * feat: EPI-973: Add tooltip for completed and not completed status icons (#6526) feat: add tooltip for completed and not completed status icons * fix(tasking): mark task as todo (#6522) * feat(tasking): add deletion reason for future repeating task instances (#6542) * fix(tasking): Error after mark as not completed (#6541) fix(tasking): error after mark task as not completed * feat: EPI-982: Build logic to mark 'old' repeating tasks as not completed (#6540) * feat: build logic to mark old repeating tasks as not completed * use sequelize methods instead of raw query * address feedback * feat: EPI-956: Implement behaviour for selecting a task and select all (#6525) * feat: implement behaviour for selecting a task and select all * reuse task action display for bulk action * resolve lint issue * resolve feedback * reset selected rows when task table is filtered by seach params * Update packages/web/app/components/Table/useSelectableColumn.jsx Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> * correct select all logic --------- Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> * feat(tasking): EPI-984: include task in encounter deletion workflow (#6543) * feat(tasking): include task in encounter deletion workflow * feat(tasking): update deletion info for tasks deleted on encouter deletion * feat: EPI-983: Create clinician dashboard (#6555) * feat: Create clinician dashboard page * lint issue * add dashboard to sidebar unit test * release: v2.17.0 * release: Bump version to 2.17.1 * release: Cut-off for release/2.18 * feat(tasking): EPI-941: Tasking permissions (#6572) * feat(fhir): SAV-825: Add coding for the imaging modality code to the FHIR ServiceRequests (#6470) feat(fhir): Add coding for the imaging modality code to the FHIR ServiceRequests Co-authored-by: Rohan Port <rohan@bes.au> * feat(tasking): EPI-981: Build logic to clean-up repeating tasks on patient discharge (#6557) * feat(tasking): EPI-981: Build logic to clean-up repeating tasks on patient discharge * address feedbacks * update sql query * fix(tasking): EPI-935: Resolve testing feedback (#6568) * fix: validation error when frequency value is empty * resolve feedback and small test cases * fix: wrong timezone when submitting default datetime * decrease fontweight of tooltip * pluralize frequency in task tables * add todo tooltip and remove conditional tooltip for applying style * redundant whitespace * fix(tasking): EPI-931: Build 'Tasks' importer (#6590) * fix(tasking): EPI-931: Build 'Tasks' importer * feedback * address feedback * fix(tasking): EPI-987: Tasks table pagination behaviour (#6591) * fix: EPI-935: Wrong submitted datetime due to timezone difference (#6585) * fix: wrong submitted datetime due to timezone difference * move datetimeCustomValidation to datetime utils * prevent action record time from the future * feat: EPI-934: Add feature flag for the tasking feature (#6576) * feat: add feature flag for tasking feature * migrate to use setting instead of config * pluralize task set dropdown label * fix(sync): SAV-842: Facility should prevent multiple syncs HOTFIX 2.17 (#6595) fix(sync): SAV-842: Facility should prevent multiple syncs HOTFIX 2.16 (#6583) * sav-842: facility should prevent multiple syncs * sav-842: added comment * release: v2.17.1 * release: Bump version to 2.17.2 * fix(tasking): EPI-954: Build task scheduler for repeating tasks (#6599) * feat: EPI-983: Build recently viewed patients section in dashboard (#6584) * feat: build recently viewed patients section in dashboard * add dashboard to global config * add validation for startTime and requestTime past date * tweak(imaging): 2.18 fix: Imaging request change status submission (#6606) tweak: imaging request change status fix * tweak(imaging): 2.18 fix: Finalise and print imaging request (#6607) * tweak: fix finalise and print * tweak: fix finalise and print * fix(tasking): EPI-939: Build delete task workflow (#6605) * fix: build delete task workflow * change translate stringId * fix: EPI-932: Record deleted task still appear in task set table (#6604) fix: recorded deleted at task still appear in task set table * fix: EPI: 964: Task action tooltip misalignment to the left (#6602) * fix: task action tooltip misalign to the left on windows * lint issue * remove disablePortal * remove unnecessary PopperProps * fix(translations): Fix incorrectly passed prop for getTranslation to IDCardPrintout (#6611) * fix(translations): Fix incorrectly passed prop for getTranslation to IDCardPrintout * fix id printout --------- Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Daniel Nash <dannash200@gmail.com> * fix(mobile): release 2.18 small fixes (#6615) * typo * fix setting bug on mobile * fix(tasking): fix generate repeating task schedule job (#6618) * fix: release-2.18: Fix infinite loading survey responses printout modal (#6620) fix: infinite loading survey responses printout modal * feat(tasking): EPI-999: Add notifications to the clinician dashboard (#6593) * feat(tasking): EPI-999: Add notifications to the clinician dashboard * Add LAB_REQUEST_STATUSES.CANCELLED to valid status list * address feedbacks * move patientId to metadata * fix(tasking): EPI-999: add notifications to the clinician dashboard backend (#6637) * feat(tasking): EPI-999: Add notifications to the clinician dashboard * Add LAB_REQUEST_STATUSES.CANCELLED to valid status list * address feedbacks * move patientId to metadata * Remove LAB_REQUEST_STATUSES.CANCELLED from valid status check * fix(vitals): Release fix v2.18: Missed facilityIds for vitals endpoints (#6636) * send facility id with endpoint requests * Update packages/web/app/forms/EditVitalCellForm.jsx Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> --------- Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> * fix(tasking): fix generate tasks (#6638) * fix(tasking): fix generate repeating task schedule job * fix generate task * fix: EPI-937: Fix mark task as not completed and delete task workflow (#6622) * fix: EPI-937: Fix mark task as not completed workflow * remove status to-do tooltip * filter out deleted by system reason option * fix: EPI-934: Build tasks tab in encounter view (#6639) exclude second from task due time * fix: release-2.18: EPI-1044: Fix calculated question still display if left empty (#6621) * Filter out empty calculated response result * fix lint issue * fix calculated value return 0.0 instead of null if all fields are left empty * check for input length * handle case when input value is 0 * extract variable using mathjs parse * add unit tests for calculations * release: v2.18.0 * release: Bump version to 2.18.1 * release: Cut-off for release/2.19 * fix(tasking): EPI-981: Build logic to clean-up repeating tasks on patient discharge (#6648) * fix(tasking): EPI-941: tasking permissions (#6649) * fix(tasking): EPI-941: tasking permissions * fix lint error * Update packages/web/app/components/Tasks/TasksTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * address feedbacks * address feedbacks --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * fix: EPI-983: Dashboard is redirected after login even when it is hidden (#6603) * fix: dashboard is redirected after login even it is hidden * check for settings loaded before redirect * fix(settings): hotfix 2.18: Question code email should be validated as any string not email (#6665) email is actully a code here * fix(settings): release 2.19: Question code email should be validated as any string not email (#6666) email is actully a code here * release: v2.18.1 * release: Bump version to 2.18.2 * fix(tasking): EPI-935: fix error when creating new task template by suggestion api (#6652) * fix(tasking): EPI-935: fix error when creating new task template by suggestion api * add permission checking * merge: Update DBT models of epic tasking * fix: EPI-940: Build mark task as to-do workflow (#6663) * fix: hide to do action when task is overdue * Update packages/web/app/components/Tasks/TasksTable.jsx Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * optimize code --------- Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> * merge: Update user preferences models doc * fix(tasking): EPI-940: restrict marking tasks as todo to those not older than 48 hours. (#6671) * fix(tasking): restrict marking tasks as todo to those not older than 48 hours. * misc: Remove useless comment * chore: remove empty unused test file in root (#6672) remove unused file in root * [generate-fake-db] * release: v2.19.0 * release: Bump version to 2.19.1 * fix: EPI-941: High priority icon placement issue when no action tasking permissions (#6693) fix: high priority icon placement issue * fix(labs): SAV-848: Fix incorrect limit of lab test results form (HOTFIX 2.19) (#6701) sav-848: fixed hardcoded limit of lab test results * fix(labs): SAV-848: Fix incorrect limit of lab test results form (main) (#6702) sav-848: fixed hardcoded limit of lab test results * release: v2.19.1 * release: Bump version to 2.19.2 * tweak(settings): Add description for mandateSpecimenType (#6705) * feat(tasking): EPI-1025: Drag and drop encounter tab reordering (#6668) * feat(tasking): EPI-1025: Drag and drop encounter tab reordering * Merge branch 'epic/tasking' into feature/epi-1025-drag-and-drop-encounter-tab-reordering * update package-lock file * fix dbt model issue * update dbt model docs * docs: update user_preferences documentation to describe encounter tab order storage * address feedbacks * fix(tasking): epi-981 build logic to clean up repeating tasks on patient discharge (#6709) * fix(tasking): EPI-981: Build logic to clean-up repeating tasks on patient discharge * fix(task): ensure tasks are only deleted if encounter has an end time on discharge * fix(discharge): refactor encounter discharge logic and remove redundant hooks --------- Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> * fix(tasking): update parentTaskId for repeating tasks without a parent (#6710) * fix(tasking): epi-979 support bulk actions for tasks with a status of completed (#6711) fix(tasking): update parentTaskId for repeating tasks with new parentTaskId * fix(sync): SAV-846: Use UUIDV4 as deviceId (#6677) * sav-846: use uuid as deviceId * sav-846: fixed test --------- Co-authored-by: Da-ntp <105630649+Da-ntp@users.noreply.github.com> * fix(invoices): SAV-849: Fix crash when opening invoice details (HOTFIX 2.19) (#6716) sav-849: only show tooltip when there is updatedByUser * release: v2.19.2 * release: Bump version to 2.19.3 * feat(mobile): EPI-902: SurveyAnswer question type not working correctly on mobile (#6690) * feat(mobile): EPI-902: SurveyAnswer question type not working correctly on mobile * feat(mobile): Add SurveyAnswerResult component to display survey answers * feat(mobile): Refactor SurveyAnswerField and SurveyAnswerResult components to improve answer rendering * fix(mobile): Correctly set answer in SurveyAnswerField component --------- Co-authored-by: Da-ntp <105630649+Da-ntp@users.noreply.github.com> * feat(desktop): EPI-1025: drag and drop encounter tab reordering (#6712) * feat(tasking): EPI-1025: Drag and drop encounter tab reordering * Merge branch 'epic/tasking' into feature/epi-1025-drag-and-drop-encounter-tab-reordering * update package-lock file * fix dbt model issue * update dbt model docs * docs: update user_preferences documentation to describe encounter tab order storage * address feedbacks * address feedbacks * refactor(TabDisplayDraggable): simplify drag-and-drop logic by removing unused placeholder handling * refactor(App): remove unused user preferences query and simplify logic * feat(desktop): EPI-892: SurveyAnswer question type not working correctly on desktop (#6692) * feat(desktop): EPI-892: SurveyAnswer question type not working correctly on desktop * fix(web): ensure answer body is checked before setting field value in SurveyAnswerField * feat(survey): update getAutocompleteComponentMap to include models and enhance autocomplete logic * feat(survey): add relation between ProgramDataElement and SurveyScreenComponent; refactor answer transformation logic * fix(reports): update date format in convertDateAnswer function from 'dd/MM/yyyy' to 'dd-MM-yyyy' * feat(survey): enhance survey answer handling by adding sourceType to answers and updating display components * fix(survey): update error messages in SurveyResponse tests and enhance error handling in transformAnswers function * fix(tests): remove redundant test for empty answer body in SurveyResponse tests * feat(fhir): SAV-820: Only rematerialise active Imaging/Lab requests (#6631) * feat(fhir): SAV-820: Add 'is_live' column to fhir resource tables * feat(fhir): SAV-820: Added LAB_REQUEST_TABLE_STATUS_GROUPINGS to keep isActive logic for Lab Requests DRY * feat(fhir): SAV-820: Add rematerialisation rules for ServiceRequests * feat(fhir): SAV-820: Add unit tests * feat(fhir): SAV-820: Swith LabRequest Listing views over to using LAB_REQUEST_TABLE_GROUPINGS for defining which statuses they want to see * feat(fhir): SAV-820: Add is_live to non_fhir_medici_report * feat(fhir): SAV-820: Fixed tests --------- Co-authored-by: Rohan Port <rohan@bes.au> * feat(translation): NASS-1460: Translate encounter record printout (#6687) * start translating * better do sum stringId cleanup as go * mo * refac * mo * finish all columns * use language xontext * oh yeh * yep" * yep * mo * yes * yep * mo * fix the build * oopsy daisiy * yes * consistently * hola * multi page header * and mo: * cleaner * more * more * mo * mo cleanup * fix * sort deps * missed * missed * missed * missed * fix sillyness * fix sillyness * small tweaks * print date missed spot * Update packages/shared/src/utils/patientCertificates/printComponents/Footer.jsx Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> * requests * wip * ready * remove ting * mabye will work shoot * way better * way better * add missing label * try * try * think i got it * didnt mean to change that * nor that * lower touch with package-lock --------- Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> * release: Cut-off for release/2.20 * release: Bump version to 2.21.0 * ci(cd): Diff translations workaround for checkout action fetching tags on trigger tag push (#6695) * workaround for fetching tags on trigger tag push * workaround for tag fetch issue * tweak(dbt): Re-generate models (#6733) * tweak(dbt): Re-generate models * tweak(dbt): Added generic is_live description * tweak(dbt): Fix up conflicts in auto generated models and prettier auto formatting * Added missing newline --------- Co-authored-by: Rohan Port <rohan@bes.au> * fix(desktop): release-v2.20: fix encounter tabs draggable ui (#6730) * fix(desktop): release-v2.20: fix encounter tabs draggable ui * feat(tabs): add custom cursor for draggable tabs * fix(tabs): restore custom cursor for draggable tabs * fix(tabs): optimize cursor style handling for draggable tabs * fix(tabs): update cursor style for draggable tabs to use SVG cursor * fix(tabs): replace inline SVG cursor with variable for draggable tabs * tweak(printouts): release 2.20 fix: Update package-lock for pdf font fixes (#6746) tweak: pdf override * fix(labs): Status filter behavour tweaks (#6745) * Update labs.ts * fix status filter logic * allow table statuses to be overwritten by proper filter name * use better form name * Update LabRequestsTable.jsx * Update LabRequestsTable.jsx * Update LabRequestsTable.jsx * for real this time * fix: release: 2.20: Modify tile font size of recently viewed patient list in dashboard (#6748) fix: modify font size of recently viewed patient list in dashboard * fix(mobile): release-v2.20: fix sync errors on mobile (#6750) * feat(alerts): TAMOC-248: SQL Proactive alerting for FHIR jobs and various queues (#6661) Co-authored-by: Edwin Monk-Fromont <edwin.monkfromont@gmail.com> Co-authored-by: Félix Saparelli <felix@bes.au> * fix(imagingRequests): release 2.20 flash of error when finalising & printing imaging request (#6761) * fix flash of error * remove debug log * organise imports * restore memoisation * fix(scripts): Update script to be able to work with NPM plus fix DBT (#6747) * Update script to be able to work with NPM * remove the model files that aren't in this branch * Update DBT models thing * Generate DBT model and complete TODOs * Do it again * Update final details * Dedupe last file hopefully * Remove newline? IDK * Bring them back * Type change? * For the love of god * Delete files --------- Co-authored-by: Félix Saparelli <felix@bes.au> * fix: release 2.20: EPI-1071: Correct JSON display on printable report from program forms (#6768) fix: correct JSON display on printable report from program forms * release: v2.20.0 * release: Bump version to 2.20.1 * fix(syncLookup): TAMOC-251: Save facility ID for appointments (#6796) * Store facility ID * Update test accordingly * fix(syncLookup): TAMOC-251: Save facility ID for appointments hotfix to 2.20 (#6802) * fix(syncLookup): TAMOC-251: Save facility ID for appointments (#6796) * Store facility ID * Update test accordingly * Update DBT * chore(referenceData): NASS-1364: remove unused maritalStatus as importable reference data (#6798) remove maritial status from reference data * fix(mobile): SAV-856: Remove shared constant from mobile to fix Appcenter build (#6812) sav-856: removed constant use from mobile * fix(translations): TAMOC-250: Improve translated suggestions query (#6808) * Pass a limit on the translations query * Update model to use limit * Remove debug timer * release: v2.20.1 * release: Bump version to 2.20.2 * ci(mobile): Restore shared package usage in appcenter mobile builds (#6811) * try 3 * fix * fix * fix * test * test * the actual fix * unrelated --------- Co-authored-by: Chris Tran <chris@beyondessential.com.au> * fix(desktop): release-v2.20: survey questions pulled incorrect answers (#6820) * ci: KAM-302: toolbox (#6754) * release: v2.20.2 * release: Bump version to 2.20.3 * release: Bump version to 2.22.0 * ci: avoid false positives for dbt up-to-date check (#6875) * Update migration accordingly * Truly fix the migration now * Fix it for good * Make it deterministic * Remove column from model * Remove unnecessary endpoint * Updation mutation usage --------- Co-authored-by: khoi.nguyen <khoi@bes.au> Co-authored-by: huytranbes <160376020+huytranbes@users.noreply.github.com> Co-authored-by: khoi-bes <160443788+khoi-bes@users.noreply.github.com> Co-authored-by: namhoangbes <160203225+namhoangbes@users.noreply.github.com> Co-authored-by: Nam Hoang <nam@bes.au> Co-authored-by: Huy-Tran-Huu-Le <huy@bes.au> Co-authored-by: Félix Saparelli <felix@bes.au> Co-authored-by: Rohan Port <rohan@bes.au> Co-authored-by: Daniel Nash <38335330+dannash100@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: chris-bes <63621318+chris-bes@users.noreply.github.com> Co-authored-by: Rohan Port <59544282+rohan-bes@users.noreply.github.com> Co-authored-by: chris-bes <chris@beyondessential.com.au> Co-authored-by: Daniel Nash <dannash200@gmail.com> Co-authored-by: Thomas Codling <58054247+tcodling@users.noreply.github.com> Co-authored-by: Jasper Lai <33956381+jaskfla@users.noreply.github.com> Co-authored-by: MeganLane29 <60370593+MeganLane29@users.noreply.github.com> Co-authored-by: Da-ntp <105630649+Da-ntp@users.noreply.github.com> Co-authored-by: Edwin Monk-Fromont <edwin.monkfromont@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Workaround to restore diff translations on release tag push
see actions/checkout#1467
Further down we fetch the tags using
git fetch tagsDeploys
Remember to...