synthetichealth / module-builder

Synthea Generic Module Builder

Home Page:https://synthetichealth.github.io/module-builder/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MedicationOrder 'reason' dropdown not working without ConditionOnset state

dehall opened this issue · comments

The reason dropdown on MedicationOrder and Procedure states doesn't work correctly when there is no ConditionOnset state in the module. (consider a submodule where the parent module diagnoses the condition) The dropdown includes an "attribute" option which should reveal a text field when selected, but when there is no ConditionOnset state in the module, the "attribute" option is already selected and doesn't reveal the text field.

Temporary workaround is to add a dummy ConditionOnset state, update the MedicationOrder reason, then remove the dummy ConditionOnset.