@openmrs/esm-dispensing-app 1.0.1-pre.219 → 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 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:
@@ -15,15 +39,6 @@ Note that following privileges need to be installed and assigned to roles:
15
39
  * "Task: dispensing.delete.dispense" - Allows user to delete an existing Medication Dispense
16
40
  * "Task: dispensing.delete.dispense.ifCreator" - Allows user to delete an existing Medication Dispense, *but only* if they created it originally
17
41
 
18
- ## Required configuation
19
-
20
- Please see config-schema.ts for the required configuration. Specifically, the following properties are required:
21
-
22
- * "substitutionType" property is a valid concept uuid pointing to a concept set that contains the substitution type concepts.
23
- * "substitutionReason" property is a valid concept uuid pointing to a concept set that contains the substitution reason concepts.
24
- * If the "Pause" button is enabled, you need to make sure that "reasonForPause" property is a valid concept uuid pointing to a concept set that contains the reason for pause concepts.
25
- * If the "Close" button is enabled, you need to make sure that "reasonForClose" property is a valid concept uuid pointing to a concept set that contains the reason for close concepts.
26
-
27
42
  ## Running this code
28
43
 
29
44
  ```sh
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.219"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-dispensing-app",
3
- "version": "1.0.1-pre.219",
3
+ "version": "1.0.1-pre.220",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Medication dispensing application",
6
6
  "browser": "dist/openmrs-esm-dispensing-app.js",
File without changes