Ejemplo n.º 1
0
 public static LQ_HealthCareRemarkCode Make()
 {
     return(new LQ_HealthCareRemarkCode
     {
         Code_List_Qualifier_Code = "QK",
         Industry_Code = NaturalTextGenerator.GenerateWord()
     });
 }
Ejemplo n.º 2
0
 public static AMT_ServiceSupplementalAmount Make()
 {
     return(new AMT_ServiceSupplementalAmount
     {
         Amount_Qualifier_Code = "SD",
         Monetary_Amount = ExternalRandomGenerator.Instance.AsDecimal(),
         Credit_Debit_Flag_Code = NaturalTextGenerator.GenerateWord()
     });
 }
Ejemplo n.º 3
0
 public static REF_AdditionalPartyIdentification Make()
 {
     return(new REF_AdditionalPartyIdentification
     {
         Reference_Identification_Qualifier = "QU",
         Reference_Identification = NaturalTextGenerator.GenerateWord(),
         Description = NaturalTextGenerator.Generate(70),
         Description2 = NaturalTextGenerator.Generate(30)
     });
 }
Ejemplo n.º 4
0
 public static REF_Identification Make()
 {
     return(new REF_Identification
     {
         Reference_Identification_Qualifier = "RF",
         Reference_Identification = NaturalTextGenerator.GenerateWord(),
         Description = NaturalTextGenerator.Generate(50),
         Description2 = NaturalTextGenerator.Generate(20)
     });
 }
Ejemplo n.º 5
0
 public static TRN_ReassociationTraceNumber Make()
 {
     return(new TRN_ReassociationTraceNumber
     {
         Trace_Type_Code = "TT",
         Reference_Identification = NaturalTextGenerator.GenerateWord(),
         Originatin_Company_Identifier = NaturalTextGenerator.GenerateWord(),
         Reference_Identification2 = NaturalTextGenerator.GenerateWord()
     });
 }
Ejemplo n.º 6
0
 public static AccoungInfo Make()
 {
     return(new AccoungInfo
     {
         Account_Number = NaturalTextGenerator.GenerateWord(),
         Account_Number_Qualifier = "Q",
         DFI_Identification_Number = ExternalRandomGenerator.Instance.NextRandomInteger.ToString(),
         DFI_Number_Qualifier = "Q"
     });
 }
Ejemplo n.º 7
0
 public static RDM_RemittanceDeliveryMethod Make()
 {
     return(new RDM_RemittanceDeliveryMethod
     {
         Report_Transmission_Code = NaturalTextGenerator.GenerateWord(),
         Name = NaturalTextGenerator.GenerateFullName(),
         Communication_Number = NaturalTextGenerator.GenerateEMail(),
         Info1 = NaturalTextGenerator.Generate(50),
         Info2 = NaturalTextGenerator.Generate(20)
     });
 }
Ejemplo n.º 8
0
 public override FakeRow Populate(GDID parentGdid)
 {
     ID         = parentGdid;
     Name       = NaturalTextGenerator.GenerateWord(5, 8) + NaturalTextGenerator.GenerateWord(5, 8) + ".txt";
     FullName   = $@"c:\{NaturalTextGenerator.GenerateWord(5, 12)}\{NaturalTextGenerator.GenerateWord(3, 8)}\{Name}";
     Host       = $"127.0.0.{Ambient.Random.NextScaledRandomInteger(1, 20)}";
     FileId     = Guid.NewGuid();
     CreateDate = DateTime.Now.AddHours(Ambient.Random.NextScaledRandomInteger(1, 12)).AddMinutes(Ambient.Random.NextScaledRandomInteger(1, 60));
     Length     = Ambient.Random.NextRandomUnsignedLong;
     return(this);
 }
Ejemplo n.º 9
0
 public void GenerateWordSizes(int min, int max)
 {
     for (var i = 0; i < 100; i++)
     {
         var txt = NaturalTextGenerator.GenerateWord(min, max);
         Console.WriteLine(txt);
         Assert.IsTrue(txt.IsNotNullOrWhiteSpace());
         Assert.IsTrue(txt.Length >= min);
         Assert.IsTrue(txt.Length <= max);
     }
 }
Ejemplo n.º 10
0
 public void GenerateDefaultWordSizes()
 {
     for (var i = 0; i < 100; i++)
     {
         var txt = NaturalTextGenerator.GenerateWord();
         Console.WriteLine(txt);
         Assert.IsTrue(txt.IsNotNullOrWhiteSpace());
         Assert.IsTrue(txt.Length >= 4);
         Assert.IsTrue(txt.Length <= 20);
     }
 }
Ejemplo n.º 11
0
 public static N1_PartyIdentification Make()
 {
     return(new N1_PartyIdentification
     {
         Entity_Identifier_Code = "TY",
         Name = NaturalTextGenerator.GenerateFullName(),
         Identification_Code_Qualifier = "CU",
         Identification_Code = NaturalTextGenerator.GenerateWord(),
         Entity_Relationship_Code = NaturalTextGenerator.GenerateWord(),
         Entity_Identifier_Code2 = NaturalTextGenerator.GenerateWord()
     });
 }
Ejemplo n.º 12
0
 public static PER_PartyContactInformation Make()
 {
     return(new PER_PartyContactInformation
     {
         Contact_Function_Code = "RP",
         Name = NaturalTextGenerator.GenerateFirstName(),
         CommunicationNumber1 = CommunicationNumber.Make(),
         CommunicationNumber2 = CommunicationNumber.Make(),
         CommunicationNumber3 = CommunicationNumber.Make(),
         Contact_Inquiry_Reference = NaturalTextGenerator.GenerateWord()
     });
 }
Ejemplo n.º 13
0
 public static SVC_ServicePaymentInformation Make()
 {
     return(new SVC_ServicePaymentInformation
     {
         Qualifier = "SC",
         Monetary_Amount = ExternalRandomGenerator.Instance.AsDecimal(),
         Monetary_Amount2 = ExternalRandomGenerator.Instance.AsDecimal(),
         Product_Service_ID = NaturalTextGenerator.GenerateWord(),
         Quantity = ExternalRandomGenerator.Instance.AsDecimal(),
         Description = NaturalTextGenerator.Generate(),
         Quantity2 = ExternalRandomGenerator.Instance.AsDecimal()
     });
 }
Ejemplo n.º 14
0
        public static PLB_ProviderAdjustment Make()
        {
            var count = ExternalRandomGenerator.Instance.NextScaledRandomInteger(2, 10);
            var temp  = new PLB_ProviderAdjustment
            {
                Reference_Identification = NaturalTextGenerator.GenerateWord(),
                Date = DateTime.Now.ToShortDateString(),
                MonetaryAmountAdjustment  = MonetaryAmountAdjustment.Make(),
                MonetaryAmountAdjustments = new List <MonetaryAmountAdjustment>()
            };

            for (var i = 0; i < count; i++)
            {
                temp.MonetaryAmountAdjustments.Add(MonetaryAmountAdjustment.Make());
            }
            return(temp);
        }
Ejemplo n.º 15
0
 public static PER_ClaimContactInformation Make()
 {
     return(new PER_ClaimContactInformation
     {
         Contact_Function_Code = "CFC",
         Name = NaturalTextGenerator.GenerateFullName(),
         Communication_Number_Qualifier = "DL",
         Communication_Numbers =
             new List <string>
         {
             NaturalTextGenerator.GenerateEMail(),
             NaturalTextGenerator.GenerateEMail(),
             NaturalTextGenerator.GenerateEMail()
         },
         Contact_Inquiry_Reference = NaturalTextGenerator.GenerateWord()
     });
 }
Ejemplo n.º 16
0
 public static NM1_PartyName Make()
 {
     return(new NM1_PartyName
     {
         Entity_Identifier_Code = "EI",
         Entity_Type_Qualifier = "QQ",
         Name_Last_or_Organization_Name = NaturalTextGenerator.GenerateFullName(),
         Name_First = NaturalTextGenerator.GenerateFirstName(),
         Name_Middle = NaturalTextGenerator.GenerateFirstName(),
         Name_Prefix = "Mrs.",
         Name_Suffix = "Jr",
         Identification_Code_Qualifier = "CQ",
         Identification_Code = NaturalTextGenerator.GenerateWord(),
         Entity_Relationship_Code = NaturalTextGenerator.GenerateWord(),
         Entity_Identifier_Code2 = NaturalTextGenerator.GenerateWord(),
         Name_Last_or_Organization_Name2 = NaturalTextGenerator.GenerateLastName()
     });
 }
Ejemplo n.º 17
0
        public static BPR_FinancialInformation Make()
        {
            var result = new BPR_FinancialInformation
            {
                TransactionHandlingCode               = ExternalRandomGenerator.Instance.NextRandomInteger,
                CreditDebit_Flag_Code                 = ExternalRandomGenerator.Instance.NextRandomInteger,
                Payment_Format_Code                   = "CA",
                AccoungInfo1                          = AccoungInfo.Make(),
                Originating_Company_Identifier        = NaturalTextGenerator.GenerateWord(),
                Originating_Company_Supplemental_Code = "CSC",
                AccoungInfo2                          = AccoungInfo.Make(),
                Date         = DateTime.Now.ToShortDateString(),
                AccoungInfo3 = AccoungInfo.Make()
            };

            //result.CreditDebit_Flag_Code = ExternalRandomGenerator.Instance.AsInt();

            return(result);
        }
Ejemplo n.º 18
0
 public static CLP_ClaimPaymentInformation Make()
 {
     return(new CLP_ClaimPaymentInformation
     {
         Claim_Submitters_Identifier = NaturalTextGenerator.GenerateWord(),
         Claim_Status_Code = NaturalTextGenerator.GenerateWord(),
         Monetary_Amount = ExternalRandomGenerator.Instance.AsDecimal(),
         Monetary_Amount2 = ExternalRandomGenerator.Instance.AsDecimal(),
         Monetary_Amount3 = ExternalRandomGenerator.Instance.AsDecimal(),
         Claim_Filing_Indicator_Code = NaturalTextGenerator.GenerateWord(),
         Reference_Identification = NaturalTextGenerator.GenerateWord(),
         Facility_Code_Value = NaturalTextGenerator.GenerateWord(),
         Claim_Frequency_Type_Code = NaturalTextGenerator.GenerateWord(),
         Patient_Status_Code = NaturalTextGenerator.GenerateWord(),
         Diagnosis_Related_Group_DRG_Code = NaturalTextGenerator.GenerateWord(),
         Quantity = ExternalRandomGenerator.Instance.AsInt().ToString(),
         Percentage_as_Decimal = ExternalRandomGenerator.Instance.AsDecimal(),
         Yes_No_Condition_or_Response_Code = NaturalTextGenerator.GenerateWord()
     });
 }
Ejemplo n.º 19
0
        public override FakeRow Populate(GDID parentGdid)
        {
            var dt = DateTime.Now.AddHours(Ambient.Random.NextScaledRandomInteger(1, 12)).AddMinutes(Ambient.Random.NextScaledRandomInteger(1, 60));

            CARRIER    = $"R{Ambient.Random.NextScaledRandomInteger(100, 300)}";
            MEMBERID   = $"{Ambient.Random.NextScaledRandomInteger(10_0000, 2_000_000) }*{NaturalTextGenerator.GenerateWord(3, 6)}";
            PERSONCODE = parentGdid.ID % 2 == 0 ? (short)1 : (short)Ambient.Random.NextScaledRandomInteger(1, 4);
            FILLDATE   = dt;
            QUANTITY   = parentGdid.ID % 2 == 0 ? 30 : parentGdid.ID % 3 == 0 ? 90 : 60;
            MPAMARK    = parentGdid.ID % 4 == 0 ? "X" : null;
            GROUPID    = Ambient.Random.NextScaledRandomInteger(10_0000, 20_000).ToString();

            COPAYDED = parentGdid.ID % 2 == 0 ? Math.Round(Ambient.Random.NextScaledRandomDouble(1, 5_000), 2) : 0;
            COPAYIG  = parentGdid.ID % 11 == 0 ? Math.Round(Ambient.Random.NextScaledRandomDouble(1, 5_000), 2) : 0;
            COPAYOG  = parentGdid.ID % 10 == 0 ? Math.Round(Ambient.Random.NextScaledRandomDouble(1, 5_000), 2) : 0;
            COPAYUG  = parentGdid.ID % 9 == 0 ? Math.Round(Ambient.Random.NextScaledRandomDouble(1, 5_000), 2) : 0;

            COPAY          = COPAYDED + COPAYIG + COPAYOG + COPAYUG;
            ORIGINALCOPAY  = COPAY;
            ENTEREDDATE    = dt;
            LICS           = Ambient.Random.NextScaledRandomInteger(0, 5);
            LICSLEVEL      = LICS.ToString();
            MONY           = parentGdid.ID % 5 == 0 ? "M" : null;
            BILLDISPFEE    = COPAY.HasValue && COPAY.Value > 50D ? Math.Round(Ambient.Random.NextScaledRandomDouble(1, 5), 2) : default(double?);
            BILLCOST       = COPAY.HasValue ? Math.Round(Ambient.Random.NextScaledRandomDouble(1, COPAY.Value), 2) : default(double?);
            BILLTAX        = parentGdid.ID % 20 == 0 ? Math.Round(Ambient.Random.NextScaledRandomDouble(1, 2), 2) : default(double?);
            SDC            = parentGdid.ID % 50 == 0 ? Ambient.Random.NextScaledRandomInteger(0, 5) > 2 ? "xxxxxxxxxxxxxxx" : "zzzzzz" : null;
            PPP            = SDC.IsNotNullOrWhiteSpace() ? (decimal)Math.Round(Ambient.Random.NextScaledRandomDouble(0, 2), 2) : default(decimal?);
            PTR            = PPP;
            GROUPBILLCOPAY = QUANTITY == 90 ? BILLCOST : null;
            NDC            = Math.Round(Ambient.Random.NextScaledRandomDouble(0, 10_000_000_000), 0).ToString("00000000000");
            DRUGCRITERIA   = parentGdid.ID % 12 == 0 ? "Y" : null;
            AUTHNUMBER     = Math.Round(Ambient.Random.NextScaledRandomDouble(0, 10_000_000_000), 0).ToString("000000000000000");
            REVERSEDAUTH   = parentGdid.ID % 5000 == 0 ? "R" + Math.Round(Ambient.Random.NextScaledRandomDouble(0, 10_000_000_000), 0).ToString("000000000000000") : null;
            TIER           = Ambient.Random.NextScaledRandomInteger(1, 6).ToString();
            LICSDED        = parentGdid.ID % 12 == 0 ? Math.Round(Ambient.Random.NextScaledRandomDouble(1, 5_000), 2) : default(double?);
            LICSIG         = 0;
            LICSOG         = 0;
            LICSUG         = 0;
            PLANPAYDED     = COPAY.HasValue && COPAY.Value > 500 ? Math.Round(Ambient.Random.NextScaledRandomDouble(1, 500), 2) : COPAYDED;
            PLANPAYUG      = COPAYUG;
            PLANPAYIG      = COPAYIG;
            PLANPAYOG      = COPAYOG;
            RXNUMBER       = Math.Abs((long)Ambient.Random.NextRandomUnsignedLong);
            NABP           = Math.Round(Ambient.Random.NextScaledRandomDouble(0, 10_000_000_000), 0).ToString("00000000000");
            OTHERTROOP     = 0;
            //F406 = null;
            SCRIPTTAG = parentGdid.ID % 200 == 0 ? "xxxx" : null;
            //UT004 = null;
            //UT024 = null;
            //UM028 = null;
            SUBGROUP    = GROUPID;
            FORMULARYID = Ambient.Random.NextScaledRandomInteger(2021000, 2021999).ToString();
            //F107 = null;

            ID = parentGdid;

            return(this);
        }