<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="POST_TREAT" 
Description="Лечащий врач" 
PrimaryKey="PostTreatID" 
DNAttributes="{Post/Worker/FIO};{Post/Speciality/Name}" 
DisplayName="{0} ({1})">
  <Fields>
    <Attribute Name="PostTreatID" Index="13790001" Type="guid" Description="Идентификатор" />
    <Attribute Name="BeginCareDate" Index="13790003" Type="date" Description="Дата с" Required="1" />
    <Attribute Name="EndCareDate" Index="13790004" Type="date" Description="Дата по" />
    <Parent Name="Post" Index="13790002" Type="AKUZ.POST" Description="Должность" Required="1" />
    <Parent Name="MedicalEpisode" Type="AKUZ.MEDICAL_EPISODE" Description="Медицинский эпизод" />
  </Fields>
  <DbMapping>
    <Table name="T_POST_TREAT">
      <Map Name="PostTreatID" Column="PostTreatID" />
      <Map Name="BeginCareDate" Column="BeginCareDate" />
      <Map Name="EndCareDate" Column="EndCareDate" />
      <Map Name="Post" Column="Post" />
      <Map Name="MedicalEpisode" Column="MedicalEpisode" />
    </Table>
  </DbMapping>
</Entity>