<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="POINT_EXCHANGE_CLINICALDOCUMENT" 
Description="Обмен информацией в формате CDA" 
PrimaryKey="PointExchangeClinicaldocumentID" 
DNAttributes="{Name}" 
DisplayName="{0}">
  <Fields>
    <Attribute Name="PointExchangeClinicaldocumentID" Index="15590001" Type="guid" Description="Идентификатор" />
    <Attribute Name="Name" Index="15590002" Type="string" Description="Имя" Required="1" />
    <Attribute Name="Code" Index="15590003" Type="string" Description="Код" />
    <Attribute Name="RabbitExchange" Index="15590005" Type="string" Description="Имя точки обмена Rabbit" />
    <Attribute Name="RabbitRoutingKey" Index="15590006" Type="string" Description="Ключ к очереди Rabbit" />
    <Attribute Name="RabbitQueue" Index="15590007" Type="string" Description="Очередь Rabbit" />
    <Attribute Name="CodeSystem" Index="15590011" Type="string" Description="Кодовая система для кодирования параметров исследований" />
    <Attribute Name="ReqiuresSending" Index="15590012" Type="bool" Description="Необходимость отправки" Required="1" />
    <Attribute Name="IsInternal" Index="15590014" Type="bool" Description="Точка обмена для использования только внутри МО" Required="1" />
    <Parent Name="LpuMain" Index="15590008" Type="AKUZ.LPU_MAIN" Description="МО" Required="1" />
    <Parent Name="Division" Index="15590010" Type="AKUZ.DIVISION" Description="Отделение" />
    <Child Name="MedicalServicePointExchangeLinks" Index="15590009" Type="AKUZ.MEDICAL_SERVICE_POINT_EXCHANGE_LINK" Description="Связь между медуслугой и точкой обмена" ChildAttribute="PointExchangeClinicaldocument" />
    <Child Name="ResourceExchangePointLinks" Index="15590013" Type="AKUZ.RESOURCE_EXCHANGE_POINT_LINK" Description="Связка между ресурсом и точкой обмена" ChildAttribute="PointExchangeClinicaldocument" />
    <Attribute Name="RabbitServer" Index="15590015" Type="string" Description="Сервер Rabbit" />
    <Attribute Name="AutomaticForwardingFromLis" Type="bool" Description="Автоматическая пересылка результатов из ЛИС" Required="1" />
    <Parent Name="AutoCreatePost" Type="AKUZ.POST" Description="Должность для автоматического создания направлений" />
    <Child Name="LpuPointExchangeLinks" Type="AKUZ.LPU_POINT_EXCHANGE_LINK" Description="Связь точки обмена с МО" ChildAttribute="PointExchangeClinicaldocument" />
    <Attribute Name="IsActive" Type="bool" Description="Активная" Required="1" />
    <Parent Name="KkmSubagent" Type="AKUZ.KKM_SUBAGENT" Description="Субагент для ккм" />
    <Attribute Name="Sampling" Type="bool" Description="Забор материала" DefaultValue="0" Required="1" />
  </Fields>
  <DbMapping>
    <Table name="T_POINT_EXCHANGE_CLINICALDOCUMENT">
      <Map Name="PointExchangeClinicaldocumentID" Column="PointExchangeClinicaldocumentID" />
      <Map Name="Name" Column="Name" />
      <Map Name="Code" Column="Code" />
      <Map Name="RabbitExchange" Column="RabbitExchange" />
      <Map Name="RabbitRoutingKey" Column="RabbitRoutingKey" />
      <Map Name="RabbitQueue" Column="RabbitQueue" />
      <Map Name="CodeSystem" Column="CodeSystem" />
      <Map Name="ReqiuresSending" Column="ReqiuresSending" />
      <Map Name="IsInternal" Column="IsInternal" />
      <Map Name="LpuMain" Column="LpuMain" />
      <Map Name="Division" Column="Division" />
      <Map Name="RabbitServer" Column="RabbitServer" />
      <Map Name="AutomaticForwardingFromLis" Column="AutomaticForwardingFromLis" />
      <Map Name="AutoCreatePost" Column="AutoCreatePost" />
      <Map Name="IsActive" Column="IsActive" />
      <Map Name="KkmSubagent" Column="KkmSubagent" />
      <Map Name="Sampling" Column="Sampling" />
    </Table>
  </DbMapping>
</Entity>