<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="LABOR_WOMAN_STATE_MONITORING_ITEM" 
Description="Оценка состояния роженицы" 
PrimaryKey="LaborWomanStateMonitoringItemID">
  <Fields>
    <Attribute Name="LaborWomanStateMonitoringItemID" Type="guid" Description="Идентификатор" />
    <Choice Name="MinuteAfterChildbirth" Description="Минута после рождения">
      <Item Name="15" Index="0" />
      <Item Name="30" Index="1" />
      <Item Name="45" Index="2" />
      <Item Name="60" Index="3" />
      <Item Name="75" Index="4" />
      <Item Name="90" Index="5" />
      <Item Name="105" Index="6" />
      <Item Name="120" Index="7" />
    </Choice>
    <Attribute Name="BloodLoss" Type="int" Description="Кровопотеря (мл.)" />
    <Attribute Name="UterineTone" Type="int" Description="Контроль тонуса матки (ручной)" />
    <Attribute Name="Pulse" Type="int" Description="Пульс (уд./мин.)" />
    <Attribute Name="DiaPressure" Type="int" Description="Диастолическое давление" />
    <Attribute Name="SysPressure" Type="int" Description="Систолическое давление" />
    <Attribute Name="Diuresis" Type="int" Description="Диурез (мл./мин.)" />
    <Attribute Name="Temperature" Type="float" Description="Температура" />
    <Parent Name="LaborWomanStateMonitoring" Type="AKUZ.LABOR_WOMAN_STATE_MONITORING" Description="Мониторинг состояния роженицы в течение двух часов" Required="1" />
  </Fields>
  <DbMapping>
    <Table name="T_LABOR_WOMAN_STATE_MONITORING_ITEM">
      <Map Name="LaborWomanStateMonitoringItemID" Column="LaborWomanStateMonitoringItemID" />
      <Map Name="MinuteAfterChildbirth" Column="MinuteAfterChildbirth" />
      <Map Name="BloodLoss" Column="BloodLoss" />
      <Map Name="UterineTone" Column="UterineTone" />
      <Map Name="Pulse" Column="Pulse" />
      <Map Name="DiaPressure" Column="DiaPressure" />
      <Map Name="SysPressure" Column="SysPressure" />
      <Map Name="Diuresis" Column="Diuresis" />
      <Map Name="Temperature" Column="Temperature" />
      <Map Name="LaborWomanStateMonitoring" Column="LaborWomanStateMonitoring" />
    </Table>
    <Lexem>
      <Map Name="SchokIndex">
        <lx:MathOperator sign="/" xmlns:lx="lexem">
          <lx:Path OwnerQueryLevel="0">
            <lx:StepString name="Pulse" />
          </lx:Path>
          <lx:Path OwnerQueryLevel="0">
            <lx:StepString name="SysPressure" />
          </lx:Path>
        </lx:MathOperator>
      </Map>
    </Lexem>
  </DbMapping>
  <CalculatingAttributes>
    <Attribute Name="SchokIndex" Type="float" Description="Шоковый индекс" NumericPrecision="2" />
  </CalculatingAttributes>
</Entity>