3. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/27/2017 9:44:47 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

3.1 Files compared

# Location File Last Modified
1 adk\adk\product\production\demo_files\feature_forms F413.js Wed Jun 7 14:02:28 2017 UTC
2 adk\adk\product\production\demo_files\feature_forms F413.js Tue Sep 26 13:01:40 2017 UTC

3.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 2714
Changed 1 2
Inserted 0 0
Removed 0 0

3.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

3.4 Active regular expressions

No regular expressions were active.

3.5 Comparison detail

  1   define([
  2       'backb one',
  3       'mario nette',
  4       'jquer y',
  5       'handl ebars',
  6       'hbs!d emo_files/ feature_fo rms/suppor ting_templ ates/F413_ selectedDi agnosisBod y',
  7       'hbs!d emo_files/ feature_fo rms/suppor ting_templ ates/F413_ selectedPr oceduresTe mplate'
  8   ], functio n(Backbone , Marionet te, $, Han dlebars, S electedDia gnosesBody , Selected Procedures Template)  {
  9  
  10       //==== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== =====
  11       // PLE ASE DO NOT  COPY AND  PASTE THIS  FULL FILE . PLEASE J UST USE AS  A REFEREN CE AND COP Y PARTS TH AT ARE NEE DED
  12       // for  more info rmation on  how to la yout this  form for y our applet  please ch eckout the  following  link:
  13         // http:// IP          /documenta tion/#/adk /conventio ns#Writeba ck
  14       //==== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== =====
  15  
  16       var F4 13 = {
  17           //  DO NOT US E CREATE F ORM FUNCTI ON --- THI S IS FOR D EMO PURPOS ES ONLY!!!
  18           cs sClass: "e ncounters- container" ,
  19           cr eateForm:  function()  {
  20  
  21                // ***** ********** ********** ********** ********** ** CONTAIN ERS ****** ********** ********** ********** ********** *
  22                // Okay  to copy an d paste th is !!!!!!! !!!!!! BUT  ENSURE TO  REPLACE S TATIC OPTI ONS/DATA W ITH REAL D ATA !!!!!! !!!!!!!
  23                var diag nosisHeade rContainer  = {
  24                    cont rol: "cont ainer",
  25                    extr aClasses:  ["row", "b ottom-padd ing-xs"],
  26                    item s: [{
  27                         control: " container" ,
  28                         extraClass es: ["col- md-12"],
  29                         template:  '<h5>Diagn osis List< /h5>'
  30                    }]
  31                };
  32  
  33                var diag nosesConta iner = {
  34                    cont rol: "cont ainer",
  35                    extr aClasses:  ["row", "b ottom-padd ing-xs"],
  36                    item s: [{
  37                         control: " container" ,
  38                         extraClass es: ["col- xs-11"],
  39                         items: [{
  40                             contro l: "contai ner",
  41                             extraC lasses: [" row"],
  42                             items:  [{
  43                                 co ntrol: "dr illdownChe cklist",
  44                                 se lectOption s: {
  45                                      control:  "select",
  46                                      name: "d iagnosesSe ction",
  47                                      label: " Diagnoses  Section. U se the up  and down a rrow keys  to view th e predefin ed diagnos is list, t hen press  tab to vie w the diag nosis.",
  48                                      pickList : "Diagnos isCollecti on",
  49                                      extraCla sses: ["it ems-shown- md"],
  50                                      size: 10 ,
  51                                      required : true,
  52                                      srOnlyLa bel: true
  53                                 },
  54                                 ch ecklistOpt ions: {
  55                                      control:  "checklis t",
  56                                      name: "l istItems",
  57                                      extraCla sses: ["it ems-shown- md"],
  58                                      attribut eMapping:  {
  59                                          uniq ue: "id"
  60                                      }
  61                                 }
  62                             }]
  63                         }]
  64                    }, {
  65                         control: " container" ,
  66                         extraClass es: ["col- xs-1"],
  67                         items: [{
  68                             contro l: 'popove r',
  69                             label:  "Add Othe r",
  70                             name:  "add-other -diagnosis -popover",
  71                             header : "Add Oth er Diagnos is",
  72                             title:  "Press en ter to add  other dia gnoses.",
  73                             size:  'sm',
  74                             option s: {
  75                                 pl acement: ' left'
  76                             },
  77                             extraC lasses: [" btn-defaul t", "offse t-btn-md"] ,
  78                             items:  [{
  79                                 co ntrol: "co ntainer",
  80                                 ex traClasses : ["row",  "section-a dd-other-d iagnosis"] ,
  81                                 it ems: [{
  82                                      control:  "containe r",
  83                                      extraCla sses: ["co l-xs-10",  "bottom-pa dding-xs"] ,
  84                                      items: [ {
  85                                          cont rol: "inpu t",
  86                                          name : "addOthe rDiagnosis SearchStri ng",
  87                                          plac eholder: " Search for  diagnosis ",
  88                                          labe l: "Search  for diagn osis",
  89                                          srOn lyLabel: t rue,
  90                                          titl e: "Please  enter in  text to st art search ing for a  diagnosis,  and then  press tab  to navigat e to the s earch butt on."
  91                                      }]
  92                                 },  {
  93                                      control:  "containe r",
  94                                      extraCla sses: ["co l-xs-2", " bottom-pad ding-xs"],
  95                                      items: [ {
  96                                          cont rol: "butt on",
  97                                          type : "button" ,
  98                                          labe l: "",
  99                                          size : 'sm',
  100                                          extr aClasses:  ["btn-defa ult", "btn -block"],
  101                                          icon : "fa-sear ch",
  102                                          titl e: "Press  enter to e xecute sea rch based  on entered  text, and  then pres s tab to v iew the re sults list ed below." ,
  103                                          id:  "add-other -diagnosis -search-bt n"
  104                                      }]
  105                                 },  {
  106                                      control:  "containe r",
  107                                      extraCla sses: ["co l-xs-12"],
  108                                      items: [ {
  109                                          cont rol: "sele ct",
  110                                          name : "addOthe rDiagnosis Select",
  111                                          srOn lyLabel: t rue,
  112                                          labe l: "Diagno sis Result s",
  113                                          size : 10,
  114                                          extr aClasses:  ["items-sh own-md"],
  115                                          titl e: "Use th e up and d own arrow  keys to vi ew options .",
  116                                          pick List: []
  117                                      }]
  118                                 },  {
  119                                      control:  "containe r",
  120                                      extraCla sses: ["co l-xs-12"],
  121                                      items: [ {
  122                                          cont rol: "cont ainer",
  123                                          extr aClasses:  ["text-rig ht"],
  124                                          item s: [{
  125                                               control: " button",
  126                                               type: "but ton",
  127                                               label: "Ca ncel",
  128                                               extraClass es: ["btn- default",  "btn-sm"],
  129                                               title: "Pr ess enter  to cancel. ",
  130                                               id: "add-o ther-diagn osis-cance l-btn"
  131                                          }, {
  132                                               control: " button",
  133                                               type: "but ton",
  134                                               label: "Ad d",
  135                                               extraClass es: ["btn- primary",  "btn-sm"],
  136                                               title: "Pr ess enter  to add.",
  137                                               id: "add-o ther-diagn osis-add-b tn"
  138                                          }]
  139                                      }]
  140                                 }]
  141                             }]
  142                         }]
  143                    }]
  144                };
  145  
  146                var sele ctedDiagno sesContain er = {
  147                    cont rol: "cont ainer",
  148                    extr aClasses:  ["row"],
  149                    item s: [{
  150                         control: " container" ,
  151                         extraClass es: ["col- md-12"],
  152                         items: [{
  153                             contro l: "nested CommentBox ",
  154                             name:  "Diagnosis Collection ",
  155                             extraC lasses: [" bottom-mar gin-none"] ,
  156                             label:  "Selected  Diagnosis ",
  157                             commen tTemplate:  '{{commen t}}',
  158                             maxCom ments: 1,
  159                             itemCo lumn: {
  160                                 co lumnTitle:  "Selected  Diagnosis ",
  161                                 co lumnClasse s: ["flex- width-7"]
  162                             },
  163                             commen tColumn: {
  164                                 co lumnTitle:  "Comments ",
  165                                 co lumnClasse s: ["text- center"]
  166                             },
  167                             additi onalColumn s: [{
  168                                 co lumnClasse s: ["flex- width-2",  "text-cent er"],
  169                                 co lumnTitle:  "Add to C ondition L ist",
  170                                 na me: "addTo CL",
  171                                 co ntrol: 'ch eckbox',
  172                                 di sabled: tr ue,
  173                                 la bel: 'Add  to Conditi on List',
  174                                 sr OnlyLabel:  true
  175                             }, {
  176                                 co lumnClasse s: ["text- center", " flex-width -2"],
  177                                 co lumnTitle:  "Primary  Diagnoses" ,
  178                                 na me: "prima ry",
  179                                 co ntrol: 'ch eckbox',
  180                                 la bel: 'Prim ary Diagno ses. Press  spacebar  to select  this as th e primary  Diagnoses' ,
  181                                 sr OnlyLabel:  true
  182                             }],
  183                             attrib uteMapping : {
  184                                 co llection:  "listItems ",
  185                                 co mmentsColl ection: "c omments",
  186                                 co mment: "co mmentStrin g",
  187                                 va lue: "valu e",
  188                                 la bel: "labe l",
  189                                 un ique: "id" ,
  190                                 au thor: "aut hor",
  191                                 ti meStamp: " timeStamp"
  192                             }
  193                         }]
  194                    }]
  195                };
  196  
  197                var serv iceConnect edContaine r = {
  198                    cont rol: "cont ainer",
  199                    extr aClasses:  ["col-md-1 2"],
  200                    item s: [{
  201                         control: " container" ,
  202                         extraClass es: ["row" , "row-eq- height"],
  203                         items: [{
  204                             contro l: "contai ner",
  205                             extraC lasses: [" col-md-6",  "well", " well-flex" ],
  206                             templa te: [
  207                                 '< p>Service  Connected:  {{service Connected} }%</p>',
  208                                 '< ul><li>Vit amin Defic iency (10%  SC)</li>' ,
  209                                 '< li>Hemorrh oids (10%  SC)</li>',
  210                                 '< li>Inguina l Hernia ( 0% SC)</li >',
  211                                 '< li>Gastric  Ulcer (20 % SC)</li> ',
  212                                 '< /ul>'
  213                             ].join ("\n")
  214                         }, {
  215                             contro l: "contai ner",
  216                             extraC lasses: [" col-md-6",  "well", " well-flex" ],
  217                             items:  [{
  218                                 co ntrol: "co ntainer",
  219                                 ta gName: "fi eldset",
  220                                 te mplate: "< legend>Vis it Related  To</legen d>",
  221                                 it ems: [{
  222                                      control:  "radio",
  223                                      extraCla sses: ["bo ttom-borde r-grey-lig ht"],
  224                                      name: "s erviceConn ectedCondi tion",
  225                                      label: " Service Co nnected Co ndition",
  226                                      options:  [{
  227                                          labe l: "Yes",
  228                                          valu e: 'true'
  229                                      }, {
  230                                          labe l: "No",
  231                                          valu e: 'false'
  232                                      }]
  233                                 },  {
  234                                      control:  "radio",
  235                                      extraCla sses: ["bo ttom-borde r-grey-lig ht"],
  236                                      name: "c ombatVet",
  237                                      label: " Combat Vet  (Combat R elated)",
  238                                      title: " Combat Vet  (Combat R elated)",
  239                                      options:  [{
  240                                          labe l: "Yes",
  241                                          valu e: 'true'
  242                                      }, {
  243                                          labe l: "No",
  244                                          valu e: 'false'
  245                                      }]
  246                                 },  {
  247                                      control:  "radio",
  248                                      extraCla sses: ["bo ttom-borde r-grey-lig ht"],
  249                                      name: "a gentOrange ",
  250                                      label: " Agent Oran ge Exposur e",
  251                                      title: " Agent Oran ge Exposur e",
  252                                      options:  [{
  253                                          labe l: "Yes",
  254                                          valu e: 'true'
  255                                      }, {
  256                                          labe l: "No",
  257                                          valu e: 'false'
  258                                      }]
  259                                 }]
  260                             }]
  261                         }]
  262                    }]
  263                };
  264  
  265                var sele ctedConnec tedHeaderC ontainer =  {
  266                    cont rol: "cont ainer",
  267                    extr aClasses:  ["row"],
  268                    item s: [{
  269                         control: " container" ,
  270                         extraClass es: ["col- md-12", "b ottom-padd ing-xs"],
  271                         template:  '<h5>Servi ce Connect ed</h5>'
  272                    }, s erviceConn ectedConta iner]
  273                };
  274  
  275                var visi tTypeHeade rContainer  = {
  276                    cont rol: "cont ainer",
  277                    extr aClasses:  ["row", "b ottom-padd ing-xs"],
  278                    item s: [{
  279                         control: " container" ,
  280                         extraClass es: ["col- md-12"],
  281                         template:  '<h5>Visit  Type</h5> '
  282                    }]
  283                };
  284  
  285                var visi tTypeConta iner = {
  286                    cont rol: "cont ainer",
  287                    extr aClasses:  ["row"],
  288                    item s: [{
  289                         control: " container" ,
  290                         extraClass es: ["col- md-9"],
  291                         items: [{
  292                             contro l: "contai ner",
  293                             extraC lasses: [" row"],
  294                             items:  [{
  295                                 co ntrol: "dr illdownChe cklist",
  296                                 se lectOption s: {
  297                                      control:  "select",
  298                                      name: "v isitTypeSe lection",
  299                                      label: " Type of Vi sit. Use t he up and  down arrow  keys to v iew the pr edefined v isit type,  then pres s tab to v iew the ty pe",
  300                                      pickList : "visitCo llection",
  301                                      extraCla sses: ["it ems-shown- md"],
  302                                      size: 10 ,
  303                                      required : true,
  304                                      srOnlyLa bel: true
  305                                 },
  306                                 ch ecklistOpt ions: {
  307                                      control:  "checklis t",
  308                                      name: "i tems",
  309                                      extraCla sses: ["it ems-shown- md", "visi t-checklis t"],
  310                                      attribut eMapping:  {
  311                                          uniq ue: "name"
  312                                      }
  313                                 }
  314                             }]
  315                         }]
  316                    }, {
  317                         control: " container" ,
  318                         extraClass es: ["col- md-3"],
  319                         items: [{
  320                             contro l: 'popove r',
  321                             label:  "Add Modi fiers...",
  322                             name:  "add-visit -modifiers -popover",
  323                             title:  "Add Modi fiers",
  324                             option s: {
  325                                 pl acement: ' left'
  326                             },
  327                             extraC lasses: [" btn-defaul t", "btn-s m", "btn-b lock"],
  328                             items:  [{
  329                                 co ntrol: "co ntainer",
  330                                 ex traClasses : ["row",  "section-a dd-modifie rs"],
  331                                 it ems: [{
  332                                      control:  "containe r",
  333                                      extraCla sses: ["co l-xs-12"],
  334                                      items: [ {
  335                                          cont rol: "mult iselectSid eBySide",
  336                                          name : "availab leVistModi fiers",
  337                                          labe l: "Modifi ers",
  338                                          sele ctedCountN ame: "visi tModifiers Count"
  339                                      }]
  340                                 },  {
  341                                      control:  "containe r",
  342                                      extraCla sses: ["co l-xs-12"],
  343                                      items: [ {
  344                                          cont rol: "cont ainer",
  345                                          extr aClasses:  ["text-rig ht"],
  346                                          item s: [{
  347                                               control: " button",
  348                                               type: "but ton",
  349                                               label: "Do ne",
  350                                               extraClass es: ["btn- primary",  "btn-sm"],
  351                                               title: "Pr ess enter  to close." ,
  352                                               id: "add-v isit-modif iers-close -btn"
  353                                          }]
  354                                      }]
  355                                 }]
  356                             }]
  357                         }, {
  358                             contro l: "contai ner",
  359                             extraC lasses: [" well", "re ad-only-we ll"],
  360                             templa te: Handle bars.compi le([
  361                                 '< ul>{{#each  selectedM odifiersFo rVist}}<li >{{this}}< /li>{{/eac h}}</ul>'
  362                             ].join ("\n")),
  363                             modelL isteners:  ["visitMod ifiersCoun t"]
  364                         }]
  365                    }]
  366                };
  367  
  368                var prov idersEncou nterContai ner = {
  369                    cont rol: "mult iselectSid eBySide",
  370                    name : "provide rList",
  371                    labe l: "Provid ers",
  372                    attr ibuteMappi ng: {
  373                         id: 'name'
  374                    },
  375                    addi tionalColu mns: [{
  376                         columnClas ses: ["tex t-center"] ,
  377                         columnTitl e: "Primar y Provider ",
  378                         name: "pri maryProvid erCheck",
  379                         extraClass es: ["cell -valign-mi ddle", "bo ttom-margi n-no"],
  380                         control: ' checkbox',
  381                         srOnlyLabe l: true,
  382                         label: "Pr imary Prov ider"
  383                    }]
  384                };
  385  
  386                var prim aryProvide rContainer  = {
  387                    cont rol: "cont ainer",
  388                    extr aClasses:  ["row"],
  389                    item s: [{
  390                         control: " container" ,
  391                         extraClass es: ["col- md-6"],
  392                         items: [{
  393                             contro l: "select ",
  394                             name:  "selectedP rimaryProv ider",
  395                             label:  "Primary  provider",
  396                             pickli st: new Ba ckbone.Col lection([{
  397                                 la bel: "Prov ider 1",
  398                                 na me: "me"
  399                             }]),
  400                             attrib uteMapping : {
  401                                 va lue: 'name '
  402                             }
  403                         }]
  404                    }]
  405                };
  406  
  407                var proc edureHeade rContainer  = {
  408                    cont rol: "cont ainer",
  409                    extr aClasses:  ["row", "b ottom-padd ing-xs"],
  410                    item s: [{
  411                         control: " container" ,
  412                         extraClass es: ["col- md-12"],
  413                         template:  '<h5>Proce dure</h5>'
  414                    }]
  415                };
  416  
  417                var proc edureConta iner = {
  418                    cont rol: "cont ainer",
  419                    extr aClasses:  ["row", "b ottom-padd ing-xs"],
  420                    item s: [{
  421                         control: " container" ,
  422                         extraClass es: ["col- md-11"],
  423                         items: [{
  424                             contro l: "contai ner",
  425                             extraC lasses: [" row"],
  426                             items:  [{
  427                                 co ntrol: "dr illdownChe cklist",
  428                                 se lectOption s: {
  429                                      control:  "select",
  430                                      name: "p rocedureSe ction",
  431                                      label: " Procedure  Section. U se the up  and down a rrow keys  to view th e predefin ed procedu re section , then pre ss tab to  view the p rocedures" ,
  432                                      pickList : "Procedu reCollecti on",
  433                                      extraCla sses: ["it ems-shown- md"],
  434                                      size: 10 ,
  435                                      required : true,
  436                                      srOnlyLa bel: true
  437                                 },
  438                                 ch ecklistOpt ions: {
  439                                      control:  "checklis t",
  440                                      name: "l istItems",
  441                                      extraCla sses: ["it ems-shown- md"],
  442                                      attribut eMapping:  {
  443                                          uniq ue: "id"
  444                                      }
  445                                 }
  446                             }]
  447                         }]
  448                    }, {
  449                         control: " container" ,
  450                         extraClass es: ["col- xs-1"],
  451                         items: [{
  452                             contro l: 'popove r',
  453                             label:  "Add Othe r",
  454                             name:  "add-other -procedure -popover",
  455                             header : "Add Oth er Procedu re",
  456                             title:  "Press en ter to add  other pro cedure.",
  457                             size:  'sm',
  458                             option s: {
  459                                 pl acement: ' left'
  460                             },
  461                             extraC lasses: [" btn-defaul t", "offse t-btn-md",  "btn-xs"] ,
  462                             items:  [{
  463                                 co ntrol: "co ntainer",
  464                                 ex traClasses : ["row",  "section-a dd-other-p rocedure"] ,
  465                                 it ems: [{
  466                                      control:  "containe r",
  467                                      extraCla sses: ["co l-xs-10",  "bottom-pa dding-xs"] ,
  468                                      items: [ {
  469                                          cont rol: "inpu t",
  470                                          name : "addOthe rProcedure SearchStri ng",
  471                                          plac eholder: " Search for  procedure ",
  472                                          labe l: "Add Ot her Proced ure Input" ,
  473                                          srOn lyLabel: t rue,
  474                                          titl e: "Please  enter in  a procedur e to filte r."
  475                                      }]
  476                                 },  {
  477                                      control:  "containe r",
  478                                      extraCla sses: ["co l-xs-2", " bottom-pad ding-xs"],
  479                                      items: [ {
  480                                          cont rol: "butt on",
  481                                          type : "button" ,
  482                                          labe l: "",
  483                                          size : 'sm',
  484                                          extr aClasses:  ["btn-defa ult", "btn -block"],
  485                                          icon : "fa-sear ch",
  486                                          titl e: "Press  enter to s earch",
  487                                          id:  "add-other -procedure -search-bt n"
  488                                      }]
  489                                 },  {
  490                                      control:  "containe r",
  491                                      extraCla sses: ["co l-xs-12"],
  492                                      items: [ {
  493                                          cont rol: "sele ct",
  494                                          name : "addOthe rProcedure Select",
  495                                          srOn lyLabel: t rue,
  496                                          labe l: "Add Ot her Proced ure Select ion",
  497                                          size : 10,
  498                                          requ ired: true ,
  499                                          extr aClasses:  ["items-sh own-md"],
  500                                          titl e: "Press  eneter to  browse thr ough selec t options. ",
  501                                          pick List: []
  502                                      }]
  503                                 },  {
  504                                      control:  "containe r",
  505                                      extraCla sses: ["co l-xs-12"],
  506                                      items: [ {
  507                                          cont rol: "cont ainer",
  508                                          extr aClasses:  ["text-rig ht"],
  509                                          item s: [{
  510                                               control: " button",
  511                                               type: "but ton",
  512                                               label: "Ca ncel",
  513                                               extraClass es: ["btn- default",  "btn-sm"],
  514                                               title: "Pr ess enter  to cancel. ",
  515                                               id: "add-o ther-proce dure-cance l-btn"
  516                                          }, {
  517                                               control: " button",
  518                                               type: "but ton",
  519                                               label: "Ad d",
  520                                               extraClass es: ["btn- primary",  "btn-sm"],
  521                                               title: "Pr ess enter  to add.",
  522                                               id: "add-o ther-proce dure-add-b tn"
  523                                          }]
  524                                      }]
  525                                 }]
  526                             }]
  527                         }]
  528                    }]
  529                };
  530  
  531                var sele ctedProced uresContai ner = {
  532                    cont rol: "cont ainer",
  533                    extr aClasses:  ["row"],
  534                    item s: [{
  535                         control: " container" ,
  536                         extraClass es: ["col- md-12"],
  537                         items: [{
  538                             contro l: "nested CommentBox ",
  539                             name:  "Procedure Collection ",
  540                             label:  "Selected  Procedure s",
  541                             extraC lasses: [" nested-com ment-box",  "nested-c omment-box -alt", "fa ux-table-r ow-contain er"],
  542                             itemCo lumn: {
  543                                 co lumnTitle:  "Selected  Procedure s",
  544                                 co lumnClasse s: ["flex- width-7"]
  545                             },
  546                             commen tColumn: {
  547                                 co lumnTitle:  "Comments ",
  548                                 co lumnClasse s: ["text- center"]
  549                             },
  550                             additi onalColumn s: [{
  551                                 co lumnTitle:  "Quantity ",
  552                                 co lumnClasse s: ["text- center"],
  553                                 co ntrol: 'in put',
  554                                 ex traClasses : ["input- sm", "perc ent-width- 80", "cent er-margin" ],
  555                                 na me: "quant ity",
  556                                 pl aceholder:  "1",
  557                                 la bel: 'Quan tity',
  558                                 sr OnlyLabel:  true,
  559                                 ti tle: "Plea se enter i n quantity "
  560                             }, {
  561                                 co lumnClasse s: ["flex- width-2",  "text-cent er"],
  562                                 co lumnTitle:  "Provider ",
  563                                 co ntrol: "se lect",
  564                                 ex traClasses : ["input- sm", "all- margin-no" ],
  565                                 na me: "provi der",
  566                                 la bel: "Prov ider",
  567                                 sr OnlyLabel:  true,
  568                                 ti tle: "Plea se enter i n provider .",
  569                                 pi ckList: ne w Backbone .Collectio n([{
  570                                      value: ' provider1' ,
  571                                      label: ' Provider 1 '
  572                                 },  {
  573                                      value: ' provider2' ,
  574                                      label: ' Provider 2 '
  575                                 }] )
  576                             }, {
  577                                 co lumnTitle:  "Add Modi fiers",
  578                                 co lumnClasse s: ["flex- width-2",  "text-cent er"],
  579                                 ti tle: "Pres s enter to  add modif iers.",
  580                                 co ntrol: 'po pover',
  581                                 ex traClasses : ["btn-ic on", "btn- xs"],
  582                                 na me: "itemM odifiers",
  583                                 la bel: "Add  Modifiers. ..",
  584                                 op tions: {
  585                                      trigger:  "click",
  586                                      header:  "Add Modif iers",
  587                                      placemen t: "left"
  588                                 },
  589                                 it ems: [{
  590                                      control:  "containe r",
  591                                      extraCla sses: ["ro w"],
  592                                      items: [ {
  593                                          cont rol: "cont ainer",
  594                                          extr aClasses:  ["col-xs-1 2"],
  595                                          item s: [{
  596                                               control: " multiselec tSideBySid e",
  597                                               name: "mod ifiers",
  598                                               label: "Mo difiers"
  599                                          }]
  600                                      }]
  601                                 }]
  602                             }],
  603                             attrib uteMapping : {
  604                                 co llection:  "listItems ",
  605                                 co mmentsColl ection: "c omments",
  606                                 co mment: "co mmentStrin g",
  607                                 va lue: "valu e",
  608                                 la bel: "labe l",
  609                                 un ique: "id" ,
  610                                 au thor: "aut hor",
  611                                 ti meStamp: " timeStamp"
  612                             }
  613                         }]
  614                    }]
  615                };
  616                // ***** ********** ********** ********** ********** ** END OF  CONTAINERS  ********* ********** ********** ********** *
  617  
  618                // ***** ********** ********** ********** ********** ** FIELDS  ********** ********** ********** ********** ********** *
  619                // Okay  to copy an d paste
  620                var F413 Fields = [ {
  621                    cont rol: "cont ainer",
  622                    extr aClasses:  ["modal-bo dy"],
  623                    item s: [{
  624                         control: " container" ,
  625                         extraClass es: ["cont ainer-flui d"],
  626                         items: [di agnosisHea derContain er, diagno sesContain er, select edDiagnose sContainer , selected ConnectedH eaderConta iner, visi tTypeHeade rContainer , visitTyp eContainer , provider sEncounter Container,  procedure HeaderCont ainer, pro cedureCont ainer, sel ectedProce duresConta iner]
  627                    }]
  628                }, {
  629                    cont rol: "cont ainer",
  630                    extr aClasses:  ["modal-fo oter"],
  631                    item s: [{
  632                         control: ' container' ,
  633                         extraClass es: ["row" ],
  634                         items: [{
  635                             contro l: "contai ner",
  636                             extraC lasses: [" col-xs-6"] ,
  637                             templa te: Handle bars.compi le('<p ari a-hidden=" true">(* i ndicates a  required  field.)</p >{{#if sav edTime}}<p ><span id= "immunizat ion-histor ical-saved -at">Saved  at: {{sav edTime}}</ span></p>{ {/if}}')
  638                         }, {
  639                             contro l: "contai ner",
  640                             extraC lasses: [" col-xs-6"] ,
  641                             items:  [{
  642                                 co ntrol: "bu tton",
  643                                 id : "cancel- btn",
  644                                 la bel: "Canc el",
  645                                 ti tle: "Pres s enter to  cancel.",
  646                                 ex traClasses : ["btn-de fault", "b tn-sm", "l eft-margin -xs"],
  647                                 na me: "cance l",
  648                                 ty pe: "butto n"
  649                             }, {
  650                                 co ntrol: "bu tton",
  651                                 id : "ok-btn" ,
  652                                 la bel: "OK",
  653                                 ti tle: "Pres s enter to  confirm." ,
  654                                 ex traClasses : ["btn-pr imary", "b tn-sm", "l eft-margin -xs"],
  655                                 na me: "ok"
  656                             }]
  657                         }]
  658                    }]
  659                }];
  660                // ***** ********** ********** ********** ********** ** END OF  FIELDS *** ********** ********** ********** ********** *
  661  
  662                // ***** ********** ********** ********** ********** ** MODEL * ********** ********** ********** ********** ********** *
  663                // Okay  to copy an d paste -  Please Add  additiona l items to  prepopula te the fie lds
  664                var Form Model = Ba ckbone.Mod el.extend( {
  665                    defa ults: {
  666                         //savedTim e: moment( ).format(' HH:mm')
  667                    }
  668                });
  669                // ***** ********** ********** ********** ********** ** END OF  MODEL **** ********** ********** ********** ********** *
  670  
  671                // ***** ********** ********** ********** ********** ** VIEWS * ********** ********** ********** ********** *****
  672                // Okay  to copy an d paste -  WITH 1 EXC EPTION (se e below)
  673                var Dele teMessageV iew = Back bone.Mario nette.Item View.exten d({
  674                    temp late: Hand lebars.com pile('You  will lose  all work i n progress  if you de lete this  task. Woul d you like  to procee d?'),
  675                    tagN ame: 'p'
  676                });
  677  
  678                var Clos eMessageVi ew = Backb one.Marion ette.ItemV iew.extend ({
  679                    temp late: Hand lebars.com pile('You  will lose  all work i n progress  if you cl ose this t ask. Would  you like  to proceed ?'),
  680                    tagN ame: 'p'
  681                });
  682  
  683                var Foot erView = B ackbone.Ma rionette.I temView.ex tend({
  684                    temp late: Hand lebars.com pile('{{ui -button "C ancel" id= "alert-can cel-btn" c lasses="bt n-default  btn-sm" ti tle="Press  enter to  cancel"}}{ {ui-button  "Continue " id="aler t-continue -btn" clas ses="btn-p rimary btn -sm" title ="Press en ter to con tinue"}}') ,
  685                    even ts: {
  686                         'click #al ert-contin ue-btn': f unction()  {
  687                             ADK.UI .Alert.hid e();
  688                             ADK.UI .Workflow. hide();
  689                         },
  690                         'click #al ert-cancel -btn': fun ction() {
  691                             ADK.UI .Alert.hid e();
  692                         }
  693                    },
  694                    tagN ame: 'span '
  695                });
  696  
  697                var form View = ADK .UI.Form.e xtend({
  698                    ui:  {
  699                         'VisitChec klistCheck boxes': '. visit-chec klist inpu t',
  700                         'SearchAdd OtherDiagn osis': '.a dd-other-d iagnosis-p opover #ad d-other-di agnosis-se arch-btn',
  701                         'SelectAdd OtherDiagn osis': '.a dd-other-d iagnosis-p opover #ad dOtherDiag nosisSelec t',
  702                         'CancelAdd OtherDiagn osis': '.a dd-other-d iagnosis-p opover #ad d-other-di agnosis-ca ncel-btn',
  703                         'AddOtherD iagnosisPo pover': '. add-other- diagnosis- popover #a dd-other-d iagnosis-a dd-btn',
  704  
  705                         'SearchAdd OtherProce dure': '.a dd-other-p rocedure-p opover #ad d-other-pr ocedure-se arch-btn',
  706                         'SelectAdd OtherProce dure': '.a dd-other-p rocedure-p opover #ad dOtherProc edureSelec t',
  707                         'CancelAdd OtherProce dure': '.a dd-other-p rocedure-p opover #ad d-other-pr ocedure-ca ncel-btn',
  708                         'AddOtherP rocedurePo pover': '. add-other- procedure- popover #a dd-other-p rocedure-a dd-btn',
  709  
  710                         'AddVisitM odifiersPo pover': '. add-visit- modifiers- popover',
  711                         'ClosAddVi sitModifie rs': '.add -visit-mod ifiers-pop over #add- visit-modi fiers-clos e-btn',
  712                    },
  713                    fiel ds: F413Fi elds,
  714                    mode lEvents: {
  715                         'change:vi sitModifie rsCount':  function()  {
  716                             this.m odel.set(' selectedMo difiersFor Vist', _.m ap(this.mo del.get('a vailableVi stModifier s').where( {
  717                                 va lue: true
  718                             }), fu nction(mod el) {
  719                                 re turn model .get('labe l');
  720                             }));
  721                         }
  722                    },
  723                    even ts: {
  724                         "click #ok -btn": fun ction(e) {
  725                             e.prev entDefault ();
  726                             if (!t his.model. isValid())
  727                                 th is.model.s et("formSt atus", {
  728                                      status:  "error",
  729                                      message:  self.mode l.validati onError
  730                                 }) ;
  731                             else {
  732                                 th is.model.u nset("form Status");
  733                                 va r saveAler tView = ne w ADK.UI.N otificatio n({
  734                                      title: ' Encounter  Submitted' ,
  735                                      icon: 'f a-check',
  736                                      message:  'Encounte r successf ully submi tted with  no errors. ',
  737                                      type: "s uccess"
  738                                 }) ;
  739                                 sa veAlertVie w.show();
  740                                 AD K.UI.Workf low.hide() ;
  741                             }
  742                         },
  743                         "click #ca ncel-btn":  function( e) {
  744                             e.prev entDefault ();
  745                             var de leteAlertV iew = new  ADK.UI.Ale rt({
  746                                 ti tle: 'Are  you sure y ou want to  cancel?',
  747                                 ic on: 'icon- cancel',
  748                                 me ssageView:  DeleteMes sageView,
  749                                 fo oterView:  FooterView
  750                             });
  751                             delete AlertView. show();
  752                         },
  753                         "click @ui .CancelAdd OtherDiagn osis": fun ction(e) {
  754                             e.prev entDefault ();
  755                             this.c loseAddOth erPopover( "Diagnosis ");
  756                         },
  757                         "click @ui .CancelAdd OtherProce dure": fun ction(e) {
  758                             e.prev entDefault ();
  759                             this.c loseAddOth erPopover( "Procedure ");
  760                         },
  761                         "click @ui .ClosAddVi sitModifie rs": funct ion(e) {
  762                             e.prev entDefault ();
  763                             this.$ (this.ui[" AddVisitMo difiersPop over"]).tr igger('con trol:popov er:hidden' , true);
  764                         },
  765                         "click @ui .SearchAdd OtherDiagn osis": fun ction(e) {
  766                             e.prev entDefault ();
  767                             this.s earchForOt her("Diagn osis");
  768                         },
  769                         "click @ui .SearchAdd OtherProce dure": fun ction(e) {
  770                             e.prev entDefault ();
  771                             this.s earchForOt her("Proce dure");
  772                         },
  773                         "click @ui .AddOtherD iagnosisPo pover": fu nction(e)  {
  774                             e.prev entDefault ();
  775                             this.a ddOtherPop over("Diag nosis");
  776                         },
  777                         "click @ui .AddOtherP rocedurePo pover": fu nction(e)  {
  778                             e.prev entDefault ();
  779                             this.a ddOtherPop over("Proc edure");
  780                         }
  781                    },
  782                    clos eAddOtherP opover: fu nction(con text) {
  783                         this.model .unset('ad dOther' +  context +  'SearchStr ing');
  784  
  785                         this.model .unset('ad dOther' +  context +  'Select');
  786                         this.$(thi s.ui["Sele ctAddOther " + contex t]).trigge r("control :picklist: set", [
  787                             []
  788                         ]);
  789  
  790                         this.$(thi s.ui["AddO ther" + co ntext + "P opover"]). trigger('c ontrol:pop over:hidde n', true);
  791                    },
  792                    sear chForOther : function (context)  {
  793                         var search String = t his.model. get("addOt her" + con text + "Se archString ");
  794                         if (search String &&  searchStri ng.length  > 0) {
  795                             this.$ (this.ui[" SelectAddO ther" + co ntext].sel ector).tri gger("cont rol:pickli st:set", [
  796                                 [{
  797                                      label: s earchStrin g + ' 1',
  798                                      value: ' opt1'
  799                                 },  {
  800                                      label: s earchStrin g + ' 2',
  801                                      value: ' opt2'
  802                                 }]
  803                             ]);
  804                         }
  805                    },
  806                    addO therPopove r: functio n(context)  {
  807                         var itemTo AddValue =  this.mode l.get('add Other' + c ontext + ' Select');
  808                         if (!_.isE mpty(itemT oAddValue) ) {
  809                             var it emToAddLab el = this. $(this.ui[ "SelectAdd Other" + c ontext].se lector + '  option[va lue="' + i temToAddVa lue + '"]' ).text() | | itemToAd dValue ||  "";
  810                             if (co ntext ===  "Procedure ") {
  811                                 th is.model.g et(context  + 'Collec tion').add ({
  812                                      value: " other",
  813                                      label: " Other Diag noses",
  814                                      listItem s: new Bac kbone.Coll ection([{
  815                                          id:  itemToAddV alue,
  816                                          labe l: itemToA ddLabel,
  817                                          valu e: true,
  818                                          quan tity: 1,
  819                                          prov ider: "",
  820                                          comm ents: new  Backbone.C ollection( []),
  821                                          modi fiers: []
  822                                      }])
  823                                 }) ;
  824                             } else  {
  825                                 th is.model.g et(context  + 'Collec tion').add ({
  826                                      value: " other",
  827                                      label: " Other Diag noses",
  828                                      listItem s: new Bac kbone.Coll ection([{
  829                                          id:  itemToAddV alue,
  830                                          labe l: itemToA ddLabel,
  831                                          valu e: true,
  832                                          addT oCL: false ,
  833                                          comm ents: new  Backbone.C ollection( []),
  834                                          prim ary: false
  835                                      }])
  836                                 }) ;
  837                             }
  838  
  839                             this.c loseAddOth erPopover( context);
  840                         } else {
  841                             this.m odel.error Model.clea r();
  842                             this.m odel.error Model.set( 'addOther'  + context  + 'Select ', "You mu st select  a valid "  + context  + " before  continuin g.");
  843                             this.t ransferFoc usToFirstE rror();
  844                         }
  845                    },
  846                });
  847                // ***** ********** ********** ********** ********** ** END OF  FORM VIEW  ********** ********** ********** ********** *
  848  
  849                // ***** ********** ********** ********** ********** ** MODEL A ND WORKFLO W INSTANCE  ********* ********** ********** *
  850                // Okay  to copy an d paste
  851                var form Model = ne w FormMode l({
  852                    serv iceConnect ed: '40',
  853                    rate dDisabilit ies: 'Comb at',
  854                    prov iderList:  new Backbo ne.Collect ion([{
  855                         name: 'pro vider1',
  856                         label: 'Pr ovider 1',
  857                         value: fal se
  858                    }, {
  859                         name: 'pro vider2',
  860                         label: 'Pr ovider 2',
  861                         value: fal se
  862                    }, {
  863                         name: 'pro vider3',
  864                         label: 'Pr ovider 3',
  865                         value: fal se
  866                    }, {
  867                         name: 'pro vider4',
  868                         label: 'Pr ovider 4',
  869                         value: fal se
  870                    }, {
  871                         name: 'pro vider5',
  872                         label: 'Pr ovider 5',
  873                         value: fal se
  874                    }, {
  875                         name: 'pro vider6',
  876                         label: 'Pr ovider 6',
  877                         value: fal se
  878                    }, {
  879                         name: 'pro vider7',
  880                         label: 'Pr ovider 7',
  881                         value: fal se
  882                    }, {
  883                         name: 'pro vider8',
  884                         label: 'Pr ovider 8',
  885                         value: fal se
  886                    }, {
  887                         name: 'pro vider9',
  888                         label: 'Pr ovider 9',
  889                         value: fal se
  890                    }, {
  891                         name: 'pro vider10',
  892                         label: 'Pr ovider 10' ,
  893                         value: fal se
  894                    }]),
  895                    avai lableVistM odifiers:  new Backbo ne.Collect ion([{
  896                         name: 'mod ifier1',
  897                         label: 'Mo difier nam e',
  898                         value: fal se
  899                    }, {
  900                         name: 'mod ifier2',
  901                         label: 'Mo difier nam e',
  902                         value: fal se
  903                    }, {
  904                         name: 'mod ifier3',
  905                         label: 'Mo difier nam e',
  906                         value: fal se
  907                    }, {
  908                         name: 'mod ifier4',
  909                         label: 'Mo difier nam e',
  910                         value: fal se
  911                    }, {
  912                         name: 'mod ifier5',
  913                         label: 'Mo difier nam e',
  914                         value: fal se
  915                    }, {
  916                         name: 'mod ifier6',
  917                         label: 'Mo difier nam e',
  918                         value: fal se
  919                    }, {
  920                         name: 'mod ifier7',
  921                         label: 'Mo difier nam e',
  922                         value: fal se
  923                    }, {
  924                         name: 'mod ifier8',
  925                         label: 'Mo difier nam e',
  926                         value: fal se
  927                    }, {
  928                         name: 'mod ifier9',
  929                         label: 'Mo difier nam e',
  930                         value: fal se
  931                    }, {
  932                         name: 'mod ifier10',
  933                         label: 'Mo difier nam e',
  934                         value: fal se
  935                    }]),
  936                    visi tTypeSelec tion: "opt 1",
  937                    visi tCollectio n: new Bac kbone.Coll ection([{
  938                         label: "Of fice Visit  - New Pt. ",
  939                         value: "op t1",
  940                         items: new  Backbone. Collection ([{
  941                             name:  'opt1',
  942                             label:  'Focused,  HX & Exam  99201',
  943                             value:  true
  944                         }, {
  945                             name:  'opt2',
  946                             label:  'Expanded , HX & Exa m 99202',
  947                             value:  true
  948                         }, {
  949                             name:  'opt3',
  950                             label:  'Detailed , Low Comp lexity 992 03',
  951                             value:  false
  952                         }, {
  953                             name:  'opt4',
  954                             label:  'Comprehe nsive, Mod erate 9920 4',
  955                             value:  false
  956                         }])
  957                    }, {
  958                         label: "Of fice Visit  - Est Pt. ",
  959                         value: "op t2",
  960                         items: new  Backbone. Collection ([{
  961                             name:  'opt1',
  962                             label:  'Est Focu sed, HX &  Exam 99201 ',
  963                             value:  false
  964                         }, {
  965                             name:  'opt2',
  966                             label:  'Est Expa nded, HX &  Exam 9920 2',
  967                             value:  false
  968                         }, {
  969                             name:  'opt3',
  970                             label:  'Est Deta iled, Low  Complexity  99203',
  971                             value:  false
  972                         }, {
  973                             name:  'opt4',
  974                             label:  'Est Comp rehensive,  Moderate  99204',
  975                             value:  false
  976                         }])
  977                    }, {
  978                         label: "Of fice Consu lt New",
  979                         value: "op t3",
  980                         items: new  Backbone. Collection ([{
  981                             name:  'opt1',
  982                             label:  'Office F ocused, HX  & Exam 99 201',
  983                             value:  false
  984                         }, {
  985                             name:  'opt2',
  986                             label:  'Office E xpanded, H X & Exam 9 9202',
  987                             value:  false
  988                         }, {
  989                             name:  'opt3',
  990                             label:  'Office D etailed, L ow Complex ity 99203' ,
  991                             value:  false
  992                         }, {
  993                             name:  'opt4',
  994                             label:  'Office C omprehensi ve, Modera te 99204',
  995                             value:  false
  996                         }])
  997                    }, {
  998                         label: "Pr ev Medicin e Svcs",
  999                         value: "op t4",
  1000                         items: new  Backbone. Collection ([{
  1001                             name:  'opt1',
  1002                             label:  'Prev Med icine Focu sed, HX &  Exam 99201 ',
  1003                             value:  false
  1004                         }, {
  1005                             name:  'opt2',
  1006                             label:  'Prev Med icine Expa nded, HX &  Exam 9920 2',
  1007                             value:  false
  1008                         }, {
  1009                             name:  'opt3',
  1010                             label:  'Prev Med icine Deta iled, Low  Complexity  99203',
  1011                             value:  false
  1012                         }, {
  1013                             name:  'opt4',
  1014                             label:  'Prev Med icine Comp rehensive,  Moderate  99204',
  1015                             value:  false
  1016                         }])
  1017                    }, {
  1018                         label: "Co unseling /  Psychothe rapy",
  1019                         value: "op t5",
  1020                         items: new  Backbone. Collection ([{
  1021                             name:  'opt1',
  1022                             label:  'Counseli ng Focused , HX & Exa m 99201',
  1023                             value:  false
  1024                         }, {
  1025                             name:  'opt2',
  1026                             label:  'Counseli ng Expande d, HX & Ex am 99202',
  1027                             value:  false
  1028                         }, {
  1029                             name:  'opt3',
  1030                             label:  'Psychoth erapy Deta iled, Low  Complexity  99203',
  1031                             value:  false
  1032                         }, {
  1033                             name:  'opt4',
  1034                             label:  'Psychoth erapy Comp rehensive,  Moderate  99204',
  1035                             value:  false
  1036                         }])
  1037                    }]),
  1038                    diag nosesSecti on: "condi tionListIt ems",
  1039                    addO therDiagno sisSearchS tring: "",
  1040                    Diag nosisColle ction: new  Backbone. Collection ([{
  1041                         value: "co nditionLis tItems",
  1042                         label: "Co ndition Li st Items",
  1043                         listItems:  new Backb one.Collec tion([{
  1044                             id: "g roup1-diag nosis1",
  1045                             label:  "Hyperten sion",
  1046                             value:  false,
  1047                             addToC L: false,
  1048                             commen ts: new Ba ckbone.Col lection([] ),
  1049                             primar y: true
  1050                         }, {
  1051                             id: "g roup1-diag nosis2",
  1052                             label:  "Hyperlip idemia",
  1053                             value:  false,
  1054                             addToC L: false,
  1055                             commen ts: new Ba ckbone.Col lection([{
  1056                                 co mmentStrin g: "This m ight be a  non-causat ive sympto m",
  1057                                 au thor: {
  1058                                      name: "U SER,PANORA MA",
  1059                                      duz: {
  1060                                          "9E7 A": "10000 000255"
  1061                                      }
  1062                                 },
  1063                                 ti meStamp: " 12/12/2014  11:12PM"
  1064                             }]),
  1065                             primar y: false
  1066                         }, {
  1067                             id: "g roup1-diag nosis3",
  1068                             label:  "Acute My ocardial i nfarction,  unspecifi ed site, e pisode of  care unspe cified (IC D-9-CM 410 .90)",
  1069                             value:  false,
  1070                             addToC L: false,
  1071                             commen ts: new Ba ckbone.Col lection([] ),
  1072                             primar y: false
  1073                         }, {
  1074                             id: "g roup1-diag nosis4",
  1075                             label:  "Chronic  Systolic H eart failu re",
  1076                             value:  false,
  1077                             addToC L: false,
  1078                             commen ts: new Ba ckbone.Col lection([{
  1079                                 co mmentStrin g: "This m ight be a  non-causat ive sympto m",
  1080                                 au thor: {
  1081                                      name: "U SER,PANORA MA",
  1082                                      duz: {
  1083                                          "9E7 A": "10000 000255"
  1084                                      }
  1085                                 },
  1086                                 ti meStamp: " 12/12/2014  11:12PM"
  1087                             }]),
  1088                             primar y: false
  1089                         }, {
  1090                             id: "g roup1-diag nosis5",
  1091                             label:  "Diabetes  Mellitus  Type II or  unspecifi ed",
  1092                             value:  false,
  1093                             addToC L: false,
  1094                             commen ts: new Ba ckbone.Col lection([] ),
  1095                             primar y: false
  1096                         }, {
  1097                             id: "g roup1-diag nosis6",
  1098                             label:  "Adverse  effect of  Calcium-Ch annel Bloc kers, Init ial Encoun t…",
  1099                             value:  false,
  1100                             addToC L: false,
  1101                             commen ts: new Ba ckbone.Col lection([] ),
  1102                             primar y: true
  1103                         }, {
  1104                             id: "g roup1-diag nosis6",
  1105                             label:  "Acute my ocardial i nfarction,  unspecifi ed site, e pisode of  car…",
  1106                             value:  false,
  1107                             addToC L: false,
  1108                             commen ts: new Ba ckbone.Col lection([] ),
  1109                             primar y: true
  1110                         }, {
  1111                             id: "g roup1-diag nosis7",
  1112                             label:  " Diabete s Mellitus  Type III" ,
  1113                             value:  false,
  1114                             addToC L: false,
  1115                             commen ts: new Ba ckbone.Col lection([] ),
  1116                             primar y: true
  1117                         }, {
  1118                             id: "g roup1-diag nosis8",
  1119                             label:  "Adverse  effect of  Calcium-Ch annel Bloc kers, Init ial Encoun t…",
  1120                             value:  false,
  1121                             addToC L: false,
  1122                             commen ts: new Ba ckbone.Col lection([] ),
  1123                             primar y: true
  1124                         }, {
  1125                             id: "g roup1-diag nosis9",
  1126                             label:  "Hyperten sion",
  1127                             value:  false,
  1128                             addToC L: false,
  1129                             commen ts: new Ba ckbone.Col lection([] ),
  1130                             primar y: true
  1131                         }, {
  1132                             id: "g roup1-diag nosis10",
  1133                             label:  "Hyperlip idemia",
  1134                             value:  false,
  1135                             addToC L: false,
  1136                             commen ts: new Ba ckbone.Col lection([] ),
  1137                             primar y: true
  1138                         }, {
  1139                             id: "g roup1-diag nosis11",
  1140                             label:  "Chronic  Systolic H eart failu re",
  1141                             value:  false,
  1142                             addToC L: false,
  1143                             commen ts: new Ba ckbone.Col lection([] ),
  1144                             primar y: true
  1145                         }, {
  1146                             id: "g roup1-diag nosis12",
  1147                             label:  "Adverse  effect of  Calcium-Ch annel Bloc kers, Init ial Encoun t…",
  1148                             value:  false,
  1149                             addToC L: false,
  1150                             commen ts: new Ba ckbone.Col lection([] ),
  1151                             primar y: true
  1152                         }])
  1153                    }, {
  1154                         value: "in fectiousDi sease",
  1155                         label: "In fectious D isease",
  1156                         listItems:  new Backb one.Collec tion([{
  1157                             id: "g roup2-diag nosis1",
  1158                             label:  "Infectio us Disease  Diagnosis  1",
  1159                             value:  false,
  1160                             addToC L: true,
  1161                             commen ts: new Ba ckbone.Col lection([] ),
  1162                             primar y: false
  1163                         }, {
  1164                             id: "g roup2-diag nosis2",
  1165                             label:  "Infectio us Disease  Diagnosis  2",
  1166                             value:  false,
  1167                             addToC L: false,
  1168                             commen ts: new Ba ckbone.Col lection([{
  1169                                 co mmentStrin g: "This m ight be a  non-causat ive sympto m",
  1170                                 au thor: {
  1171                                      name: "U SER,PANORA MA",
  1172                                      duz: {
  1173                                          "9E7 A": "10000 000255"
  1174                                      }
  1175                                 },
  1176                                 ti meStamp: " 12/12/2014  11:12PM"
  1177                             }]),
  1178                             primar y: false
  1179                         }])
  1180                    }, {
  1181                         value: "ne oplasm",
  1182                         label: "Ne oplasm",
  1183                         listItems:  new Backb one.Collec tion([{
  1184                             id: "g roup3-diag nosis1",
  1185                             label:  "Neoplasm  Procedure  1",
  1186                             value:  false,
  1187                             addToC L: true,
  1188                             commen ts: new Ba ckbone.Col lection([] ),
  1189                             primar y: false
  1190                         }, {
  1191                             id: "g roup3-diag nosis2",
  1192                             label:  "Neoplasm  Procedure  2",
  1193                             value:  false,
  1194                             addToC L: false,
  1195                             commen ts: new Ba ckbone.Col lection([{
  1196                                 co mmentStrin g: "This m ight be a  non-causat ive sympto m",
  1197                                 au thor: {
  1198                                      name: "U SER,PANORA MA",
  1199                                      duz: {
  1200                                          "9E7 A": "10000 000255"
  1201                                      }
  1202                                 },
  1203                                 ti meStamp: " 12/12/2014  11:12PM"
  1204                             }]),
  1205                             primar y: false
  1206                         }])
  1207                    }]),
  1208                    proc edureSecti on: "proce dureABC",
  1209                    addO therProced ureSearchS tring: "",
  1210                    Proc edureColle ction: new  Backbone. Collection ([{
  1211                         value: "pr ocedureABC ",
  1212                         label: "Pr ocedure AB C",
  1213                         listItems:  new Backb one.Collec tion([{
  1214                             id: "g roup1-proc edure1",
  1215                             label:  "Item 123 45",
  1216                             value:  false,
  1217                             quanti ty: 1,
  1218                             provid er: "",
  1219                             commen ts: new Ba ckbone.Col lection([] ),
  1220                             modifi ers: [{
  1221                                 la bel: "Modi fier1",
  1222                                 va lue: false ,
  1223                                 un ique: "mod 1"
  1224                             }, {
  1225                                 la bel: "Modi fier2",
  1226                                 va lue: false ,
  1227                                 un ique: "mod 2"
  1228                             }]
  1229                         }, {
  1230                             id: "g roup1-proc edure2",
  1231                             label:  "Item 234 56",
  1232                             value:  false,
  1233                             quanti ty: 2,
  1234                             provid er: "",
  1235                             commen ts: new Ba ckbone.Col lection([{
  1236                                 co mmentStrin g: "I am a  demo comm ent string .",
  1237                                 au thor: {
  1238                                      name: "U SER,PANORA MA",
  1239                                      duz: {
  1240                                          "9E7 A": "10000 000255"
  1241                                      }
  1242                                 },
  1243                                 ti meStamp: " 12/12/2014  11:12PM"
  1244                             }]),
  1245                             modifi ers: []
  1246                         }, {
  1247                             id: "g roup1-proc edure3",
  1248                             label:  "Item 345 67",
  1249                             value:  false,
  1250                             quanti ty: 1,
  1251                             provid er: "",
  1252                             commen ts: new Ba ckbone.Col lection([] ),
  1253                             primar y: true,
  1254                             modifi ers: []
  1255                         }, {
  1256                             id: "g roup1-proc edure4",
  1257                             label:  "Item 456 78",
  1258                             value:  false,
  1259                             quanti ty: 8,
  1260                             provid er: "",
  1261                             commen ts: new Ba ckbone.Col lection([{
  1262                                 co mmentStrin g: "This m ight be a  non-causat ive sympto m",
  1263                                 au thor: {
  1264                                      name: "U SER,PANORA MA",
  1265                                      duz: {
  1266                                          "9E7 A": "10000 000255"
  1267                                      }
  1268                                 },
  1269                                 ti meStamp: " 12/12/2014  11:12PM"
  1270                             }]),
  1271                             modifi ers: []
  1272                         }, {
  1273                             id: "g roup1-proc edure5",
  1274                             label:  "Item 567 89",
  1275                             value:  false,
  1276                             quanti ty: 1,
  1277                             provid er: "",
  1278                             commen ts: new Ba ckbone.Col lection([] ),
  1279                             modifi ers: []
  1280                         }, ])
  1281                    }, {
  1282                         value: "pr ocedureDEF ",
  1283                         label: "Pr ocedure DE F",
  1284                         listItems:  new Backb one.Collec tion([{
  1285                             id: "g roup2-proc edure1",
  1286                             label:  "Item 987 65",
  1287                             value:  false,
  1288                             quanti ty: 3,
  1289                             provid er: "",
  1290                             commen ts: new Ba ckbone.Col lection([] ),
  1291                             modifi ers: []
  1292                         }, {
  1293                             id: "g roup2-proc edure2",
  1294                             label:  "Item 876 54",
  1295                             value:  false,
  1296                             quanti ty: 1,
  1297                             provid er: "",
  1298                             commen ts: new Ba ckbone.Col lection([{
  1299                                 co mmentStrin g: "This m ight be a  non-causat ive sympto m",
  1300                                 au thor: {
  1301                                      name: "U SER,PANORA MA",
  1302                                      duz: {
  1303                                          "9E7 A": "10000 000255"
  1304                                      }
  1305                                 },
  1306                                 ti meStamp: " 12/12/2014  11:12PM"
  1307                             }]),
  1308                             modifi ers: []
  1309                         }])
  1310                    }, {
  1311                         value: "pr ocedureGHI ",
  1312                         label: "Pr ocedure GH I",
  1313                         listItems:  new Backb one.Collec tion([{
  1314                             id: "g roup3-proc edure1",
  1315                             label:  "Item 192 34",
  1316                             value:  false,
  1317                             quanti ty: 3,
  1318                             provid er: "",
  1319                             commen ts: new Ba ckbone.Col lection([] ),
  1320                             modifi ers: []
  1321                         }, {
  1322                             id: "g roup3-proc edure2",
  1323                             label:  "Item 342 54",
  1324                             value:  false,
  1325                             quanti ty: 4,
  1326                             provid er: "",
  1327                             commen ts: new Ba ckbone.Col lection([{
  1328                                 co mmentStrin g: "This m ight be a  non-causat ive sympto m",
  1329                                 au thor: {
  1330                                      name: "U SER,PANORA MA",
  1331                                      duz: {
  1332                                          "9E7 A": "10000 000255"
  1333                                      }
  1334                                 },
  1335                                 ti meStamp: " 12/12/2014  11:12PM"
  1336                             }]),
  1337                             modifi ers: []
  1338                         }])
  1339                    }])
  1340                });
  1341                var work flowOption s = {
  1342                    size : "large",
  1343                    titl e: "Encoun ter Form f or Eight,  Patient (M M dd, YYYY  @00:00)",
  1344                    show Progress:  false,
  1345                    keyb oard: true ,
  1346                    step s: [{
  1347                         view: form View,
  1348                         viewModel:  formModel ,
  1349                         stepTitle:  'Step 1'
  1350                    }]
  1351                };
  1352                var work flow = new  ADK.UI.Wo rkflow(wor kflowOptio ns);
  1353                workflow .show();
  1354                // ***** ********** ********** ********** ********** ** END OF  MODEL AND  WORKFLOW I NSTANCE ** ********** ********** *
  1355           }
  1356       };
  1357       return  F413;
  1358   });