<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="IVL_SUMMARY_INFORMATION" 
Description="Сведения о применении ИВЛ" 
PrimaryKey="IvlSummaryInformationID" 
DNAttributes="{DateTimeBegin};{IvlType};{Duration}" 
DisplayName="{0}.Тип ИВЛ {1}. Длительность {2} часов">
  <Fields>
    <Attribute Name="IvlSummaryInformationID" Type="guid" Description="Идентификатор" />
    <Parent Name="MovementResult" Type="AKUZ.MOVEMENT_RESULT" Description="Выписка отделения" Required="1" />
    <Parent Name="Users" Type="AKUZ.USERS" Description="Пользователи системы" Required="1" />
    <Attribute Name="DateTimeBegin" Type="datetime" Description="Дата и время начала ИВЛ" Required="1" />
    <Attribute Name="Duration" Type="int" Description="Длительность" Required="1" />
    <Choice Name="IvlType" Description="Тип ИВЛ">
      <Item Name="Неинвазивная" Index="1" />
      <Item Name="Инвазивная" Index="2" />
    </Choice>
  </Fields>
  <DbMapping>
    <Table name="T_IVL_SUMMARY_INFORMATION">
      <Map Name="IvlSummaryInformationID" Column="IvlSummaryInformationID" />
      <Map Name="MovementResult" Column="MovementResult" />
      <Map Name="Users" Column="Users" />
      <Map Name="DateTimeBegin" Column="DateTimeBegin" />
      <Map Name="Duration" Column="Duration" />
      <Map Name="IvlType" Column="IvlType" />
    </Table>
  </DbMapping>
  <CalculatingAttributes>
    <Attribute Name="DurationInTimeString" Type="string" Description="Период оказания ИВЛ в строке" RequiredAttributes="{Duration}" />
  </CalculatingAttributes>
</Entity>