diff --git a/src/versions/1.1/csv.ts b/src/versions/1.1/csv.ts index 3a37df8..478838c 100644 --- a/src/versions/1.1/csv.ts +++ b/src/versions/1.1/csv.ts @@ -9,10 +9,8 @@ import { import { BILLING_CODE_TYPES, BillingCodeType, - CHARGE_BILLING_CLASSES, CHARGE_SETTINGS, CONTRACTING_METHODS, - ChargeBillingClass, ChargeSetting, ContractingMethod, DRUG_UNITS, @@ -24,13 +22,11 @@ export const HEADER_COLUMNS = [ "last_updated_on", "version", "hospital_location", - "financial_aid_policy", "license_number | state", ] export const BASE_COLUMNS = [ "description", - "billing_class", "setting", "drug_unit_of_measurement", "drug_type_of_measurement", @@ -243,23 +239,6 @@ export function validateRow( ) } - if ( - !CHARGE_BILLING_CLASSES.includes(row["billing_class"] as ChargeBillingClass) - ) { - errors.push( - csvErr( - index, - columns.indexOf("billing_class"), - "billing_class", - ERRORS.ALLOWED_VALUES( - "billing_class", - row["billing_class"], - CHARGE_BILLING_CLASSES as unknown as string[] - ) - ) - ) - } - if (!CHARGE_SETTINGS.includes(row["setting"] as ChargeSetting)) { errors.push( csvErr( @@ -477,7 +456,6 @@ export function getBaseColumns(columns: string[]): string[] { return [ "description", ...codeColumns, - "billing_class", "setting", "drug_unit_of_measurement", "drug_type_of_measurement", diff --git a/src/versions/1.1/json.ts b/src/versions/1.1/json.ts index 6e7626b..cedc544 100644 --- a/src/versions/1.1/json.ts +++ b/src/versions/1.1/json.ts @@ -10,7 +10,6 @@ import { } from "../../types.js" import { BILLING_CODE_TYPES, - CHARGE_BILLING_CLASSES, CHARGE_SETTINGS, DRUG_UNITS, CONTRACTING_METHODS, @@ -58,10 +57,6 @@ const STANDARD_CHARGE_DEFINITIONS = { items: { $ref: "#/definitions/payers_information" }, minItems: 1, }, - billing_class: { - enum: CHARGE_BILLING_CLASSES, - type: "string", - }, additional_generic_notes: { type: "string" }, }, required: ["setting"], @@ -157,7 +152,6 @@ export const METADATA_PROPERTIES = { }, version: { type: "string" }, hospital_location: { type: "string" }, - financial_aid_policy: { type: "string" }, } export const METADATA_REQUIRED = ["hospital_name", "last_updated_on", "version"] diff --git a/src/versions/1.1/types.ts b/src/versions/1.1/types.ts index 790e807..b649210 100644 --- a/src/versions/1.1/types.ts +++ b/src/versions/1.1/types.ts @@ -28,10 +28,6 @@ export const CHARGE_SETTINGS = ["inpatient", "outpatient", "both"] as const type ChargeSettingTuple = typeof CHARGE_SETTINGS export type ChargeSetting = ChargeSettingTuple[number] -export const CHARGE_BILLING_CLASSES = ["professional", "facility"] as const -type ChargeBillingClassTuple = typeof CHARGE_BILLING_CLASSES -export type ChargeBillingClass = ChargeBillingClassTuple[number] - export const CONTRACTING_METHODS = [ "case rate", "fee schedule", diff --git a/src/versions/2.0/csv.ts b/src/versions/2.0/csv.ts index 1193e84..95a1136 100644 --- a/src/versions/2.0/csv.ts +++ b/src/versions/2.0/csv.ts @@ -10,7 +10,6 @@ import { } from "../common/csv.js" import { BILLING_CODE_TYPES, - CHARGE_BILLING_CLASSES, CHARGE_SETTINGS, STANDARD_CHARGE_METHODOLOGY, DRUG_UNITS, @@ -43,11 +42,6 @@ export const BASE_COLUMNS = [ "additional_generic_notes", // string ] -export const OPTIONAL_COLUMNS = [ - "financial_aid_policy", // string - "billing_class", // CHARGE_BILLING_CLASSES or blank -] - export const TALL_COLUMNS = [ "payer_name", // string "plan_name", // string @@ -387,16 +381,6 @@ export function validateRow( ) } - errors.push( - ...validateOptionalEnumField( - row, - "billing_class", - index, - columns.indexOf("billing_class"), - CHARGE_BILLING_CLASSES - ) - ) - errors.push( ...validateRequiredEnumField( row, @@ -555,16 +539,6 @@ function validateModifierRow( } // other conditionals don't apply for modifier rows, but any values entered should still be the correct type - errors.push( - ...validateOptionalEnumField( - row, - "billing_class", - index, - columns.indexOf("billing_class"), - CHARGE_BILLING_CLASSES - ) - ) - errors.push( ...validateOptionalEnumField( row, diff --git a/src/versions/2.0/json.ts b/src/versions/2.0/json.ts index 8ca7d50..14da5ab 100644 --- a/src/versions/2.0/json.ts +++ b/src/versions/2.0/json.ts @@ -10,7 +10,6 @@ import { } from "../../types.js" import { BILLING_CODE_TYPES, - CHARGE_BILLING_CLASSES, CHARGE_SETTINGS, DRUG_UNITS, STANDARD_CHARGE_METHODOLOGY, @@ -55,10 +54,6 @@ const STANDARD_CHARGE_DEFINITIONS = { items: { $ref: "#/definitions/payers_information" }, minItems: 1, }, - billing_class: { - enum: CHARGE_BILLING_CLASSES, - type: "string", - }, additional_generic_notes: { type: "string" }, }, required: ["setting"], diff --git a/src/versions/2.0/types.ts b/src/versions/2.0/types.ts index 4f25716..eb90f5a 100644 --- a/src/versions/2.0/types.ts +++ b/src/versions/2.0/types.ts @@ -30,14 +30,6 @@ export const CHARGE_SETTINGS = ["inpatient", "outpatient", "both"] as const type ChargeSettingTuple = typeof CHARGE_SETTINGS export type ChargeSetting = ChargeSettingTuple[number] -export const CHARGE_BILLING_CLASSES = [ - "professional", - "facility", - "both", -] as const -type ChargeBillingClassTuple = typeof CHARGE_BILLING_CLASSES -export type ChargeBillingClass = ChargeBillingClassTuple[number] - export const STANDARD_CHARGE_METHODOLOGY = [ "case rate", "fee schedule",