Please see with ChildCount+ for information on what forms and commands are.
CCForm(message, date, chw, params, health_id)¶
An abstract class to hold the logic for an SMS form.
- message (
rapidsms.Message) – SMS message being processed by this form
- date (
datetime.datetime) – Encounter date of this form
- chw (
childcount.models.CHW) – CHW who submitted this form
- params (list) – Parameters passed to this form (as in
- health_id (str) – Health ID for the encounter’s patient
The character prefix that should precede the form keyword. We use “+” everywhere to keep things standardized.
Processing to be done after all
process()has been called on all submitted forms.
Parameters: forms_list (list of instantiated
childcount.forms.CCFormobjects) – List of successfully processed forms
Processing to be done by this form before the patient’s health ID is validated.
This method used primarily for patient registration – when the health ID is not valid until the registration has completed. See
apps/childcount/forms/PatientRegistrationForm.pyfor an example.
Processing to be done by this form once the encounter patient has been identified. Most forms implement their validation and DB logic here.
- message (