<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="CDA_AMBULATORY_SUMMARY_DOCUMENT" 
Description="Эпикриз по законченному случаю амбулаторный в формате CDA" 
PrimaryKey="CdaAmbulatorySummaryDocumentID">
  <Fields>
    <Parent Name="OutcomeOfInspection" Type="AKUZ.OUTCOME_OF_INSPECTION" Description="Исход" Required="1" />
    <Link Name="CdaSectionAmbsAmbulatoryEpicrisis" Type="AKUZ.CDA_SECTION_AMBS_AMBULATORY_EPICRISIS" Description="Сведения амбулаторно-поликлинического обращения" LinkAttribute="CdaAmbulatorySummaryDocument" />
    <Link Name="CdaSectionVitalparam" Type="AKUZ.CDA_SECTION_VITALPARAM" Description="Витальные параметры" LinkAttribute="CdaAmbulatorySummaryDocument" />
    <Link Name="CdaSectionAll" Type="AKUZ.CDA_SECTION_ALL" Description="Патологические реакции" LinkAttribute="CdaAmbulatorySummaryDocument" />
    <Attribute Name="CdaAmbulatorySummaryDocumentID" Type="guid" Description="Идентификатор" />
    <Parent Name="CardNote" Type="AKUZ.CN_CDA_AMBULATORY_SUMMARY_DOCUMENT" Description="Медицинская документация" />
    <Child Name="CdaDiagnosiss" Type="AKUZ.CDA_DIAGNOSIS" Description="Сведения о диагнозе в формате CDA" ChildAttribute="CdaDocument" />
  </Fields>
  <DbMapping>
    <Table name="T_CDA_AMBULATORY_SUMMARY_DOCUMENT">
      <Map Name="OutcomeOfInspection" Column="OutcomeOfInspection" />
      <Map Name="CdaAmbulatorySummaryDocumentID" Column="CdaAmbulatorySummaryDocumentID" />
      <Map Name="CardNote" Column="CardNote" />
    </Table>
  </DbMapping>
</Entity>