Skip to content

Commit db891be

Browse files
Merge pull request #478 from noharm-ai/develop
v5.4.12
2 parents 55d3b25 + f75c8a7 commit db891be

4 files changed

Lines changed: 27 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "noharm-app",
33
"private": true,
4-
"version": "5.4.11",
4+
"version": "5.4.12",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/models/Role.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export default class Role {
88
static DISPENSING_MANAGER = "DISPENSING_MANAGER";
99
static VIEWER = "VIEWER";
1010
static REGULATOR = "REGULATOR";
11-
12-
static CPOE = "cpoe"; //keep for compatibility (remove after transition)
11+
static SUPPORT_REQUESTER = "SUPPORT_REQUESTER";
12+
static SUPPORT_MANAGER = "SUPPORT_MANAGER";
1313

1414
static getNewRoles(t, features) {
1515
const roles = [
@@ -54,6 +54,18 @@ export default class Role {
5454
});
5555
}
5656

57+
roles.push({
58+
id: Role.SUPPORT_REQUESTER,
59+
label: t(`roles.${Role.SUPPORT_REQUESTER}`),
60+
description: t(`rolesDescription.${Role.SUPPORT_REQUESTER}`),
61+
});
62+
63+
roles.push({
64+
id: Role.SUPPORT_MANAGER,
65+
label: t(`roles.${Role.SUPPORT_MANAGER}`),
66+
description: t(`rolesDescription.${Role.SUPPORT_MANAGER}`),
67+
});
68+
5769
roles.push({
5870
id: Role.VIEWER,
5971
label: t(`roles.${Role.VIEWER}`),

src/translations/en.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,9 @@
645645
"DISCHARGE_MANAGER": "Discharge Manager",
646646
"VIEWER": "Viewer",
647647
"DISPENSING_MANAGER": "Dispensing Manager",
648-
"REGULATOR": "Regulator"
648+
"REGULATOR": "Regulator",
649+
"SUPPORT_REQUESTER": "Support Requester",
650+
"SUPPORT_MANAGER": "Support Manager"
649651
},
650652

651653
"rolesDescription": {
@@ -655,7 +657,9 @@
655657
"DISCHARGE_MANAGER": "Responsible for creating discharge summaries.",
656658
"VIEWER": "Read-only access to prescriptions.",
657659
"DISPENSING_MANAGER": "Responsible for managing item dispensing information",
658-
"REGULATOR": "Responsible for regulation"
660+
"REGULATOR": "Responsible for regulation",
661+
"SUPPORT_REQUESTER": "Has the permission to create support tickets",
662+
"SUPPORT_MANAGER": "Visualize tickets from all users."
659663
},
660664

661665
"reportcsv": {

src/translations/pt.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,9 @@
649649
"DISCHARGE_MANAGER": "Gestor de Alta",
650650
"VIEWER": "Visualizador",
651651
"DISPENSING_MANAGER": "Gestor de Dispensação",
652-
"REGULATOR": "Regulador"
652+
"REGULATOR": "Regulador",
653+
"SUPPORT_REQUESTER": "Requerente de Suporte",
654+
"SUPPORT_MANAGER": "Gestor de Suporte"
653655
},
654656

655657
"rolesDescription": {
@@ -659,7 +661,9 @@
659661
"DISCHARGE_MANAGER": "Responsável pela criação de sumários de alta",
660662
"VIEWER": "Acesso somente leitura às prescrições",
661663
"DISPENSING_MANAGER": "Responsável pela gestão das informações de dispensação dos itens",
662-
"REGULATOR": "Responsável pela regulação"
664+
"REGULATOR": "Responsável pela regulação",
665+
"SUPPORT_REQUESTER": "Este papel permite ao usuário que ele abra chamados de suporte",
666+
"SUPPORT_MANAGER": "Responsável pelo suporte da organização. Pode visualizar todos os chamados abertos para a sua organização."
663667
},
664668

665669
"reportcsv": {

0 commit comments

Comments
 (0)