<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="STOR" 
Name="GROUP_REMAINS_ON_MNN" 
Description="Сгруппированые остатки по МНН" 
PrimaryKey="GroupRemainsOnMnnID" 
DNAttributes="{CMnn/NameRus};{MedicationForms/Name};{DoseView};{ExpirationDate};{Amount}" 
DisplayName="{0} {1} {2} Срок годности:{3} Остаток:{4}">
  <Fields>
    <Attribute Name="GroupRemainsOnMnnID" Type="guid" Description="Идентификатор" />
    <Parent Name="CMnn" Type="PHARM.C_MNN" Description="Международное непатентованное наименование (МНН)" Required="1" />
    <Parent Name="MedicationForms" Type="PHARM.MEDICATION_FORMS" Description="Лекарственные формы" />
    <Attribute Name="DoseView" Type="string" Description="Дозировка" CharacterMaximumLength="1000" />
    <Parent Name="Storage" Type="STOR.STORAGE" Description="Склад" Required="1" />
    <Attribute Name="Amount" Type="float" DefaultFormat="{0:0.#####}" Description="Остаток" NumericPrecision="20" NumericScale="6" Required="1" />
    <Attribute Name="ExpirationDate" Type="date" Description="Срок годности" Required="1" />
    <Parent Name="EhrRus9a9g09e8kl" Type="EHR.EHR_RUS_9A9G09E8KL" Description="Узлы СМНН. ЕСКЛП" />
  </Fields>
  <DbMapping>
    <View name="V_GROUP_REMAINS_ON_MNN">
      <Map Name="GroupRemainsOnMnnID" Column="GroupRemainsOnMnnID" />
      <Map Name="CMnn" Column="CMnn" />
      <Map Name="MedicationForms" Column="MedicationForms" />
      <Map Name="DoseView" Column="DoseView" />
      <Map Name="Storage" Column="Storage" />
      <Map Name="Amount" Column="Amount" />
      <Map Name="ExpirationDate" Column="ExpirationDate" />
      <Map Name="EhrRus9a9g09e8kl" Column="EhrRus9a9g09e8kl" />
    </View>
  </DbMapping>
</Entity>