CREATE TABLE "ASEDBUSR"."ECLAIMINVOICEDET" 
   (	"PKEY" NUMBER(12,0) NOT NULL ENABLE, 
	"BOID" VARCHAR2(40 CHAR) NOT NULL ENABLE, 
	"METABO" NUMBER(12,0) NOT NULL ENABLE, 
	"LASTUPDATE" TIMESTAMP (9) NOT NULL ENABLE, 
	"PROCESSID" VARCHAR2(40 CHAR) NOT NULL ENABLE, 
	"ROWCOMMENT" VARCHAR2(15 CHAR), 
	"CREATED" TIMESTAMP (9) NOT NULL ENABLE, 
	"CREATEDUSER" VARCHAR2(40 CHAR) NOT NULL ENABLE, 
	"REPLACED" TIMESTAMP (9) NOT NULL ENABLE, 
	"REPLACEDUSER" VARCHAR2(40 CHAR), 
	"ITSECLAIMINVDET" VARCHAR2(40 CHAR) NOT NULL ENABLE, 
	"KINDOFBENEFIT" VARCHAR2(500 CHAR), 
	"RECORDID" NUMBER(12,0), 
	"SESSIONID" NUMBER(12,0), 
	"TARIFFTYP" VARCHAR2(10 CHAR), 
	"TARIFFCODE" VARCHAR2(35 CHAR), 
	"TARIFFTEXT" VARCHAR2(350 CHAR), 
	"REQTARIFFTYP" VARCHAR2(10 CHAR), 
	"REQTARIFFCODE" VARCHAR2(35 CHAR), 
	"REQTARIFFTEXT" VARCHAR2(350 CHAR), 
	"QUANTITY" NUMBER(15,6), 
	"REQQUANTITY" NUMBER(15,6), 
	"AMOUNT" NUMBER(11,2), 
	"OBLIGATION" VARCHAR2(40 CHAR), 
	"DPCONSULTATION" NUMBER(12,0), 
	"DPVISIT" NUMBER(9,2), 
	"DPHOURS" NUMBER(9,2), 
	"REFCODE" VARCHAR2(30 CHAR), 
	"TDTREATMENTMODE" VARCHAR2(40 CHAR), 
	"PROVIDERID" VARCHAR2(35 CHAR), 
	"RESPONSIBLEID" VARCHAR2(35 CHAR), 
	"TDBILLINGROLE" VARCHAR2(40 CHAR), 
	"TDEMPLOYMENTMODE" VARCHAR2(40 CHAR), 
	"TDBODYLOCATION" VARCHAR2(40 CHAR), 
	"TDUNITMT" NUMBER(15,6), 
	"REQTDUNITMT" NUMBER(15,6), 
	"TDAMOUNTMT" NUMBER(17,6), 
	"TDUNITFACTORMT" NUMBER(15,6), 
	"TDUNITFACTORMTOVR" NUMBER(12,0) NOT NULL ENABLE, 
	"REQTDUNITFACTORMT" NUMBER(15,6), 
	"TDINTSCALEFACTORMT" NUMBER(15,6), 
	"REQTDINTSCALEFACMT" NUMBER(15,6), 
	"TDEXTSCALEFACTORMT" NUMBER(15,6), 
	"REQTDEXTSCALEFACMT" NUMBER(15,6), 
	"TDUNITTT" NUMBER(15,6), 
	"REQTDUNITTT" NUMBER(15,6), 
	"TDUNITFACTORTT" NUMBER(15,6), 
	"REQTDUNITFACTORTT" NUMBER(15,6), 
	"TDINTSCALEFACTORTT" NUMBER(15,6), 
	"REQTDINTSCALEFACTT" NUMBER(15,6), 
	"TDEXTSCALEFACTORTT" NUMBER(15,6), 
	"REQTDEXTSCALEFACTT" NUMBER(15,6), 
	"TDAMOUNTTT" NUMBER(17,6), 
	"ODREFCODE" VARCHAR2(30 CHAR), 
	"ODUNIT" NUMBER(15,6), 
	"REQODUNIT" NUMBER(15,6), 
	"ODUNITFACTOR" NUMBER(16,7), 
	"REQODUNITFACTOR" NUMBER(15,6), 
	"ODEXTERNALFACTOR" NUMBER(15,6), 
	"REQODEXTFACTOR" NUMBER(15,6), 
	"ODGDINSCODECHAR" VARCHAR2(1 CHAR), 
	"ODGDINSCODE" VARCHAR2(40 CHAR), 
	"ODGDINSCODELIM" VARCHAR2(40 CHAR), 
	"ODGDLIMPOINTS" NUMBER(12,0), 
	"ODGDIKSCAT" VARCHAR2(1 CHAR), 
	"ODGDGROUPCODE" VARCHAR2(2 CHAR), 
	"ODCOSTFRACTION" NUMBER(15,6), 
	"REQODCOSTFRACTION" NUMBER(15,6), 
	"CORRFACTOR" NUMBER(15,6), 
	"REMARK" VARCHAR2(700 CHAR), 
	"NPFLANTCHF" NUMBER(11,2), 
	"NPFLANTGRUNDTXT" VARCHAR2(350 CHAR), 
	"NPFLANTPROZBETRAG" NUMBER(11,2), 
	"NPFLANTPROZBETRTYP" VARCHAR2(40 CHAR), 
	"NPFLANTGRUNDTXTBS" VARCHAR2(30 CHAR), 
	"GENERIKUM" VARCHAR2(40 CHAR), 
	"EINSPARUNG" NUMBER(11,2), 
	"AMOUNTFOREIGN" NUMBER(11,2), 
	"SERVICEBEGIN" DATE, 
	"SERVICEEND" DATE, 
	"SERVICEBEGINTIME" DATE, 
	"SERVICEENDTIME" DATE, 
	"MANUALOVERRIDE" NUMBER(12,0) NOT NULL ENABLE, 
	"ITSSCHADENART" VARCHAR2(40 CHAR), 
	"SCHADENARTOVR" NUMBER(12,0) NOT NULL ENABLE, 
	"TARIFCODEFOUND" VARCHAR2(40 CHAR), 
	"DRUGIOCMCATEGORY" VARCHAR2(40 CHAR), 
	"DRUGDELIVERY" VARCHAR2(40 CHAR), 
	"DRUGREGULATIONIMP" VARCHAR2(3 CHAR), 
	"DRUGREGULATION" VARCHAR2(40 CHAR), 
	"DRUGLIMITATION" VARCHAR2(40 CHAR), 
	"DRUGINDICATED" VARCHAR2(40 CHAR), 
	"VATIMPORT" NUMBER(11,2), 
	"VAT" VARCHAR2(40 CHAR), 
	"VALIDATES" VARCHAR2(40 CHAR), 
	"ITSECLAIMKOA" VARCHAR2(40 CHAR), 
	"ECLAIMKOAOVR" NUMBER(12,0) NOT NULL ENABLE, 
	"BERECHVARIANTE" VARCHAR2(40 CHAR) NOT NULL ENABLE, 
	"PRODUKTANTCHF" NUMBER(11,2), 
	"LERBANTCHF" NUMBER(11,2), 
	"SERVICEATTRIBUTES" NUMBER(12,0), 
	"SECTIONCODE" VARCHAR2(6 CHAR), 
	"PLAFONRELEVANT" VARCHAR2(40 CHAR) NOT NULL ENABLE, 
	"KOGUZEITRMEINHEIT" VARCHAR2(40 CHAR), 
	"DETAILTYP" VARCHAR2(40 CHAR) NOT NULL ENABLE, 
	"DRGBERECHVARIANTE" VARCHAR2(40 CHAR), 
	"DRGLERBTYP" VARCHAR2(40 CHAR), 
	"AMOUNTROUNDED" NUMBER(11,2), 
	"REGELVARIABLE1" VARCHAR2(255 CHAR), 
	"TDUNITFACTORTTOVR" NUMBER(12,0) NOT NULL ENABLE, 
	"ODUNITOVR" NUMBER(12,0) NOT NULL ENABLE, 
	"ODUNITFACTOROVR" NUMBER(12,0) NOT NULL ENABLE, 
	"ARCHIVETAG" VARCHAR2(40 CHAR), 
	"TARIFZAHN" VARCHAR2(350 CHAR), 
	"REQTARIFZAHN" VARCHAR2(350 CHAR), 
	"GROUPSIZE" NUMBER(12,0), 
	"MDBID" VARCHAR2(255 CHAR), 
	"TARIFERMITTLUNG" DATE DEFAULT null, 
	"ISTRAINING" VARCHAR2(40 CHAR) DEFAULT null, 
	"MULTIPLIER" NUMBER(15,6) DEFAULT null, 
	"MULTISYMBOL" VARCHAR2(10 CHAR) DEFAULT null, 
	"BASEUNIT" NUMBER(15,6) DEFAULT null, 
	"CORRUNIT" NUMBER(15,6) DEFAULT null, 
	"TOTALUNIT" NUMBER(15,6) DEFAULT null, 
	"CURRENCY" VARCHAR2(3 CHAR) DEFAULT null, 
	"SERVICEID" NUMBER(12,0) DEFAULT null, 
	"ITSPHARMAVERTRAG" VARCHAR2(40 CHAR), 
	"INDIKATION" VARCHAR2(4000 CHAR), 
	 SUPPLEMENTAL LOG DATA (ALL) COLUMNS
   ) PCTFREE 10 PCTUSED 40 INITRANS 40 MAXTRANS 255  LOGGING 
  STORAGE(
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "ASEDBUSR_DAT" 
  PARTITION BY LIST ("REPLACED") 
 (PARTITION "P_CURR"  VALUES (TIMESTAMP' 3000-01-01 00:00:00') SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 40 MAXTRANS 255 
 NOCOMPRESS LOGGING 
  STORAGE(INITIAL 8388608 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "ASEDBUSR_DAT" , 
 PARTITION "P_ARCH"  VALUES (DEFAULT) SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 40 MAXTRANS 255 
 NOCOMPRESS LOGGING 
  STORAGE(INITIAL 8388608 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "ASEDBUSR_DAT" )  ENABLE ROW MOVEMENT ;
  CREATE UNIQUE INDEX "ASEDBUSR"."PK1019004" ON "ASEDBUSR"."ECLAIMINVOICEDET" ("PKEY") 
  PCTFREE 10 INITRANS 80 MAXTRANS 255 COMPUTE STATISTICS 
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "ASEDBUSR_DAT" ;
ALTER TABLE "ASEDBUSR"."ECLAIMINVOICEDET" ADD CONSTRAINT "PK1019004" PRIMARY KEY ("PKEY")
  USING INDEX "ASEDBUSR"."PK1019004"  ENABLE;