All Projects → mekomsolutions → openmrs-module-initializer

mekomsolutions / openmrs-module-initializer

Licence: MIT License
The OpenMRS Initializer module is an API-only module that processes the content of the configuration folder when it is found inside OpenMRS' application data directory.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to openmrs-module-initializer

Specs
Technical specifications and guidelines for implementing Frictionless Data.
Stars: ✭ 403 (+2138.89%)
Mutual labels:  metadata, csv
Dataportals.org
Open Data Portals and Sites around the world
Stars: ✭ 87 (+383.33%)
Mutual labels:  metadata, csv
dswarm
an open-source data management platform for knowledge workers (https://github.com/dswarm/dswarm-documentation/wiki)
Stars: ✭ 57 (+216.67%)
Mutual labels:  metadata, csv
plugins
Plugins for HappyPanda X
Stars: ✭ 24 (+33.33%)
Mutual labels:  metadata
JavaResolver
Java class file inspection library for .NET.
Stars: ✭ 39 (+116.67%)
Mutual labels:  metadata
swift-csv
Fast and memory-efficient CSV library in Swift.
Stars: ✭ 73 (+305.56%)
Mutual labels:  csv
node-htmlmetaparser
A `htmlparser2` handler for parsing rich metadata from HTML. Includes HTML metadata, JSON-LD, RDFa, microdata, OEmbed, Twitter cards and AppLinks.
Stars: ✭ 44 (+144.44%)
Mutual labels:  metadata
appstream-generator
A fast AppStream metadata generator
Stars: ✭ 34 (+88.89%)
Mutual labels:  metadata
metaschema
Schema definition and validation 💡
Stars: ✭ 25 (+38.89%)
Mutual labels:  metadata
md server
Standalone EC2 metadata server to simplify the user of vendor cloud images with standalone kvm/libvirt
Stars: ✭ 36 (+100%)
Mutual labels:  metadata
RecordParser
Zero Allocation Writer/Reader Parser for .NET Core
Stars: ✭ 155 (+761.11%)
Mutual labels:  csv
midi degradation toolkit
A toolkit for generating datasets of midi files which have been degraded to be 'un-musical'.
Stars: ✭ 29 (+61.11%)
Mutual labels:  csv
kick-off-web-scraping-python-selenium-beautifulsoup
A tutorial-based introduction to web scraping with Python.
Stars: ✭ 18 (+0%)
Mutual labels:  csv
idataapi-transform
Full async support toolkit for IDataAPI for efficiency work, read data from API/ES/csv/xlsx/json/redis/mysql/mongo/kafka, write to ES/csv/xlsx/json/redis/mysql/mongo/kafka, provide CLI and python API
Stars: ✭ 36 (+100%)
Mutual labels:  csv
safe-airdrop
A Gnosis Safe app for distributing tokens from CSV transfer files.
Stars: ✭ 32 (+77.78%)
Mutual labels:  csv
nes
Helping researchers in routine procedures for data collection
Stars: ✭ 16 (-11.11%)
Mutual labels:  metadata
carsBase
База автомобилей с марками и моделями JSON, CSV, XLSX и MySQL
Stars: ✭ 49 (+172.22%)
Mutual labels:  csv
odin
Data-structure definition/validation/traversal, mapping and serialisation toolkit for Python
Stars: ✭ 24 (+33.33%)
Mutual labels:  csv
transferdb
TransferDB 支持异构数据库 schema 转换、全量数据导出导入以及增量数据同步功能( Oracle 数据库 -> MySQL/TiDB 数据库)
Stars: ✭ 30 (+66.67%)
Mutual labels:  csv
datapackage-go
A Go library for working with Data Package.
Stars: ✭ 22 (+22.22%)
Mutual labels:  csv

OpenMRS Initializer module

Introduction

The Initializer module is an API-only module that processes the content of the configuration folder when it is found inside OpenMRS' application data directory:

.
├── modules/
├── openmrs.war
├── openmrs-runtime.properties
├── ...
└── configuration/

The configuration folder is subdivided into domain subfolders:

configuration/
  ├── addresshierarchy/
  ├── ampathforms/
  ├── appointmentspecialities/
  ├── appointmentservicedefinitions/
  ├── appointmentservicetypes/
  ├── attributetypes/
  ├── autogenerationoptions/
  ├── bahmniforms/
  ├── conceptclasses/
  ├── conceptsources/
  ├── concepts/
  ├── conceptsets/
  ├── datafiltermappings/
  ├── drugs/
  ├── encountertypes/
  ├── globalproperties/
  ├── htmlforms/
  ├── idgen/
  ├── jsonkeyvalues/
  ├── liquibase/
  ├── locations/
  ├── locationtagmaps/
  ├── locationtags/
  ├── messageproperties/
  ├── metadatasetmembers/ 
  ├── metadatasets/ 
  ├── metadatasharing/ 
  ├── metadatatermmappings/
  ├── ocl/
  ├── orderfrequencies/
  ├── ordertypes/
  ├── patientidentifiertypes/ 
  ├── personattributetypes/ 
  ├── privileges/ 
  ├── programs/ 
  ├── programworkflows/
  ├── programworkflowstates/
  ├── providerroles/ 
  ├── relationshiptypes/
  └── roles/
   

Each domain-specific subfolder contains OpenMRS metadata configuration files that pertains to the domain.

Objectives

  • This module loads an OpenMRS configuration consisting of OpenMRS metadata.
  • CSV files are the preferred format, however a number of metadata domains rely on other file formats. See the list below for details.
  • Initializer processes all configuration files upon starting up.
  • Initializer produces a checksum file for each processed configuration file. A file will never be processed again until its checksum has changed.
    • See more info here about checksums.
  • Each line of those CSV files represents an OpenMRS metadata entity to be created, edited or retired.
  • Each line of those CSV files follows the WYSIWYG principle.

Supported domains and default loading order

We suggest to go through the following before looking at the specifics for each supported domain:

This is the list of currently supported domains in their loading order:

  1. Liquibase Changelog (XML file)
  2. Localization Message Properties (.properties files)
  3. Generic JSON key-values (JSON files)
  4. Metadata Sharing Packages (ZIP files)
  5. Visit Types (CSV files)
  6. Patient Identifier Types (CSV files)
  7. Relationship Types (CSV files)
  8. Location Tags (CSV files)
  9. Privileges (CSV files)
  10. Encounter Types (CSV files)
  11. Encounter Roles (CSV files)
  12. Roles (CSV files)
  13. Global Properties (XML files)
  14. Attribute Types (CSV files)
  15. Provider Roles (CSV files)
  16. Locations (CSV files)
  17. Location Tag Maps (CSV files)
  18. Bahmni Forms (JSON Files)
  19. Concept Classes (CSV files)
  20. Concept Sources (CSV files)
  21. Open Concept Lab (ZIP Files)
  22. Concepts (CSV files)
  23. Concept Sets and Answers (CSV files)
  24. Programs (CSV files)
  25. Program Worklows (CSV files)
  26. Program Worklow States (CSV files)
  27. Person Attribute Types (CSV files)
  28. Identifier Sources (CSV files)
  29. Autogeneration Options (CSV files)
  30. Drugs (CSV files)
  31. Order Frequencies (CSV files)
  32. Order Types (CSV files)
  33. Bahmni Appointment Specialities (CSV files)
  34. Bahmni Appointment Service Definitions (CSV files)
  35. Bahmni Appointment Service Types (CSV files)
  36. Data Filter Entity-Basis Mappings (CSV files)
  37. Metadata Sets (CSV files)
  38. Metadata Set Members (CSV files)
  39. Metadata Term Mappings (CSV files)
  40. AMPATH Forms (JSON files)
  41. HTML Forms (XML files)

How to try it out?

Build the master branch and install the built OMOD to your OpenMRS instance:

git clone https://github.com/mekomsolutions/openmrs-module-initializer/tree/master
cd openmrs-module-initializer
mvn clean package
Runtime requirements & compatibility
  • OpenMRS Core 2.1.1 (required)
  • Bahmni Appointments 1.2.1 (compatible)
  • Bahmni Core 0.93 (compatible)
  • Bahmni I.e Apps 1.1.0 (compatible)
  • Data Filter 1.0.0 (compatible)
  • HTML Form Entry 4.0.0 (compatible)
  • ID Gen 4.3 (compatible)
  • Metadata Sharing 1.2.2 (compatible)
  • Metadata Mapping 1.3.4 (compatible)
  • Open Concept Lab 1.2.9 (compatible)

How to test out your OpenMRS configs?

See the Initializer Validator README page.

Finer control of domains loading at app runtime

See the documentation on Initializer's runtime properties.

Control of logging setup

See the documentation on Initializer's runtime properties.

Get in touch

Report an issue

https://github.com/mekomsolutions/openmrs-module-initializer/issues


Releases notes

Version 2.4.0

  • ...

Version 2.3.0

  • Added configuration options for logging.
  • Added support for OpenMRS 2.4.0+
  • Added support for a 'liquibase' domain to support loading custom changesets.
  • 'ocl' domain to support loading concepts, concept sets and answers from OCL export files in configuration/ocl.
  • (Enhancement) Concept name UUIDs are seeded from 1) the concept UUID and 2) the concept name information, see here. This version runs a Liquibase changeset that forces a reload of the concept domain in order to update concept names accordingly.
  • Backward-compatible overhaul of the concepts domain that provides full flexibility for managing concept names.
  • Bulk loading of metadata entities i18n display messages specified under display:xy headers.
  • (For devs.) Introduced a pre-loading mechanism to BaseFileLoader that allows checksums-independent loading of transient information out of the config files before the actual metadata are loaded. Each loader controls whether its pre-loader throws on error or is allowed to fail. By default pre-loaders are allowed to fail.
  • Added support for setting the version property in the 'concepts' domain.
  • Bulk creation and editing of concept set members and concept answers using CSV files in configuration/conceptsets.
  • Added support enabling any Initializer runtime property value to also be specified from a system property.
  • Bulk creation and edition of AMPATH forms provided as JSON schema definitions in configuration/ampathforms.
  • Enhancement to Initializer's custom message source to support improved handling of fallback locales and overrides between messages properties file from core, modules, and Initializer 'messageproperties' domain files.
  • Added support for remote sources and identifier pools to the 'idgen' domain.
  • Enhancement to ensure predictable loading order of files within a domain if no explicit order is specified, based on alphabetical ordering of filenames.
  • Enhancement to the 'messageproperties' domain to enable specifying the order in which two files in the same locale should be loaded.

Version 2.2.0

  • 'attributetypes' domain to support Bahmni program attribute types.
  • 'program' domain to support Name and Description headers.
  • CSV parsers to actually fill new objects marked to be retired or voided before creating them as retired/voided entities.
  • Added a runtime property to define the loading startup mode for the activator OpenMRS config loading process.
  • Existing attributes and location tags which are not specified in CSV headers are no longer removed.
  • Bulk creation and editing of concept sources provided as CSV files in configuration/conceptsources.
  • Bulk creation and editing of encounter roles using CSV files in configuration/encounterroles.
  • (For devs.) Domain directory names and loading orders are implied from the base Domain enum.
  • Bulk creation and editing of relationship types provided through CSV files in configuration/relationshiptypes.
  • Bulk creation and editing of provider roles using CSV files in configuration/providerroles.
  • Bulk creation and editing of location tag maps using CSV files in configuration/locationtagmaps.

Version 2.1.0

  • (Bug fix) Locations with invalid parent references to throw an IllegalArgumentException.
  • (For devs.) Introduced CsvFailingLines for a better management of the outcome of CsvParser#process.
  • Introduced safe and unsafe API modes to suit either app runtime loading or early failure loading for CI.
  • (For devs.) Introduced BaseFileLoader and BaseInputStreamLoader as part of a better streamlined loading framework.
  • Initialize Validator a standalone fatjar to make dry runs of OpenMRS configs.
  • Nested structures of configuration files are supported.
  • Added a runtime property to define an inclusion or exclusion list of domains.
  • Added a runtime property to specify wildcard patterns filters for each domain.
  • Added a runtime property to toggle off the generation of the checksums.
  • Improved logging output with ASCII Tables for Java.
  • Bulk creation and edition of ID Gen's autogeneration options provided through CSV files in configuration/autogenerationoptions.
  • Support associating location tags to locations using boolean Tag| headers.
  • Bulk creation and edition of location tags provided through CSV files in configuration/locationtags.
  • Bulk creation and edition of Bahmni forms provided as JSON schema definitions in configuration/bahmniforms.
  • Bulk creation and edition of htmlforms provided as XML schema definitions in configuration/htmlforms.
  • Bulk creation and edition of Bahmni appointment service types provided through CSV files in configuration/appointmentservicetypes.
  • Renaming domain: appointmentsservicesdefinitionsappointmentservicedefinitions.
  • Renaming domain: appointmentsspecialitiesappointmentspecialities.

Version 2.0.0

  • (For devs.) Support for conditional loading of domains based on the runtime availability of OpenMRS modules.
  • Bulk creation and edition of programs provided through CSV files in configuration/programs.
  • Bulk creation and edition of program workflows provided through CSV files in configuration/programworkflows.
  • Bulk creation and edition of program workflow states provided through CSV files in configuration/programworkflowstates.
  • Bulk creation and edition of privileges provided through CSV files in configuration/privileges.
  • Bulk creation and edition of roles provided through CSV files in configuration/roles.
  • Bulk creation and edition of metadata terms mappings provided through CSV files in configuration/metadatatermmappings.
  • Bulk creation and edition of encounter types provided through CSV files in configuration/encountertypes.
  • Bulk creation and edition of Bahmni appointments specialities provided through CSV files in configuration/appointmentsspecialities.
  • Bulk creation and edition of Bahmni appointments services definitions provided through CSV files in configuration/appointmentsservicesdefinitions.
  • Bulk access management of Data Filter entity to basis mappings provided through CSV files in configuration/datafiltermappings.
  • Bulk creation and edition of attribute types provided through CSV files in configuration/attributetypes.
  • Support location attributes.
  • Bulk creation and edition of patient identifier types provided through CSV files in configuration/patientidentifiertypes.
  • Bulk creation and edition of metadata terms mappings provided through CSV files in configuration/metadatasets.
  • Bulk creation and edition of metadata terms mappings provided through CSV files in configuration/metadatasetmembers.
  • Bulk creation and edition of bahmni forms provided JSON files in configuration/bahmniforms
  • Support concept attributes.

Version 1.1.0

  • Bulk creation and edition of drugs provided through CSV files in configuration/locations.

Version 1.0.1

  • Loads i18n messages files from configuration/addresshierarchy and configuration/messageproperties.
  • Bulk creation and edition of concepts provided through CSV files in configuration/concepts.
    This covers: basic concepts, concepts with nested members or answers and concepts with multiple mappings.
  • Bulk creation and edition of drugs provided through CSV files in configuration/drugs.
  • Overrides global properties provided through XML configuration files in configuration/globalproperties.
  • Modifies (retire) or create ID Gen's identifier sources through CSV files in configuration/idgen.
  • Exposes runtime key-values configuration parameters through JSON files in configuration/jsonkeyvalues.
  • Bulk creation and edition of person attribute types provided through CSV files in configuration/personattributetypes.
  • Imports MDS packages provided as .zip files in configuration/metadatasharing.
  • Bulk creation and edition of order frequencies provided through CSV files in configuration/orderfrequencies.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].