<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CDA_BIO_FACTOR_ROUTTODIAG" 
Description="Биологический фактор" 
PrimaryKey="CdaBioFactorRouttodiagID">
  <Fields>
    <Attribute Name="CdaBioFactorRouttodiagID" Type="guid" Description="Идентификатор" />
    <Parent Name="CdaBioFactorRouttodiag" Type="AKUZ.CDA_BIOFACTOR_ROUTTODIAG" Description="Биологические факторы" />
    <Parent Name="EhrRusJgur22l1qo" Type="EHR.EHR_RUS_JGUR22L1QO" Description="Название фактора" Required="1" />
    <Attribute Name="RefIntervalFrom" Type="float" DefaultFormat="{0:F2}" Description="Референтный интервал(От)" NumericPrecision="5" NumericScale="2" />
    <Attribute Name="RefIntervalTo" Type="float" DefaultFormat="{0:F2}" Description="Референтный интервал(До)" NumericPrecision="5" NumericScale="2" />
    <Parent Name="EhrRusS0JLHGTLBJInterval" Type="EHR.EHR_RUS_S0JLHGTLBJ" Description="Справочник единиц измерения" />
    <Attribute Name="ValueBL" Type="bool" Description="BL значение" />
    <Attribute Name="ValuePQInt" Type="float" Description="PQ и Int значение" NumericPrecision="6" NumericScale="2" />
    <Attribute Name="ValueST" Type="string" Description="ST значение" />
    <Attribute Name="ValueTS" Type="datetime" Description="TS значение " />
    <Attribute Name="ValueCD" Type="string" Description="CD значение (справочник)" />
    <Parent Name="EhrRusS0JLHGTLBJforValue" Type="EHR.EHR_RUS_S0JLHGTLBJ" Description="Единицы измерения для значения фактора" />
  </Fields>
  <DbMapping>
    <Table name="T_CDA_BIO_FACTOR_ROUTTODIAG">
      <Map Name="CdaBioFactorRouttodiagID" Column="CdaBioFactorRouttodiagID" />
      <Map Name="CdaBioFactorRouttodiag" Column="CdaBioFactorRouttodiag" />
      <Map Name="EhrRusJgur22l1qo" Column="EhrRusJgur22l1qo" />
      <Map Name="RefIntervalFrom" Column="RefIntervalFrom" />
      <Map Name="RefIntervalTo" Column="RefIntervalTo" />
      <Map Name="EhrRusS0JLHGTLBJInterval" Column="EhrRusS0JLHGTLBJInterval" />
      <Map Name="ValueBL" Column="ValueBL" />
      <Map Name="ValuePQInt" Column="ValuePQInt" />
      <Map Name="ValueST" Column="ValueST" />
      <Map Name="ValueTS" Column="ValueTS" />
      <Map Name="ValueCD" Column="ValueCD" />
      <Map Name="EhrRusS0JLHGTLBJforValue" Column="EhrRusS0JLHGTLBJforValue" />
    </Table>
  </DbMapping>
  <CalculatingAttributes>
    <Attribute Name="FactorValue" Type="string" Description="Значение фактора" RequiredAttributes="{ValueBL};{ValuePQInt};{ValueST};{ValueTS};{EhrRusJgur22l1qo/DATA_TYPE};{EhrRusJgur22l1qo/LINKED_OID};{EhrRusS0JLHGTLBJforValue/DisplayName};{ValueCD}" />
  </CalculatingAttributes>
</Entity>