<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CDA_DOCUMENT_VMPSMP_DIRECTION" 
Description="Направление на госпитализацию для оказания ВМП и СМП" 
PrimaryKey="CdaDocumentVmpsmpDirectionID">
  <Fields>
    <Link Name="CdaSectionDocinfoVmpsmp" Type="AKUZ.CDA_SECTION_DOCINFO_VMPSMP" Description="Сведения о документе" LinkAttribute="CdaDocumentVmpsmpDirection" Required="1" />
    <Link Name="CdaSectionBenefitsVmpsmp" Type="AKUZ.CDA_SECTION_BENEFITS_VMPSMP" Description="Льготы" LinkAttribute="CdaDocumentVmpsmpDirection" />
    <Link Name="CdaSectionDgnVmpsmp" Type="AKUZ.CDA_SECTION_DGN_VMPSMP" Description="Диагнозы" LinkAttribute="CdaDocumentVmpsmpDirection" Required="1" />
    <Link Name="CdaSectionLinkdocsVmpsmp" Type="AKUZ.CDA_SECTION_LINKDOCS_VMPSMP" Description="Связанные документы" LinkAttribute="CdaDocumentVmpsmpDirection" Required="1" />
    <Attribute Name="CdaDocumentVmpsmpDirectionID" Type="guid" Description="Идентификатор" />
    <Parent Name="CardNote" Type="AKUZ.CN_CDA_DOCUMENT_VMPSMP_DIRECTION" Description="Медицинская документация" />
  </Fields>
  <DbMapping>
    <Table name="T_CDA_DOCUMENT_VMPSMP_DIRECTION">
      <Map Name="CdaDocumentVmpsmpDirectionID" Column="CdaDocumentVmpsmpDirectionID" />
      <Map Name="CardNote" Column="CardNote" />
    </Table>
  </DbMapping>
</Entity>