<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="EHR" 
Name="MKB_GENERAL" 
Description="Справочник МБК (EHR_RUS_MKB308 и EHR_RUS_23G4LTVREC)" 
PrimaryKey="MkbID" 
DNAttributes="{Code}" 
DisplayName="{0}">
  <Fields>
    <Attribute Name="MkbID" Type="guid" Description="Идентификатор" />
    <Attribute Name="Code" Type="string" Description="Код" CharacterMaximumLength="32" />
    <Attribute Name="Name" Type="string" Description="Наименование" CharacterMaximumLength="2048" />
    <Choice Name="Type" Description="Тип справочника" Required="1">
      <Item Name="EHR_RUS_MKB308" Index="0" />
      <Item Name="EHR_RUS_23G4LTVREC" Index="1" />
    </Choice>
    <Attribute Name="ActualDate" Type="datetime" Description="Дата с которой считается актуальным" />
  </Fields>
  <DbMapping>
    <View name="V_MKB_GENERAL">
      <Map Name="MkbID" Column="MkbID" />
      <Map Name="Code" Column="Code" />
      <Map Name="Name" Column="Name" />
      <Map Name="Type" Column="Type" />
      <Map Name="ActualDate" Column="ActualDate" />
    </View>
  </DbMapping>
</Entity>