Good day,
I'd like to implement a *comment *field for all my patient cases.
The idea is that any form which updates information for a patient case has
a *comment *field at the end. This *comment *field should be appended (or
pre-pended) to the existing *comment *field on the case.
An example of how this would look:
···
-------------
On case creation form, comment: "Patient has high BP, should be
monitored"#case/comment =
"1 Mar 2017: Patient has high BP 145/90, should be monitored (chw1
)" -
On a follow-up form, comment: "BP improved slightly 140/85, keep
monitoring."#case/comment =
"1 Mar 2017: Patient has high BP 145/90, should be monitored (chw1
)"
"10 Mar 2017 BP improved slightly 140/85, keep monitoring. (chw2)" -
On a follow-up form, comment: "Patient not at home today, could not take
BP"#case/comment =
"1 Mar 2017: Patient has high BP 145/90, should be monitored
(chw1)"
"10 Mar 2017: BP improved slightly 140/85, keep monitoring. (chw2)"
"14 Mar 2017: Patient not at home today, could not take
BP (chw1)"
Questions:
-
Is this possible? Can I just load current value of #case/comment from
the patient case and use *concat() *to create a new value to update it? -
Is there a limit to the length of the text field (e.g. 255 chars) that I
will run into? -
Do you have a better suggestion for how I could implement this
functionality?
Thanks!
Andrew