Nicolay
12/08/2025, 10:43 AM// Validate Presenting Complaint section
@@assert(has_presenting_complaint_section, {{ this.sections|selectattr('name', 'match', '.*Presenting Complaint.*|.*CO.*')|list|length > 0 }})
@@assert(presenting_complaint_is_simple_list, {{ this.sections|selectattr('name', 'match', '.*Presenting Complaint.*|.*CO.*')|map(attribute='output_format')|first == "simple_list" }})
@@assert(presenting_complaint_has_field_labels, {{ this.sections|selectattr('name', 'match', '.*Presenting Complaint.*|.*CO.*')|map(attribute='field_labels')|first is not none }})
@@assert(presenting_complaint_has_instruction, {{ this.sections|selectattr('name', 'match', '.*Presenting Complaint.*|.*CO.*')|map(attribute='instruction')|first|length > 0 }})
@@assert(presenting_complaint_instruction_mentions_reason, {{ "reason" in (this.sections|selectattr('name', 'match', '.*Presenting Complaint.*|.*CO.*')|map(attribute='instruction')|first|lower) or "visit" in (this.sections|selectattr('name', 'match', '.*Presenting Complaint.*|.*CO.*')|map(attribute='instruction')|first|lower) }})
Does anyone have a hint?prrao
12/08/2025, 12:58 PMprrao
12/08/2025, 12:58 PMprrao
12/08/2025, 12:59 PMprrao
12/08/2025, 12:59 PMNicolay
12/08/2025, 1:39 PMNicolay
12/08/2025, 1:39 PMprrao
12/08/2025, 1:40 PMNicolay
12/08/2025, 1:41 PMNicolay
12/08/2025, 1:45 PMprrao
12/08/2025, 2:01 PMprrao
12/08/2025, 2:01 PMprrao
12/08/2025, 2:01 PMprrao
12/08/2025, 2:02 PMprrao
12/08/2025, 2:02 PMprrao
12/08/2025, 2:03 PMprrao
12/08/2025, 2:04 PMVaibhav (BAML 🐑)
12/08/2025, 4:40 PMVaibhav (BAML 🐑)
12/08/2025, 4:41 PMVaibhav (BAML 🐑)
12/08/2025, 4:41 PMVaibhav (BAML 🐑)
12/08/2025, 4:42 PM| every againNicolay
12/08/2025, 7:23 PMNicolay
12/08/2025, 7:23 PMVaibhav (BAML 🐑)
12/08/2025, 10:28 PMVaibhav (BAML 🐑)
12/08/2025, 10:28 PM