I took a look into the tag <markPatientDead>, to find if it was possible to make the submission “OPTIONAL”.
- Tag as Optional
For context, I´m currently working on a “Discharge” form, where it should be possible to select many options.
Being the one I´m currently working “Mark a patient as Deceased”.
Ideally, the tag will only mark the patient as deceased if selected.
Unfortunately, the will always mark the patient as decease no matter what.
I did some initial testing, using the tag <markPatientDead> in conjunction to the tag <controls>/<when>.
With a bit of luck, it would not only hide it, but also avoid the submission.
But this was not the case.
Thanks @icrc.thonorio … yes, I forget the history of this widget, but it looks like that is the expected behavior, to always mark a patient as dead, at least according to the documentation:
Alternatively, you could likely add a CustomFormSubmissionAction to do this based on the answer to an Obs on the form… unfortunately this functionality isn’t well-documented, but you can find information about it here (I just updated the javadoc/comments on it):
As for the causeOfDeathFromObs issue, assuming you have confirmed that the global property “concept.unknown” is set on the system you are testing on, that sounds like a bug and worth filing.
Great. Can you create a ticket for this in the HTML module?
There isn’t anyone actively working on open ticket requests for the module, but I’m happy to code review if you or anyone working with you has time to work on it.