@openmrs/esm-dispensing-app 1.0.1-pre.218 → 1.0.1-pre.220
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/README.md +24 -0
- package/dist/153.js +1 -1
- package/dist/153.js.map +1 -1
- package/dist/openmrs-esm-dispensing-app.js.buildmanifest.json +6 -6
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/config-schema.ts +9 -9
- /package/.yarn/versions/{fb561cd1.yml → a2aaaecf.yml} +0 -0
package/README.md
CHANGED
|
@@ -5,6 +5,30 @@
|
|
|
5
5
|
This repository is for the OpenMRS Dispensing App. For more information, please see the
|
|
6
6
|
[Design Documentation](https://wiki.openmrs.org/display/projects/Dispensing+Design+Components).
|
|
7
7
|
|
|
8
|
+
## Required Configuration
|
|
9
|
+
|
|
10
|
+
The Dispensing ESM requires the "HL7-MedicationDispenseStatus" concept source and FHIR concept source, as well as "Medication Dispense Status" value/concept set, to be installed in your OpenMRS instance to properly map dispensing statuses.
|
|
11
|
+
|
|
12
|
+
References to the Iniz files that install these concept sources can be found here:
|
|
13
|
+
|
|
14
|
+
https://github.com/openmrs/openmrs-distro-referenceapplication/blob/main/distro/configuration/conceptsources/conceptsources-core_data.csv#L24
|
|
15
|
+
|
|
16
|
+
https://openmrs.slack.com/archives/C02P790SM7X/p1692380047339679?thread_ts=1692338258.965499&cid=C02P790SM7X
|
|
17
|
+
|
|
18
|
+
The Medication Dispense Status value set can be found here:
|
|
19
|
+
|
|
20
|
+
https://app.openconceptlab.org/#/search/?q=medication+dispense+status
|
|
21
|
+
|
|
22
|
+
It also is bundled in the "DrugDispense" OCL package provided by the Reference Application:
|
|
23
|
+
|
|
24
|
+
https://github.com/openmrs/openmrs-distro-referenceapplication/tree/main/distro/configuration/ocl
|
|
25
|
+
|
|
26
|
+
The "DrugDispense" also provides the default value sets for the "Substitution Type", "Substitution Reason", and "Medication Dispense Status Reason".
|
|
27
|
+
|
|
28
|
+
The "Substitution Type" and "Substitution Reason" value sets define the valid answers for both the equivalent questions when substituting a drug. The "Medication Dispense Status Reason" provides the default answers for both the "Reason for Pause" and "Reason for Close" questions.
|
|
29
|
+
|
|
30
|
+
All of these can be customized via the config-schema, see: https://github.com/openmrs/openmrs-esm-dispensing-app/blob/main/src/config-schema.ts
|
|
31
|
+
|
|
8
32
|
## Required privileges
|
|
9
33
|
|
|
10
34
|
Note that following privileges need to be installed and assigned to roles:
|
package/dist/153.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[153],{9153:(e,t,n)=>{"use strict";n.r(t),n.d(t,{dispensing:()=>l,dispensingDashboard:()=>u,dispensingLink:()=>p,importTranslation:()=>a,startupApp:()=>
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[153],{9153:(e,t,n)=>{"use strict";n.r(t),n.d(t,{dispensing:()=>l,dispensingDashboard:()=>u,dispensingLink:()=>p,importTranslation:()=>a,startupApp:()=>c});var o=n(1132),i={appName:{_type:o.Type.String,_default:"Pharmacy"},actionButtons:{pauseButton:{enabled:{_type:o.Type.Boolean,_description:"Enabled/Disable including a Pause button in the button action bar",_default:!0}},closeButton:{enabled:{_type:o.Type.Boolean,_description:"Enabled/Disable including a Close button in the button action bar",_default:!0}}},dispenseBehavior:{allowModifyingPrescription:{_type:o.Type.Boolean,_description:"Enable/Disable editing the prescription. If Disabled, Quantity will be he only editable field on prescription form",_default:!1},restrictTotalQuantityDispensed:{_type:o.Type.Boolean,_description:"Enable/Disable restricting dispensing quantity greater than total quantity ordered. Marks prescription as complete when total quantity dispensed. If true, allowModifyingPrescription *must* be false, as this functionality relies solely on numeric quantity and assumes no change in formulation, dosage, unit, etc",_default:!0}},medicationRequestExpirationPeriodInDays:{_type:o.Type.Number,_description:"Medication Requests older that this will be considered expired",_default:90},locationBehavior:{locationColumn:{enabled:{_type:o.Type.Boolean,_description:"Enabled/Disable including a Location column in the main prescriptions table showing ordering location",_default:!1}},locationFilter:{enabled:{_type:o.Type.Boolean,_description:"Enable/Disable Location filter on main prescriptions page",_default:!1},tag:{_type:o.Type.String,_description:"Name of the location tag to use when fetching locations to populate filter",_default:"Login Location"}}},valueSets:{reasonForPause:{uuid:{_type:o.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Pause' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",_default:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},reasonForClose:{uuid:{_type:o.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Close' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",_default:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},substitutionReason:{uuid:{_type:o.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167862/",_default:"2de6e1be-f2dd-4ba0-9516-8a611aa2af9b"}},substitutionType:{uuid:{_type:o.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Type of Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167859/",_default:"b9c5bca0-d026-4245-a4d2-e4c0a8999082"}}}},a=n(3979),s="@openmrs/esm-dispensing-app",r={featureName:"dispensing",moduleName:s},l=(0,o.getAsyncLifecycle)((function(){return Promise.all([n.e(672),n.e(49)]).then(n.bind(n,1049))}),r),p=(0,o.getAsyncLifecycle)((function(){return Promise.all([n.e(672),n.e(397),n.e(641)]).then(n.bind(n,9641))}),r),u=(0,o.getAsyncLifecycle)((function(){return Promise.all([n.e(361),n.e(672),n.e(397),n.e(771)]).then(n.bind(n,2291))}),r);function c(){(0,o.defineConfigSchema)(s,i)}},3979:(e,t,n)=>{var o={"./en.json":[3574,574],"./fr.json":[2757,757]};function i(e){if(!n.o(o,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],i=t[0];return n.e(t[1]).then((()=>n(i)))}i.keys=()=>Object.keys(o),i.id=3979,e.exports=i}}]);
|
package/dist/153.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"153.js","mappings":"4RAsBaA,EAAe,CAC1BC,QAAS,CACPC,MAAOC,EAAAA,KAAKC,OACZC,SAAU,YAEZC,cAAe,CACbC,YAAa,CACXC,QAAS,CACPN,MAAOC,EAAAA,KAAKM,QACZC,aACE,oEACFL,UAAU,IAGdM,YAAa,CACXH,QAAS,CACPN,MAAOC,EAAAA,KAAKM,QACZC,aACE,oEACFL,UAAU,KAIhBO,iBAAkB,CAChBC,2BAA4B,CAC1BX,MAAOC,EAAAA,KAAKM,QACZC,aACE,qHACFL,UAAU,GAEZS,+BAAgC,CAC9BZ,MAAOC,EAAAA,KAAKM,QACZC,aACE,yTACFL,UAAU,IAGdU,wCAAyC,CACvCb,MAAOC,EAAAA,KAAKa,OACZN,aACE,iEACFL,SAAU,IAEZY,iBAAkB,CAChBC,eAAgB,CACdV,QAAS,CACPN,MAAOC,EAAAA,KAAKM,QACZC,aACE,wGACFL,UAAU,IAGdc,eAAgB,CACdX,QAAS,CACPN,MAAOC,EAAAA,KAAKM,QACZC,aACE,4DACFL,UAAU,GAEZe,IAAK,CACHlB,MAAOC,EAAAA,KAAKC,OACZM,aACE,6EACFL,SAAU,oBAIhBgB,UAAW,CACTC,eAAgB,CACdC,KAAM,CACJrB,MAAOC,EAAAA,KAAKqB,KACZd,aACE,
|
|
1
|
+
{"version":3,"file":"153.js","mappings":"4RAsBaA,EAAe,CAC1BC,QAAS,CACPC,MAAOC,EAAAA,KAAKC,OACZC,SAAU,YAEZC,cAAe,CACbC,YAAa,CACXC,QAAS,CAC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AAY9B,EACjC,C,iBClCA,IAAIuC,EAAM,CACT,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,CAAC,IAIT,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,IAClCJ,EAAoBS,IAE7B,CACAX,EAAoBY,KAAO,IAAOC,OAAOD,KAAKb,GAC9CC,EAAoBW,GAAK,KACzBG,EAAOC,QAAUf,C","sources":["webpack://@openmrs/esm-dispensing-app/./src/config-schema.ts","webpack://@openmrs/esm-dispensing-app/./src/index.ts","webpack://@openmrs/esm-dispensing-app/./translations/ lazy nonrecursive .json$"],"names":["configSchema","appName","_type","Type","String","_default","actionButtons","pauseButton","enabled","Boolean","_description","closeButton","dispenseBehavior","allowModifyingPrescription","restrictTotalQuantityDispensed","medicationRequestExpirationPeriodInDays","Number","locationBehavior","locationColumn","locationFilter","tag","valueSets","reasonForPause","uuid","UUID","reasonForClose","substitutionReason","substitutionType","importTranslation","require","moduleName","options","featureName","dispensing","getAsyncLifecycle","dispensingLink","dispensingDashboard","startupApp","defineConfigSchema","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports"],"sourceRoot":""}
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"initial": false,
|
|
30
30
|
"entry": false,
|
|
31
31
|
"recorded": false,
|
|
32
|
-
"size":
|
|
32
|
+
"size": 5734,
|
|
33
33
|
"sizes": {
|
|
34
34
|
"consume-shared": 42,
|
|
35
|
-
"javascript":
|
|
35
|
+
"javascript": 5692
|
|
36
36
|
},
|
|
37
37
|
"names": [],
|
|
38
38
|
"idHints": [],
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"auxiliaryFiles": [
|
|
46
46
|
"153.js.map"
|
|
47
47
|
],
|
|
48
|
-
"hash": "
|
|
48
|
+
"hash": "52bf5e83e0d985d7",
|
|
49
49
|
"childrenByOrder": {}
|
|
50
50
|
},
|
|
51
51
|
{
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"initial": true,
|
|
54
54
|
"entry": true,
|
|
55
55
|
"recorded": false,
|
|
56
|
-
"size":
|
|
56
|
+
"size": 26256,
|
|
57
57
|
"sizes": {
|
|
58
58
|
"consume-shared": 42,
|
|
59
|
-
"javascript":
|
|
59
|
+
"javascript": 5692,
|
|
60
60
|
"share-init": 210,
|
|
61
61
|
"runtime": 20312
|
|
62
62
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"auxiliaryFiles": [
|
|
74
74
|
"main.js.map"
|
|
75
75
|
],
|
|
76
|
-
"hash": "
|
|
76
|
+
"hash": "ca9bfe542a581621",
|
|
77
77
|
"childrenByOrder": {}
|
|
78
78
|
},
|
|
79
79
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"backendDependencies":{"fhir2":"^1.2.0","webservices.rest":"^2.2.0"},"pages":[{"component":"dispensing","route":"dispensing","online":true,"offline":true}],"extensions":[{"name":"dispensing-link","slot":"app-menu-slot","component":"dispensingLink","online":true,"offline":true},{"name":"dispensing-dashboard","slot":"dispensing-dashboard-slot","component":"dispensingDashboard","online":true,"offline":true}],"version":"1.0.1-pre.
|
|
1
|
+
{"backendDependencies":{"fhir2":"^1.2.0","webservices.rest":"^2.2.0"},"pages":[{"component":"dispensing","route":"dispensing","online":true,"offline":true}],"extensions":[{"name":"dispensing-link","slot":"app-menu-slot","component":"dispensingLink","online":true,"offline":true},{"name":"dispensing-dashboard","slot":"dispensing-dashboard-slot","component":"dispensingDashboard","online":true,"offline":true}],"version":"1.0.1-pre.220"}
|
package/package.json
CHANGED
package/src/config-schema.ts
CHANGED
|
@@ -54,7 +54,7 @@ export const configSchema = {
|
|
|
54
54
|
_type: Type.Boolean,
|
|
55
55
|
_description:
|
|
56
56
|
"Enable/Disable restricting dispensing quantity greater than total quantity ordered. Marks prescription as complete when total quantity dispensed. If true, allowModifyingPrescription *must* be false, as this functionality relies solely on numeric quantity and assumes no change in formulation, dosage, unit, etc",
|
|
57
|
-
_default:
|
|
57
|
+
_default: true,
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
medicationRequestExpirationPeriodInDays: {
|
|
@@ -92,32 +92,32 @@ export const configSchema = {
|
|
|
92
92
|
uuid: {
|
|
93
93
|
_type: Type.UUID,
|
|
94
94
|
_description:
|
|
95
|
-
"UUID for the Value Set of valid answers to the 'Reason for Pause' question.",
|
|
96
|
-
_default: "",
|
|
95
|
+
"UUID for the Value Set of valid answers to the 'Reason for Pause' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",
|
|
96
|
+
_default: "2462a9d7-61fb-4bf5-9359-aedecb8d03cb",
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
99
|
reasonForClose: {
|
|
100
100
|
uuid: {
|
|
101
101
|
_type: Type.UUID,
|
|
102
102
|
_description:
|
|
103
|
-
"UUID for the Value Set of valid answers to the 'Reason for Close' question.",
|
|
104
|
-
_default: "",
|
|
103
|
+
"UUID for the Value Set of valid answers to the 'Reason for Close' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",
|
|
104
|
+
_default: "2462a9d7-61fb-4bf5-9359-aedecb8d03cb",
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
substitutionReason: {
|
|
108
108
|
uuid: {
|
|
109
109
|
_type: Type.UUID,
|
|
110
110
|
_description:
|
|
111
|
-
"UUID for the Value Set of valid answers to the 'Reason for Substitution' question.
|
|
112
|
-
_default: "",
|
|
111
|
+
"UUID for the Value Set of valid answers to the 'Reason for Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167862/",
|
|
112
|
+
_default: "2de6e1be-f2dd-4ba0-9516-8a611aa2af9b",
|
|
113
113
|
},
|
|
114
114
|
},
|
|
115
115
|
substitutionType: {
|
|
116
116
|
uuid: {
|
|
117
117
|
_type: Type.UUID,
|
|
118
118
|
_description:
|
|
119
|
-
"UUID for the Value Set of valid answers to the 'Type of Substitution' question.
|
|
120
|
-
_default: "",
|
|
119
|
+
"UUID for the Value Set of valid answers to the 'Type of Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167859/",
|
|
120
|
+
_default: "b9c5bca0-d026-4245-a4d2-e4c0a8999082",
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
123
|
},
|
|
File without changes
|