Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPOC-396 hideform flag #120

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

MPOC-396 hideform flag #120

wants to merge 2 commits into from

Conversation

nthfloor
Copy link
Member

No description provided.

Copy link
Member Author

@nthfloor nthfloor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -396,11 +396,11 @@ Bahmni.ConceptSet.FormConditions.rulesOverride = {
"Gynecology/Obstetrics" (formName, formFieldValues, patient) {
if (patient.gender === "F") {
return {
show: ["Gynecology/Obstetrics"],
showForm: ["Gynecology/Obstetrics"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I was thinking we use a flag instead of an array here since showForm should only every apply to the form in question. So something like this:

return {
    showForm: patient.gender === "F",
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants