<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="FRVICH_HIV_ADDRESS" 
Description="Адрес пациента РВИЧ" 
PrimaryKey="FrvichHivAddressID">
  <Fields>
    <Attribute Name="FrvichHivAddressID" Type="guid" Description="Идентификатор" />
    <Parent Name="AddressTypeid" Type="EHR.EHR_RUS_KQPRI5EUNV" Description="Тип адреса" Required="1" />
    <Attribute Name="Phone" Type="string" Description="Телефон" CharacterMaximumLength="12" />
    <Link Name="FrvichAddressHivAddress" Type="AKUZ.FRVICH_ADDRESS_HIV_ADDRESS" Description="Блок адреса пациента РВИЧ" LinkAttribute="FrvichHivAddress" />
    <Parent Name="FrvichRegistrationRecord" Type="AKUZ.FRVICH_REGISTRATION_RECORD" Description="Регистрационная запись РВИЧ" Required="1" />
    <Parent Name="PrevAddressTypeid" Type="EHR.EHR_RUS_KQPRI5EUNV" Description="Предыдущий тип адреса" />
    <Attribute Name="BeginDate" Type="datetime" DefaultFormat="{0:dd.MM.yyyy}" Description="Дата добавления адреса" Required="1" />
    <Link Name="FrvichIi" Type="AKUZ.FRVICH_HIV_ADDRESS_II" Description="Сведения об интеграции с ФРВИЧ" LinkAttribute="FrvichHivAddress" />
    <Attribute Name="DateFrom" Type="date" Description="Дата с" />
    <Attribute Name="DateTo" Type="date" Description="Дата по" />
  </Fields>
  <DbMapping>
    <Table name="T_FRVICH_HIV_ADDRESS">
      <Map Name="FrvichHivAddressID" Column="FrvichHivAddressID" />
      <Map Name="AddressTypeid" Column="AddressTypeid" />
      <Map Name="Phone" Column="Phone" />
      <Map Name="FrvichRegistrationRecord" Column="FrvichRegistrationRecord" />
      <Map Name="PrevAddressTypeid" Column="PrevAddressTypeid" />
      <Map Name="BeginDate" Column="BeginDate" />
      <Map Name="DateFrom" Column="DateFrom" />
      <Map Name="DateTo" Column="DateTo" />
    </Table>
  </DbMapping>
</Entity>