@mbehenri/openmrs-esm-opentms-meet-app 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/e2e/core/global-setup.ts +8 -8
- package/e2e/core/index.ts +1 -1
- package/e2e/core/test.ts +3 -3
- package/e2e/fixtures/api.ts +9 -2
- package/e2e/fixtures/index.ts +1 -1
- package/e2e/pages/home-page.ts +1 -1
- package/e2e/pages/index.ts +1 -1
- package/e2e/specs/sample-test.spec.ts +5 -5
- package/jest.config.js +8 -8
- package/package.json +1 -1
- package/playwright.config.ts +11 -9
- package/src/components/Appointment/index.tsx +1 -5
- package/src/components/Demand/form.tsx +1 -5
- package/src/components/Demand/tab.tsx +1 -4
- package/src/config-schema.ts +13 -19
- package/src/dashboard.meta.ts +7 -8
- package/src/index.ts +9 -14
- package/src/pages/home/home.component.tsx +3 -6
- package/src/privileges/doctor.ts +211 -212
- package/src/repositories/TypeRepository.ts +1 -1
- package/src/repositories/env.ts +1 -2
- package/src/root.component.tsx +1 -2
- package/src/root.test.tsx +2 -5
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/e2e/core/global-setup.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { request } from
|
|
2
|
-
import * as dotenv from
|
|
1
|
+
import { request } from "@playwright/test";
|
|
2
|
+
import * as dotenv from "dotenv";
|
|
3
3
|
|
|
4
4
|
dotenv.config();
|
|
5
5
|
|
|
@@ -12,20 +12,20 @@ dotenv.config();
|
|
|
12
12
|
|
|
13
13
|
async function globalSetup() {
|
|
14
14
|
const requestContext = await request.newContext();
|
|
15
|
-
const token = Buffer.from(
|
|
16
|
-
|
|
17
|
-
);
|
|
15
|
+
const token = Buffer.from(
|
|
16
|
+
`${process.env.E2E_USER_ADMIN_USERNAME}:${process.env.E2E_USER_ADMIN_PASSWORD}`
|
|
17
|
+
).toString("base64");
|
|
18
18
|
await requestContext.post(`${process.env.E2E_BASE_URL}/ws/rest/v1/session`, {
|
|
19
19
|
data: {
|
|
20
20
|
sessionLocation: process.env.E2E_LOGIN_DEFAULT_LOCATION_UUID,
|
|
21
|
-
locale:
|
|
21
|
+
locale: "en",
|
|
22
22
|
},
|
|
23
23
|
headers: {
|
|
24
|
-
|
|
24
|
+
"Content-Type": "application/json",
|
|
25
25
|
Authorization: `Basic ${token}`,
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
|
-
await requestContext.storageState({ path:
|
|
28
|
+
await requestContext.storageState({ path: "e2e/storageState.json" });
|
|
29
29
|
await requestContext.dispose();
|
|
30
30
|
}
|
|
31
31
|
|
package/e2e/core/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./test";
|
package/e2e/core/test.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { APIRequestContext, Page, test as base } from
|
|
2
|
-
import { api } from
|
|
1
|
+
import { APIRequestContext, Page, test as base } from "@playwright/test";
|
|
2
|
+
import { api } from "../fixtures";
|
|
3
3
|
|
|
4
4
|
// This file sets up our custom test harness using the custom fixtures.
|
|
5
5
|
// See https://playwright.dev/docs/test-fixtures#creating-a-fixture for details.
|
|
@@ -16,5 +16,5 @@ export interface CustomWorkerFixtures {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export const test = base.extend<CustomTestFixtures, CustomWorkerFixtures>({
|
|
19
|
-
api: [api, { scope:
|
|
19
|
+
api: [api, { scope: "worker" }],
|
|
20
20
|
});
|
package/e2e/fixtures/api.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
APIRequestContext,
|
|
3
|
+
PlaywrightWorkerArgs,
|
|
4
|
+
WorkerFixture,
|
|
5
|
+
} from "@playwright/test";
|
|
2
6
|
|
|
3
7
|
/**
|
|
4
8
|
* A fixture which initializes an [`APIRequestContext`](https://playwright.dev/docs/api/class-apirequestcontext)
|
|
@@ -13,7 +17,10 @@ import { APIRequestContext, PlaywrightWorkerArgs, WorkerFixture } from '@playwri
|
|
|
13
17
|
* });
|
|
14
18
|
* ```
|
|
15
19
|
*/
|
|
16
|
-
export const api: WorkerFixture<
|
|
20
|
+
export const api: WorkerFixture<
|
|
21
|
+
APIRequestContext,
|
|
22
|
+
PlaywrightWorkerArgs
|
|
23
|
+
> = async ({ playwright }, use) => {
|
|
17
24
|
const ctx = await playwright.request.newContext({
|
|
18
25
|
baseURL: `${process.env.E2E_BASE_URL}/ws/rest/v1/`,
|
|
19
26
|
httpCredentials: {
|
package/e2e/fixtures/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./api";
|
package/e2e/pages/home-page.ts
CHANGED
package/e2e/pages/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./home-page";
|
|
@@ -4,8 +4,8 @@ import { expect } from "@playwright/test";
|
|
|
4
4
|
|
|
5
5
|
// This test is a sample E2E test. You can delete it.
|
|
6
6
|
|
|
7
|
-
test("Sample test", async ({ page}) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
7
|
+
test("Sample test", async ({ page }) => {
|
|
8
|
+
const homePage = new HomePage(page);
|
|
9
|
+
await homePage.goto();
|
|
10
|
+
await expect(homePage.page.getByRole("link", { name: "Home" })).toBeVisible();
|
|
11
|
+
});
|
package/jest.config.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @returns {Promise<import('jest').Config>}
|
|
3
3
|
*/
|
|
4
|
-
const path = require(
|
|
4
|
+
const path = require("path");
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
7
|
collectCoverageFrom: [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
"**/src/**/*.component.tsx",
|
|
9
|
+
"!**/node_modules/**",
|
|
10
|
+
"!**/vendor/**",
|
|
11
|
+
"!**/src/**/*.test.*",
|
|
12
|
+
"!**/src/declarations.d.ts",
|
|
13
|
+
"!**/e2e/**",
|
|
14
14
|
],
|
|
15
15
|
transform: {
|
|
16
16
|
"^.+\\.tsx?$": ["@swc/jest"],
|
|
@@ -23,7 +23,7 @@ module.exports = {
|
|
|
23
23
|
"^dexie$": require.resolve("dexie"),
|
|
24
24
|
},
|
|
25
25
|
setupFilesAfterEnv: ["<rootDir>/src/setup-tests.ts"],
|
|
26
|
-
testPathIgnorePatterns: [path.resolve(__dirname,
|
|
26
|
+
testPathIgnorePatterns: [path.resolve(__dirname, "e2e")],
|
|
27
27
|
testEnvironment: "jsdom",
|
|
28
28
|
testEnvironmentOptions: {
|
|
29
29
|
url: "http://localhost/",
|
package/package.json
CHANGED
package/playwright.config.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { devices, PlaywrightTestConfig } from
|
|
2
|
-
import * as dotenv from
|
|
1
|
+
import { devices, PlaywrightTestConfig } from "@playwright/test";
|
|
2
|
+
import * as dotenv from "dotenv";
|
|
3
3
|
dotenv.config();
|
|
4
4
|
|
|
5
5
|
// See https://playwright.dev/docs/test-configuration.
|
|
6
6
|
const config: PlaywrightTestConfig = {
|
|
7
|
-
testDir:
|
|
7
|
+
testDir: "./e2e/specs",
|
|
8
8
|
timeout: 3 * 60 * 1000,
|
|
9
9
|
expect: {
|
|
10
10
|
timeout: 40 * 1000,
|
|
@@ -12,18 +12,20 @@ const config: PlaywrightTestConfig = {
|
|
|
12
12
|
fullyParallel: true,
|
|
13
13
|
forbidOnly: !!process.env.CI,
|
|
14
14
|
retries: 0,
|
|
15
|
-
reporter: process.env.CI
|
|
16
|
-
|
|
15
|
+
reporter: process.env.CI
|
|
16
|
+
? [["junit", { outputFile: "results.xml" }], ["html"]]
|
|
17
|
+
: [["html"]],
|
|
18
|
+
globalSetup: require.resolve("./e2e/core/global-setup"),
|
|
17
19
|
use: {
|
|
18
20
|
baseURL: `${process.env.E2E_BASE_URL}/spa/`,
|
|
19
|
-
storageState:
|
|
20
|
-
video:
|
|
21
|
+
storageState: "e2e/storageState.json",
|
|
22
|
+
video: "retain-on-failure",
|
|
21
23
|
},
|
|
22
24
|
projects: [
|
|
23
25
|
{
|
|
24
|
-
name:
|
|
26
|
+
name: "chromium",
|
|
25
27
|
use: {
|
|
26
|
-
...devices[
|
|
28
|
+
...devices["Desktop Chrome"],
|
|
27
29
|
},
|
|
28
30
|
},
|
|
29
31
|
],
|
|
@@ -49,12 +49,8 @@ const PatientAppointmentsBase: React.FC<PatientAppointmentsBaseProps> = ({
|
|
|
49
49
|
const conf = useConfig();
|
|
50
50
|
|
|
51
51
|
// update env variable
|
|
52
|
-
|
|
53
|
-
env.API_HOST = conf["API_HOST"];
|
|
54
|
-
env.API_PASSWORD = conf["API_PASSWORD"];
|
|
55
|
-
env.API_PORT = conf["API_PORT"];
|
|
56
|
-
env.API_USER = conf["API_USER"];
|
|
57
52
|
env.API_SECURE = conf["API_SECURE"];
|
|
53
|
+
env.API_BASE_URL = conf["API_BASE_URL"];
|
|
58
54
|
const doctorService = useMemo(() => DoctorService.getInstance(), []);
|
|
59
55
|
|
|
60
56
|
// chargement des appointements
|
|
@@ -46,12 +46,8 @@ export const ValidateDemandForm: React.FC<ValidateDemandFormProps> = ({
|
|
|
46
46
|
const conf = useConfig();
|
|
47
47
|
|
|
48
48
|
// update env variable
|
|
49
|
-
|
|
50
|
-
env.API_HOST = conf["API_HOST"];
|
|
51
|
-
env.API_PASSWORD = conf["API_PASSWORD"];
|
|
52
|
-
env.API_PORT = conf["API_PORT"];
|
|
53
|
-
env.API_USER = conf["API_USER"];
|
|
54
49
|
env.API_SECURE = conf["API_SECURE"];
|
|
50
|
+
env.API_BASE_URL = conf["API_BASE_URL"];
|
|
55
51
|
const doctorService = useMemo(() => DoctorService.getInstance(), []);
|
|
56
52
|
|
|
57
53
|
useEffect(() => {
|
|
@@ -53,10 +53,7 @@ const DemandTab: React.FC = (/* {} */) => {
|
|
|
53
53
|
|
|
54
54
|
// update env variable
|
|
55
55
|
|
|
56
|
-
env.
|
|
57
|
-
env.API_PASSWORD = conf["API_PASSWORD"];
|
|
58
|
-
env.API_PORT = conf["API_PORT"];
|
|
59
|
-
env.API_USER = conf["API_USER"];
|
|
56
|
+
env.API_BASE_URL = conf["API_BASE_URL"];
|
|
60
57
|
env.API_SECURE = conf["API_SECURE"];
|
|
61
58
|
const doctorService = useMemo(() => DoctorService.getInstance(), []);
|
|
62
59
|
|
package/src/config-schema.ts
CHANGED
|
@@ -21,25 +21,19 @@ import { Type, validator } from "@openmrs/esm-framework";
|
|
|
21
21
|
* https://openmrs.github.io/openmrs-esm-core/#/main/config?id=schema-reference
|
|
22
22
|
*/
|
|
23
23
|
export const configSchema = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
API_BASE_URL: {
|
|
35
|
-
_type: Type.String,
|
|
36
|
-
_default: "http://localhost:8000",
|
|
37
|
-
_description: 'API base url',
|
|
38
|
-
}
|
|
24
|
+
API_SECURE: {
|
|
25
|
+
_type: Type.String,
|
|
26
|
+
_default: "------------------",
|
|
27
|
+
_description: "API secure key",
|
|
28
|
+
},
|
|
29
|
+
API_BASE_URL: {
|
|
30
|
+
_type: Type.String,
|
|
31
|
+
_default: "http://localhost:8000",
|
|
32
|
+
_description: "API base url",
|
|
33
|
+
},
|
|
39
34
|
};
|
|
40
35
|
|
|
41
36
|
export type Config = {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
37
|
+
API_SECURE: string;
|
|
38
|
+
API_BASE_URL: string;
|
|
39
|
+
};
|
package/src/dashboard.meta.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
1
|
export const meetingDashboardMeta = {
|
|
3
|
-
name:
|
|
4
|
-
slot:
|
|
5
|
-
title:
|
|
2
|
+
name: "meeting",
|
|
3
|
+
slot: "opencare-dashboard-slot",
|
|
4
|
+
title: "Meeting",
|
|
6
5
|
};
|
|
7
6
|
|
|
8
7
|
export const PaymentDashboardMeta = {
|
|
9
|
-
name:
|
|
10
|
-
slot:
|
|
11
|
-
title:
|
|
12
|
-
};
|
|
8
|
+
name: "payment",
|
|
9
|
+
slot: "opencare-dashboard-slot",
|
|
10
|
+
title: "Payment",
|
|
11
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
* connects the app shell to the React application(s) that make up this
|
|
5
5
|
* microfrontend.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
getAsyncLifecycle,
|
|
9
|
+
defineConfigSchema,
|
|
10
|
+
getSyncLifecycle,
|
|
11
|
+
} from "@openmrs/esm-framework";
|
|
8
12
|
import { configSchema } from "./config-schema";
|
|
9
13
|
import Root from "./root.component";
|
|
10
14
|
import DemandTabExt from "./Extensions/DemandTabExt";
|
|
@@ -54,22 +58,13 @@ export function startupApp() {
|
|
|
54
58
|
|
|
55
59
|
export const root = getSyncLifecycle(Root, options);
|
|
56
60
|
|
|
57
|
-
export const demandtab = getSyncLifecycle(
|
|
58
|
-
DemandTabExt,
|
|
59
|
-
options
|
|
60
|
-
);
|
|
61
|
+
export const demandtab = getSyncLifecycle(DemandTabExt, options);
|
|
61
62
|
|
|
62
|
-
export const appointmenttab = getSyncLifecycle(
|
|
63
|
-
AppointmentTabExt,
|
|
64
|
-
options
|
|
65
|
-
);
|
|
63
|
+
export const appointmenttab = getSyncLifecycle(AppointmentTabExt, options);
|
|
66
64
|
|
|
67
|
-
export const meetiframe = getSyncLifecycle(
|
|
68
|
-
MeetIframeExt,
|
|
69
|
-
options
|
|
70
|
-
);
|
|
65
|
+
export const meetiframe = getSyncLifecycle(MeetIframeExt, options);
|
|
71
66
|
|
|
72
67
|
export const validatedemandform = getSyncLifecycle(
|
|
73
68
|
ValidateDemandFormExt,
|
|
74
69
|
options
|
|
75
|
-
);
|
|
70
|
+
);
|
package/src/privileges/doctor.ts
CHANGED
|
@@ -1,213 +1,212 @@
|
|
|
1
|
-
|
|
2
1
|
export const actions = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
]
|
|
2
|
+
"Edit Patient Identifiers",
|
|
3
|
+
"Remove Problems",
|
|
4
|
+
"View Order Types",
|
|
5
|
+
"View Global Properties",
|
|
6
|
+
"Edit Problems",
|
|
7
|
+
"View Concept Proposals",
|
|
8
|
+
"Add Relationships",
|
|
9
|
+
"View Locations",
|
|
10
|
+
"Manage OWA",
|
|
11
|
+
"Preview Forms",
|
|
12
|
+
"Manage HL7 Messages",
|
|
13
|
+
"View Patient Programs",
|
|
14
|
+
"Manage Concept Reference Terms",
|
|
15
|
+
"Manage Order Set Attribute Types",
|
|
16
|
+
"Delete HL7 Inbound Archive",
|
|
17
|
+
"Manage Concept Map Types",
|
|
18
|
+
"Add Encounters",
|
|
19
|
+
"View Patients",
|
|
20
|
+
"Generate Batch of Identifiers",
|
|
21
|
+
"Manage Person Attribute Types",
|
|
22
|
+
"Manage Auto Generation Options",
|
|
23
|
+
"Edit Encounters",
|
|
24
|
+
"Manage Field Types",
|
|
25
|
+
"Add Orders",
|
|
26
|
+
"View Programs",
|
|
27
|
+
"Manage Visit Attribute Types",
|
|
28
|
+
"Manage Forms",
|
|
29
|
+
"View Concept Datatypes",
|
|
30
|
+
"Add Concept Proposals",
|
|
31
|
+
"Manage Identifier Types",
|
|
32
|
+
"Update HL7 Inbound Exception",
|
|
33
|
+
"Get Order Frequencies",
|
|
34
|
+
"Manage Implementation Id",
|
|
35
|
+
"Manage Relationships",
|
|
36
|
+
"Manage Programs",
|
|
37
|
+
"Upload Batch of Identifiers",
|
|
38
|
+
"Remove Allergies",
|
|
39
|
+
"Manage Order Sets",
|
|
40
|
+
"Add Problems",
|
|
41
|
+
"View Observations",
|
|
42
|
+
"Add Visits",
|
|
43
|
+
"View Forms",
|
|
44
|
+
"Add Patients",
|
|
45
|
+
"View Problems",
|
|
46
|
+
"Add People",
|
|
47
|
+
"Add HL7 Source",
|
|
48
|
+
"Get Concept Attribute Types",
|
|
49
|
+
"Add Observations",
|
|
50
|
+
"Manage Visit Types",
|
|
51
|
+
"View Roles",
|
|
52
|
+
"Add Patient Programs",
|
|
53
|
+
"Edit Visits",
|
|
54
|
+
"Delete Patient Programs",
|
|
55
|
+
"View Encounters",
|
|
56
|
+
"View Privileges",
|
|
57
|
+
"Manage Providers",
|
|
58
|
+
"View Field Types",
|
|
59
|
+
"Delete People",
|
|
60
|
+
"Delete Users",
|
|
61
|
+
"Manage Encounter Roles",
|
|
62
|
+
"Delete Patients",
|
|
63
|
+
"Patient Dashboard - View Forms Section",
|
|
64
|
+
"View People",
|
|
65
|
+
"Get Diagnoses Attribute Types",
|
|
66
|
+
"Manage Address Hierarchy",
|
|
67
|
+
"Add Patient Identifiers",
|
|
68
|
+
"Edit Cohorts",
|
|
69
|
+
"Get Notes",
|
|
70
|
+
"Delete HL7 Inbound Exception",
|
|
71
|
+
"Get Visit Types",
|
|
72
|
+
"Get HL7 Inbound Exception",
|
|
73
|
+
"Manage Concepts",
|
|
74
|
+
"Get Visit Attribute Types",
|
|
75
|
+
"Get Visits",
|
|
76
|
+
"Get Providers",
|
|
77
|
+
"Get Location Attribute Types",
|
|
78
|
+
"Get Encounter Roles",
|
|
79
|
+
"Add HL7 Inbound Archive",
|
|
80
|
+
"Get HL7 Source",
|
|
81
|
+
"View Orders",
|
|
82
|
+
"Get HL7 Inbound Archive",
|
|
83
|
+
"Get HL7 Inbound Queue",
|
|
84
|
+
"Delete Patient Identifiers",
|
|
85
|
+
"View Relationship Types",
|
|
86
|
+
"Manage Global Properties",
|
|
87
|
+
"Manage Modules",
|
|
88
|
+
"Update HL7 Source",
|
|
89
|
+
"View Patient Cohorts",
|
|
90
|
+
"Manage Metadata Mapping",
|
|
91
|
+
"Edit Conditions",
|
|
92
|
+
"Delete Cohorts",
|
|
93
|
+
"Assign System Developer Role",
|
|
94
|
+
"Edit Users",
|
|
95
|
+
"Delete Concept Proposals",
|
|
96
|
+
"Get Concept Datatypes",
|
|
97
|
+
"Get Concept Classes",
|
|
98
|
+
"Edit Notes",
|
|
99
|
+
"Get Roles",
|
|
100
|
+
"Get Care Settings",
|
|
101
|
+
"Get Privileges",
|
|
102
|
+
"Get Order Types",
|
|
103
|
+
"Get Field Types",
|
|
104
|
+
"Get Concept Sources",
|
|
105
|
+
"Get Relationship Types",
|
|
106
|
+
"Manage Encounter Types",
|
|
107
|
+
"Get Identifier Types",
|
|
108
|
+
"Manage Scheduler",
|
|
109
|
+
"Get Forms",
|
|
110
|
+
"Get Orders",
|
|
111
|
+
"Get Global Properties",
|
|
112
|
+
"Manage Locations",
|
|
113
|
+
"Get Patient Programs",
|
|
114
|
+
"Get People",
|
|
115
|
+
"Patient Dashboard - View Overview Section",
|
|
116
|
+
"Delete Diagnoses",
|
|
117
|
+
"Get Person Attribute Types",
|
|
118
|
+
"Get Database Changes",
|
|
119
|
+
"Form Entry",
|
|
120
|
+
"Get Relationships",
|
|
121
|
+
"Get Allergies",
|
|
122
|
+
"Get Problems",
|
|
123
|
+
"Edit Diagnoses",
|
|
124
|
+
"Delete Orders",
|
|
125
|
+
"Get Programs",
|
|
126
|
+
"Get Concept Reference Terms",
|
|
127
|
+
"Purge Field Types",
|
|
128
|
+
"View Data Entry Statistics",
|
|
129
|
+
"Manage Address Templates",
|
|
130
|
+
"Upload XSN",
|
|
131
|
+
"Get Concept Map Types",
|
|
132
|
+
"Add HL7 Inbound Exception",
|
|
133
|
+
"Manage Identifier Sources",
|
|
134
|
+
"Get Conditions",
|
|
135
|
+
"Update HL7 Inbound Archive",
|
|
136
|
+
"Add Allergies",
|
|
137
|
+
"Manage Search Index",
|
|
138
|
+
"Manage Concept Classes",
|
|
139
|
+
"View Patient Identifiers",
|
|
140
|
+
"Manage Order Frequencies",
|
|
141
|
+
"Patient Overview - View Relationships",
|
|
142
|
+
"Patient Dashboard - View Demographics Section",
|
|
143
|
+
"Patient Overview - View Programs",
|
|
144
|
+
"Patient Overview - View Problem List",
|
|
145
|
+
"Patient Overview - View Allergies",
|
|
146
|
+
"View Administration Functions",
|
|
147
|
+
"Get Encounters",
|
|
148
|
+
"Get Users",
|
|
149
|
+
"Get Locations",
|
|
150
|
+
"View Encounter Types",
|
|
151
|
+
"Get Encounter Types",
|
|
152
|
+
"Get Patients",
|
|
153
|
+
"Get Observations",
|
|
154
|
+
"Get Patient Cohorts",
|
|
155
|
+
"Manage Location Attribute Types",
|
|
156
|
+
"View Identifier Types",
|
|
157
|
+
"Get Patient Identifiers",
|
|
158
|
+
"View Metadata Via Mapping",
|
|
159
|
+
"Add Users",
|
|
160
|
+
"Edit User Passwords",
|
|
161
|
+
"View Navigation Menu",
|
|
162
|
+
"Get Concepts",
|
|
163
|
+
"Delete Encounters",
|
|
164
|
+
"Get Concept Proposals",
|
|
165
|
+
"Edit People",
|
|
166
|
+
"Manage RESTWS",
|
|
167
|
+
"Edit Concept Proposals",
|
|
168
|
+
"Manage Concept Stop Words",
|
|
169
|
+
"Manage Location Tags",
|
|
170
|
+
"Manage Concept Sources",
|
|
171
|
+
"Manage Order Types",
|
|
172
|
+
"Edit Allergies",
|
|
173
|
+
"Patient Dashboard - View Encounters Section",
|
|
174
|
+
"Add Cohorts",
|
|
175
|
+
"Delete Notes",
|
|
176
|
+
"Manage Concept Datatypes",
|
|
177
|
+
"Delete Conditions",
|
|
178
|
+
"Manage Relationship Types",
|
|
179
|
+
"Edit Orders",
|
|
180
|
+
"Get Order Set Attribute Types",
|
|
181
|
+
"Get Diagnoses",
|
|
182
|
+
"View Relationships",
|
|
183
|
+
"Manage Alerts",
|
|
184
|
+
"Manage FormEntry XSN",
|
|
185
|
+
"View Unpublished Forms",
|
|
186
|
+
"Configure Visits",
|
|
187
|
+
"Patient Overview - View Patient Actions",
|
|
188
|
+
"Get Order Sets",
|
|
189
|
+
"Delete Visits",
|
|
190
|
+
"Patient Dashboard - View Patient Summary",
|
|
191
|
+
"Delete HL7 Inbound Queue",
|
|
192
|
+
"Delete Relationships",
|
|
193
|
+
"Edit Observations",
|
|
194
|
+
"View Concepts",
|
|
195
|
+
"Edit Patient Programs",
|
|
196
|
+
"View Person Attribute Types",
|
|
197
|
+
"View RESTWS",
|
|
198
|
+
"Patient Dashboard - View Graphs Section",
|
|
199
|
+
"Delete Observations",
|
|
200
|
+
"Patient Dashboard - View Regimen Section",
|
|
201
|
+
"Manage Concept Attribute Types",
|
|
202
|
+
"Manage Concept Name tags",
|
|
203
|
+
"View Users",
|
|
204
|
+
"View Allergies",
|
|
205
|
+
"View Concept Sources",
|
|
206
|
+
"Add HL7 Inbound Queue",
|
|
207
|
+
"Manage Roles",
|
|
208
|
+
"Update HL7 Inbound Queue",
|
|
209
|
+
"Edit Relationships",
|
|
210
|
+
"Edit Patients",
|
|
211
|
+
"View Concept Classes",
|
|
212
|
+
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TypeRepository = "good" | "fake";
|
|
1
|
+
export type TypeRepository = "good" | "fake";
|
package/src/repositories/env.ts
CHANGED
package/src/root.component.tsx
CHANGED
|
@@ -26,8 +26,7 @@ const Root: React.FC = () => {
|
|
|
26
26
|
|
|
27
27
|
// update env variable
|
|
28
28
|
useEffect(() => {
|
|
29
|
-
env.
|
|
30
|
-
env.API_PASSWORD = conf["API_PASSWORD"];
|
|
29
|
+
env.API_SECURE = conf["API_SECURE"];
|
|
31
30
|
env.API_BASE_URL = conf["API_BASE_URL"];
|
|
32
31
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
33
32
|
return () => {};
|
package/src/root.test.tsx
CHANGED
|
@@ -38,11 +38,8 @@ const mockUseConfig = useConfig as jest.Mock;
|
|
|
38
38
|
|
|
39
39
|
it("renders a landing page for the opencare app", () => {
|
|
40
40
|
const config: Config = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
API_PORT: "8010",
|
|
44
|
-
API_USER: "admin",
|
|
45
|
-
API_SECURE: false,
|
|
41
|
+
API_SECURE: "Admin123",
|
|
42
|
+
API_BASE_URL: "admin",
|
|
46
43
|
};
|
|
47
44
|
mockUseConfig.mockReturnValue(config);
|
|
48
45
|
|