<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="MEDICAL_SERVICE_PRG_DEVICE_LINK" 
Description="Связка услуги с аппаратом" 
PrimaryKey="MedicalServicePrgDeviceLinkID">
  <Fields>
    <Attribute Name="MedicalServicePrgDeviceLinkID" Type="guid" Description="Идентификатор" />
    <Parent Name="PrgDevice" Type="AKUZ.PRG_DEVICE" Description="Диагностический аппарат" Required="1" />
    <Parent Name="MedicalService" Type="AKUZ.MEDICAL_SERVICE" Description="Медицинские услуги" Required="1" />
    <Parent Name="Resource" Type="AKUZ.RESOURCE" Description="Ресурс" />
    <Child Name="MsPrgDeviceLinkAppDictionarys" Type="AKUZ.MS_PRG_DEVICE_LINK_APP_DICTIONARY" Description="Возможные варианты схемы назначений" ChildAttribute="MedicalServicePrgDeviceLink" />
    <Child Name="DeviceScheduleLists" Type="AKUZ.DEVICE_SCHEDULE_LIST" Description="Список с расписанием аппаратов" ChildAttribute="MedicalServicePrgDeviceLink" />
  </Fields>
  <DbMapping>
    <Table name="T_MEDICAL_SERVICE_PRG_DEVICE_LINK">
      <Map Name="MedicalServicePrgDeviceLinkID" Column="MedicalServicePrgDeviceLinkID" />
      <Map Name="PrgDevice" Column="PrgDevice" />
      <Map Name="MedicalService" Column="MedicalService" />
      <Map Name="Resource" Column="Resource" />
    </Table>
  </DbMapping>
</Entity>