[{"data":1,"prerenderedAt":914},["ShallowReactive",2],{"navigation_docs":3,"-docs-builder-visibility-rules":586,"-docs-builder-visibility-rules-surround":909},[4,8,46,68,82,148,173,219,256,266,276,313,347,361,379,437,467,481,543,581],{"title":5,"path":6,"stem":7},"Learn EVAL","/docs","docs/0.index",{"title":9,"path":10,"stem":11,"children":12},"Introduction","/docs/introduction","docs/01.introduction/0.index",[13,14,18,22,26,30,34,38,42],{"title":9,"path":10,"stem":11},{"title":15,"path":16,"stem":17},"What is EVAL Health","/docs/introduction/what-is-eval","docs/01.introduction/1.what-is-eval",{"title":19,"path":20,"stem":21},"Key concepts","/docs/introduction/key-concepts","docs/01.introduction/2.key-concepts",{"title":23,"path":24,"stem":25},"Navigating EVAL","/docs/introduction/navigation","docs/01.introduction/3.navigation",{"title":27,"path":28,"stem":29},"Account types and plans","/docs/introduction/account-types","docs/01.introduction/4.account-types",{"title":31,"path":32,"stem":33},"Getting started: clinical providers","/docs/introduction/getting-started-clinician","docs/01.introduction/5.getting-started-clinician",{"title":35,"path":36,"stem":37},"Getting started: building evaluations","/docs/introduction/getting-started-builder","docs/01.introduction/6.getting-started-builder",{"title":39,"path":40,"stem":41},"Getting started: administrators","/docs/introduction/getting-started-admin","docs/01.introduction/7.getting-started-admin",{"title":43,"path":44,"stem":45},"Getting started: patient portal","/docs/introduction/getting-started-patient","docs/01.introduction/8.getting-started-patient",{"title":47,"path":48,"stem":49,"children":50},"Marketplace","/docs/marketplace","docs/02.marketplace/0.index",[51,52,56,60,64],{"title":47,"path":48,"stem":49},{"title":53,"path":54,"stem":55},"Browsing the Marketplace","/docs/marketplace/browsing","docs/02.marketplace/1.browsing",{"title":57,"path":58,"stem":59},"Search","/docs/marketplace/search","docs/02.marketplace/2.search",{"title":61,"path":62,"stem":63},"Collections","/docs/marketplace/collections","docs/02.marketplace/3.collections",{"title":65,"path":66,"stem":67},"Evaluation preview","/docs/marketplace/evaluation-preview","docs/02.marketplace/4.evaluation-preview",{"title":69,"path":70,"stem":71,"children":72},"Library","/docs/library","docs/03.library/0.index",[73,74,78],{"title":69,"path":70,"stem":71},{"title":75,"path":76,"stem":77},"Folders","/docs/library/folders","docs/03.library/1.folders",{"title":79,"path":80,"stem":81},"Folder permissions","/docs/library/permissions","docs/03.library/2.permissions",{"title":83,"path":84,"stem":85,"children":86},"Builder","/docs/builder","docs/04.builder/0.index",[87,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144],{"title":83,"path":84,"stem":85},{"title":89,"path":90,"stem":91},"General tab","/docs/builder/general-tab","docs/04.builder/01.general-tab",{"title":93,"path":94,"stem":95},"Content tab","/docs/builder/content-tab","docs/04.builder/02.content-tab",{"title":97,"path":98,"stem":99},"Sections","/docs/builder/sections","docs/04.builder/03.sections",{"title":101,"path":102,"stem":103},"Questions","/docs/builder/questions","docs/04.builder/04.questions",{"title":105,"path":106,"stem":107},"Question types","/docs/builder/question-types","docs/04.builder/05.question-types",{"title":109,"path":110,"stem":111},"Results and scoring","/docs/builder/results","docs/04.builder/06.results",{"title":113,"path":114,"stem":115},"Formula editor","/docs/builder/formula-editor","docs/04.builder/07.formula-editor",{"title":117,"path":118,"stem":119},"Scenario testing","/docs/builder/scenario-testing","docs/04.builder/08.scenario-testing",{"title":121,"path":122,"stem":123},"Visibility rules","/docs/builder/visibility-rules","docs/04.builder/09.visibility-rules",{"title":125,"path":126,"stem":127},"Publishing","/docs/builder/publishing","docs/04.builder/10.publishing",{"title":129,"path":130,"stem":131},"Evaluations","/docs/builder/evaluations","docs/04.builder/11.evaluations",{"title":133,"path":134,"stem":135},"Media","/docs/builder/media","docs/04.builder/12.media",{"title":137,"path":138,"stem":139},"Error resolution","/docs/builder/error-resolution","docs/04.builder/13.error-resolution",{"title":141,"path":142,"stem":143},"AI Builder","/docs/builder/ai-builder","docs/04.builder/14.ai-builder",{"title":145,"path":146,"stem":147},"Embedded evaluations","/docs/builder/embedded-evaluations","docs/04.builder/15.embedded-evaluations",{"title":129,"path":149,"stem":150,"children":151},"/docs/evaluations","docs/05.evaluations/0.index",[152,153,157,161,165,169],{"title":129,"path":149,"stem":150},{"title":154,"path":155,"stem":156},"The Player","/docs/evaluations/player","docs/05.evaluations/1.player",{"title":158,"path":159,"stem":160},"About page","/docs/evaluations/about","docs/05.evaluations/2.about",{"title":162,"path":163,"stem":164},"Revisions","/docs/evaluations/revisions","docs/05.evaluations/3.revisions",{"title":166,"path":167,"stem":168},"Permissions","/docs/evaluations/permissions","docs/05.evaluations/4.permissions",{"title":170,"path":171,"stem":172},"Actions and sharing","/docs/evaluations/menu-options","docs/05.evaluations/5.menu-options",{"title":174,"path":175,"stem":176,"children":177},"Care Panels","/docs/care-panels","docs/06.care-panels/0.index",[178,179,183,187,191,195,199,203,207,211,215],{"title":174,"path":175,"stem":176},{"title":180,"path":181,"stem":182},"Creating and configuring panels","/docs/care-panels/creating-and-configuring","docs/06.care-panels/01.creating-and-configuring",{"title":184,"path":185,"stem":186},"Tracking results","/docs/care-panels/tracking-results","docs/06.care-panels/02.tracking-results",{"title":188,"path":189,"stem":190},"Managing patients","/docs/care-panels/managing-patients","docs/06.care-panels/03.managing-patients",{"title":192,"path":193,"stem":194},"Scheduling assessments","/docs/care-panels/scheduling-assessments","docs/06.care-panels/04.scheduling-assessments",{"title":196,"path":197,"stem":198},"Filtering and exporting data","/docs/care-panels/filters-and-export","docs/06.care-panels/05.filters-and-export",{"title":200,"path":201,"stem":202},"Panel visibility","/docs/care-panels/panel-visibility","docs/06.care-panels/06.panel-visibility",{"title":204,"path":205,"stem":206},"Panel roles and permissions","/docs/care-panels/panel-roles-and-permissions","docs/06.care-panels/07.panel-roles-and-permissions",{"title":208,"path":209,"stem":210},"Collecting responses with public intakes","/docs/care-panels/collecting-responses","docs/06.care-panels/08.collecting-responses",{"title":212,"path":213,"stem":214},"Notifications and alerts","/docs/care-panels/notifications-and-alerts","docs/06.care-panels/09.notifications-and-alerts",{"title":216,"path":217,"stem":218},"Common workflows","/docs/care-panels/common-workflows","docs/06.care-panels/10.common-workflows",{"title":220,"path":221,"stem":222,"children":223},"Patients","/docs/patients","docs/08.patients/0.index",[224,225,228,232,236,240,244,248,252],{"title":220,"path":221,"stem":222},{"title":188,"path":226,"stem":227},"/docs/patients/managing-patients","docs/08.patients/01.managing-patients",{"title":229,"path":230,"stem":231},"Patient charts","/docs/patients/charts","docs/08.patients/02.charts",{"title":233,"path":234,"stem":235},"Reviewing results","/docs/patients/patient-results","docs/08.patients/03.patient-results",{"title":237,"path":238,"stem":239},"Running an evaluation","/docs/patients/running-an-evaluation","docs/08.patients/04.running-an-evaluation",{"title":241,"path":242,"stem":243},"Medical information","/docs/patients/patient-medical-tab","docs/08.patients/05.patient-medical-tab",{"title":245,"path":246,"stem":247},"Medical data types","/docs/patients/patient-medical-data-types","docs/08.patients/06.patient-medical-data-types",{"title":249,"path":250,"stem":251},"Patient identity and demographics","/docs/patients/patient-identity-tab","docs/08.patients/07.patient-identity-tab",{"title":253,"path":254,"stem":255},"Patient portal connections","/docs/patients/patient-portal-tab","docs/08.patients/08.patient-portal-tab",{"title":257,"path":258,"stem":259,"children":260},"Schedules","/docs/schedule","docs/09.schedule/0.index",[261,262],{"title":257,"path":258,"stem":259},{"title":263,"path":264,"stem":265},"Creating and managing schedules","/docs/schedule/creating-schedules","docs/09.schedule/1.creating-schedules",{"title":267,"path":268,"stem":269,"children":270},"Results","/docs/results","docs/10.results/0.index",[271,272],{"title":267,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Filtering and exporting results","/docs/results/filtering-and-export","docs/10.results/1.filtering-and-export",{"title":277,"path":278,"stem":279,"children":280},"Patient Portal","/docs/patient-portal","docs/11.patient-portal/0.index",[281,282,286,290,294,297,301,305,309],{"title":277,"path":278,"stem":279},{"title":283,"path":284,"stem":285},"Today dashboard","/docs/patient-portal/today","docs/11.patient-portal/1.today",{"title":287,"path":288,"stem":289},"Completing an evaluation","/docs/patient-portal/completing-an-evaluation","docs/11.patient-portal/2.completing-an-evaluation",{"title":291,"path":292,"stem":293},"Viewing results","/docs/patient-portal/results","docs/11.patient-portal/3.results",{"title":257,"path":295,"stem":296},"/docs/patient-portal/schedules","docs/11.patient-portal/4.schedules",{"title":298,"path":299,"stem":300},"Task links","/docs/patient-portal/task-links","docs/11.patient-portal/5.task-links",{"title":302,"path":303,"stem":304},"Public intakes","/docs/patient-portal/public-intakes","docs/11.patient-portal/6.public-intakes",{"title":306,"path":307,"stem":308},"Account and settings","/docs/patient-portal/account","docs/11.patient-portal/7.account",{"title":310,"path":311,"stem":312},"How practitioners use the Patient Portal","/docs/patient-portal/practitioner-workflows","docs/11.patient-portal/8.practitioner-workflows",{"title":314,"path":315,"stem":316,"children":317},"Account Administration","/docs/account-administration","docs/12.account-administration/0.index",[318,319,323,327,331,335,339,343],{"title":314,"path":315,"stem":316},{"title":320,"path":321,"stem":322},"Organization profile","/docs/account-administration/organization-profile","docs/12.account-administration/1.organization-profile",{"title":324,"path":325,"stem":326},"Managing team members","/docs/account-administration/managing-team-members","docs/12.account-administration/2.managing-team-members",{"title":328,"path":329,"stem":330},"Roles and permissions","/docs/account-administration/roles-and-permissions","docs/12.account-administration/3.roles-and-permissions",{"title":332,"path":333,"stem":334},"Managing evaluations","/docs/account-administration/managing-evaluations","docs/12.account-administration/4.managing-evaluations",{"title":336,"path":337,"stem":338},"Billing and subscriptions","/docs/account-administration/billing-and-subscriptions","docs/12.account-administration/5.billing-and-subscriptions",{"title":340,"path":341,"stem":342},"API keys","/docs/account-administration/api-keys","docs/12.account-administration/6.api-keys",{"title":344,"path":345,"stem":346},"Account settings","/docs/account-administration/settings","docs/12.account-administration/7.settings",{"title":348,"path":349,"stem":350,"children":351},"My Profile","/docs/my-profile","docs/13.my-profile/0.index",[352,353,357],{"title":348,"path":349,"stem":350},{"title":354,"path":355,"stem":356},"Contact and profile","/docs/my-profile/contact-and-profile","docs/13.my-profile/1.contact-and-profile",{"title":358,"path":359,"stem":360},"Security and notifications","/docs/my-profile/security-and-notifications","docs/13.my-profile/2.security-and-notifications",{"title":362,"path":363,"stem":364,"children":365},"Integrations","/docs/integrations","docs/14.integrations/0.index",[366,367,371,375],{"title":362,"path":363,"stem":364},{"title":368,"path":369,"stem":370},"Creating connections","/docs/integrations/creating-connections","docs/14.integrations/1.creating-connections",{"title":372,"path":373,"stem":374},"Managing connections","/docs/integrations/managing-connections","docs/14.integrations/2.managing-connections",{"title":376,"path":377,"stem":378},"FHIR and SMART on FHIR","/docs/integrations/fhir-and-smart","docs/14.integrations/3.fhir-and-smart",{"title":380,"path":381,"stem":382,"children":383},"Guides","/docs/guides","docs/15.guides/0.index",[384,385,389,393,397,401,433],{"title":380,"path":381,"stem":382},{"title":386,"path":387,"stem":388},"Planning","/docs/guides/planning","docs/15.guides/1.planning",{"title":390,"path":391,"stem":392},"Data","/docs/guides/data","docs/15.guides/2.data",{"title":394,"path":395,"stem":396},"Logic","/docs/guides/logic","docs/15.guides/3.logic",{"title":398,"path":399,"stem":400},"Design","/docs/guides/design","docs/15.guides/4.design",{"title":402,"path":403,"stem":404,"children":405},"Evaluation Reference","/docs/guides/evaluation-reference","docs/15.guides/5.evaluation-reference/0.index",[406,407,411,415,418,422,426,430],{"title":402,"path":403,"stem":404},{"title":408,"path":409,"stem":410},"Intro to Evaluations","/docs/guides/evaluation-reference/intro-to-evaluations","docs/15.guides/5.evaluation-reference/1.intro-to-evaluations",{"title":412,"path":413,"stem":414},"Menu Options","/docs/guides/evaluation-reference/menu-options","docs/15.guides/5.evaluation-reference/2.menu-options",{"title":162,"path":416,"stem":417},"/docs/guides/evaluation-reference/revisions","docs/15.guides/5.evaluation-reference/3.revisions",{"title":419,"path":420,"stem":421},"Learn More","/docs/guides/evaluation-reference/learn-more","docs/15.guides/5.evaluation-reference/4.learn-more",{"title":423,"path":424,"stem":425},"Download Results","/docs/guides/evaluation-reference/download-results","docs/15.guides/5.evaluation-reference/5.download-results",{"title":427,"path":428,"stem":429},"Security in Emailing Results","/docs/guides/evaluation-reference/security-emailing-results","docs/15.guides/5.evaluation-reference/6.security-emailing-results",{"title":166,"path":431,"stem":432},"/docs/guides/evaluation-reference/permissions","docs/15.guides/5.evaluation-reference/7.permissions",{"title":434,"path":435,"stem":436},"Player Reference","/docs/guides/player-reference","docs/15.guides/6.player-reference",{"title":438,"path":439,"stem":440,"children":441},"Tutorials","/docs/tutorials","docs/16.tutorials/0.index",[442,443,447,451,455,459,463],{"title":438,"path":439,"stem":440},{"title":444,"path":445,"stem":446},"101: Basic Evaluation with Visibility Rules","/docs/tutorials/basic-eval-with-visibility-rules","docs/16.tutorials/1.basic-eval-with-visibility-rules",{"title":448,"path":449,"stem":450},"Build a PHQ-9 depression screener","/docs/tutorials/build-a-phq9-screener","docs/16.tutorials/2.build-a-phq9-screener",{"title":452,"path":453,"stem":454},"Set up a care panel","/docs/tutorials/set-up-a-care-panel","docs/16.tutorials/3.set-up-a-care-panel",{"title":456,"path":457,"stem":458},"Connect Epic to EVAL","/docs/tutorials/connect-epic-to-eval","docs/16.tutorials/4.connect-epic-to-eval",{"title":460,"path":461,"stem":462},"Create a scheduled assessment","/docs/tutorials/create-a-scheduled-assessment","docs/16.tutorials/5.create-a-scheduled-assessment",{"title":464,"path":465,"stem":466},"Onboard patients via the patient portal","/docs/tutorials/onboard-patients-via-portal","docs/16.tutorials/6.onboard-patients-via-portal",{"title":468,"path":469,"stem":470,"children":471},"Troubleshooting","/docs/troubleshooting","docs/17.troubleshooting/0.index",[472,473,477],{"title":468,"path":469,"stem":470},{"title":474,"path":475,"stem":476},"Builder errors","/docs/troubleshooting/builder-errors","docs/17.troubleshooting/1.builder-errors",{"title":478,"path":479,"stem":480},"EHR connection issues","/docs/troubleshooting/ehr-connection-issues","docs/17.troubleshooting/2.ehr-connection-issues",{"title":482,"path":483,"stem":484,"children":485},"Reference","/docs/reference","docs/18.reference/0.index",[486,487,491,494,498,502,528,532,536,539],{"title":482,"path":483,"stem":484},{"title":488,"path":489,"stem":490},"Account","/docs/reference/account","docs/18.reference/1.account",{"title":166,"path":492,"stem":493},"/docs/reference/permissions","docs/18.reference/2.permissions",{"title":495,"path":496,"stem":497},"Administration","/docs/reference/administration","docs/18.reference/3.administration",{"title":499,"path":500,"stem":501},"Security and privacy","/docs/reference/security-privacy","docs/18.reference/4.security-privacy",{"title":503,"path":504,"stem":505,"children":506},"Charts","/docs/reference/charts","docs/18.reference/5.charts/0.index",[507,508,512,516,520,524],{"title":503,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Introduction to charts","/docs/reference/charts/intro","docs/18.reference/5.charts/1.intro",{"title":513,"path":514,"stem":515},"Patient evaluations","/docs/reference/charts/patient-evaluations","docs/18.reference/5.charts/2.patient-evaluations",{"title":517,"path":518,"stem":519},"Charts Landing Page","/docs/reference/charts/charts-landing-page","docs/18.reference/5.charts/3.charts-landing-page",{"title":521,"path":522,"stem":523},"Patient Medical","/docs/reference/charts/patient-medical","docs/18.reference/5.charts/4.patient-medical",{"title":525,"path":526,"stem":527},"Patient Identity","/docs/reference/charts/patient-identity","docs/18.reference/5.charts/5.patient-identity",{"title":529,"path":530,"stem":531},"Verified Accounts","/docs/reference/verified-accounts","docs/18.reference/6.verified-accounts",{"title":533,"path":534,"stem":535},"Account Creation","/docs/reference/account-creation","docs/18.reference/7.account-creation",{"title":348,"path":537,"stem":538},"/docs/reference/my-profile","docs/18.reference/8.my-profile",{"title":540,"path":541,"stem":542},"IT Deployment Strategy","/docs/reference/it-deployment","docs/18.reference/9.it-deployment",{"title":544,"path":545,"stem":546,"children":547},"Legal","/docs/legal","docs/19.legal/0.index",[548,549,553,557,561,565,569,573,577],{"title":544,"path":545,"stem":546},{"title":550,"path":551,"stem":552},"Terms of service","/docs/legal/terms-of-service","docs/19.legal/1.terms-of-service",{"title":554,"path":555,"stem":556},"Privacy policy","/docs/legal/privacy-policy","docs/19.legal/2.privacy-policy",{"title":558,"path":559,"stem":560},"HIPAA BAA","/docs/legal/hipaa-baa","docs/19.legal/3.hipaa-baa",{"title":562,"path":563,"stem":564},"GDPR DPA","/docs/legal/gdpr-dpa","docs/19.legal/4.gdpr-dpa",{"title":566,"path":567,"stem":568},"Patient privacy policy","/docs/legal/patient-privacy-policy","docs/19.legal/5.patient-privacy-policy",{"title":570,"path":571,"stem":572},"Free open source app license","/docs/legal/free-open-source-license","docs/19.legal/6.free-open-source-license",{"title":574,"path":575,"stem":576},"Limited open source app license","/docs/legal/limited-open-source-license","docs/19.legal/7.limited-open-source-license",{"title":578,"path":579,"stem":580},"Data sub-processors","/docs/legal/data-sub-processors","docs/19.legal/8.data-sub-processors",{"title":141,"path":582,"stem":583,"children":584},"/docs/ai-builder","docs/21.ai-builder/0.index",[585],{"title":141,"path":582,"stem":583},{"id":587,"title":121,"body":588,"description":901,"extension":902,"links":903,"meta":904,"navigation":906,"path":122,"seo":907,"stem":123,"__hash__":908},"docs/docs/04.builder/09.visibility-rules.md",{"type":589,"value":590,"toc":882},"minimark",[591,596,600,603,610,614,626,642,645,649,653,664,675,678,684,703,709,713,716,747,751,755,765,768,772,776,801,804,808,811,816,819,823,826,830,833,836,854,858,861,864,868],[592,593,595],"h2",{"id":594},"what-visibility-rules-do","What visibility rules do",[597,598,599],"p",{},"Visibility rules make your evaluation respond to the person completing it. Instead of showing every section, question, and result to everyone, you define conditions that control which elements appear based on earlier answers or computed results. A well-designed evaluation feels shorter and more relevant because it only asks questions that matter for each patient's situation.",[597,601,602],{},"You can attach visibility rules to sections, questions, individual choices, topics, articles, and results — almost every element in your evaluation. When a rule's conditions are met, the element appears; when they aren't, it stays hidden.",[597,604,605],{},[606,607],"img",{"alt":608,"src":609},"Builder — Visibility Rules List","/screenshots/builder/visibility-rules.png",[592,611,613],{"id":612},"how-rule-logic-works","How rule logic works",[597,615,616,617,621,622,625],{},"Rules use a combination of ",[618,619,620],"strong",{},"OR"," and ",[618,623,624],{},"AND"," logic:",[627,628,629,636],"ul",{},[630,631,632,635],"li",{},[618,633,634],{},"Within a rule",", all conditions must be true (AND logic). If a rule has three conditions, all three must be satisfied for the rule to trigger.",[630,637,638,641],{},[618,639,640],{},"Between rules",", any one rule being true is enough (OR logic). If an element has three separate rules, it appears when any single rule's conditions are all met.",[597,643,644],{},"In practice, this means: show this element if (Condition A AND Condition B) OR (Condition C AND Condition D). This covers most clinical scenarios — from simple single-condition rules to complex multi-path logic.",[646,647,648],"tip",{},"Start simple. Most visibility rules need just one condition — like showing a follow-up question when the patient answers \"Yes\" to a screening question. Add complexity only when the clinical workflow requires it.",[592,650,652],{"id":651},"adding-a-rule","Adding a rule",[597,654,655,656,659,660,663],{},"Open any section, question, or result in the Content or Results tab and scroll to the ",[618,657,658],{},"Visible When..."," section. When no rules exist, it shows \"Always visible.\" Click ",[618,661,662],{},"New Rule"," to open the rule editor.",[597,665,666,667,670,671,674],{},"The rule editor has two parts: an ",[618,668,669],{},"\"Is Visible\""," header showing which element this rule controls, and a ",[618,672,673],{},"\"When...\""," section where you define the conditions that must be true.",[597,676,677],{},"You can add conditions in two ways:",[597,679,680,683],{},[618,681,682],{},"Source conditions"," reference a specific element in your evaluation. Use the source autocomplete to select a section, question, choice, or result. The rule is satisfied when that element meets its condition — for example, when a specific choice is selected, when a question is answered, or when a result is triggered.",[597,685,686,689,690,694,695,698,699,702],{},[618,687,688],{},"Formula conditions"," use a custom expression that must evaluate to ",[691,692,693],"code",{},"true"," or ",[691,696,697],{},"false",". Click the ",[618,700,701],{},"Formula"," button to open a formula editor within the rule dialog. This uses the same formula syntax as result formulas — keywords, named expressions, and spreadsheet functions — but the expression must return a boolean value. Use formula conditions when your logic needs arithmetic comparisons, complex combinations, or references that source conditions can't express.",[597,704,705],{},[606,706],{"alt":707,"src":708},"Formula editor inside a visibility rule condition","/screenshots/builder/formula-visibility-condition.png",[592,710,712],{"id":711},"source-condition-behavior","Source condition behavior",[597,714,715],{},"When you add a source condition, what \"satisfied\" means depends on what you reference:",[627,717,718,724,730,735,741],{},[630,719,720,723],{},[618,721,722],{},"Question"," — The question is visible and has been answered",[630,725,726,729],{},[618,727,728],{},"Choice"," (single select) — The choice is visible and selected",[630,731,732,734],{},[618,733,728],{}," (multiple select) — The exact specified choices are selected",[630,736,737,740],{},[618,738,739],{},"Section"," — The section is visible and all its questions are answered",[630,742,743,746],{},[618,744,745],{},"Result"," — The result is triggered (selected by its own rules)",[748,749,750],"note",{},"The first section in an evaluation is always visible — you cannot add rules to it. Similarly, the first question in the first section must always be visible. This ensures the evaluation always has a starting point for the person completing it.",[592,752,754],{"id":753},"managing-rules","Managing rules",[597,756,757,758,760,761,764],{},"Each rule appears as a card in the ",[618,759,658],{}," section, with \"- OR -\" separators between rules. Click any rule to reopen the editor and modify it. Within the editor, you can delete individual conditions using the trash icon, or delete the entire rule using the ",[618,762,763],{},"Delete"," button in the toolbar.",[597,766,767],{},"If you remove all conditions from a rule, the rule is automatically deleted. When all rules are removed, the element returns to \"Always visible.\"",[769,770,771],"warning",{},"Deleting a question or result that other elements reference in their visibility rules creates a validation error. Check the Errors tab after deleting elements to find and fix any broken rule references.",[592,773,775],{"id":774},"where-rules-can-be-applied","Where rules can be applied",[597,777,778,779,782,783,782,786,782,789,792,793,796,797,800],{},"Rules work on six element types: ",[618,780,781],{},"sections",", ",[618,784,785],{},"questions",[618,787,788],{},"choices",[618,790,791],{},"topics"," (in Information sections), ",[618,794,795],{},"articles"," (within topics), and ",[618,798,799],{},"results",". The rule system is identical across all types — the same editor, the same AND/OR logic, and the same source and formula condition options.",[597,802,803],{},"For results, visibility rules determine whether the result is \"triggered\" — and for formula results, the formula only computes when the result is triggered. This lets you create conditional scoring that only runs when relevant.",[592,805,807],{"id":806},"how-rules-are-evaluated-at-runtime","How rules are evaluated at runtime",[597,809,810],{},"Understanding how the rule engine works at runtime helps you design reliable visibility logic and avoid subtle issues.",[812,813,815],"h3",{"id":814},"default-visibility","Default visibility",[597,817,818],{},"Any element with at least one visibility rule is hidden by default. It only appears when one of its rules evaluates to true. Elements without rules are always visible. This means adding your first rule to an element changes its behavior from \"always shown\" to \"hidden unless a rule triggers.\"",[812,820,822],{"id":821},"the-evaluation-cycle","The evaluation cycle",[597,824,825],{},"When a patient answers a question or selects a choice, the rule engine identifies all rules whose conditions reference that element. For each affected rule, it checks whether all conditions are satisfied (AND logic). If any single rule evaluates to true (OR logic across rules), the target element becomes visible; otherwise it stays hidden. This cascade propagates: if showing a section reveals new questions, those questions' own rules are also re-evaluated.",[812,827,829],{"id":828},"multi-select-exact-matching","Multi-select exact matching",[597,831,832],{},"For multiple-choice questions, source conditions use exact match logic. If a rule references choices A and B on a multi-select question, the rule triggers only when exactly A and B are selected — not when A alone is selected, and not when A, B, and C are all selected. This strict matching ensures precise conditional branching.",[812,834,688],{"id":835},"formula-conditions",[597,837,838,839,844,845,694,847,849,850,853],{},"Formula conditions are evaluated using the same spreadsheet engine as ",[840,841,843],"a",{"href":842},"./formula-editor#how-the-formula-engine-works","result formulas",". The formula must return a boolean (",[691,846,693],{},[691,848,697],{},"). Keywords in formula conditions reference the live evaluation state, so the formula result updates in real time as the patient answers questions. This enables arithmetic comparisons (like ",[691,851,852],{},"=PainScore > 7",") that source conditions alone can't express.",[812,855,857],{"id":856},"the-first-section-rule","The first section rule",[597,859,860],{},"The first section in an evaluation is always forced visible after rule evaluation, regardless of any rules attached to it. The first question in the first section is also forced visible. This guarantees the evaluation always has an entry point — without it, rules could theoretically hide everything, leaving the patient with a blank screen.",[748,862,863],{},"Visibility rules don't clear saved answers. If a question is answered, then hidden by a rule, then shown again, the original answer is preserved. However, hidden questions are excluded from scoring — formula results only compute against visible, answered questions.",[592,865,867],{"id":866},"getting-started","Getting started",[869,870,871,877],"card-group",{},[872,873,876],"card",{"icon":874,"title":109,"to":875},"i-mdi-calculator-variant-outline","./results","Use visibility rules on results to create conditional scoring and adaptive guidance.",[872,878,881],{"icon":879,"title":113,"to":880},"i-mdi-function-variant","./formula-editor","Write formula-based visibility conditions for complex logic beyond simple source references.",{"title":883,"searchDepth":884,"depth":884,"links":885},"",2,[886,887,888,889,890,891,892,900],{"id":594,"depth":884,"text":595},{"id":612,"depth":884,"text":613},{"id":651,"depth":884,"text":652},{"id":711,"depth":884,"text":712},{"id":753,"depth":884,"text":754},{"id":774,"depth":884,"text":775},{"id":806,"depth":884,"text":807,"children":893},[894,896,897,898,899],{"id":814,"depth":895,"text":815},3,{"id":821,"depth":895,"text":822},{"id":828,"depth":895,"text":829},{"id":835,"depth":895,"text":688},{"id":856,"depth":895,"text":857},{"id":866,"depth":884,"text":867},"Make your evaluation adaptive by showing or hiding sections, questions, and results based on how the evaluation is answered — using conditions or custom formulas.","md",null,{"icon":905},"i-mdi-eye-outline",true,{"title":121,"description":901},"_v5ACvj26-dtVl4AM91Rr6UZ0dXimCxvkCznF2xyXc0",[910,912],{"title":117,"path":118,"stem":119,"description":911,"children":-1},"Validate your evaluation's formulas and visibility rules by defining test cases with known inputs and expected outputs before publishing.",{"title":125,"path":126,"stem":127,"description":913,"children":-1},"Release your evaluation for clinical use — resolve errors, write revision notes, acknowledge safety requirements, and manage the revision lifecycle.",1776705242850]