<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CDA_CONSULTATION_DOCUMENT" 
Description="Документ консультации в формате CDA" 
PrimaryKey="CdaConsultationDocumentID">
  <Fields>
    <Parent Name="MedicalExamination" Type="AKUZ.MEDICAL_EXAMINATION" Description="Медицинский осмотр" />
    <Parent Name="EhrRusCncm76clke" Type="EHR.EHR_RUS_CNCM76CLKE" Description="Справочник типов консультаций" Required="1" />
    <Link Name="CdaSectionDocinfoProtocolConsultation" Type="AKUZ.CDA_SECTION_DOCINFO_PROTOCOL_CONSULTATION" Description="Сведения о документе" LinkAttribute="CdaConsultationDocument" Required="1" />
    <Link Name="CdaSectionVitalparam" Type="AKUZ.CDA_SECTION_VITALPARAM" Description="Витальные параметры" LinkAttribute="CdaConsultationDocument" />
    <Link Name="CdaSectionResinfoConsultation" Type="AKUZ.CDA_SECTION_RESINFO_CONSULTATION" Description="Заключение врача-специалиста" LinkAttribute="CdaConsultationDocument" Required="1" />
    <Attribute Name="CdaConsultationDocumentID" Type="guid" Description="Идентификатор" />
    <Parent Name="CardNote" Type="AKUZ.CN_CDA_CONSULTATION_DOCUMENT" Description="Медицинская документация" />
  </Fields>
  <DbMapping>
    <Table name="T_CDA_CONSULTATION_DOCUMENT">
      <Map Name="MedicalExamination" Column="MedicalExamination" />
      <Map Name="EhrRusCncm76clke" Column="EhrRusCncm76clke" />
      <Map Name="CdaConsultationDocumentID" Column="CdaConsultationDocumentID" />
      <Map Name="CardNote" Column="CardNote" />
    </Table>
  </DbMapping>
</Entity>