<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CHULPAN_REESTR_ITEM" 
Description="Элемент счета-реестра" 
PrimaryKey="ChulpanReestrItemID">
  <Fields>
    <Attribute Name="ChulpanReestrItemID" Index="79400001" Type="guid" Description="Идентификатор" />
    <Attribute Name="FAM" Index="7940001" Type="string" Description="Фамилия" CharacterMaximumLength="40" />
    <Attribute Name="NAME" Index="7940002" Type="string" Description="Имя" CharacterMaximumLength="30" />
    <Attribute Name="OTC" Index="7940003" Type="string" Description="Отчество" CharacterMaximumLength="30" />
    <Attribute Name="DRD" Index="7940004" Type="date" Description="Дата рождения" />
    <Attribute Name="POL" Index="7940005" Type="string" Description="Пол" CharacterMaximumLength="1" />
    <Attribute Name="POL_OMS" Index="7940006" Type="string" Description="ОМС полис" CharacterMaximumLength="10" />
    <Attribute Name="POL_DMS" Index="7940007" Type="int" Description="ДМС полис" NumericScale="10" />
    <Attribute Name="PR" Index="7940008" Type="int" Description="Предприятие" NumericScale="6" />
    <Attribute Name="CEH" Index="7940009" Type="int" Description="Цех" NumericScale="6" />
    <Attribute Name="TAB" Index="7940010" Type="int" Description="Табельный номер" NumericScale="12" />
    <Attribute Name="K" Index="7940011" Type="int" Description="K" NumericScale="1" />
    <Attribute Name="CPEC" Index="7940012" Type="int" Description="CPEC" NumericScale="7" />
    <Attribute Name="D_CPEC" Index="7940013" Type="date" Description="Дата " />
    <Attribute Name="WRED" Index="7940014" Type="int" Description="WRED" NumericScale="2" />
    <Attribute Name="D_POST" Index="7940015" Type="date" Description="D_POST" />
    <Attribute Name="D_UWOL" Index="7940016" Type="date" Description="Дата увольнения" />
    <Attribute Name="STRA" Index="7940017" Type="string" Description="STRA" CharacterMaximumLength="20" />
    <Attribute Name="PIND" Index="7940018" Type="int" Description="PIND" NumericScale="6" />
    <Attribute Name="OBLS" Index="7940019" Type="string" Description="Область" CharacterMaximumLength="20" />
    <Attribute Name="RAIN" Index="7940020" Type="string" Description="Район" CharacterMaximumLength="20" />
    <Attribute Name="NASP" Index="7940021" Type="string" Description="Населённый пункт" CharacterMaximumLength="22" />
    <Attribute Name="GORD" Index="7940022" Type="string" Description="Город" CharacterMaximumLength="20" />
    <Attribute Name="ULIC" Index="7940023" Type="string" Description="Улица" CharacterMaximumLength="22" />
    <Attribute Name="DOM" Index="7940024" Type="string" Description="Дом" CharacterMaximumLength="5" />
    <Attribute Name="KWAR" Index="7940025" Type="int" Description="Квартира" NumericScale="3" />
    <Attribute Name="DOKM" Index="7940026" Type="int" Description="Документ" NumericScale="2" />
    <Attribute Name="SER" Index="7940027" Type="string" Description="Серия документа" CharacterMaximumLength="12" />
    <Attribute Name="NOMD" Index="7940028" Type="int" Description="Номер документа" NumericScale="7" />
    <Attribute Name="D_DOK" Index="7940029" Type="date" Description="Дата выдачи документа" />
    <Attribute Name="KEM_VID" Index="7940030" Type="string" Description="Кем выдан документ" CharacterMaximumLength="30" />
    <Attribute Name="K_MED" Index="7940031" Type="int" Description="K_MED" NumericScale="2" />
    <Attribute Name="DOGOVOR" Index="7940032" Type="string" Description="Договор со страховой" CharacterMaximumLength="10" />
    <Attribute Name="DATIN" Index="7940033" Type="date" Description="Дата проводки услуги" />
    <Attribute Name="KOD_USL" Index="7940034" Type="int" Description="Код услуги" NumericScale="2" />
    <Attribute Name="NAME_USL" Index="7940035" Type="string" Description="Наименование услуги" CharacterMaximumLength="30" />
    <Attribute Name="TARIF" Index="7940036" Type="float" Description="Тариф" NumericPrecision="8" NumericScale="2" />
    <Attribute Name="WID_OBSL" Type="string" Description="Вид обслуживания" CharacterMaximumLength="100" />
    <Attribute Name="KOD_OBSL" Type="string" Description="Код обслуживания" CharacterMaximumLength="9" />
    <Attribute Name="KOD_VR" Index="7940039" Type="int" Description="Код врача" NumericScale="3" />
    <Attribute Name="KOD_PR" Index="7940040" Type="int" Description="Код предприятия" NumericScale="2" />
    <Attribute Name="DIAGN" Index="7940041" Type="string" Description="Диагноз" CharacterMaximumLength="4" />
    <Attribute Name="FILENAME" Index="7940042" Type="string" Description="Наименование файла" CharacterMaximumLength="10" />
    <Attribute Name="NUM_REC" Index="7940043" Type="string" Description="Номер записи" CharacterMaximumLength="10" />
    <Attribute Name="DOG_DMS" Index="7940044" Type="string" Description="ДМС Договор" CharacterMaximumLength="20" />
    <Attribute Name="KOD_LPU" Index="7940045" Type="int" Description="Код МО" NumericScale="3" />
    <Parent Name="ChulpanReestr" Index="7940046" Type="AKUZ.CHULPAN_REESTR" Description="Основной счет-реестр" />
    <Parent Name="EventServiceResult" Index="7940047" Type="AKUZ.EVENT_SERVICE_RESULT" Description="Проводка услуги" />
    <Choice Name="ErrorCode" Index="7940048" Description="Код ошибки">
      <Item Name="Пациент не найден" Index="1" />
      <Item Name="Услуга не найдена" Index="2" />
    </Choice>
  </Fields>
  <DbMapping>
    <Table name="T_CHULPAN_REESTR_ITEM">
      <Map Name="ChulpanReestrItemID" Column="ChulpanReestrItemID" />
      <Map Name="FAM" Column="FAM" />
      <Map Name="NAME" Column="NAME" />
      <Map Name="OTC" Column="OTC" />
      <Map Name="DRD" Column="DRD" />
      <Map Name="POL" Column="POL" />
      <Map Name="POL_OMS" Column="POL_OMS" />
      <Map Name="POL_DMS" Column="POL_DMS" />
      <Map Name="PR" Column="PR" />
      <Map Name="CEH" Column="CEH" />
      <Map Name="TAB" Column="TAB" />
      <Map Name="K" Column="K" />
      <Map Name="CPEC" Column="CPEC" />
      <Map Name="D_CPEC" Column="D_CPEC" />
      <Map Name="WRED" Column="WRED" />
      <Map Name="D_POST" Column="D_POST" />
      <Map Name="D_UWOL" Column="D_UWOL" />
      <Map Name="STRA" Column="STRA" />
      <Map Name="PIND" Column="PIND" />
      <Map Name="OBLS" Column="OBLS" />
      <Map Name="RAIN" Column="RAIN" />
      <Map Name="NASP" Column="NASP" />
      <Map Name="GORD" Column="GORD" />
      <Map Name="ULIC" Column="ULIC" />
      <Map Name="DOM" Column="DOM" />
      <Map Name="KWAR" Column="KWAR" />
      <Map Name="DOKM" Column="DOKM" />
      <Map Name="SER" Column="SER" />
      <Map Name="NOMD" Column="NOMD" />
      <Map Name="D_DOK" Column="D_DOK" />
      <Map Name="KEM_VID" Column="KEM_VID" />
      <Map Name="K_MED" Column="K_MED" />
      <Map Name="DOGOVOR" Column="DOGOVOR" />
      <Map Name="DATIN" Column="DATIN" />
      <Map Name="KOD_USL" Column="KOD_USL" />
      <Map Name="NAME_USL" Column="NAME_USL" />
      <Map Name="TARIF" Column="TARIF" />
      <Map Name="WID_OBSL" Column="WID_OBSL" />
      <Map Name="KOD_OBSL" Column="KOD_OBSL" />
      <Map Name="KOD_VR" Column="KOD_VR" />
      <Map Name="KOD_PR" Column="KOD_PR" />
      <Map Name="DIAGN" Column="DIAGN" />
      <Map Name="FILENAME" Column="FILENAME" />
      <Map Name="NUM_REC" Column="NUM_REC" />
      <Map Name="DOG_DMS" Column="DOG_DMS" />
      <Map Name="KOD_LPU" Column="KOD_LPU" />
      <Map Name="ChulpanReestr" Column="ChulpanReestr" />
      <Map Name="EventServiceResult" Column="EventServiceResult" />
      <Map Name="ErrorCode" Column="ErrorCode" />
    </Table>
  </DbMapping>
</Entity>