Billable Registration Fee

Description

On registration second page (if configured), for a visit, you can setup a form which captures Registration Fee.
However, this is done by Forms 1.0 tech, where this is captured as Observation.
While many workarounds have been done in custom implementations, we need a first class support for such "Orderable". Part of the dependent work is done in BAH-406.

Solution:
1. We will not do this using Forms 1.0 as observation anymore. Since registration module already supports Forms2.0 forms.
2. We need to write a form control, specifically for such 'sellable' service.

Tech
Bahmni Forms 2.0 are currently only of type "observation forms", meaning all data it sends is only for "observational" elements. We need to enhance forms to send us data for other controls as well. The APIs that are used for form data submission and edits are also for observation model.

  • Form type needs to be enhanced, rather than just observationForm

  • Create a orderable control, which can specify one or list of 'sellable' product

  • Use appropriate "EMR API" transactional API to send order as well. Form-control has a mapper function, that can help in transformation. Need to analyze further.

Q: how do we identify if a order was placed through a form?

See also:
Talk threads
1. https://talk.openmrs.org/t/registration-fee-sync-with-erp-interim-implementation/13977/20

Related Cards
1.

Assignee

Unassigned

Reporter

Angshuman Sarkar

Labels

None

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

None

Reviewer

None

Components

Sprint

0.93 Product M2

Fix versions