Skip to content

Commit

Permalink
Reveiw changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga committed Aug 12, 2024
1 parent f01d0b0 commit bff56c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 11 additions & 3 deletions readme/paymentmodes.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## 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
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:

| <sub>Uuid</sub> | <sub>name</sub> | <sub>attributes</sub> |
|--------------------------------------|-------------|-----------------------------|
Expand All @@ -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
Expand Down

0 comments on commit bff56c7

Please sign in to comment.