<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CDA_VRT_DIAGNOSIS" 
Description="Диагноз заболевания" 
PrimaryKey="CdaVrtDiagnosisID">
  <Fields>
    <Attribute Name="CdaVrtDiagnosisID" Type="guid" Description="Идентификатор" />
    <Attribute Name="MedDesc" Type="string" Description="Врачебное описание нозологической единицы" CharacterMaximumLength="2048" Required="1" />
    <Attribute Name="MkbCode" Type="string" Description="Код по МКБ-10" Required="1" />
    <Attribute Name="MkbDesc" Type="string" Description="Описание по МКБ-10" CharacterMaximumLength="512" Required="1" />
    <Parent Name="CdaSectionVrtPurpose" Type="AKUZ.CDA_SECTION_VRT_DGN" Description="Цель направления и медицинская организация" />
  </Fields>
  <DbMapping>
    <Table name="T_CDA_VRT_DIAGNOSIS">
      <Map Name="CdaVrtDiagnosisID" Column="CdaVrtDiagnosisID" />
      <Map Name="MedDesc" Column="MedDesc" />
      <Map Name="MkbCode" Column="MkbCode" />
      <Map Name="MkbDesc" Column="MkbDesc" />
      <Map Name="CdaSectionVrtPurpose" Column="CdaSectionVrtPurpose" />
    </Table>
  </DbMapping>
</Entity>