import { Module } from '@nestjs/common';
import { PersonaController } from './persona.controller';
import { PersonaService } from './persona.service';
import { PersonaCoverageMonitorService } from './persona-coverage-monitor.service';
import { FeatureRegistry, FEATURE_EXTRACTOR_PROVIDERS } from './features/feature.registry';
import { ClinicalGapModule } from '../clinical-gap/clinical-gap.module';

@Module({
  imports: [ClinicalGapModule],
  controllers: [PersonaController],
  providers: [
    PersonaService,
    PersonaCoverageMonitorService,
    FeatureRegistry,
    // extractor 清单收在 feature.registry.ts(与 FeatureRegistry 构造参数同一份,免两边漏改)
    ...FEATURE_EXTRACTOR_PROVIDERS,
  ],
  exports: [PersonaService],
})
export class PersonaModule {}
