<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CDA_REPRESENTATIVE_ROUTTODIAG" 
Description="Сведения о законном (уполномоченном) представителе пациента" 
PrimaryKey="CdaRepresentativeRouttodiagID">
  <Fields>
    <Attribute Name="CdaRepresentativeRouttodiagID" Type="guid" Description="Идентификатор" />
    <Attribute Name="Name" Type="string" Description="Имя" Required="1" />
    <Attribute Name="Surname" Type="string" Description="Фамилия" Required="1" />
    <Attribute Name="MiddleName" Type="string" Description="Отчество" />
    <Attribute Name="Snils" Type="string" Description="СНИЛС" />
    <Attribute Name="Birthday" Type="datetime" Description="Дата рождения" />
    <Attribute Name="OMSPolicy" Type="string" Description="Полис ОМС" />
    <Link Name="CdaIdentificationDocumentRouttodiag" Type="AKUZ.CDA_IDENTIFICATION_DOCUMENT_ROUTTODIAG" Description="Документ, удостоверяющий личность" LinkAttribute="CdaRepresentativeRouttodiag" />
    <Parent Name="EhrRus7c1skgluah" Type="EHR.EHR_RUS_7C1SKGLUAH" Description="Родственные и иные связи" />
    <Parent Name="AddressLiving" Type="AKUZ.PATIENT_ADDRESS" Description="Адрес проживания" />
    <Parent Name="AddressRegistry" Type="AKUZ.PATIENT_ADDRESS" Description="Адрес регистрации" />
    <Child Name="CdaContactRouttodiags" Type="AKUZ.CDA_CONTACT_ROUTTODIAG" Description="Контактные данные" ChildAttribute="CdaRepresentativeRouttodiag" />
    <Parent Name="LpuMain" Type="AKUZ.LPU_MAIN" Description="МО" />
    <Parent Name="CdaSectionPatientRouttodiag" Type="AKUZ.CDA_SECTION_PATIENT_ROUTTODIAG" Description="Сведения о пациенте" />
    <Link Name="CdaAuthorityDocRouttodiag" Type="AKUZ.CDA_AUTHORITY_DOC_ROUTTODIAG" Description="Документ, удостоверяющий полномочия представителя" LinkAttribute="CdaRepresentativeRouttodiag" />
  </Fields>
  <DbMapping>
    <Table name="T_CDA_REPRESENTATIVE_ROUTTODIAG">
      <Map Name="CdaRepresentativeRouttodiagID" Column="CdaRepresentativeRouttodiagID" />
      <Map Name="Name" Column="Name" />
      <Map Name="Surname" Column="Surname" />
      <Map Name="MiddleName" Column="MiddleName" />
      <Map Name="Snils" Column="Snils" />
      <Map Name="Birthday" Column="Birthday" />
      <Map Name="OMSPolicy" Column="OMSPolicy" />
      <Map Name="EhrRus7c1skgluah" Column="EhrRus7c1skgluah" />
      <Map Name="AddressLiving" Column="AddressLiving" />
      <Map Name="AddressRegistry" Column="AddressRegistry" />
      <Map Name="LpuMain" Column="LpuMain" />
      <Map Name="CdaSectionPatientRouttodiag" Column="CdaSectionPatientRouttodiag" />
    </Table>
  </DbMapping>
</Entity>