Exemplo n.º 1
0
 public static List <IFieldSpec> GetFieldSpecs(List <Category> BENE_HIC_NUM)
 {
     return(new List <IFieldSpec>()
     {
         new FieldSpecContinuousNumeric(CCLFData.CUR_CLM_UNIQ_ID, new DistIncrementing(1000000, 1), 0, false, null, 13, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.PRVDR_OSCAR_NUM, () => RNG.GetUniform(100000, 999999).ToString(), false, null, 6, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.BENE_HIC_NUM, BENE_HIC_NUM, false, null, 11, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_TYPE_CD, CCLFData.LIST_CLM_TYPE_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_FROM_DT, DateTime.UtcNow.AddMonths(-2), DateTime.UtcNow.AddMonths(-1), false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_THRU_DT, DateTime.UtcNow.AddMonths(-1), DateTime.UtcNow, false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_BILL_FAC_TYPE_CD, CCLFData.LIST_CLM_BILL_FAC_TYPE_CD, false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_BILL_CLSFCTN_CD, CCLFData.LIST_CLM_BILL_CLSFCTN_CD, false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.PRNCPL_DGNS_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.ADMTG_DGNS_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_MDCR_NPMT_RSN_CD, CCLFData.LIST_CLM_MDCR_NPMT_RSN_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousNumeric(CCLFData.CLM_PMT_AMT, new DistUniform(0, 99999999.99), 2, false, "{0:f2}", 17, Util.Location.AtStart, Util.Location.AtEnd, '0', null, null),
         new FieldSpecCategorical(CCLFData.CLM_NCH_PRMRY_PYR_CD, CCLFData.LIST_CLM_NCH_PRMRY_PYR_CD, false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.PRVDR_FAC_FIPS_ST_CD, CCLFData.LIST_FIPS_STATE_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.BENE_PTNT_STUS_CD, CCLFData.LIST_STUS_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.DGNS_DRG_CD, CCLFData.LIST_DGNS_DRG_CD, false, null, 4, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_OP_SRVC_TYPE_CD, CCLFData.LIST_CLM_OP_SRVC_TYPE_CD, false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.FAC_PRVDR_NPI_NUM, () => RNG.GetUniform(1000000000, 9999999999).ToString(), false, null, 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.OPRTG_PRVDR_NPI_NUM, () => RNG.GetUniform(1000000000, 9999999999).ToString(), false, null, 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.ATNDG_PRVDR_NPI_NUM, () => RNG.GetUniform(1000000000, 9999999999).ToString(), false, null, 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.OTHR_PRVDR_NPI_NUM, () => RNG.GetUniform(1000000000, 9999999999).ToString(), false, null, 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_ADJSMT_TYPE_CD, CCLFData.LIST_CLM_ADJSMT_TYPE_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_EFCTV_DT, DateTime.UtcNow.AddMonths(-1), DateTime.UtcNow, false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_IDR_LD_DT, DateTime.UtcNow.AddMonths(-1), DateTime.UtcNow, false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.BENE_EQTBL_BIC_HICN_NUM, () => "HICN" + RNG.GetUniform(1000000, 9999999).ToString(), false, null, 11, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_ADMSN_TYPE_CD, CCLFData.LIST_CLM_ADMSN_TYPE_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_BILL_FREQ_CD, CCLFData.LIST_CLM_BILL_FREQ_CD, false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_QUERY_CD, CCLFData.LIST_CLM_QUERY_CD, false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.DGNS_PRCDR_ICD_IND, CCLFData.LIST_DGNS_PRCDR_ICD_IND, false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null)
     });
 }
Exemplo n.º 2
0
 public static List <IFieldSpec> GetFieldSpecs
 (
     List <Category> CUR_CLM_UNIQ_ID,
     List <Category> BENE_HIC_NUM,
     List <Category> BENE_EQTBL_BIC_HICN_NUM,
     List <Category> PRNCPL_DGNS_CD
 )
 {
     return(new List <IFieldSpec>()
     {
         new FieldSpecCategorical(CCLFData.CUR_CLM_UNIQ_ID, CUR_CLM_UNIQ_ID, false, null, 13, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousNumeric(CCLFData.CLM_LINE_NUM, new DistIncrementing(1, 1), 0, false, null, 10, Util.Location.AtStart, Util.Location.AtEnd, '0', null, null),
         new FieldSpecCategorical(CCLFData.BENE_HIC_NUM, BENE_HIC_NUM, false, null, 11, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_TYPE_CD, CCLFData.LIST_CCLF5_CLM_TYPE_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_FROM_DT, DateTime.UtcNow.AddMonths(-2), DateTime.UtcNow.AddMonths(-1), false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_THRU_DT, DateTime.UtcNow.AddMonths(-1), DateTime.UtcNow, false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.RNDRG_PRVDR_TYPE_CD, CCLFData.LIST_RNDRG_PRVDR_TYPE_CD, false, null, 3, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.RNDRG_PRVDR_FIPS_ST_CD, CCLFData.LIST_FIPS_STATE_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_PRVDR_SPCLTY_CD, CCLFData.LIST_CLM_PRVDR_SPCLTY_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_FED_TYPE_SRVC_CD, CCLFData.LIST_CLM_FED_TYPE_SRVC_CD, false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_POS_CD, CCLFData.LIST_CLM_POS_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_LINE_FROM_DT, DateTime.UtcNow.AddMonths(-2), DateTime.UtcNow.AddMonths(-1), false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_LINE_THRU_DT, DateTime.UtcNow.AddMonths(-1), DateTime.UtcNow, false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_LINE_HCPCS_CD, CCLFData.LIST_HCPCS_CD, false, null, 5, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousNumeric(CCLFData.CLM_LINE_CVRD_PD_AMT, new DistUniform(0, 99999999.99), 2, false, "{0:f2}", 15, Util.Location.AtStart, Util.Location.AtEnd, '0', null, null),
         new FieldSpecCategorical(CCLFData.CLM_LINE_PRMRY_PYR_CD, CCLFData.LIST_PRMRY_PYR_CD, false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_LINE_DGNS_CD, PRNCPL_DGNS_CD, false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_RNDRG_PRVDR_TAX_NUM, () => RNG.GetUniform(100000000, 9999999999).ToString(), false, null, 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.RNDRG_PRVDR_NPI_NUM, () => RNG.GetUniform(1000000000, 9999999999).ToString(), false, null, 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_CARR_PMT_DNL_CD, CCLFData.LIST_CLM_CARR_PMT_DNL_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_PRCSG_IND_CD, CCLFData.LIST_CLM_PRCSG_IND_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_ADJSMT_TYPE_CD, CCLFData.LIST_CLM_ADJSMT_TYPE_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_EFCTV_DT, DateTime.UtcNow.AddMonths(-2), DateTime.UtcNow.AddMonths(-1), false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousDateTime(CCLFData.CLM_IDR_LD_DT, DateTime.UtcNow.AddMonths(-2), DateTime.UtcNow.AddMonths(-1), false, "{0:yyyy-MM-dd}", 10, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_CNTL_NUM, () => Guid.NewGuid().ToString(), false, null, 40, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.BENE_EQTBL_BIC_HICN_NUM, BENE_EQTBL_BIC_HICN_NUM, false, null, 11, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecContinuousNumeric(CCLFData.CLM_LINE_ALOWD_CHRG_AMT, new DistUniform(0, 999999999999.99), 2, false, "{0:f2}", 17, Util.Location.AtStart, Util.Location.AtEnd, '0', null, null),
         new FieldSpecContinuousNumeric(CCLFData.CLM_LINE_SRVC_UNIT_QTY, new DistUniform(0, 999999999999.9999), 4, false, null, 24, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.HCPCS_1_MDFR_CD, CCLFData.LIST_HCPCS_CPT_MOD_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.HCPCS_2_MDFR_CD, CCLFData.LIST_HCPCS_CPT_MOD_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.HCPCS_3_MDFR_CD, CCLFData.LIST_HCPCS_CPT_MOD_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.HCPCS_4_MDFR_CD, CCLFData.LIST_HCPCS_CPT_MOD_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.HCPCS_5_MDFR_CD, CCLFData.LIST_HCPCS_CPT_MOD_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecCategorical(CCLFData.CLM_DISP_CD, CCLFData.LIST_CLM_DISP_CD, false, null, 2, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_DGNS_1_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_DGNS_2_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_DGNS_3_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_DGNS_4_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_DGNS_5_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_DGNS_6_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_DGNS_7_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.CLM_DGNS_8_CD, () => CCLFGenerator.GetICD10Code(), false, null, 7, Util.Location.AtStart, Util.Location.AtEnd, null, null, null),
         new FieldSpecDynamic(CCLFData.DGNS_PRCDR_ICD_IND, () => "0", false, null, 1, Util.Location.AtStart, Util.Location.AtEnd, null, null, null)
     });
 }