77b65bea-e766-4e3c-a1ed-c4c2534b6019
true
D0001-SQL-11.sdt.local
jazz dev master Prod
true
<ProgramFilesX64>\Microsoft SDKs\Azure\.NET SDK\v2.9\bin\plugins\Diagnostics\Newtonsoft.Json.dll
Amazon.Lambda.S3Events
AWSSDK.Core
AWSSDK.S3
Amazon
Amazon.Auth.AccessControlPolicy
Amazon.Auth.AccessControlPolicy.ActionIdentifiers
Amazon.Internal
Amazon.Lambda.S3Events
Amazon.MissingTypes
Amazon.Runtime
Amazon.Runtime.CredentialManagement
Amazon.Runtime.CredentialManagement.Internal
Amazon.Runtime.EventStreams
Amazon.Runtime.EventStreams.Internal
Amazon.Runtime.Internal
Amazon.Runtime.Internal.Auth
Amazon.Runtime.Internal.Settings
Amazon.Runtime.Internal.Transform
Amazon.Runtime.Internal.Util
Amazon.Runtime.SharedInterfaces
Amazon.Runtime.SharedInterfaces.Internal
Amazon.S3
Amazon.S3.Encryption
Amazon.S3.Encryption.Internal
Amazon.S3.Internal
Amazon.S3.IO
Amazon.S3.Model
Amazon.S3.Model.Internal.MarshallTransformations
Amazon.S3.Transfer
Amazon.S3.Util
Amazon.Util
Amazon.Util.Internal
Amazon.Util.Internal.PlatformServices
Newtonsoft.Json
Newtonsoft.Json.Converters
Newtonsoft.Json.Linq
Newtonsoft.Json.Schema
Newtonsoft.Json.Serialization
System
System.Diagnostics
System.Diagnostics.Tracing
System.IO.Compression
ThirdParty.BouncyCastle.Asn1
ThirdParty.BouncyCastle.Asn1.Utilities
ThirdParty.BouncyCastle.Math
ThirdParty.BouncyCastle.OpenSsl
ThirdParty.BouncyCastle.Utilities.IO.Pem
ThirdParty.Ionic.Zlib
ThirdParty.Json.LitJson
ThirdParty.MD5
System.ComponentModel
void Main()
{
var caseTypes = (from fpes in FactPatientEncounterSummaries
join ves in VariationEncounterSavings on fpes.EncounterID equals ves.EncounterID
join vo in VariationOpportunities on ves.OpportunityGUID equals vo.OpportunityGUID
join config in Configurations on vo.ConfigurationGUID equals config.ConfigurationGUID
join cte in CaseTypeEntities on vo.CaseTypeEntityID equals cte.CaseTypeEntityID
join dct in DimCaseTypes on cte.CaseTypeGUID equals dct.MemberGUID
join d in DimMSDRGs on fpes.ReportingDRGID equals d.MSDRGID into da
from e in da.DefaultIfEmpty()
join f in DimAPRDRGs on fpes.APDRGID equals f.APRDRGID into fa
from g in fa.DefaultIfEmpty()
join cpt in DimCPTs on fpes.PrimaryCPTID equals cpt.CPTID into cpta
from ca in cpta.DefaultIfEmpty()
where config.FiscalYearID == 2020
select new
{
vo.ConfigurationGUID,
config.FiscalYearID,
dct.CaseTypeId,
dct.Name,
CCMCCCategory = e.CCMCCCategory ?? "",
SOI = g.APRSOI ?? "",
ROM = g.APRROM ?? "",
CPTCode = ca.CPTCode ?? "",
CaseTypeConfig = JsonConvert.DeserializeObject(dct.CaseTypeConfigJSON)
})
.Distinct()
.Select(t => new
{
t.ConfigurationGUID,
t.FiscalYearID,
t.CaseTypeId,
t.Name,
t.CCMCCCategory,
t.SOI,
t.ROM,
t.CPTCode,
t.CaseTypeConfig.AgeCohortIDInclusions,
t.CaseTypeConfig.PhysicianIDExclusions,
t.CaseTypeConfig.StandardDeviationExcludedTypeEnum,
t.CaseTypeConfig.LengthOfStayThreshold,
t.CaseTypeConfig.SOIROMInclusions,
t.CaseTypeConfig.CCMCCCategories,
t.CaseTypeConfig.CPTCodes,
t.CaseTypeConfig.PatientTypeRollupIDInclusions,
t.CaseTypeConfig.PhysicianMinVolume
})
.OrderBy(t => t.Name);
caseTypes.Dump();
}
// Define other methods and classes here
public const string CCMCCCATEGORY_CC = "CC";
public const string CCMCCCATEGORY_MCC = "MCC";
public const string CCMCCCATEGORY_WO = "W/O";
public const string CCMCCCATEGORY_NA = "N/A";
public const string CCMCCCATEGORY_CCMCC = "CC/MCC";
public enum CCMCCCategoryTypes
{
///
/// No Category
///
[Description("")]
None,
///
/// Complication or Comorbidity
///
[Description(CCMCCCATEGORY_CC)]
CC,
///
/// Major Complication or Comorbidity
///
[Description(CCMCCCATEGORY_MCC)]
MCC,
///
/// Without Complication or Comorbidity OR Major Complication or Comorbidity
///
[Description(CCMCCCATEGORY_WO)]
WO,
///
/// Not Available
///
[Description(CCMCCCATEGORY_NA)]
NA,
///
/// Both Complication or Comorbidity AND Major Complication or Comorbidity
///
[Description(CCMCCCATEGORY_CCMCC)]
CCMCC
}
public class SOIROMInclusion
{
public string SOI { get; }
public string ROM { get; }
public SOIROMInclusion(string soi, string rom)
{
SOI = soi;
ROM = rom;
}
}
public class CaseTypeDRGConfiguration
{
public int PhysicianMinVolume { get; set; }
public List AgeCohortIDInclusions { get; set; }
public List PhysicianIDExclusions { get; set; }
public int StandardDeviationExcludedTypeEnum { get; set; }
public int LengthOfStayThreshold { get; set; }
public List PatientTypeRollupIDInclusions { get; set; }
public List SOIROMInclusions { get; set; }
public HashSet CCMCCCategories { get; set; }
public HashSet CPTCodes { get; set; }
public CaseTypeDRGConfiguration()
{
PhysicianMinVolume = 0;
AgeCohortIDInclusions = new List();
PhysicianIDExclusions = new List();
PatientTypeRollupIDInclusions = new List();
StandardDeviationExcludedTypeEnum = 0;
LengthOfStayThreshold = 0;
CCMCCCategories = new HashSet();
CPTCodes = new HashSet();
}
}