@uxland/primary-shell 7.0.1 → 7.1.0
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/dist/index.js +1053 -957
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +113 -103
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/handle-plugins.ts +15 -2
package/package.json
CHANGED
package/src/handle-plugins.ts
CHANGED
|
@@ -9,6 +9,10 @@ import {
|
|
|
9
9
|
initialize as clinicalMonitoringInitialize,
|
|
10
10
|
dispose as clinicalMonitoringDispose,
|
|
11
11
|
} from "../../../plugins/clinical-monitoring/src/plugin";
|
|
12
|
+
import {
|
|
13
|
+
initialize as adminClinicalMonitoringInitialize,
|
|
14
|
+
dispose as adminClinicalMonitoringDispose,
|
|
15
|
+
} from "../../../plugins/admin-clinical-monitoring/src/plugin";
|
|
12
16
|
import { PrimariaApi, primariaApiFactory } from "./api/api";
|
|
13
17
|
|
|
14
18
|
let bootstrappedPlugins = [] as BootstrappedPlugin[];
|
|
@@ -35,10 +39,19 @@ const doctorInternalPlugins: PluginDefinition[] = [
|
|
|
35
39
|
},
|
|
36
40
|
];
|
|
37
41
|
|
|
38
|
-
const administrativeInternalPlugins = [
|
|
42
|
+
const administrativeInternalPlugins: PluginDefinition[] = [
|
|
43
|
+
{
|
|
44
|
+
pluginId: "admin-clinical-monitoring",
|
|
45
|
+
importer: () =>
|
|
46
|
+
Promise.resolve({
|
|
47
|
+
initialize: adminClinicalMonitoringInitialize,
|
|
48
|
+
dispose: adminClinicalMonitoringDispose,
|
|
49
|
+
}),
|
|
50
|
+
},
|
|
51
|
+
];
|
|
39
52
|
|
|
40
53
|
const getPluginsByUserRole = (userRole: string) => {
|
|
41
|
-
if (userRole === "
|
|
54
|
+
if (userRole === "MD") {
|
|
42
55
|
return commonPlugins.concat(administrativeInternalPlugins);
|
|
43
56
|
}
|
|
44
57
|
return commonPlugins.concat(doctorInternalPlugins);
|