You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,3 +23,32 @@ If uploads are not allowed from the web (changable via a runtime property), you
23
23
into the ~/.OpenMRS/modules folder. (Where ~/.OpenMRS is assumed to be the Application
24
24
Data Directory that the running openmrs is currently using.) After putting the file in there
25
25
simply restart OpenMRS/tomcat and the module will be loaded and started.
26
+
27
+
Configure values
28
+
------------
29
+
## Vagrant setup
30
+
31
+
You can configure values like, say location, concept and attribute names. you can check **api/src/main/java/org/bahmni/module/hip/Config.java** to know what are the values you can configure and default values.
32
+
33
+
### One time setup
34
+
35
+
1. create a file. For example, created `env_file` in `/etc/openmrs/` directory.
36
+
2. To create conf file for openmrs service,`systemctl edit openmrs`. It will open blank file. paste the following lines in it
37
+
```
38
+
[Service]
39
+
EnvironmentFile=/etc/openmrs/env_file
40
+
```
41
+
Note: You need to specify your created file path from 1st step in `EnvironmentFile` variable
42
+
43
+
### To configure values
44
+
45
+
You need to add values to the `env_file`. For example, if you need to specify custom values for Location and Phone Number attribute.
46
+
```
47
+
LOCATION=your_location
48
+
PHONE_NUMBER=your_phoneNumber_attribute_name
49
+
```
50
+
Note: Attribute Name should be exactly same as enum keys from **api/src/main/java/org/bahmni/module/hip/Config.java**
51
+
52
+
## Docker setup
53
+
54
+
You can add values to the openmrs Environment variables, specifying same attribute name.
0 commit comments