Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
# <u>Content Package Template</u>
# <u>Content Package of the demo data in the Reference Application</u>

This is a template repo to be used to set up and share Content Packages.

The contents of a typical Content Package are:
* **Configuration**
* 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:
* **Forms** (in /ampathforms)
* **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)))
* **Programmatic Metadata** such as:
* Programs (in [/programs]([url](https://github.com/mekomsolutions/openmrs-module-initializer/blob/main/readme/prog.md)))
* Encounter types (in [/encountertypes]([url](https://github.com/mekomsolutions/openmrs-module-initializer/blob/main/readme/et.md)))
* Workflows (in [/programworkflows]([url](https://github.com/mekomsolutions/openmrs-module-initializer/blob/main/readme/prog.md)))
* Identifiers and other metadata
* **content.properties File**
* Contents: This file specifies the required ESMs and OMODs (frontend modules and backend modules) that make up the Content Package.
* Importance:
* 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.
* An automatic distro Build Helper Tool then fetches the content package's information and extracts the content into the Implementation's distro.properties file.
* **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.
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).
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<addressConfiguration>
<wipe>true</wipe>
<addressComponents>
<addressComponent>
<field>COUNTRY</field>
<nameMapping>Location.country</nameMapping>
<sizeMapping>40</sizeMapping>
<requiredInHierarchy>true</requiredInHierarchy>
</addressComponent>
<addressComponent>
<field>STATE_PROVINCE</field>
<nameMapping>Location.province</nameMapping>
<sizeMapping>40</sizeMapping>
<requiredInHierarchy>true</requiredInHierarchy>
</addressComponent>
<addressComponent>
<field>COUNTY_DISTRICT</field>
<nameMapping>Location.district</nameMapping>
<sizeMapping>40</sizeMapping>
<requiredInHierarchy>true</requiredInHierarchy>
</addressComponent>
<addressComponent>
<field>ADDRESS_1</field>
<nameMapping>impl.commune</nameMapping>
<sizeMapping>40</sizeMapping>
<requiredInHierarchy>true</requiredInHierarchy>
</addressComponent>
<addressComponent>
<field>CITY_VILLAGE</field>
<nameMapping>Location.village</nameMapping>
<sizeMapping>40</sizeMapping>
<requiredInHierarchy>true</requiredInHierarchy>
</addressComponent>
</addressComponents>
<lineByLineFormat>
<string>cityVillage, address1</string>
<string>countyDistrict, stateProvince</string>
<string>country</string>
</lineByLineFormat>
<addressHierarchyFile>
<filename>addresshierarchy.csv</filename>
<entryDelimiter>,</entryDelimiter>
<identifierDelimiter>%</identifierDelimiter>
</addressHierarchyFile>
</addressConfiguration>

Large diffs are not rendered by default.

Loading