import { PrismaClient } from '@prisma/client';
import { BTW_AOK_TARIFFS } from './tariffs/btw-aok';
import { BTW_DAK_VDEK_TARIFFS } from './tariffs/btw-dak-vdek';
import { BTW_PRIVAT_TARIFFS } from './tariffs/btw-privat';
import { KTW_AOK_TARIFFS } from './tariffs/ktw-aok';
import { KTW_DAK_TARIFFS } from './tariffs/ktw-dak';
import { KTW_PRIVAT_TARIFFS } from './tariffs/ktw-privat';
import { KTW_VDEK_TARIFFS } from './tariffs/ktw-vdek';
import { TSW_AOK_TARIFFS } from './tariffs/tsw-aok';
import { TSW_DAK_VDEK_TARIFFS } from './tariffs/tsw-dak-vdek';
import { TSW_PRIVAT_TARIFFS } from './tariffs/tsw-privat';

const TARIFF_GROUPS = [
  {
    id: 1,
    ordinanceType: 'KTW',
    description: 'DAK KTW',
  },
  {
    id: 2,
    ordinanceType: 'KTW',
    description: 'VDEK KTW',
  },
  {
    id: 3,
    ordinanceType: 'KTW',
    description: 'AOK/BKK/IKK/Knappschaft KTW',
  },
  {
    id: 4,
    ordinanceType: 'KTW',
    description: 'Privat KTW',
  },
  {
    id: 5,
    ordinanceType: 'TSW',
    description: 'DAK + VDEK TSW',
  },
  {
    id: 6,
    ordinanceType: 'TSW',
    description: 'AOK/BKK/IKK/Knappschaft TSW',
  },
  {
    id: 7,
    ordinanceType: 'TSW',
    description: 'Privat TSW',
  },
  {
    id: 8,
    ordinanceType: 'BTW',
    description: 'DAK + VDEK BTW',
  },
  {
    id: 9,
    ordinanceType: 'BTW',
    description: 'AOK/BKK/IKK/Knappschaft BTW',
  },
  {
    id: 10,
    ordinanceType: 'BTW',
    description: 'Privat BTW',
  },
];

const TARIFFS = [
  ...KTW_DAK_TARIFFS,
  ...KTW_VDEK_TARIFFS,
  ...KTW_AOK_TARIFFS,
  ...KTW_PRIVAT_TARIFFS,
  ...TSW_DAK_VDEK_TARIFFS,
  ...TSW_AOK_TARIFFS,
  ...TSW_PRIVAT_TARIFFS,
  ...BTW_DAK_VDEK_TARIFFS,
  ...BTW_AOK_TARIFFS,
  ...BTW_PRIVAT_TARIFFS,
];

const prisma = new PrismaClient();

async function main() {
  await Promise.all([
    prisma.avicennaTenant.deleteMany(),
    prisma.tariffGroup.deleteMany(),
    prisma.tariff.deleteMany(),
    prisma.costType.deleteMany(),
  ]);
  for (const tariffGroup of TARIFF_GROUPS) {
    await prisma.tariffGroup.create({
      data: {
        ordinanceType: tariffGroup.ordinanceType,
        description: tariffGroup.description,
      },
    });
  }

  for (const tariff of TARIFFS) {
    const { description, costTypes, ...tariffData } = tariff;
    const tariffGroup = await prisma.tariffGroup.findFirst({
      where: { description: tariff.description },
    });
    await prisma.tariff.create({
      data: {
        ...tariffData,
        costTypes: {
          create: costTypes,
        },
        tariffGroup: {
          connect: {
            id: tariffGroup?.id,
          },
        },
      },
    });
  }

  for (const tenant of TENANTS) {
    const tariffs = await Promise.all(
      tenant.tariffs.split(',').map((id) => {
        const tariff = TARIFF_GROUPS.find((t) => t.id === +id);
        return prisma.tariffGroup.findFirst({
          where: {
            description: tariff?.description,
          },
        });
      })
    );
    await prisma.avicennaTenant.create({
      data: {
        healthInsuranceNumber: `${tenant.ktnr}`,
        name: tenant.name,
        tariffGroups: {
          connect: tariffs.map((t) => ({ id: t?.id })),
        },
      },
      include: {
        tariffGroups: true,
      },
    });
  }
}

main()
  .then(async () => await prisma.$disconnect())
  .catch(async (e) => {
    console.error(e);
    await prisma.$disconnect();
    process.exit(1);
  });

const TENANTS = [
  {
    ktnr: 108018007,
    name: 'AOK - BADEN-WÜRTEMBERG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108910473,
    name: 'AOK BAYERN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108310400,
    name: 'AOK BAYERN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103119199,
    name: 'AOK BREMEN/BREMERHAVEN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107815772,
    name: 'AOK Baden - Württemberg',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105313145,
    name: 'AOK HESSEN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102114819,
    name: 'AOK NIEDERSACHSEN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 100395611,
    name: 'AOK NORDOST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109519016,
    name: 'AOK NORDOST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109519005,
    name: 'AOK NORDOST Berlin',
    tariffs: '9,6,3',
  },
  {
    ktnr: 100696012,
    name: 'AOK NORDOST Brandenburg',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101317004,
    name: 'AOK NORDWEST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103411401,
    name: 'AOK NORDWEST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107299005,
    name: 'AOK PLUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105998018,
    name: 'AOK PLUS Thüringen',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104212505,
    name: 'AOK RHEINLAND / HAMBURG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107310373,
    name: 'AOK RHEINLAND PFALZ/SAARLAND',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109319309,
    name: 'AOK RHEINLAND-PFALZ/SAARLAND',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104212516,
    name: 'AOK RHEINLAND/HAMBURG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101519213,
    name: 'AOK RHEINLAND/HAMBURG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101097008,
    name: 'AOK SACHSEN-ANHALT',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103121013,
    name: 'ATLAS BKK AHLMANN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108534160,
    name: 'AUDI BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108837428,
    name: 'AUDI BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109920569,
    name: 'BAHN-BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109938503,
    name: 'BAHN-BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104940005,
    name: 'BARMER GEK',
    tariffs: '5,8,2',
  },
  {
    ktnr: 103725342,
    name: 'BERTELSMANN BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103720893,
    name: 'BERTELSMANN BKK/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 20355700,
    name: 'BG Bau Hamburg',
    tariffs: '4,7,10',
  },
  {
    ktnr: 22089700,
    name: 'BG Gesundheit und Wohlfahrtspflege',
    tariffs: '4,7,10',
  },
  {
    ktnr: 22767700,
    name: 'BG Handel und Warendistribution Hamburg',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103501091,
    name: 'BIG DIREKT GESUND',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103501080,
    name: 'BIG DIREKT GESUND',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102122660,
    name: 'BKK 24',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102732316,
    name: 'BKK 24 OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108732171,
    name: 'BKK A.T.U',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108591503,
    name: 'BKK A.T.U',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108739441,
    name: 'BKK A.T.U',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108729018,
    name: 'BKK A.T.U',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108591499,
    name: 'BKK A.T.U',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108734355,
    name: 'BKK A.T.U',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108732525,
    name: 'BKK A.T.U',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103525909,
    name: 'BKK ACHENBACH BUSCHHÜTTEN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108029306,
    name: 'BKK ADVITA',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108031297,
    name: 'BKK ADVITA',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107536171,
    name: 'BKK AESCULAP',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108833355,
    name: 'BKK AKZO NOBEL -BAYERN-',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104626889,
    name: 'BKK BASELL',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101532301,
    name: 'BKK BEIERSDORF',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109021685,
    name: 'BKK BMW -OST-',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109034270,
    name: 'BKK BMW ZENTRALE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104626903,
    name: 'BKK BPW BERGISCHE ACHSEN KG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105530422,
    name: 'BKK BRAUN MELSUNGEN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105330157,
    name: 'BKK BRAUN-GILLETTE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105328415,
    name: 'BKK BRAUN-GILLETTE / OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104424794,
    name: 'BKK DEMAG KRAUSS-MAFFEI',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104428480,
    name: 'BKK DEMAG KRAUSS-MAFFEI/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104224634,
    name: 'BKK DER DEUTSCHEN BANK AG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104220878,
    name: 'BKK DER DEUTSCHEN BANK AG/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105928809,
    name: 'BKK DER THÜRINGER ENERGIEVERS.',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103724294,
    name: 'BKK DIAKONIE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103729701,
    name: 'BKK DIAKONIE/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104926702,
    name: 'BKK DIE BERGISCHE KRANKENKASSE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101523297,
    name: 'BKK DIE CONTINENTALE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103724249,
    name: 'BKK DÜRKOPP ADLER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105732324,
    name: 'BKK ERNST & YOUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107531405,
    name: 'BKK ESSANELLE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109129662,
    name: 'BKK ESSANELLE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109139915,
    name: 'BKK ESSANELLE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109139926,
    name: 'BKK ESSANELLE OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104125509,
    name: 'BKK EUREGIO',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102429648,
    name: 'BKK EWE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102429659,
    name: 'BKK EWE/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102131320,
    name: 'BKK EXKLUSIV OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102122557,
    name: 'BKK EXKLUSIV WEST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109033393,
    name: 'BKK FABER-CASTELL & PARTNER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105830539,
    name: 'BKK FAMILY',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103121137,
    name: 'BKK FIRMUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102529638,
    name: 'BKK FIRMUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107036370,
    name: 'BKK FREUDENBERG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103724272,
    name: 'BKK GILDEMEISTER SEIDENSTICKER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103791489,
    name: 'BKK GILDEMEISTER SEIDENSTICKER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103726092,
    name: 'BKK GILDEMEISTER SEIDENSTICKER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104424830,
    name: 'BKK GRILLO-WERKE AG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107835071,
    name: 'BKK GROZ-BECKERT',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105230101,
    name: 'BKK HEAG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105530364,
    name: 'BKK HENSCHEL PLUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103725547,
    name: 'BKK HERFORD MINDEN RAVENSBERG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105530331,
    name: 'BKK HERKULES',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105330431,
    name: 'BKK KARL MAYER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108633433,
    name: 'BKK KASSANA',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108831386,
    name: 'BKK KBA',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108891608,
    name: 'BKK KBA',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108833674,
    name: 'BKK KBA',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106331593,
    name: 'BKK KEVAG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108934142,
    name: 'BKK KRONES',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107335009,
    name: 'BKK LANDESBERBAND  SÜD',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108332509,
    name: 'BKK LANDESVERBAND BAYERN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109538008,
    name: 'BKK LANDESVERBAND MITTE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105130008,
    name: 'BKK LANDESVERBAND SÜD',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105830517,
    name: 'BKK LINDE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105821242,
    name: 'BKK LINDE / OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108036145,
    name: 'BKK MAHLE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107923192,
    name: 'BKK MEDICUS OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107934550,
    name: 'BKK MEDICUS WEST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102822634,
    name: 'BKK MELITTA PLUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103726081,
    name: 'BKK MELITTA PLUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106020600,
    name: 'BKK MEM',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105230076,
    name: 'BKK MERCK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103723317,
    name: 'BKK MIELE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108737074,
    name: 'BKK MIELE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103725364,
    name: 'BKK MIELE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101520078,
    name: 'BKK MOBIL',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107835333,
    name: 'BKK MTU FRIEDRICHSHAFEN GMBH',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106431572,
    name: 'BKK PFAFF',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106420977,
    name: 'BKK PFAFF/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106423630,
    name: 'BKK PFALZ',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106431663,
    name: 'BKK PFALZ',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106431652,
    name: 'BKK PFALZ',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106437453,
    name: 'BKK PFALZ',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107835743,
    name: 'BKK PFALZ',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101931440,
    name: 'BKK PUBLIK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105792190,
    name: 'BKK PWC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105723301,
    name: 'BKK PWC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108591499,
    name: 'BKK Provita',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105823051,
    name: 'BKK R + V / OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105823040,
    name: 'BKK R+V',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107532042,
    name: 'BKK RIEKER RICOSTA WEISSER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102131240,
    name: 'BKK RWE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101922757,
    name: 'BKK SALZGITTER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108736814,
    name: 'BKK SALZGITTER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101921814,
    name: 'BKK SALZGITTER/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108035576,
    name: 'BKK SCHEUFELEN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107531187,
    name: 'BKK SCHWARZWALD-BAAR-HEUBERG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109132678,
    name: 'BKK STADT AUGSBURG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108538051,
    name: 'BKK STADT AUGSBURG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102031410,
    name: 'BKK TECHNOFORM',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108632900,
    name: 'BKK TEXTILGRUPPE HOF',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102137985,
    name: 'BKK TUI',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109723913,
    name: 'BKK VBU',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109737010,
    name: 'BKK VBU',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103526615,
    name: 'BKK VDN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103532065,
    name: 'BKK VDN/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107832012,
    name: 'BKK VERBUNDPLUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107832023,
    name: 'BKK VERBUNDPLUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104229606,
    name: 'BKK VICTORIA  -  D.A.S.',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109531476,
    name: 'BKK VICTORIA - D.A.S.',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104229582,
    name: 'BKK VICTORIA - D.A.S. (OST)',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106432038,
    name: 'BKK VITAL',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103525954,
    name: 'BKK VOR ORT',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104526376,
    name: 'BKK VOR ORT',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104529255,
    name: 'BKK VOR ORT OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108031424,
    name: 'BKK VORALB HELLER LEUZE TRAUB',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105530126,
    name: 'BKK WERRA-MEISSNER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107839894,
    name: 'BKK WIELAND',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107836243,
    name: 'BKK WIELAND',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109139904,
    name: 'BKK WIELAND',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105734543,
    name: 'BKK WIRTSCHAFT UND FINANZEN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105792123,
    name: 'BKK WIRTSCHAFT UND FINANZEN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108036577,
    name: 'BKK WÜRTH',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108023140,
    name: 'BKK WÜRTH / OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107829563,
    name: 'BKK ZF & PARTNER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106329862,
    name: 'BKK ZF & PARTNER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106329793,
    name: 'BKK ZF & PARTNER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109331908,
    name: 'BKK ZF & PARTNER',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107829574,
    name: 'BKK ZF & PARTNER OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108036123,
    name: 'BOSCH BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108023388,
    name: 'BOSCH BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 100820488,
    name: 'BRANDENBURGISCHE BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103523440,
    name: 'CONTINENTALE BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103523565,
    name: 'CONTINENTALE BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108030775,
    name: 'DAIMLER BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108038078,
    name: 'DAIMLER BKK OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101560000,
    name: 'DAK GESUNDHEIT',
    tariffs: '1,5,8',
  },
  {
    ktnr: 104124029,
    name: 'DAK GESUNDHEIT',
    tariffs: '1,5,8',
  },
  {
    ktnr: 101520103,
    name: 'DAK GESUNDHEIT',
    tariffs: '1,5,8',
  },
  {
    ktnr: 104131368,
    name: 'DAK GESUNDHEIT',
    tariffs: '1,5,8',
  },
  {
    ktnr: 107135212,
    name: 'DAK GESUNDHEIT',
    tariffs: '1,5,8',
  },
  {
    ktnr: 105830016,
    name: 'DAK GESUNDHEIT',
    tariffs: '1,5,8',
  },
  {
    ktnr: 105836717,
    name: 'DAK GESUNDHEIT',
    tariffs: '1,5,8',
  },
  {
    ktnr: 106329225,
    name: 'DEBEKA BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106329236,
    name: 'DEBEKA BKK OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109939003,
    name: 'DEUTSCHE BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109921296,
    name: 'DEUTSCHE BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104525057,
    name: 'E.ON BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102129930,
    name: 'ENERGIE-BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102129974,
    name: 'ENERGIE-BKK OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101520329,
    name: 'ESSO BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101521547,
    name: 'ESSO BKK / OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103170002,
    name: 'HANDELSKRANKENKASSE (HKK)',
    tariffs: '5,8,2',
  },
  {
    ktnr: 101570104,
    name: 'HANSEATISCHE KRANKENKASSE (HEK)',
    tariffs: '5,8,2',
  },
  {
    ktnr: 103724238,
    name: 'HEIMAT KRANKENKASSE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103723896,
    name: 'HEIMAT KRANKENKASSE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109500297,
    name: 'IKK BRANDENBURG UND BERLIN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 100602360,
    name: 'IKK BRANDENBURG UND BERLIN',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101003005,
    name: 'IKK CLASSIC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101500154,
    name: 'IKK CLASSIC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105903116,
    name: 'IKK CLASSIC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105801603,
    name: 'IKK CLASSIC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108701890,
    name: 'IKK CLASSIC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103500706,
    name: 'IKK CLASSIC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107202793,
    name: 'IKK CLASSIC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103500693,
    name: 'IKK CLASSIC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106801672,
    name: 'IKK CLASSIC',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103100201,
    name: 'IKK GESUND PLUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101202961,
    name: 'IKK GESUND PLUS',
    tariffs: '9,6,3',
  },
  {
    ktnr: 100202549,
    name: 'IKK NORD',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101300129,
    name: 'IKK NORD',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109303301,
    name: 'IKK SÜDWEST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106201379,
    name: 'IKK SÜDWEST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102171012,
    name: 'KKH ALLIANZ',
    tariffs: '5,8,2',
  },
  {
    ktnr: 101505002,
    name: 'KNAPPSCHAFT HAUPTVERW.',
    tariffs: '9,6,3',
  },
  {
    ktnr: 100705002,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101305000,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106305001,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101005007,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105505001,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106505003,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107705007,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103105002,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109705001,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108005002,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106205000,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106905007,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109905003,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103505006,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104405007,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 100105006,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102105000,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107405004,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106005008,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107805008,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108405006,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106405002,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109505009,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109305007,
    name: 'KNAPPSCHAFT HAUPTVERWALTUNG',
    tariffs: '9,6,3',
  },
  {
    ktnr: 0,
    name: 'KOSTENTRÄGER PATIENT',
    tariffs: '4,7,10',
  },
  {
    ktnr: 108035612,
    name: 'MHPLUS BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108034508,
    name: 'MHPLUS BKK / OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107429785,
    name: 'MHPLUS KRANKENKASSE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104491707,
    name: 'NOVITAS BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101520181,
    name: 'NOVITAS BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101532152,
    name: 'NOVITAS BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104491718,
    name: 'NOVITAS BKK / OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103600024,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600079,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600104,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600046,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600160,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600115,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600120,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600159,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600251,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600295,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600089,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600239,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600035,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600091,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600148,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600013,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600217,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600273,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 103600182,
    name: 'PBEAKK Postbeamtenkrankenkasse',
    tariffs: '4,7,10',
  },
  {
    ktnr: 106492406,
    name: 'PRONOVA BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106492393,
    name: 'PRONOVA BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105330168,
    name: 'SALUS BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105321269,
    name: 'SALUS BKK OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108433248,
    name: 'SBK Siemens Bkk',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108223858,
    name: 'SBK Siemens Bkk',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108537403,
    name: 'SECURVITA BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108537163,
    name: 'SECURVITA BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101320032,
    name: 'SECURVITA BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108737052,
    name: 'SECURVITA BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101320942,
    name: 'SECURVITA BKK/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101520147,
    name: 'SHELL BKK / LIFE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101520352,
    name: 'SHELL BKK / LIFE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108537470,
    name: 'SHELL BKK / LIFE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108736723,
    name: 'SHELL BKK / LIFE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103525567,
    name: 'SIEMAG BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108623102,
    name: 'SKD BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108833505,
    name: 'SKD-BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 100609049,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 103708773,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108008880,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108209075,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106408802,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108808844,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109008837,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109308818,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108608820,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108508863,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105508787,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106908874,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101308719,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102108731,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 102408723,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 109108850,
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaften Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106936311,
    name: 'SÜDZUCKER-BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 106928388,
    name: 'SÜDZUCKER-BKK / OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 101577500,
    name: 'TECHNIKER KRANKENKASSE (TK)',
    tariffs: '5,8,2',
  },
  {
    ktnr: 101575519,
    name: 'TECHNIKER KRANKENKASSE (TK)',
    tariffs: '5,8,2',
  },
  {
    ktnr: 104926494,
    name: 'VAILLANT BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104921650,
    name: 'VAILLANT BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105330191,
    name: 'VEREINIGTE BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105230383,
    name: 'VEREINIGTE BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105321236,
    name: 'VEREINIGTE BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 105330179,
    name: 'VEREINIGTE BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 104526376,
    name: 'Viactiv Krankenkasse',
    tariffs: '9,6,3',
  },
  {
    ktnr: 107536262,
    name: 'Vivida BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108036441,
    name: 'WMF BKK',
    tariffs: '9,6,3',
  },
  {
    ktnr: 108021400,
    name: 'WMF BKK/OST',
    tariffs: '9,6,3',
  },
  {
    ktnr: 'SOZIALVERSICHERUNG FÜR Landwirtschaft, Forsten Und Gartenbau',
    name: 'SOZIALVERSICHERUNG FÜR Landwirtschaft, Forsten Und Gartenbau',
    tariffs: '9,6,3',
  },
  {
    ktnr: 'BKK MOBIL OIL',
    name: 'BKK MOBIL OIL',
    tariffs: '9,6,3',
  },
  {
    ktnr: 'Barmer',
    name: 'Barmer',
    tariffs: '5,8,2',
  },
  {
    ktnr: 'DIE SCHWENNINGER KRANKENKASSE',
    name: 'DIE SCHWENNINGER KRANKENKASSE',
    tariffs: '9,6,3',
  },
  {
    ktnr: 'Kath. Marienkrankenhaus gGmbH',
    name: 'Kath. Marienkrankenhaus gGmbH',
    tariffs: '4,7,10',
  },
  {
    ktnr: 'BETRIEBSKRANKENKASSE S-H',
    name: 'BETRIEBSKRANKENKASSE S-H',
    tariffs: '9,6,3',
  },
  {
    ktnr: 'NOVITAS BKK',
    name: 'NOVITAS BKK',
    tariffs: '9,6,3',
  },
];
