Sorry if this is a double post.  Getting error with some files posting 
using RBTools.  Java files seem to work fine.  I use something called Mirth 
Connect which generates XML files as code.  Basically when RBT tries to 
upload the diff it fails with the 105 error.  Attached is the diff.

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
>>> RBTools 0.7.4
>>> Python 2.7.5 (default, Mar  9 2014, 22:15:05) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]
>>> Running on Darwin-13.4.0-x86_64-i386-64bit
>>> Home = /Users/rdejournett
>>> Current directory = /Users/rdejournett/mfss-rcm-mirth
>>> Running: git version
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Running: git config core.bare
>>> Running: git rev-parse --show-toplevel
>>> Running: git symbolic-ref -q HEAD
>>> Running: git config --get branch.RCMSTATE-763.merge
>>> Running: git config --get branch.RCMSTATE-763.remote
>>> Running: git config --get remote.origin.url
>>> repository info: Path: g...@bitbucket.org:mfgit/mfss-rcm-mirth.git, Base path: , Supports changesets: False
>>> Making HTTP GET request to https://rb.dev.medfusion.net/api/
>>> Running: git rev-parse b269f02
>>> Running: git rev-parse b269f02b7feddcba1b53c9e9f6093e7b50374208^
>>> Running: git merge-base 84d258f5e9aa911bf55a048ab6b968bca91098cb origin/development
>>> Running: git rev-parse --git-dir
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff --no-color --full-index --ignore-submodules -M --no-ext-diff 84d258f5e9aa911bf55a048ab6b968bca91098cb..b269f02b7feddcba1b53c9e9f6093e7b50374208
>>> Making HTTP GET request to https://rb.dev.medfusion.net/api/review-requests/5098/?only-links=diffs%2Cdraft&only-fields=absolute_url%2Cbugs_closed%2Cid%2Cstatus
>>> Making HTTP GET request to https://rb.dev.medfusion.net/api/review-requests/5098/diffs/?only-fields=
>>> Making HTTP POST request to https://rb.dev.medfusion.net/api/review-requests/5098/diffs/
>>> Got API Error 105 (HTTP code 400): One or more fields had errors
>>> Error data: {u'fields': {u'path': [u'Not Found']}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors', u'code': 105}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 8, in <module>
    load_entry_point('RBTools==0.7.4', 'console_scripts', 'rbt')()
  File "/Library/Python/2.7/site-packages/RBTools-0.7.4-py2.7.egg/rbtools/commands/main.py", line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/Library/Python/2.7/site-packages/RBTools-0.7.4-py2.7.egg/rbtools/commands/__init__.py", line 612, in run_from_argv
    exit_code = self.main(*args) or 0
  File "/Library/Python/2.7/site-packages/RBTools-0.7.4-py2.7.egg/rbtools/commands/post.py", line 799, in main
    base_dir=base_dir)
  File "/Library/Python/2.7/site-packages/RBTools-0.7.4-py2.7.egg/rbtools/commands/post.py", line 481, in post_request
    raise CommandError(u'\n'.join(error_msg))
rbtools.commands.CommandError: Error uploading diff


diff --git a/mfss-rcm-mirth-core/pom.xml b/mfss-rcm-mirth-core/pom.xml
index a90ed7ac3b983670edb3c0068b071df6a57cd48f..88f626bb3bba3c95d1882dd75d5799579251e16b 100644
--- a/mfss-rcm-mirth-core/pom.xml
+++ b/mfss-rcm-mirth-core/pom.xml
@@ -53,7 +53,41 @@
 				<artifactId>maven-jar-plugin</artifactId>
 				<version>2.6</version>
 				<configuration>
-					<outputDirectory>${parent.dir}</outputDirectory>
+					<outputDirectory>../deploy/custom-lib/Estatements</outputDirectory>
+				</configuration>
+			</plugin>
+			
+						<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-clean-plugin</artifactId>
+				<version>3.0.0</version>
+<!-- 				<executions>
+					<execution>
+						<id>auto-clean</id>
+						<phase>initialize</phase>
+						<goals>
+							<goal>clean</goal>
+						</goals>
+					</execution>
+				</executions>  -->
+				<configuration>
+					<filesets>
+						<fileset>
+							<directory>../deploy/custom-lib/Estatements</directory>
+							<includes>
+								<include>*.jar</include>
+							</includes>
+							<followSymlinks>true</followSymlinks>
+						</fileset>
+						<fileset>
+							<directory>deploy</directory>
+							<includes>
+								<include>*</include>
+							</includes>
+							<followSymlinks>true</followSymlinks>
+						</fileset>
+
+					</filesets>
 				</configuration>
 			</plugin>
 		</plugins>
diff --git a/mfss-rcm-mirth-core/src/main/java/com/medfusion/estatement/ge/ProcessGE.java b/mfss-rcm-mirth-core/src/main/java/com/medfusion/estatement/ge/ProcessGE.java
index 3c6091fa9105c3b6f879008f0314e969fd8ab2fd..f19b9292f857f2187b5f4776d16f8e2ac2e76a86 100644
--- a/mfss-rcm-mirth-core/src/main/java/com/medfusion/estatement/ge/ProcessGE.java
+++ b/mfss-rcm-mirth-core/src/main/java/com/medfusion/estatement/ge/ProcessGE.java
@@ -3,6 +3,7 @@ package com.medfusion.estatement.ge;
 import java.io.StringReader;
 import java.math.BigDecimal;
 import java.util.ArrayList;
+import java.util.Calendar;
 import java.util.List;
 import java.util.UUID;
 
@@ -40,7 +41,7 @@ public class ProcessGE {
 		//TODO Pradeep to research
 	}
 
-	public String ESTtoXML(String est, String filename, boolean useInsAging) {
+	public String ESTtoXML(String est, String filename, boolean useInsAging, float dateDiff) {
 		// given the eStatement, return DOM qualified XML
 		// probably should send as a XML document??  or convert the string back to XML (but performance cost)
 		// once we have XML version of the GE data, loop through it by row then process it
@@ -53,7 +54,7 @@ public class ProcessGE {
 				// here process the file and get the needed objects
 				Delimited delimited = GenerateGEObject(est); // get object from inbound xml
 
-				statement = GetStatementInfo(delimited, filename, statement);
+				statement = GetStatementInfo(delimited, filename, statement, dateDiff);
 				statement = GetGuarantorInfo(delimited, statement);
 				statement = GetAgings(delimited, statement);
 				statement = GetEncounters(delimited, statement);
@@ -77,7 +78,7 @@ public class ProcessGE {
 
 	}
 
-	public Statement ESTtoObject(String est, String filename, boolean useInsAging) throws JAXBException {
+	public Statement ESTtoObject(String est, String filename, boolean useInsAging, float dateDiff) throws JAXBException {
 		// given the eStatement, return statements object
 
 
@@ -86,7 +87,7 @@ public class ProcessGE {
 
 		// here process the file and get the needed objects
 		Delimited delimited = GenerateGEObject(est); // get object from inbound xml
-		statement = GetStatementInfo(delimited, filename, statement);
+		statement = GetStatementInfo(delimited, filename, statement, dateDiff);
 		statement = GetGuarantorInfo(delimited, statement);
 		statement = GetAgings(delimited, statement);
 		statement = GetEncounters(delimited, statement);
@@ -102,7 +103,7 @@ public class ProcessGE {
 	}
 
 
-	private Statement GetStatementInfo(Delimited delimited, String filename, Statement statement) {
+	private Statement GetStatementInfo(Delimited delimited, String filename, Statement statement, float dateDiff) {
 
 
 		for (Row row : delimited.row) {
@@ -112,7 +113,10 @@ public class ProcessGE {
 				statement.setStatementBillingAccountNumber(row.getColumn40()); // now patient id - was guar id (1)
 				statement.setPracticePatientId(row.getColumn40()); // mrn / patient id
 				statement.setStatementDate( Helper.StringtoCalendar(row.getColumn39(), "MM/dd/yy hh:mm"));
-				statement.setPaymentDueDate(statement.getStatementDate()); // we would need to figure this out
+				int dateDiffint = Math.round(dateDiff);
+				Calendar c = statement.getStatementDate();
+				c.add(Calendar.DATE, dateDiffint);
+				statement.setPaymentDueDate(c);
 				statement.setStatementFormat(StatementFormatEnum.FORMAT_1);
 				statement.setFileId(filename);
 			}
diff --git a/mfss-rcm-mirth-core/src/test/java/com/medfusion/estatementm/ge/ProcessGETest.java b/mfss-rcm-mirth-core/src/test/java/com/medfusion/estatementm/ge/ProcessGETest.java
index 39f1e61f56b5b70edb13caee5075537affbdbc4c..a626589c18d2c29cec57ee3ef24081c52e033b98 100644
--- a/mfss-rcm-mirth-core/src/test/java/com/medfusion/estatementm/ge/ProcessGETest.java
+++ b/mfss-rcm-mirth-core/src/test/java/com/medfusion/estatementm/ge/ProcessGETest.java
@@ -14,7 +14,7 @@ public class ProcessGETest {
 		try {
 			String est = ReadJson.ReadFile("/app/mirth/UnitTests/GEinput.xml");
 			ProcessGE p = new ProcessGE();
-			String xml = p.ESTtoXML(est, "filename", true);
+			String xml = p.ESTtoXML(est, "filename", true, 60);
 		} catch (Exception e) {
 			e.printStackTrace();
 			fail();
diff --git a/mirth/CG1-1 Traffic Cop.xml b/mirth/CG1-1 Traffic Cop.xml
index a0604fd8e2776ae07f39eaaae3afd5a237b881b9..6a518d260e23e183f6e12daf0d4d99b0c05ff130 100644
--- a/mirth/CG1-1 Traffic Cop.xml	
+++ b/mirth/CG1-1 Traffic Cop.xml	
@@ -1,14 +1,14 @@
 <channel version="3.2.1">
-  <id>07e5d485-2c8f-438a-9ef0-740fee420dff</id>
+  <id>5b5be794-5cd6-4c97-be53-e08dcbe01175</id>
   <nextMetaDataId>9</nextMetaDataId>
   <name>CG1-1 Traffic Cop</name>
-  <description>Channel Group 1 Channel 1 version 2.11</description>
+  <description>Channel Group 1 Channel 1 version 2.2.0</description>
   <enabled>true</enabled>
   <lastModified>
-    <time>1449176492049</time>
+    <time>1449510528386</time>
     <timezone>America/New_York</timezone>
   </lastModified>
-  <revision>38</revision>
+  <revision>14</revision>
   <sourceConnector version="3.2.1">
     <metaDataId>0</metaDataId>
     <name>sourceConnector</name>
@@ -62,8 +62,8 @@
       <errorResponseAction>AFTER_PROCESSING</errorResponseAction>
       <errorMoveToDirectory>/mirth/error</errorMoveToDirectory>
       <errorMoveToFileName></errorMoveToFileName>
-      <checkFileAge>true</checkFileAge>
-      <fileAge>10000</fileAge>
+      <checkFileAge>false</checkFileAge>
+      <fileAge>1000</fileAge>
       <fileSizeMinimum>0</fileSizeMinimum>
       <fileSizeMaximum></fileSizeMaximum>
       <ignoreFileSizeMaximum>true</ignoreFileSizeMaximum>
@@ -84,37 +84,23 @@
 &#xd;
 //get_client_config(practice_id); // this loads the .config file - passed is the clientID
 globalChannelMap.put(&apos;estatement&apos;, false);
-globalChannelMap.put(&apos;precheck&apos;, false);&#xd;
-var dataType = GetDataTypeFromFilename();
-channelMap.put(&apos;dataType&apos;, dataType);
-var StatementDTTM = GetStatementDTTMFromFilename();
-var mpractice_id = GetMPracticeIDFromFilename();
-var ipractice_id = GetIPracticeIDFromFilename(); // this will be in the filename_format MMDDYYYY_clientID.csv&#xd;
-
-&#xd;
+globalChannelMap.put(&apos;precheck&apos;, false);
+var greenway = false;
+var channel = &quot;&quot;;
+var StatementDTTM = &quot;&quot;;
+var mpractice_id = &quot;&quot;;
+var ipractice_id = &quot;&quot;;
+var SFTP = false;
 
-var channel = &quot;&quot;;&#xd;
-var SFTP = false;&#xd;
-var map = new java.util.HashMap();&#xd;
-&#xd;
-map.put(&apos;StatementDTTM&apos;, StatementDTTM);&#xd;
-map.put(&apos;ipractice_id&apos;, ipractice_id);
-map.put(&apos;mpractice_id&apos;, mpractice_id);&#xd;
-map.put(&apos;originalFilename&apos;, sourceMap.get(&apos;originalFilename&apos;));&#xd;
-&#xd;
-&#xd;
-if (dataType.equals(&quot;est&quot;))  { // est will be of format ipracticeid_batchid_datetime.est
-	var batch_id = mpractice_id;
-	map.put(&apos;batch_id&apos;, batch_id);&#xd;
-}&#xd;
-&#xd;
-//router.routeMessage(channelMap.get(&quot;Channel&quot;), msg);&#xd;
-// need to add clientid&#xd;
+var map = new java.util.HashMap();
 &#xd;
+var dataType = GetDataTypeFromFilename();
+channelMap.put(&apos;dataType&apos;, dataType);
 
 &#xd;
-&#xd;
 if (dataType.equals(&quot;est&quot;))  {
+	var batch_id = mpractice_id;
+	map.put(&apos;batch_id&apos;, batch_id);
 	channelMap.put(&apos;estatement&apos;, true);
 	globalChannelMap.put(&apos;estatement&apos;, true);&#xd;
 	logger.info (&apos;filename is &apos; + sourceMap.get(&apos;originalFilename&apos;));	&#xd;
@@ -134,11 +120,20 @@ else if (dataType.equals(&quot;apt&quot;)) {
 	}&#xd;
 }&#xd;
 
+&#xd;
+&#xd;
+map.put(&apos;StatementDTTM&apos;, StatementDTTM);&#xd;
+map.put(&apos;ipractice_id&apos;, ipractice_id);
+map.put(&apos;mpractice_id&apos;, mpractice_id);&#xd;
+map.put(&apos;originalFilename&apos;, sourceMap.get(&apos;originalFilename&apos;));&#xd;
+
+
 channelMap.put(&apos;StatementDTTM&apos;, StatementDTTM);&#xd;
 channelMap.put(&apos;ipractice_id&apos;, ipractice_id);
 channelMap.put(&apos;mpractice_id&apos;, mpractice_id);&#xd;
 channelMap.put(&apos;channel&apos;, channel);&#xd;
 channelMap.put(&apos;map&apos;, map);
+channelMap.put(&apos;greenway&apos;, greenway);
 
 if (ipractice_id.length &gt; 0)&#xd;
 	globalChannelMap.put(&apos;practice_id&apos;,ipractice_id)
@@ -173,7 +168,11 @@ function FindPracticeTypeForEST() {&#xd;
 	if ( greenwaystr == &apos;start v2&apos;) {&#xd;
 		channel = &quot;CG1-2 Greenway Java&quot;;&#xd;
 		//channelMap.put(&quot;EstatementChannel&quot;, &quot;CG1-2 GE CPS input new model&quot;);&#xd;
-		logger.info(&quot;Found Greenway Estatement file&quot;);&#xd;
+		logger.info(&quot;Found Greenway Estatement file&quot;);
+		var filename = $(&apos;originalFilename&apos;).toString();
+		mpractice_id = filename.substring(0,filename.indexOf(&quot;-&quot;));
+		ipractice_id = &quot;&quot;;
+		greenway = true;&#xd;
 		return true;&#xd;
 	}
 	// Allscripts check
@@ -232,13 +231,23 @@ function GetStatementDTTMFromFilename() {&#xd;
 &#xd;
 function GetDataTypeFromFilename() {&#xd;
 &#xd;
+&#xd;
 	var dataType = &quot;&quot;;&#xd;
 &#xd;
 	var filename = $(&apos;originalFilename&apos;).toString();&#xd;
 	if (filename.indexOf(&quot;.&quot;) &gt; 1) {&#xd;
 		dataType = filename.substring(filename.indexOf(&quot;.&quot;) + 1, filename.indexOf(&quot;.&quot;) + 4);&#xd;
 	}&#xd;
-&#xd;
+	if (dataType != &quot;apt&quot; &amp;&amp; dataType != &quot;est&quot;) {
+		// see if it&apos;s a greenway file
+		if ( msg.substring(0,8) == &apos;start v2&apos;) {
+			dataType = &quot;est&quot;;
+			channel = &quot;CG1-2 Greenway Java QA&quot;;
+			greenway = true;
+			mpractice_id = filename.substring(0,filename.indexOf(&quot;-&quot;));
+		}&#xd;
+	}
+	
 	return dataType;&#xd;
 }
 
@@ -265,37 +274,23 @@ function GetMPracticeIDFromFilename() {
 &#xd;
 //get_client_config(practice_id); // this loads the .config file - passed is the clientID
 globalChannelMap.put(&apos;estatement&apos;, false);
-globalChannelMap.put(&apos;precheck&apos;, false);&#xd;
-var dataType = GetDataTypeFromFilename();
-channelMap.put(&apos;dataType&apos;, dataType);
-var StatementDTTM = GetStatementDTTMFromFilename();
-var mpractice_id = GetMPracticeIDFromFilename();
-var ipractice_id = GetIPracticeIDFromFilename(); // this will be in the filename_format MMDDYYYY_clientID.csv&#xd;
+globalChannelMap.put(&apos;precheck&apos;, false);
+var greenway = false;
+var channel = &quot;&quot;;
+var StatementDTTM = &quot;&quot;;
+var mpractice_id = &quot;&quot;;
+var ipractice_id = &quot;&quot;;
+var SFTP = false;
 
+var map = new java.util.HashMap();
 &#xd;
+var dataType = GetDataTypeFromFilename();
+channelMap.put(&apos;dataType&apos;, dataType);
 
-var channel = &quot;&quot;;&#xd;
-var SFTP = false;&#xd;
-var map = new java.util.HashMap();&#xd;
-&#xd;
-map.put(&apos;StatementDTTM&apos;, StatementDTTM);&#xd;
-map.put(&apos;ipractice_id&apos;, ipractice_id);
-map.put(&apos;mpractice_id&apos;, mpractice_id);&#xd;
-map.put(&apos;originalFilename&apos;, sourceMap.get(&apos;originalFilename&apos;));&#xd;
-&#xd;
-&#xd;
-if (dataType.equals(&quot;est&quot;))  { // est will be of format ipracticeid_batchid_datetime.est
-	var batch_id = mpractice_id;
-	map.put(&apos;batch_id&apos;, batch_id);&#xd;
-}&#xd;
-&#xd;
-//router.routeMessage(channelMap.get(&quot;Channel&quot;), msg);&#xd;
-// need to add clientid&#xd;
-&#xd;
-
-&#xd;
 &#xd;
 if (dataType.equals(&quot;est&quot;))  {
+	var batch_id = mpractice_id;
+	map.put(&apos;batch_id&apos;, batch_id);
 	channelMap.put(&apos;estatement&apos;, true);
 	globalChannelMap.put(&apos;estatement&apos;, true);&#xd;
 	logger.info (&apos;filename is &apos; + sourceMap.get(&apos;originalFilename&apos;));	&#xd;
@@ -315,11 +310,20 @@ else if (dataType.equals(&quot;apt&quot;)) {
 	}&#xd;
 }&#xd;
 
+&#xd;
+&#xd;
+map.put(&apos;StatementDTTM&apos;, StatementDTTM);&#xd;
+map.put(&apos;ipractice_id&apos;, ipractice_id);
+map.put(&apos;mpractice_id&apos;, mpractice_id);&#xd;
+map.put(&apos;originalFilename&apos;, sourceMap.get(&apos;originalFilename&apos;));&#xd;
+
+
 channelMap.put(&apos;StatementDTTM&apos;, StatementDTTM);&#xd;
 channelMap.put(&apos;ipractice_id&apos;, ipractice_id);
 channelMap.put(&apos;mpractice_id&apos;, mpractice_id);&#xd;
 channelMap.put(&apos;channel&apos;, channel);&#xd;
 channelMap.put(&apos;map&apos;, map);
+channelMap.put(&apos;greenway&apos;, greenway);
 
 if (ipractice_id.length &gt; 0)&#xd;
 	globalChannelMap.put(&apos;practice_id&apos;,ipractice_id)
@@ -354,7 +358,11 @@ function FindPracticeTypeForEST() {&#xd;
 	if ( greenwaystr == &apos;start v2&apos;) {&#xd;
 		channel = &quot;CG1-2 Greenway Java&quot;;&#xd;
 		//channelMap.put(&quot;EstatementChannel&quot;, &quot;CG1-2 GE CPS input new model&quot;);&#xd;
-		logger.info(&quot;Found Greenway Estatement file&quot;);&#xd;
+		logger.info(&quot;Found Greenway Estatement file&quot;);
+		var filename = $(&apos;originalFilename&apos;).toString();
+		mpractice_id = filename.substring(0,filename.indexOf(&quot;-&quot;));
+		ipractice_id = &quot;&quot;;
+		greenway = true;&#xd;
 		return true;&#xd;
 	}
 	// Allscripts check
@@ -413,13 +421,23 @@ function GetStatementDTTMFromFilename() {&#xd;
 &#xd;
 function GetDataTypeFromFilename() {&#xd;
 &#xd;
+&#xd;
 	var dataType = &quot;&quot;;&#xd;
 &#xd;
 	var filename = $(&apos;originalFilename&apos;).toString();&#xd;
 	if (filename.indexOf(&quot;.&quot;) &gt; 1) {&#xd;
 		dataType = filename.substring(filename.indexOf(&quot;.&quot;) + 1, filename.indexOf(&quot;.&quot;) + 4);&#xd;
 	}&#xd;
-&#xd;
+	if (dataType != &quot;apt&quot; &amp;&amp; dataType != &quot;est&quot;) {
+		// see if it&apos;s a greenway file
+		if ( msg.substring(0,8) == &apos;start v2&apos;) {
+			dataType = &quot;est&quot;;
+			channel = &quot;CG1-2 Greenway Java QA&quot;;
+			greenway = true;
+			mpractice_id = filename.substring(0,filename.indexOf(&quot;-&quot;));
+		}&#xd;
+	}
+	
 	return dataType;&#xd;
 }
 
@@ -639,6 +657,40 @@ channelMap.put(&apos;mpractice_id&apos;, mpractice_id);</string>
 return false;</script>
             <operator>NONE</operator>
           </rule>
+          <rule>
+            <sequenceNumber>1</sequenceNumber>
+            <name>Accept message if &quot;$(&apos;greenway&apos;)&quot; equals false</name>
+            <data>
+              <entry>
+                <string>Field</string>
+                <string>$(&apos;greenway&apos;)</string>
+              </entry>
+              <entry>
+                <string>Name</string>
+                <string></string>
+              </entry>
+              <entry>
+                <string>OriginalField</string>
+                <string></string>
+              </entry>
+              <entry>
+                <string>Equals</string>
+                <string>1</string>
+              </entry>
+              <entry>
+                <string>Values</string>
+                <list>
+                  <string>false</string>
+                </list>
+              </entry>
+            </data>
+            <type>Rule Builder</type>
+            <script>if($(&apos;greenway&apos;) == false) {
+	return true;
+}
+return false;</script>
+            <operator>AND</operator>
+          </rule>
         </rules>
       </filter>
       <transportName>HTTP Sender</transportName>
@@ -971,11 +1023,19 @@ var respobj = JSON.parse(resp);
 channelMap.put(&apos;mmid&apos;, respobj.id.toString() );
 
 var useInsAging = respobj.statementOptions.DISPLAYINSAGEBRACKETS.toString();
-
 logger.info(&apos;useInsAging &apos; + useInsAging);
-
 if (useInsAging == &quot;false&quot;)  channelMap.put(&apos;useInsAging&apos;, false);
-else channelMap.put(&apos;useInsAging&apos;, true);</script>
+else channelMap.put(&apos;useInsAging&apos;, true);
+
+var stmtdaysdiff = 0;
+
+try {
+	logger.info(&apos;date from object is &apos; + respobj.statementOptions.STMTDUEDATELEADDAYS);
+	stmtdaysdiff = parseInt(respobj.statementOptions.STMTDUEDATELEADDAYS);
+} catch (e) { logger.error(&apos;Exception in getting Statement DueDate Lead Days&apos; + e) }
+
+logger.info (&apos;stmtdaysdiff is &apos; + stmtdaysdiff);
+channelMap.put(&apos;stmtdaysdiff&apos;, stmtdaysdiff);</script>
             <type>JavaScript</type>
             <data>
               <entry>
@@ -987,11 +1047,19 @@ var respobj = JSON.parse(resp);
 channelMap.put(&apos;mmid&apos;, respobj.id.toString() );
 
 var useInsAging = respobj.statementOptions.DISPLAYINSAGEBRACKETS.toString();
-
 logger.info(&apos;useInsAging &apos; + useInsAging);
-
 if (useInsAging == &quot;false&quot;)  channelMap.put(&apos;useInsAging&apos;, false);
-else channelMap.put(&apos;useInsAging&apos;, true);</string>
+else channelMap.put(&apos;useInsAging&apos;, true);
+
+var stmtdaysdiff = 0;
+
+try {
+	logger.info(&apos;date from object is &apos; + respobj.statementOptions.STMTDUEDATELEADDAYS);
+	stmtdaysdiff = parseInt(respobj.statementOptions.STMTDUEDATELEADDAYS);
+} catch (e) { logger.error(&apos;Exception in getting Statement DueDate Lead Days&apos; + e) }
+
+logger.info (&apos;stmtdaysdiff is &apos; + stmtdaysdiff);
+channelMap.put(&apos;stmtdaysdiff&apos;, stmtdaysdiff);</string>
               </entry>
             </data>
           </step>
@@ -1084,6 +1152,7 @@ if ($(&apos;estatement&apos;)) {
 	map.put(&apos;SendElectronic&apos;, $(&apos;SendElectronic&apos;));
 	map.put(&apos;mmid&apos;, $(&apos;mmid&apos;));
 	map.put(&apos;useInsAging&apos;, $(&apos;useInsAging&apos;));
+	map.put(&apos;stmtdaysdiff&apos;, $(&apos;stmtdaysdiff&apos;));
 
 	router.routeMessage($(&apos;channel&apos;), new RawMessage(connectorMessage.getRawData(), null, map)) ;
 	
@@ -1377,6 +1446,8 @@ return message;
 
 // copies file and changes name
 importPackage(org.apache.commons.io);
+logger.info(&apos;estatement is &apos; + globalChannelMap.get(&apos;estatement&apos;));
+logger.info(&apos;precheck is &apos; + globalChannelMap.get(&apos;precheck&apos;));
 
 if (globalChannelMap.get(&apos;estatement&apos;) == false) return;
 
diff --git a/mirth/CG1-2 GE CPS Java.xml b/mirth/CG1-2 GE CPS Java.xml
index 749900f645c005dc2b06dfe8b52461bf7502c1e5..10797cccaa4b3041f834e2677de9a5a5e1f71ff8 100644
--- a/mirth/CG1-2 GE CPS Java.xml	
+++ b/mirth/CG1-2 GE CPS Java.xml	
@@ -1,14 +1,14 @@
 <channel version="3.2.1">
-  <id>9c07f5df-f4ef-4b0c-a81b-3b74917a068f</id>
+  <id>b0320f00-4e21-4744-bce6-0ba575c19806</id>
   <nextMetaDataId>25</nextMetaDataId>
   <name>CG1-2 GE CPS Java</name>
-  <description>Channel Group 1 Channel 2 version 2.11</description>
+  <description>Channel Group 1 Channel 2 version 2.2.0</description>
   <enabled>true</enabled>
   <lastModified>
-    <time>1449159653047</time>
+    <time>1449511144070</time>
     <timezone>America/New_York</timezone>
   </lastModified>
-  <revision>32</revision>
+  <revision>7</revision>
   <sourceConnector version="3.2.1">
     <metaDataId>0</metaDataId>
     <name>sourceConnector</name>
@@ -54,13 +54,13 @@ if (sourceMap.get(&apos;useInsAging&apos;) == false)
 	useInsAging = false;
 else 
 	useInsAging = true;
-	
+
 var b = new Packages.java.lang.Boolean(sourceMap.get(&apos;useInsAging&apos;));
+
+var stmtdaysdiff = sourceMap.get(&apos;useInsAging&apos;);
+
 var process = new Packages.com.medfusion.estatement.ge.ProcessGE();
-logger.info(&apos;process.ESTtoObject is &apos; + process.ESTtoObject);
-//var statement = process.ESTtoObject(msg, filename);
-logger.info (&apos;useInsAgingis &apos; + sourceMap.get(&apos;useInsAging&apos;));
-var statement = process.ESTtoObject(msg, filename, useInsAging);
+var statement = process.ESTtoObject(msg, filename, useInsAging, stmtdaysdiff);
 
 channelMap.put(&apos;statementobj&apos;, statement);
 channelMap.put(&apos;statementid&apos;, statement.getId());   // the UUID
@@ -81,7 +81,6 @@ else {
 		channelMap.put(&apos;Prod&apos;, true);
 		if (CheckStatementAudit (statement.getPracticeManagementStatementId()))
 			gooddata = false;
-			logger.info(&quot;statement rejected - &quot; + statement.getPracticeManagementStatementId() + &quot;already submitted&quot;);
 	}
 		
 	else {
@@ -125,13 +124,13 @@ if (sourceMap.get(&apos;useInsAging&apos;) == false)
 	useInsAging = false;
 else 
 	useInsAging = true;
-	
+
 var b = new Packages.java.lang.Boolean(sourceMap.get(&apos;useInsAging&apos;));
+
+var stmtdaysdiff = sourceMap.get(&apos;useInsAging&apos;);
+
 var process = new Packages.com.medfusion.estatement.ge.ProcessGE();
-logger.info(&apos;process.ESTtoObject is &apos; + process.ESTtoObject);
-//var statement = process.ESTtoObject(msg, filename);
-logger.info (&apos;useInsAgingis &apos; + sourceMap.get(&apos;useInsAging&apos;));
-var statement = process.ESTtoObject(msg, filename, useInsAging);
+var statement = process.ESTtoObject(msg, filename, useInsAging, stmtdaysdiff);
 
 channelMap.put(&apos;statementobj&apos;, statement);
 channelMap.put(&apos;statementid&apos;, statement.getId());   // the UUID
@@ -152,7 +151,6 @@ else {
 		channelMap.put(&apos;Prod&apos;, true);
 		if (CheckStatementAudit (statement.getPracticeManagementStatementId()))
 			gooddata = false;
-			logger.info(&quot;statement rejected - &quot; + statement.getPracticeManagementStatementId() + &quot;already submitted&quot;);
 	}
 		
 	else {
@@ -442,8 +440,8 @@ return false;</script>
           </com.mirth.connect.plugins.ssl.model.SSLConnectorPluginProperties>
         </pluginProperties>
         <destinationConnectorProperties version="3.2.1">
-          <queueEnabled>true</queueEnabled>
-          <sendFirst>true</sendFirst>
+          <queueEnabled>false</queueEnabled>
+          <sendFirst>false</sendFirst>
           <retryIntervalMillis>10000</retryIntervalMillis>
           <regenerateTemplate>false</regenerateTemplate>
           <retryCount>0</retryCount>
@@ -777,8 +775,8 @@ return false;</script>
           </com.mirth.connect.plugins.ssl.model.SSLConnectorPluginProperties>
         </pluginProperties>
         <destinationConnectorProperties version="3.2.1">
-          <queueEnabled>true</queueEnabled>
-          <sendFirst>true</sendFirst>
+          <queueEnabled>false</queueEnabled>
+          <sendFirst>false</sendFirst>
           <retryIntervalMillis>10000</retryIntervalMillis>
           <regenerateTemplate>false</regenerateTemplate>
           <retryCount>0</retryCount>
diff --git a/pom.xml b/pom.xml
index 58c36c30a15c1d655d0484c8a8643a4b091c7330..c09cb3de58feb9ca5e6b109ec19f1158562428b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
 	<version>${version.mfss-rcm-mirth}</version>
 	<packaging>pom</packaging>
 	<properties>
-		<version.mfss-rcm-mirth>2.2.0</version.mfss-rcm-mirth>
+		<version.mfss-rcm-mirth>2.2.0-SNAPSHOT</version.mfss-rcm-mirth>
 		<version.mirth-common>1.0.0-SNAPSHOT</version.mirth-common>
 		<parent.dir>../deploy/custom-lib/Estatements</parent.dir>
 		<version.rcm>2.0.1</version.rcm>
@@ -22,11 +22,8 @@
 	</modules>
 	<dependencyManagement>
 		<dependencies>
-<!-- 			<dependency>
-				<artifactId>mirth-common</artifactId>
-				<groupId>com.medfusion.mirth</groupId>
-				<version>${version.mirth-common}</version>
-			</dependency> -->
+			<!-- <dependency> <artifactId>mirth-common</artifactId> <groupId>com.medfusion.mirth</groupId> 
+				<version>${version.mirth-common}</version> </dependency> -->
 			<dependency>
 				<groupId>com.medfusion.sharedservices</groupId>
 				<artifactId>mfss-rcm-dto</artifactId>
@@ -82,14 +79,9 @@
 						</goals>
 						<configuration>
 							<artifactItems>
-<!-- 								<artifactItem>
-									<artifactId>mirth-common</artifactId>
-									<groupId>com.medfusion.mirth</groupId>
-									<version>${version.mirth-common}</version>
-									<type>pom</type>
-									<overWrite>true</overWrite>
-									<outputDirectory>${basedir}/deploy</outputDirectory>
-								</artifactItem> -->
+								<!-- <artifactItem> <artifactId>mirth-common</artifactId> <groupId>com.medfusion.mirth</groupId> 
+									<version>${version.mirth-common}</version> <type>pom</type> <overWrite>true</overWrite> 
+									<outputDirectory>${basedir}/deploy</outputDirectory> </artifactItem> -->
 								<artifactItem>
 									<groupId>com.medfusion.sharedservices</groupId>
 									<artifactId>mfss-rcm-dto</artifactId>
@@ -122,6 +114,14 @@
 									<overWrite>true</overWrite>
 									<outputDirectory>${basedir}/deploy/custom-lib/Estatements</outputDirectory>
 								</artifactItem>
+<!-- 								<artifactItem>
+									<groupId>com.medfusion.statements</groupId>
+									<artifactId>mfss-rcm-mirth</artifactId>
+									<version>${version.mfss-rcm-mirth}</version>
+									<type>jar</type>
+									<overWrite>true</overWrite>
+									<outputDirectory>${basedir}/deploy/custom-lib/Estatements</outputDirectory>
+								</artifactItem>	 -->							
 							</artifactItems>
 							<overWriteReleases>false</overWriteReleases>
 							<overWriteSnapshots>true</overWriteSnapshots>
@@ -181,6 +181,9 @@
 				</configuration>
 			</plugin>
 
+
+
+
 		</plugins>
 	</build>
 </project>

Your review request still exists, but the diff is not attached.

https://rb.dev.medfusion.net/r/5098/

Reply via email to