<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CDA_LABORATORY_PROTOCOL" 
Description="Протокол лабораторного исследования в формате CDA" 
PrimaryKey="CdaLaboratoryProtocolID" 
DNAttributes="{CdaDicLaboratoryGrupper/Research/Name};{CdaDicLaboratoryGrupper/SampleMaterial/NameEHR}" 
DisplayName="{0}({1})">
  <Fields>
    <Parent Name="EventBase" Type="AKUZ.EVENT_BASE" Description="Случай обращения" Required="1" />
    <Parent Name="Post" Type="AKUZ.POST" Description="Автор документа" />
    <Parent Name="CdaDicLaboratoryGrupper" Type="AKUZ.CDA_DIC_LABORATORY_GRUPPER" Description="Лабораторный тест" />
    <Attribute Name="CreateDate" Type="date" Description="Дата создания" Required="1" />
    <Parent Name="LpuMain" Type="AKUZ.LPU_MAIN" Description="МО" Required="1" />
    <Attribute Name="CdaLaboratoryProtocolID" Type="guid" Description="Идентификатор" />
    <Parent Name="CardNote" Type="AKUZ.CN_CDA_LABORATORY_PROTOCOL" Description="Медицинская документация" />
  </Fields>
  <DbMapping>
    <Table name="T_CDA_LABORATORY_PROTOCOL">
      <Map Name="EventBase" Column="EventBase" />
      <Map Name="Post" Column="Post" />
      <Map Name="CdaDicLaboratoryGrupper" Column="CdaDicLaboratoryGrupper" />
      <Map Name="CreateDate" Column="CreateDate" />
      <Map Name="LpuMain" Column="LpuMain" />
      <Map Name="CdaLaboratoryProtocolID" Column="CdaLaboratoryProtocolID" />
      <Map Name="CardNote" Column="CardNote" />
    </Table>
  </DbMapping>
</Entity>