From bff56c77608e2a0703d23abb2ec39277e3647cb8 Mon Sep 17 00:00:00 2001 From: ruhanga Date: Mon, 12 Aug 2024 16:22:32 +0300 Subject: [PATCH] Reveiw changes --- README.md | 2 +- readme/paymentmodes.md | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1f53b547..48dc13f6 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ This is the list of currently supported domains in their loading order: 1. [Concept Sources (CSV files)](readme/conceptsources.md) 1. [Open Concept Lab (ZIP Files)](readme/ocl.md) 1. [Concepts (CSV files)](readme/concepts.md) -1. [Billable Services (CSV files)](readme/billableservies.md) +1. [Billable Services (CSV files)](readme/billableservices.md) 1. [Cash Points (CSV files)](readme/cashpoints.md) 1. [Payment Modes (CSV files)](readme/paymentmodes.md) 1. [Concept Sets and Answers (CSV files)](readme/conceptsets.md) diff --git a/readme/paymentmodes.md b/readme/paymentmodes.md index 9d68a1c1..cdad5708 100644 --- a/readme/paymentmodes.md +++ b/readme/paymentmodes.md @@ -1,4 +1,4 @@ -## Domain 'serviceprices' +## Domain 'paymentmodes' The **Payment Modes** subfolder contains CSV import files for saving Payment Modes which are the modes of payment tied to a single billable service, that is, the form of payment e.g. Cash, Insurance, PayPal, Mobile Money etc. Below is a possible example of its content: ```bash @@ -6,7 +6,7 @@ paymentmodes/ ├──paymentModes.csv └── ... ``` -There is currently only one format for the Payment Modes CSV line, here are the possible headers with a sample data set: +Here are the possible headers with a sample data set: | Uuid | name | attributes | |--------------------------------------|-------------|-----------------------------| @@ -21,8 +21,16 @@ This unique identifier represents the different payment modes. This is the descriptive name of the service price item. ###### Header `Attributes` *(optional)* -A semi-colon separated list of attributes, further divided by the `::` delimiter into `name`, `format`, `regex`, and `required` properties of a payment mode attribute. +A semi-colon separated list of attributes, further divided by the `::` delimiter into `name`, `format`, `regex`, and `required` properties (in that order) of a payment mode's attribute type. For example, in the dataset provided: +First attribute type +* `name`: Maximum +* `format`: Numeric +* `regex`: example-regex +* `required`: True + +Second attribute type +* name: Minimum #### Requirements * The [billing module](https://github.com/openmrs/openmrs-module-billing) version 1.1.0 or higher must be installed