Skip to content

Commit de5a9f1

Browse files
committed
(feat): Add demo data from the refapp
1 parent 3f276c0 commit de5a9f1

File tree

84 files changed

+17128
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+17128
-23
lines changed

README.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
# <u>Content Package Template</u>
1+
# <u>Content Package of the demo data in the Reference Application</u>
22

3-
This is a template repo to be used to set up and share Content Packages.
4-
5-
The contents of a typical Content Package are:
6-
* **Configuration**
7-
* This folder holds [Initializer compatible configuration metadata]([url](https://github.com/mekomsolutions/openmrs-module-initializer/blob/main/README.md)) that make up the content package. For example, in the /config directory, this includes:
8-
* **Forms** (in /ampathforms)
9-
* **Concepts** (in [/ocl]([url](https://github.com/mekomsolutions/openmrs-module-initializer/blob/main/README.md#:~:text=Open%20Concept%20Lab%20(ZIP%20Files))), [/concepts]([url](https://github.com/mekomsolutions/openmrs-module-initializer/blob/main/readme/concepts.md)))
10-
* **Programmatic Metadata** such as:
11-
* Programs (in [/programs]([url](https://github.com/mekomsolutions/openmrs-module-initializer/blob/main/readme/prog.md)))
12-
* Encounter types (in [/encountertypes]([url](https://github.com/mekomsolutions/openmrs-module-initializer/blob/main/readme/et.md)))
13-
* Workflows (in [/programworkflows]([url](https://github.com/mekomsolutions/openmrs-module-initializer/blob/main/readme/prog.md)))
14-
* Identifiers and other metadata
15-
* **content.properties File**
16-
* Contents: This file specifies the required ESMs and OMODs (frontend modules and backend modules) that make up the Content Package.
17-
* Importance:
18-
* The content.properties file is important because when Implementers add this Content Package to their distribution, the content.properties file will automatically be read and compared with their exitisting distro.properties file.
19-
* An automatic distro Build Helper Tool then fetches the content package's information and extracts the content into the Implementation's distro.properties file.
20-
* **Dependencies** are especially important here, as the Build Helper Tool will add any dependencies from the Content Package into an Implementation's distro.properties file.
3+
This content package contains all the demo metadata for the reference application. The baseline metadata _required_ to run a version of O3 is found in the [Reference Application Content Package](https://github.com/openmrs/openmrs-content-referenceapplication).
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<addressConfiguration>
2+
<wipe>true</wipe>
3+
<addressComponents>
4+
<addressComponent>
5+
<field>COUNTRY</field>
6+
<nameMapping>Location.country</nameMapping>
7+
<sizeMapping>40</sizeMapping>
8+
<requiredInHierarchy>true</requiredInHierarchy>
9+
</addressComponent>
10+
<addressComponent>
11+
<field>STATE_PROVINCE</field>
12+
<nameMapping>Location.province</nameMapping>
13+
<sizeMapping>40</sizeMapping>
14+
<requiredInHierarchy>true</requiredInHierarchy>
15+
</addressComponent>
16+
<addressComponent>
17+
<field>COUNTY_DISTRICT</field>
18+
<nameMapping>Location.district</nameMapping>
19+
<sizeMapping>40</sizeMapping>
20+
<requiredInHierarchy>true</requiredInHierarchy>
21+
</addressComponent>
22+
<addressComponent>
23+
<field>ADDRESS_1</field>
24+
<nameMapping>impl.commune</nameMapping>
25+
<sizeMapping>40</sizeMapping>
26+
<requiredInHierarchy>true</requiredInHierarchy>
27+
</addressComponent>
28+
<addressComponent>
29+
<field>CITY_VILLAGE</field>
30+
<nameMapping>Location.village</nameMapping>
31+
<sizeMapping>40</sizeMapping>
32+
<requiredInHierarchy>true</requiredInHierarchy>
33+
</addressComponent>
34+
</addressComponents>
35+
<lineByLineFormat>
36+
<string>cityVillage, address1</string>
37+
<string>countyDistrict, stateProvince</string>
38+
<string>country</string>
39+
</lineByLineFormat>
40+
<addressHierarchyFile>
41+
<filename>addresshierarchy.csv</filename>
42+
<entryDelimiter>,</entryDelimiter>
43+
<identifierDelimiter>%</identifierDelimiter>
44+
</addressHierarchyFile>
45+
</addressConfiguration>

configuration/backend_configuration/addresshierarchy/addresshierarchy-core_demo.csv

Lines changed: 345 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)