<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="BSK_REGISTER_COMPLICATION_LINK" 
Description="Осложнения БСК" 
PrimaryKey="BskRegisterComplicationLinkID">
  <Fields>
    <Attribute Name="BskRegisterComplicationLinkID" Type="guid" Description="Идентификатор" />
    <Parent Name="BskRegisterRecords" Type="AKUZ.BSK_REGISTER_RECORDS" Description="Запись в БСК регистре" Required="1" />
    <Choice Name="ComplicationType" Description="Тип осложнения" Required="1">
      <Item Name="Нет" Index="0" />
      <Item Name="ХСН" Index="1" />
    </Choice>
    <Attribute Name="RegistrationDate" Type="datetime" Description="Дата регистрации" Required="1" />
    <Attribute Name="MKBCode" Type="string" Description="Код МКБ" CharacterMaximumLength="8" Required="1" />
    <Attribute Name="Diagnosis" Type="string" Description="Диагноз" CharacterMaximumLength="4096" Required="1" />
  </Fields>
  <DbMapping>
    <Table name="T_BSK_REGISTER_COMPLICATION_LINK">
      <Map Name="BskRegisterComplicationLinkID" Column="BskRegisterComplicationLinkID" />
      <Map Name="BskRegisterRecords" Column="BskRegisterRecords" />
      <Map Name="ComplicationType" Column="ComplicationType" />
      <Map Name="RegistrationDate" Column="RegistrationDate" />
      <Map Name="MKBCode" Column="MKBCode" />
      <Map Name="Diagnosis" Column="Diagnosis" />
    </Table>
  </DbMapping>
</Entity>