<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="MOVEMENT_RESULT_VMP_SERVICE_LINK" 
Description="Связка между выпиской и доп. вмп" 
PrimaryKey="MovementResultVmpServiceLinkID" 
DNAttributes="{VmpService/Code};{VmpService/Name}" 
DisplayName="{0}|{1}">
  <Fields>
    <Attribute Name="MovementResultVmpServiceLinkID" Index="8120001" Type="guid" Description="Идентификатор" />
    <Attribute Name="DateVmp" Index="8120004" Type="datetime" Description="Дата оказания услуги" Required="1" />
    <Parent Name="MovementResult" Index="8120002" Type="AKUZ.MOVEMENT_RESULT" Description="Выписка отделения" Required="1" />
    <Parent Name="VmpService" Index="8120003" Type="AKUZ.VMP_SERVICE" Description="Услуга ВМП" Required="1" />
    <Choice Name="PaymentType" Index="8120005" Description="Тип оплаты" Required="1">
      <Item Name="Рег." Index="0" />
      <Item Name="Фед." Index="1" />
      <Item Name="Прочее" Index="2" />
      <Item Name="Одноканальное" Index="3" />
    </Choice>
    <Attribute Name="MKBCode" Type="string" Description="Код МКБ" CharacterMaximumLength="8" />
    <Attribute Name="Diagnosis" Type="string" Description="Диагноз" />
    <Parent Name="V022PatientModel" Type="AKUZ.V022_PATIENT_MODEL" Description="Классификатор моделей пациента при оказании высокотехнологичной медицинской помощи" />
  </Fields>
  <DbMapping>
    <Table name="T_MOVEMENT_RESULT_VMP_SERVICE_LINK">
      <Map Name="MovementResultVmpServiceLinkID" Column="MovementResultVmpServiceLinkID" />
      <Map Name="DateVmp" Column="DateVmp" />
      <Map Name="MovementResult" Column="MovementResult" />
      <Map Name="VmpService" Column="VmpService" />
      <Map Name="PaymentType" Column="PaymentType" />
      <Map Name="MKBCode" Column="MKBCode" />
      <Map Name="Diagnosis" Column="Diagnosis" />
      <Map Name="V022PatientModel" Column="V022PatientModel" />
    </Table>
  </DbMapping>
</Entity>