<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="FRVICH_HIV_DISP_DESEASE" 
Description="Диагноз в карте диспансерного наблюдения ФРВИЧ" 
PrimaryKey="FrvichHivDispDeseaseID">
  <Fields>
    <Attribute Name="DeseaseMkb" Type="string" Description="Код МКБ" CharacterMaximumLength="8" Required="1" />
    <Attribute Name="FrvichHivDispDeseaseID" Type="guid" Description="Идентификатор" />
    <Attribute Name="DeseaseDate" Type="date" Description="Дата постановки диагноза" Required="1" />
    <Attribute Name="PersonId" Type="string" Description="СНИЛС врача, установившего диагноз" CharacterMaximumLength="11" Required="1" />
    <Attribute Name="IsCurrent" Type="bool" Description="Признак актуальности диагноза" />
    <Parent Name="FrvichHivDisp" Type="AKUZ.FRVICH_HIV_DISP" Description="Карта диспансерного наблюдения ФРВИЧ" Required="1" />
    <Parent Name="PersonIdAsWorker" Type="AKUZ.WORKER" Description="Врач установивший диагноз" />
    <Attribute Name="PrevDeseaseDate" Type="date" Description="Предыдущая дата постановки диагноза" />
    <Link Name="FrvichHivDispDeseaseIi" Type="AKUZ.FRVICH_HIV_DISP_DESEASE_II" Description="Сведения об интеграции эпидемиологических сведений с ФРВИЧ" LinkAttribute="FrvichHivDispDesease" />
  </Fields>
  <DbMapping>
    <Table name="T_FRVICH_HIV_DISP_DESEASE">
      <Map Name="DeseaseMkb" Column="DeseaseMkb" />
      <Map Name="FrvichHivDispDeseaseID" Column="FrvichHivDispDeseaseID" />
      <Map Name="DeseaseDate" Column="DeseaseDate" />
      <Map Name="PersonId" Column="PersonId" />
      <Map Name="IsCurrent" Column="IsCurrent" />
      <Map Name="FrvichHivDisp" Column="FrvichHivDisp" />
      <Map Name="PersonIdAsWorker" Column="PersonIdAsWorker" />
      <Map Name="PrevDeseaseDate" Column="PrevDeseaseDate" />
    </Table>
  </DbMapping>
</Entity>