<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="PATIENT_AGREE_TEMPLATE" 
Description="Настройка согласия пациента" 
Inherits="VCLib.FILE">
  <Fields>
    <Attribute Name="Filter" Type="text" Description="Фильтр" />
    <Parent Name="LpuMain" Type="AKUZ.LPU_MAIN" Description="МО" />
    <Parent Name="Entities" Type="VCLib.ENTITIES" Description="Сущности метаданных" Required="1" />
    <Choice Name="AgreeType" Description="Тип согласия" Required="1">
      <Item Name="Согласие" Index="0" />
      <Item Name="Отказ" Index="1" />
      <Item Name="Заявление" Index="2" />
      <Item Name="Решение консилиума / врача" Index="3" />
    </Choice>
    <Attribute Name="IsActive" Type="bool" Description="Активен" Required="1" />
  </Fields>
  <DbMapping>
    <Table name="T_PATIENT_AGREE_TEMPLATE">
      <Map Name="Filter" Column="Filter" />
      <Map Name="LpuMain" Column="LpuMain" />
      <Map Name="Entities" Column="Entities" />
      <Map Name="AgreeType" Column="AgreeType" />
      <Map Name="IsActive" Column="IsActive" />
    </Table>
  </DbMapping>
</Entity>