Skip to content

Instantly share code, notes, and snippets.

// get the jar files from github and include them as dependencies
importPackage(com.microsoft.azure.storage.*);
importPackage(com.microsoft.azure.storage.file.*);
// Configure the connection-string with your values
SERVER_NAME = "resource111111";
ACCOUNT_KEY = "verylonggibberishstring";
SHARE_NAME = "rootshare";//rootdirectory on your server
storageConnectionString =
"DefaultEndpointsProtocol=http;" +
/*
{
"action": "add_billed_code",
"tenantCode": "ACH",
"encounterList": [{
"encounterNumber": "3678754",
"mrn": "000645230",
"codeList": [{
"type": "Secondary",
"statusCode": "Original",
library(RCurl)
library(magrittr)
library(rvest)
library(data.table)
matchids<-c("62605","62616","62617","62618","62638","62639","62640","62662","62663","62664","62676","62677","62678","62679","62680","62690","62691","62692","62693","62694","62725","62726","62727","62728","62729","62737","62738","62739","62740","62741","62742","62743","62744","62745","62751","62752","62753","62754","62755","62782","62783","62784","62785","62786","62802","62803","62804","62805","62806","62817","62818","62819","62845","62846","62847","62848","62849","62860","62861","62862","62863","62864","62868","62869","62870","62871","62872","62883","62884","62885","62886","62887","62901","62902","62903","62904","62905","62911","62912","62913","62914","62915","62939","62940","62941","62942","62943","62952","62953","62954","62965","62966","62967","62968","62996","62997","62998","63004","63005","63006","63010","63011","63012","63013","63019","63020","63021","63022","63045","63046","63047","63051","63052","63053","63054","63055","63066","63067"
// Mirth JS Split
var line;
var message = '';
while (line = reader.readLine()) {
message += line + '\r\n'; // 1 to N
try {
reader.mark(1); //Looks ahead
var nextline = reader.readLine();
if(nextline==null) break;