Value | \r\nTarget | \r\n\r\n \r\n \r\n \r\n \r\n | \r\n
---|---|---|
\r\n \r\n \r\n | \r\n \r\n {{row.target[0]}}\r\n | \r\n\r\n \r\n \r\n \r\n | \r\n
Sample | \r\nSource | \r\n\r\n Target\r\n \r\n \r\n \r\n \r\n | \r\n \r\n |
---|---|---|---|
{{row.sourceExample}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n | \r\n \r\n {{row.source}} \r\n \r\n \r\n {{item.key}} \r\n \r\n \r\n {{item.key}} \r\n | \r\n \r\n {{row.target[0]}} \r\n \r\n \r\n {{item.value}} \r\n \r\n \r\n {{item.value}} \r\n \r\n {{ getScriptResult(row) }}\r\n \r\n | \r\n \r\n \r\n \r\n \r\n | \r\n
{{localMapping.mappingType}} Unmapped Columns ({{unmappedColumns.length}}) | \r\n \r\n\r\n
---|
\r\n {{row}} \r\n | \r\n
\r\n Sheet Name \r\n | \r\n # rows | \r\n
---|---|
\r\n {{row.name}} \r\n | \r\n {{row.rows}} | \r\n
TOTAL | \r\n{{getTotal(fileSheets)}} | \r\n
\r\n function (sourceRows) {\r\n \r\n } // needs to return an array of sourceRows\r\n
\r\n\r\n function (mappedRows) {\r\n \r\n } // needs to return an array of mappedRows\r\n
\r\n\r\n
\r\n \r\nParams:\r\n array - The array you want to shuffle\r\nReturns:\r\n A shuffled version of your array\r\nExample:\r\nlet list = [{ PatientNumber: '1', Coder: 'John' },{ PatientNumber: '2', Coder: 'John' }, { PatientNumber: '3', Coder: 'John' }]\r\nlet shuffled = utils.shuffle(list)\r\n// shuffled is now randomly sorted\r\n
\r\n
\r\n
\r\n \r\nParams:\r\n sourceList - The source array that you want to randomly sample from\r\n sampleByPropertyName - The name of the field to group by, e.g., 'Coder'\r\n sampleSize - The target number of samples per group, e.g., 10 for 10 per 'Coder'\r\nReturns:\r\n A sampled version of your original array, which may contain full samples if there were enough records, but may only contain partial samples.\r\n For example, if John only had 3 records but your sample size as 10, only 3 records will be returned.\r\nExample:\r\nlet list = [{ PatientNumber: '1', Coder: 'John' },{ PatientNumber: '2', Coder: 'John' }, { PatientNumber: '3', Coder: 'John' }]\r\nlet sample = utils.takeSample(list, 'Coder', 10)\r\n// sample is now a randomly sampled sub-list\r\n
\r\n
\r\n
\r\n \r\nParams:\r\n sourceList - The source array that you want to group\r\n propertyName - The name of the field to group by\r\nReturns:\r\n A unique list of the propertyName, e.g., Coders\r\nExample:\r\nlet list = [{ PatientNumber: '1', Coder: 'John' },{ PatientNumber: '2', Coder: 'John' }, { PatientNumber: '3', Coder: 'John' }, { PatientNumber: '4', Coder: 'James' } ]\r\nlet groupedList = utils.getGroupedList(list, 'Coder')\r\n// groupedList is now ['John', 'James']\r\n
\r\n
\r\n \r\nParams:\r\n sourceList - The source array that you want to summarize\r\n propertyName - The name of the field to group by\r\n groupedList - a list of unique names (use this if you need to show 0's, e.g., if you already filtered the list for Medicare or EM codes, etc)\r\nReturns:\r\n A summary of counts within each group\r\nExample:\r\nlet list = [{ PatientNumber: '1', Coder: 'John' },{ PatientNumber: '2', Coder: 'John' }, { PatientNumber: '3', Coder: 'John' }, { PatientNumber: '4', Coder: 'James' } ]\r\nlet groupedList = utils.getSummary(list, 'Coder')\r\n// John 3\r\n// James 1\r\n
\r\n
\r\n \r\nParams:\r\n alreadySampledList - The sample you already created\r\n backupList - The backup list (e.g., 2nd priority list) you want to get additional samples from\r\n sampleByPropertyName - The name of the field to group by, e.g., 'Coder',\r\n sampleSize - The sample size you want to get each group up to\r\nReturns:\r\n An updated version of the originally sampled list with additional samples. Use this method when you need to get additional samples if the first pass did not produce enough samples.\r\nExample:\r\nlet list = [{ PatientNumber: '1', Coder: 'John', Payor: 'MCR' },{ PatientNumber: '2', Coder: 'John', Payor: 'MCR' }, { PatientNumber: '3', Coder: 'John', Payor: 'MCR' }]\r\nlet sample = utils.sample(list, 'Coder', 5)\r\n// John now has 3 samples, but we want 5\r\n\r\nlet backupList = [{ PatientNumber: '1', Coder: 'John', Payor: 'BCBS' },{ PatientNumber: '2', Coder: 'John', Payor: 'BCBS' }, { PatientNumber: '3', Coder: 'John', Payor: 'BCBS'}]\r\nsample = utils.addToSample(sample, backupList, 'Coder', 5)\r\n// John now has 5 samples\r\n
\r\n
\r\n \r\nParams:\r\n row - The pulllist row to test\r\nReturns:\r\n True/False based on the presence of an EM Code for that row. This is meant to be used as a mappedRows filter.\r\nExample:\r\nlet emRecords = mappedRows.filter(x => utils.hasEMCode(row))\r\n// emRecords now contains only records with EM Codes and can be sent to takeSample\r\n
\r\n
\r\n \r\nParams:\r\n row - The pulllist row to test\r\nReturns:\r\n True/False based on the presence of a Surgical CPT for that row. This is meant to be used as a mappedRows filter.\r\nExample:\r\nlet surgRecords = mappedRows.filter(x => utils.hasSurgicalCptCode(row))\r\n// surgRecords now contains only records with Surgical CPT codes and can be sent to takeSample\r\n
\r\n {{item.key}} \r\n | \r\n
---|
\r\n {{item.value}} \r\n | \r\n
\r\n {{item.key}} \r\n | \r\n
---|
\r\n {{item.value}} \r\n | \r\n
\r\n function (sourceValue, row) {\r\n \r\n }\r\n
\r\n\r\n\r\n {{item}} \r\n | \r\n
---|
\r\n {{dialogData.script ? getScriptResult(dialogData) : dialogData.sourceExample}} \r\n | \r\n