<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="EHR" 
Name="EHR_RUS_Z00013" 
Description="Регистр страховых медицинских организаций, входящих в систему ОМС" 
PrimaryKey="EhrRusID" 
DNAttributes="{NameEHR}" 
DisplayName="{0}">
  <Customs>
    <Custom Name="ID" Value="IdEHR" />
    <Custom Name="CODE" Value="CodeEHR" />
    <Custom Name="NAME" Value="NameEHR" />
  </Customs>
  <Fields>
    <Attribute Name="EhrRusID" Type="int" Description="Идентификатор" />
    <Attribute Name="IdEHR" Type="int" Description="Идентификатор из справочника" />
    <Attribute Name="CodeEHR" Type="string" Description="Код из справочника" CharacterMaximumLength="52" />
    <Attribute Name="NameEHR" Type="string" Description="Наименование из справочника" CharacterMaximumLength="2048" />
    <Parent Name="EhrRusRefBooks" Type="EHR.EHR_RUS_REF_BOOKS" Description="Список справочников ЕИП (РУ)" Required="1" />
    <Attribute Name="DEYSTV" Index="9510014" Type="string" Description="DEYSTV" CharacterMaximumLength="16" />
    <Attribute Name="FULLNAME" Index="9510011" Type="string" Description="Полное название" CharacterMaximumLength="256" />
    <Attribute Name="GAI" Index="9510008" Type="string" Description="GAI" CharacterMaximumLength="16" />
    <Attribute Name="HIGH" Index="9510006" Type="string" Description="ВМП" CharacterMaximumLength="8" />
    <Attribute Name="KEY" Index="9510005" Type="string" Description="Ключ" CharacterMaximumLength="16" />
    <Attribute Name="NUM_P" Index="9510013" Type="string" Description="Номер" CharacterMaximumLength="16" />
    <Attribute Name="OGRN" Index="9510015" Type="string" Description="ОГРН" />
    <Attribute Name="OKATO" Index="9510010" Type="string" Description="Код ОКАТО" CharacterMaximumLength="16" />
    <Attribute Name="OKPO" Index="9510009" Type="string" Description="OKPO" CharacterMaximumLength="64" />
    <Attribute Name="Q_GOR" Index="9510007" Type="string" Description="Город" CharacterMaximumLength="128" />
    <Attribute Name="SER_P" Index="9510012" Type="string" Description="Серия" CharacterMaximumLength="128" />
  </Fields>
  <DbMapping>
    <Table name="T_EHR_RUS_Z00013">
      <Map Name="EhrRusID" Column="EhrRusID" />
      <Map Name="IdEHR" Column="IdEHR" />
      <Map Name="CodeEHR" Column="CodeEHR" />
      <Map Name="NameEHR" Column="NameEHR" />
      <Map Name="EhrRusRefBooks" Column="EhrRusRefBooks" />
      <Map Name="DEYSTV" Column="DEYSTV" />
      <Map Name="FULLNAME" Column="FULLNAME" />
      <Map Name="GAI" Column="GAI" />
      <Map Name="HIGH" Column="HIGH" />
      <Map Name="KEY" Column="KEY1" />
      <Map Name="NUM_P" Column="NUM_P" />
      <Map Name="OGRN" Column="OGRN" />
      <Map Name="OKATO" Column="OKATO" />
      <Map Name="OKPO" Column="OKPO" />
      <Map Name="Q_GOR" Column="Q_GOR" />
      <Map Name="SER_P" Column="SER_P" />
    </Table>
  </DbMapping>
</Entity>