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.
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.
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?