Beispiel #1
0
 public ResponseController(ResponseContext context, HistoryContext contextHistory, LogContext contextLog, StagingContext contextStaging)
 {
     _context        = context;
     _contextHistory = contextHistory;
     _contextLog     = contextLog;
     _contextStaging = contextStaging;
 }
Beispiel #2
0
        public void Setup()
        {
            var options = new DbContextOptionsBuilder <StagingContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionh = new DbContextOptionsBuilder <HistoryContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optione = new DbContextOptionsBuilder <ErrorContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionl = new DbContextOptionsBuilder <LogContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;

            _context        = new StagingContext(options);
            _contextHistory = new HistoryContext(optionh);
            _contextError   = new ErrorContext(optione);
            _contextLog     = new LogContext(optionl);
            List <McpdOutOfNetwork> oons = new List <McpdOutOfNetwork>()
            {
                new McpdOutOfNetwork()
                {
                    McpdOutOfNetworkId = 1,
                    McpdHeaderId       = 1,
                    PlanCode           = "305",
                    Cin                            = "32001379A",
                    OonId                          = "202006010001",
                    RecordType                     = "Original",
                    OonRequestReceivedDate         = "20200601",
                    ReferralRequestReasonIndicator = "Other",
                    OonResolutionStatusIndicator   = "Pending",
                    SpecialistProviderNpi          = "1386758225",
                    ProviderTaxonomy               = "207RC0000X",
                    ServiceLocationAddressLine1    = "100 Test Dr",
                    ServiceLocationCity            = "Los Angeles",
                    ServiceLocationState           = "CA",
                    ServiceLocationZip             = "90101",
                    ServiceLocationCountry         = "US",
                    TradingPartnerCode             = "IEHP"
                },
                new McpdOutOfNetwork()
                {
                    McpdOutOfNetworkId = 2,
                    McpdHeaderId       = 1,
                    PlanCode           = "306",
                    Cin                            = "32001389A",
                    OonId                          = "202006010002",
                    RecordType                     = "Original",
                    OonRequestReceivedDate         = "20200601",
                    ReferralRequestReasonIndicator = "Other",
                    OonResolutionStatusIndicator   = "Pending",
                    SpecialistProviderNpi          = "1861662025",
                    ProviderTaxonomy               = "207RC0000X",
                    ServiceLocationAddressLine1    = "200 Test Dr",
                    ServiceLocationCity            = "Los Angeles",
                    ServiceLocationState           = "CA",
                    ServiceLocationZip             = "90201",
                    ServiceLocationCountry         = "US",
                    TradingPartnerCode             = "IEHP"
                }
            };

            _context.McpdOutOfNetwork.AddRange(oons);
            _oonController = new OonController(_context, _contextHistory, _contextError, _contextLog);
        }
Beispiel #3
0
        public void Setup()
        {
            var options = new DbContextOptionsBuilder <StagingContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionh = new DbContextOptionsBuilder <HistoryContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optione = new DbContextOptionsBuilder <ErrorContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionl = new DbContextOptionsBuilder <LogContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;

            _context        = new StagingContext(options);
            _contextHistory = new HistoryContext(optionh);
            _contextError   = new ErrorContext(optione);
            _contextLog     = new LogContext(optionl);
            List <McpdContinuityOfCare> cocs = new List <McpdContinuityOfCare>()
            {
                new McpdContinuityOfCare()
                {
                    McpdContinuityOfCareId = 1,
                    McpdHeaderId           = 1,
                    PlanCode                = "305",
                    Cin                     = "32001378A",
                    CocId                   = "202007100001",
                    RecordType              = "Original",
                    CocReceivedDate         = "20200501",
                    CocType                 = "Other",
                    BenefitType             = "Emergency",
                    CocDispositionIndicator = "Approved",
                    CocExpirationDate       = "20201231",
                    SubmittingProviderNpi   = "1437335148",
                    CocProviderNpi          = "1205102068",
                    MerExemptionId          = "292092",
                    TradingPartnerCode      = "IEHP"
                },
                new McpdContinuityOfCare()
                {
                    McpdContinuityOfCareId = 2,
                    McpdHeaderId           = 1,
                    PlanCode                = "306",
                    Cin                     = "32001388A",
                    CocId                   = "202007100002",
                    RecordType              = "Original",
                    CocReceivedDate         = "20200501",
                    CocType                 = "Other",
                    BenefitType             = "Emergency",
                    CocDispositionIndicator = "Approved",
                    CocExpirationDate       = "20201231",
                    SubmittingProviderNpi   = "1801270137",
                    CocProviderNpi          = "1720178478",
                    MerExemptionId          = "293093",
                    TradingPartnerCode      = "IEHP"
                }
            };

            _context.McpdContinuityOfCare.AddRange(cocs);
            _cocController = new CocController(_context, _contextHistory, _contextError, _contextLog);
        }
Beispiel #4
0
        public void Setup()
        {
            var options = new DbContextOptionsBuilder <StagingContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionh = new DbContextOptionsBuilder <HistoryContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optione = new DbContextOptionsBuilder <ErrorContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionl = new DbContextOptionsBuilder <LogContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;

            _context        = new StagingContext(options);
            _contextHistory = new HistoryContext(optionh);
            _contextError   = new ErrorContext(optione);
            _contextLog     = new LogContext(optionl);
            List <McpdAppeal> appeals = new List <McpdAppeal>()
            {
                new McpdAppeal()
                {
                    McpdAppealId       = 1,
                    McpdHeaderId       = 1,
                    PlanCode           = "305",
                    Cin                = "32001378A",
                    AppealId           = "305A200627191721",
                    RecordType         = "Original",
                    AppealReceivedDate = "20200302",
                    NoticeOfActionDate = "20200302",
                    AppealType         = "Denied",
                    BenefitType        = "Not Benefit Related",
                    AppealResolutionStatusIndicator = "Resolved in Favor of Plan",
                    AppealResolutionDate            = "20200302",
                    PartiallyOverturnIndicator      = "Not a Partially Overturned Appeal",
                    ExpeditedIndicator = "Expedited",
                    TradingPartnerCode = "IEHP"
                },
                new McpdAppeal()
                {
                    McpdAppealId       = 2,
                    McpdHeaderId       = 1,
                    PlanCode           = "305",
                    Cin                = "32001379A",
                    AppealId           = "305A200633680331",
                    RecordType         = "Original",
                    AppealReceivedDate = "20200303",
                    NoticeOfActionDate = "20200304",
                    AppealType         = "Denied",
                    BenefitType        = "Emergency",
                    AppealResolutionStatusIndicator = "Resolved in Favor of Member",
                    AppealResolutionDate            = "20200304",
                    PartiallyOverturnIndicator      = "Partially Overturned Appeal",
                    ExpeditedIndicator = "Expedited",
                    TradingPartnerCode = "IEHP"
                }
            };

            _context.Appeals.AddRange(appeals);
            _appealController = new AppealController(_context, _contextHistory, _contextError, _contextLog);
        }
Beispiel #5
0
        public void Setup()
        {
            var optionr = new DbContextOptionsBuilder <ResponseContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionh = new DbContextOptionsBuilder <HistoryContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionl = new DbContextOptionsBuilder <LogContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var options = new DbContextOptionsBuilder <StagingContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;

            _context            = new ResponseContext(optionr);
            _contextHistory     = new HistoryContext(optionh);
            _contextLog         = new LogContext(optionl);
            _contextStaging     = new StagingContext(options);
            _responseController = new ResponseController(_context, _contextHistory, _contextLog, _contextStaging);
        }
Beispiel #6
0
        public void Setup()
        {
            var options = new DbContextOptionsBuilder <StagingContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionh = new DbContextOptionsBuilder <HistoryContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optione = new DbContextOptionsBuilder <ErrorContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionl = new DbContextOptionsBuilder <LogContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;

            _context        = new StagingContext(options);
            _contextHistory = new HistoryContext(optionh);
            _contextError   = new ErrorContext(optione);
            _contextLog     = new LogContext(optionl);
            _jsonController = new JsonController(_context, _contextHistory, _contextError, _contextLog);
        }
Beispiel #7
0
        public void Setup()
        {
            var options = new DbContextOptionsBuilder <StagingContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionh = new DbContextOptionsBuilder <HistoryContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optione = new DbContextOptionsBuilder <ErrorContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionl = new DbContextOptionsBuilder <LogContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;

            _context        = new StagingContext(options);
            _contextHistory = new HistoryContext(optionh);
            _contextError   = new ErrorContext(optione);
            _contextLog     = new LogContext(optionl);
            List <McpdGrievance> grievances = new List <McpdGrievance>()
            {
                new McpdGrievance()
                {
                    McpdGrievanceId       = 2,
                    McpdHeaderId          = 1,
                    PlanCode              = "305",
                    Cin                   = "32001378A",
                    GrievanceId           = "305G200646311091",
                    RecordType            = "Original",
                    GrievanceReceivedDate = "20200303",
                    GrievanceType         = "Case Management / Care Coordination",
                    BenefitType           = "Palliative Care",
                    ExemptIndicator       = "Not Exempt",
                    TradingPartnerCode    = "IEHP"
                },
                new McpdGrievance()
                {
                    McpdGrievanceId       = 3,
                    McpdHeaderId          = 1,
                    PlanCode              = "305",
                    Cin                   = "32001379A",
                    GrievanceId           = "305G200633523111",
                    RecordType            = "Original",
                    GrievanceReceivedDate = "20200302",
                    GrievanceType         = "Physical Access",
                    BenefitType           = "Outpatient Physical Health",
                    ExemptIndicator       = "Not Exempt",
                    TradingPartnerCode    = "IEHP"
                }
            };

            _context.Grievances.AddRange(grievances);
            _grievanceController = new GrievanceController(_context, _contextHistory, _contextError, _contextLog);
        }
Beispiel #8
0
    private static IProcessResult RunFileServer(ProjectParams Params, string ServerLogFile, string AdditionalCommandLine)
    {
#if false
        // this section of code would provide UFS with a more accurate file mapping
        var SC = new StagingContext(Params, false);
        CreateStagingManifest(SC);
        MaybeConvertToLowerCase(Params, SC);
        var UnrealFileServerResponseFile = new List <string>();

        foreach (var Pair in SC.UFSStagingFiles)
        {
            string Src  = Pair.Key;
            string Dest = Pair.Value;

            Dest = CombinePaths(PathSeparator.Slash, SC.UnrealFileServerInternalRoot, Dest);

            UnrealFileServerResponseFile.Add("\"" + Src + "\" \"" + Dest + "\"");
        }


        string UnrealFileServerResponseFileName = CombinePaths(CmdEnv.LogFolder, "UnrealFileServerList.txt");
        File.WriteAllLines(UnrealFileServerResponseFileName, UnrealFileServerResponseFile);
#endif
        var UnrealFileServerExe = HostPlatform.Current.GetUE4ExePath("UnrealFileServer.exe");

        Log("Running UnrealFileServer *******");
        var Args = String.Format("{0} -abslog={1} -unattended -CrashForUAT -log {2}",
                                 CommandUtils.MakePathSafeToUseWithCommandLine(Params.RawProjectPath.FullName),
                                 CommandUtils.MakePathSafeToUseWithCommandLine(ServerLogFile),
                                 AdditionalCommandLine);
        if (IsBuildMachine)
        {
            Args += " -buildmachine";
        }
        PushDir(Path.GetDirectoryName(UnrealFileServerExe));
        var Result = Run(UnrealFileServerExe, Args, null, ERunOptions.AllowSpew | ERunOptions.NoWaitForExit | ERunOptions.AppMustExist | ERunOptions.NoStdOutRedirect);
        PopDir();
        return(Result);
    }
Beispiel #9
0
        public void Setup()
        {
            var options = new DbContextOptionsBuilder <StagingContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionh = new DbContextOptionsBuilder <HistoryContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optione = new DbContextOptionsBuilder <ErrorContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;
            var optionl = new DbContextOptionsBuilder <LogContext>().UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString()).Options;

            _context        = new StagingContext(options);
            _contextHistory = new HistoryContext(optionh);
            _contextError   = new ErrorContext(optione);
            _contextLog     = new LogContext(optionl);
            List <PcpAssignment> pcpas = new List <PcpAssignment>()
            {
                new PcpAssignment()
                {
                    PcpAssignmentId    = 1,
                    PcpHeaderId        = 1,
                    PlanCode           = "305",
                    Cin                = "32001378A",
                    Npi                = "1205940145",
                    TradingPartnerCode = "IEHP"
                },
                new PcpAssignment()
                {
                    PcpAssignmentId    = 2,
                    PcpHeaderId        = 1,
                    PlanCode           = "305",
                    Cin                = "32001379A",
                    Npi                = "1356455299",
                    TradingPartnerCode = "IEHP"
                }
            };

            _context.PcpAssignments.AddRange(pcpas);
            _pcpaController = new PcpaController(_context, _contextHistory, _contextError, _contextLog);
        }
	private static ProcessResult RunFileServer(ProjectParams Params, string ServerLogFile, string AdditionalCommandLine)
	{
#if false
		// this section of code would provide UFS with a more accurate file mapping
		var SC = new StagingContext(Params, false);
		CreateStagingManifest(SC);
		MaybeConvertToLowerCase(Params, SC);
		var UnrealFileServerResponseFile = new List<string>();

		foreach (var Pair in SC.UFSStagingFiles)
		{
			string Src = Pair.Key;
			string Dest = Pair.Value;

			Dest = CombinePaths(PathSeparator.Slash, SC.UnrealFileServerInternalRoot, Dest);

			UnrealFileServerResponseFile.Add("\"" + Src + "\" \"" + Dest + "\"");
		}


		string UnrealFileServerResponseFileName = CombinePaths(CmdEnv.LogFolder, "UnrealFileServerList.txt");
		File.WriteAllLines(UnrealFileServerResponseFileName, UnrealFileServerResponseFile);
#endif
		var UnrealFileServerExe = HostPlatform.Current.GetUE4ExePath("UnrealFileServer.exe");

		LogConsole("Running UnrealFileServer *******");
		var Args = String.Format("{0} -abslog={1} -unattended -CrashForUAT -FORCELOGFLUSH -log {2}",
						CommandUtils.MakePathSafeToUseWithCommandLine(Params.RawProjectPath),
						CommandUtils.MakePathSafeToUseWithCommandLine(ServerLogFile),
						AdditionalCommandLine);
		if (IsBuildMachine)
		{
			Args += " -buildmachine";
		}
		PushDir(Path.GetDirectoryName(UnrealFileServerExe));
		var Result = Run(UnrealFileServerExe, Args, null, ERunOptions.AllowSpew | ERunOptions.NoWaitForExit | ERunOptions.AppMustExist | ERunOptions.NoStdOutRedirect);
		PopDir();
		return Result;
	}