<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CDA_AKENEO_REFERRAL_PROVISION_MEDICAL_SERVICES" 
Description="Направление на оказание медицинских услуг" 
PrimaryKey="CdaAkeneoReferralProvisionMedicalServicesID">
  <Fields>
    <Attribute Name="WorkPlace" Type="string" Description="Место работы и должность" Required="1" />
    <Attribute Name="ReferralJustification" Type="string" Description="Обоснование направления" Required="1" />
    <Link Name="CdaSectionScoporgRefMedicalServiceAkeneo" Type="AKUZ.CDA_SECTION_SCOPORG_REF_MEDICAL_SERVICE_AKENEO" Description="Цель направления и медицинская организация, куда направлен" LinkAttribute="CdaAkeneoReferralProvisionMedicalServices" />
    <Link Name="CdaSectionServicesAkeneo" Type="AKUZ.CDA_SECTION_SERVICES_AKENEO" Description="Медицинские услуги, на которые направлен пациент" LinkAttribute="CdaAkeneoReferralProvisionMedicalServices" />
    <Link Name="CdaSectionBenefitsAkeneo" Type="AKUZ.CDA_SECTION_BENEFITS_AKENEO" Description="Коды льгот" LinkAttribute="CdaAkeneoReferralProvisionMedicalServices" />
    <Link Name="CdaSectionDgnAkeneo" Type="AKUZ.CDA_SECTION_DGN_AKENEO" Description="Диагноз" LinkAttribute="CdaAkeneoReferralProvisionMedicalServices" />
    <Link Name="CdaSectionReferenceDocsAkeneo" Type="AKUZ.CDA_SECTION_REFERENCE_DOCS_AKENEO" Description="Связанные документы" LinkAttribute="CdaAkeneoReferralProvisionMedicalServices" />
    <Link Name="VimisSectionMedicalCard" Type="AKUZ.VIMIS_SECTION_MEDICAL_CARD" Description="Данные о медицинских картах пациента" LinkAttribute="CdaAkeneoReferralProvisionMedicalServices" />
    <Attribute Name="CdaAkeneoReferralProvisionMedicalServicesID" Type="guid" Description="Идентификатор" />
    <Parent Name="CardNote" Type="AKUZ.CN_CDA_AKENEO_REFERRAL_PROVISION_MEDICAL_SERVICES" Description="Медицинская документация" />
  </Fields>
  <DbMapping>
    <Table name="T_CDA_AKENEO_REFERRAL_PROVISION_MEDICAL_SERVICES">
      <Map Name="WorkPlace" Column="WorkPlace" />
      <Map Name="ReferralJustification" Column="ReferralJustification" />
      <Map Name="CdaAkeneoReferralProvisionMedicalServicesID" Column="CdaAkeneoReferralProvisionMedicalServicesID" />
      <Map Name="CardNote" Column="CardNote" />
    </Table>
  </DbMapping>
</Entity>