text: const {
    BaseClient,
    CSVCancerDiseaseStatusExtractor,
    CSVConditionExtractor,
    CSVClinicalTrialInformationExtractor,
    CSVPatientExtractor,
    CSVTreatmentPlanChangeExtractor,
  } = require('mcode-extraction-framework');
  const { generateNewMessageBundle } = require('./icareFhirMessaging');
  
  class ICARECSVClient extends BaseClient {
    constructor({ extractors, commonExtractorArgs }) {
      super();
      this.registerExtractors(
        CSVCancerDiseaseStatusExtractor,
        CSVConditionExtractor,
        CSVClinicalTrialInformationExtractor,
        CSVPatientExtractor,
        CSVTreatmentPlanChangeExtractor,
      );
      // Store the extractors defined by the configuration file as local state
      this.extractorConfig = extractors;
      this.commonExtractorArgs = {
        implementation: 'icare',
        ...commonExtractorArgs,
      };
    }
  
    async get(args) {
      const { bundle, extractionErrors } = await super.get(args);
      return { bundle: generateNewMessageBundle(bundle), extractionErrors };
    }
  }
  
  module.exports = {
    ICARECSVClient,
  };
  