Initial Checking with all 820 MLMs
This commit is contained in:
92
MLMStripper/bin/Debug/FORM/FORM_DISCHARGE_INS_CLOSE.mlm
Normal file
92
MLMStripper/bin/Debug/FORM/FORM_DISCHARGE_INS_CLOSE.mlm
Normal file
@@ -0,0 +1,92 @@
|
||||
maintenance:
|
||||
|
||||
title: Form_Discharge_Ins_Close;;
|
||||
mlmname: Form_Discharge_Ins_Close;;
|
||||
arden: version 2.5;;
|
||||
version: 6.10;;
|
||||
institution: SCH ;;
|
||||
author: Deepty Singh;;
|
||||
specialist: Shivprasad Jadhav ;;
|
||||
date: 2014-12-23;;
|
||||
validation: testing;;
|
||||
|
||||
library:
|
||||
purpose: To unselect "all of the above" from "DISC_Call doctor if" if all options are selected. We don{{{SINGLE-QUOTE}}}t need to show it on the Order Summary
|
||||
|
||||
;;
|
||||
explanation:
|
||||
;;
|
||||
keywords:
|
||||
;;
|
||||
citations:
|
||||
;;
|
||||
knowledge:
|
||||
type: data-driven;;
|
||||
data:
|
||||
|
||||
// This MLM is passed three arguments, of types
|
||||
// communication_type, form_type and client info object respectively.
|
||||
|
||||
(this_communication, // Communication object
|
||||
this_form, // Form object
|
||||
client_info_obj //Arden ClientInfo object
|
||||
) := argument;
|
||||
|
||||
|
||||
/*******************Make Changes To Spelling And Flags In This Section*******************/
|
||||
|
||||
/* Set to true if a decision.log is needed.*/
|
||||
log_execution_info := FALSE;
|
||||
|
||||
/***************************************************************************************/
|
||||
|
||||
// Initialize error message
|
||||
error_message:="";
|
||||
|
||||
// Assigns fields passed in the Form object to the Field object
|
||||
field_list:= this_form.fields;
|
||||
|
||||
CT_Call_doc := last of ( field_list WHERE field_list.DataItemName = "DISC_Call doctor if");
|
||||
CT_Call_doc_Value := CT_Call_doc.Value;
|
||||
|
||||
IF CT_Call_doc_Value matches pattern "All of the above%" then
|
||||
|
||||
CT_Call_doc_Val := read last {"declare @all int, @above int, @len int " ||
|
||||
" select @all = charindex ({{{SINGLE-QUOTE}}}ALL{{{SINGLE-QUOTE}}},{{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}}) " ||
|
||||
" select @above = charindex ({{{SINGLE-QUOTE}}}above{{{SINGLE-QUOTE}}},{{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}}) " ||
|
||||
" select @len = len({{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}}) " ||
|
||||
" select right({{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}},(@len-(@above+5)) )"};
|
||||
|
||||
CT_Call_doc.value := CT_Call_doc_Val;
|
||||
ELSEIF CT_Call_doc_Value matches pattern "%All of the above" then
|
||||
CT_Call_doc_Val := read last {"declare @all int, @above int, @len int " ||
|
||||
" select @all = charindex ({{{SINGLE-QUOTE}}}ALL{{{SINGLE-QUOTE}}},{{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}}) " ||
|
||||
" select @above = charindex ({{{SINGLE-QUOTE}}}above{{{SINGLE-QUOTE}}},{{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}}) " ||
|
||||
" select @len = len({{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}}) " ||
|
||||
" select left ({{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}},(@all-3) ) "};
|
||||
|
||||
CT_Call_doc.value := CT_Call_doc_Val;
|
||||
ELSEIF CT_Call_doc_Value matches pattern "%All of the above%" then
|
||||
CT_Call_doc_Val := read last {"declare @all int, @above int, @len int " ||
|
||||
" select @all = charindex ({{{SINGLE-QUOTE}}}ALL{{{SINGLE-QUOTE}}},{{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}}) " ||
|
||||
" select @above = charindex ({{{SINGLE-QUOTE}}}above{{{SINGLE-QUOTE}}},{{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}}) " ||
|
||||
" select @len = len({{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}}) " ||
|
||||
" select left ({{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}},(@all-3) ) "||
|
||||
" + right({{{SINGLE-QUOTE}}}"||CT_Call_doc_Value|| "{{{SINGLE-QUOTE}}},(@len-(@above+5)) )"};
|
||||
|
||||
CT_Call_doc.value := CT_Call_doc_Val;
|
||||
|
||||
ENDIF;
|
||||
|
||||
;;
|
||||
priority: 50
|
||||
;;
|
||||
evoke:
|
||||
;;
|
||||
logic: conclude true;
|
||||
;;
|
||||
action:
|
||||
return this_communication, this_form;
|
||||
;;
|
||||
Urgency: 50;;
|
||||
end:
|
||||
Reference in New Issue
Block a user