<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CDA_AUTHORITY_DOC_ROUTTODIAG" 
Description="Документ, удостоверяющий полномочия представителя" 
PrimaryKey="CdaAuthorityDocRouttodiagID">
  <Fields>
    <Attribute Name="CdaAuthorityDocRouttodiagID" Type="guid" Description="Идентификатор" />
    <Parent Name="IdentityCardTypeId" Type="EHR.EHR_RUS_4C7NGF83DD" Description="Тип документа" Required="1" />
    <Attribute Name="Series" Type="string" Description="Серия документа" CharacterMaximumLength="16" Required="1" />
    <Attribute Name="Number" Type="string" Description="Номер документа" CharacterMaximumLength="16" Required="1" />
    <Attribute Name="IssueOrgName" Type="string" Description="Кем выдан документ" CharacterMaximumLength="256" Required="1" />
    <Attribute Name="IssueDate" Type="date" Description="Дата выдачи документа" Required="1" />
    <Parent Name="CdaRepresentativeRouttodiag" Type="AKUZ.CDA_REPRESENTATIVE_ROUTTODIAG" Description="Сведения о законном (уполномоченном) представителе пациента" />
  </Fields>
  <DbMapping>
    <Table name="T_CDA_AUTHORITY_DOC_ROUTTODIAG">
      <Map Name="CdaAuthorityDocRouttodiagID" Column="CdaAuthorityDocRouttodiagID" />
      <Map Name="IdentityCardTypeId" Column="IdentityCardTypeId" />
      <Map Name="Series" Column="Series" />
      <Map Name="Number" Column="Number" />
      <Map Name="IssueOrgName" Column="IssueOrgName" />
      <Map Name="IssueDate" Column="IssueDate" />
      <Map Name="CdaRepresentativeRouttodiag" Column="CdaRepresentativeRouttodiag" />
    </Table>
  </DbMapping>
</Entity>