<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="VISION_DIAGNOSTICS" 
Description="Диагностика зрения" 
DNAttributes="{PostingDate}" 
DisplayName="Диагностика зрения от {0}" 
Inherits="AKUZ.AMBULANCE_CARD_RECORD">
  <Customs>
    <Custom Name="NotDisplayedInFilter" Value="ImageOd;ImageOs" />
    <Custom Name="NotDisplayedColumns" Value="ImageOd;ImageOs" />
    <Custom Name="NotTrackedAttributes" Value="ImageOd;ImageOs" />
  </Customs>
  <Fields>
    <Attribute Name="VisualAcuity_R" Type="float" DefaultFormat="{0:0.#####}" Description="Острота зрения(OD)" NumericPrecision="7" NumericScale="3" />
    <Attribute Name="VisualAcuity_L" Type="float" DefaultFormat="{0:0.#####}" Description="Острота зрения(OS)" NumericPrecision="7" NumericScale="3" />
    <Attribute Name="VisualAcuityAdd_R" Type="string" Description="Острота зрения(OD)(доп информация)" CharacterMaximumLength="200" />
    <Attribute Name="VisualAcuityAdd_L" Type="string" Description="Острота зрения(OS)(доп информация)" CharacterMaximumLength="200" />
    <Attribute Name="Sphere_R" Type="float" DefaultFormat="{0:0.#####}" Description="Сфера(Sph)(OD)" NumericPrecision="7" NumericScale="3" />
    <Attribute Name="Sphere_L" Type="float" DefaultFormat="{0:0.#####}" Description="Сфера(Sph)(OS)" NumericPrecision="7" NumericScale="3" />
    <Attribute Name="Cylinder_R" Type="float" DefaultFormat="{0:0.#####}" Description="Цилиндр(Cyl)(OD)" NumericPrecision="3" NumericScale="2" />
    <Attribute Name="Cylinder_L" Type="float" DefaultFormat="{0:0.#####}" Description="Цилиндр(Cyl)(OS)" NumericPrecision="3" NumericScale="2" />
    <Attribute Name="Axis_R" Type="int" Description="Ось(Ax)(OD)" />
    <Attribute Name="Axis_L" Type="int" Description="Ось(Ax)(OS)" />
    <Attribute Name="VisualAcuityCorr_R" Type="float" DefaultFormat="{0:0.#####}" Description="Острота зрения с коррекцией(OD)" NumericPrecision="7" NumericScale="3" />
    <Attribute Name="VisualAcuityCorr_L" Type="float" DefaultFormat="{0:0.#####}" Description="Острота зрения с коррекцией(OS)" NumericPrecision="7" NumericScale="3" />
    <Attribute Name="RealIntraocularPressure_R" Type="string" Description="Истинное ВГД(P0)(OD)" CharacterMaximumLength="50" />
    <Attribute Name="RealIntraocularPressure_L" Type="string" Description="Истинное ВГД(P0)(OS)" CharacterMaximumLength="50" />
    <Attribute Name="BloodMonitorIntraocularPressure_R" Type="string" Description="ВГД контактным тонометром Маклакова(Pt)(OD)" CharacterMaximumLength="50" />
    <Attribute Name="BloodMonitorIntraocularPressure_L" Type="string" Description="ВГД контактным тонометром Маклакова(Pt)(OS)" CharacterMaximumLength="50" />
    <Attribute Name="LightFlashesCriticalFrequency_R" Type="int" Description="Критическая частота световых мельканий(OD)" />
    <Attribute Name="LightFlashesCriticalFrequency_L" Type="int" Description="Критическая частота световых мельканий(OS)" />
    <Parent Name="MedicalExamination" Type="AKUZ.MEDICAL_EXAMINATION" Description="Медицинский осмотр" Required="1" />
    <Link Name="VisionAcuity" Type="AKUZ.VISION_ACUITY" Description="Острота зрения" LinkAttribute="VisionDiagnostics" />
    <Link Name="FieldOfVision" Type="AKUZ.FIELD_OF_VISION" Description="Поле зрения" LinkAttribute="VisionDiagnostics" />
    <Link Name="Keratorefractometry" Type="AKUZ.KERATOREFRACTOMETRY" Description="Кераторефрактометрия" LinkAttribute="VisionDiagnostics" />
    <Link Name="Gonioscopy" Type="AKUZ.GONIOSCOPY" Description="Гониоскопия" LinkAttribute="VisionDiagnostics" />
    <Link Name="EyeglassesSelection" Type="AKUZ.EYEGLASSES_SELECTION" Description="Подбор очков" LinkAttribute="VisionDiagnostics" />
    <Attribute Name="Note" Type="string" Description="Примечание" CharacterMaximumLength="1000" />
  </Fields>
  <DbMapping>
    <Table name="T_VISION_DIAGNOSTICS">
      <Map Name="VisualAcuity_R" Column="VisualAcuity_R" />
      <Map Name="VisualAcuity_L" Column="VisualAcuity_L" />
      <Map Name="VisualAcuityAdd_R" Column="VisualAcuityAdd_R" />
      <Map Name="VisualAcuityAdd_L" Column="VisualAcuityAdd_L" />
      <Map Name="Sphere_R" Column="Sphere_R" />
      <Map Name="Sphere_L" Column="Sphere_L" />
      <Map Name="Cylinder_R" Column="Cylinder_R" />
      <Map Name="Cylinder_L" Column="Cylinder_L" />
      <Map Name="Axis_R" Column="Axis_R" />
      <Map Name="Axis_L" Column="Axis_L" />
      <Map Name="VisualAcuityCorr_R" Column="VisualAcuityCorr_R" />
      <Map Name="VisualAcuityCorr_L" Column="VisualAcuityCorr_L" />
      <Map Name="RealIntraocularPressure_R" Column="RealIntraocularPressure_R" />
      <Map Name="RealIntraocularPressure_L" Column="RealIntraocularPressure_L" />
      <Map Name="BloodMonitorIntraocularPressure_R" Column="BloodMonitorIntraocularPressure_R" />
      <Map Name="BloodMonitorIntraocularPressure_L" Column="BloodMonitorIntraocularPressure_L" />
      <Map Name="LightFlashesCriticalFrequency_R" Column="LightFlashesCriticalFrequency_R" />
      <Map Name="LightFlashesCriticalFrequency_L" Column="LightFlashesCriticalFrequency_L" />
      <Map Name="MedicalExamination" Column="MedicalExamination" />
      <Map Name="Note" Column="Note" />
    </Table>
  </DbMapping>
  <CalculatingAttributes>
    <Attribute Name="ImageOd" Type="string" Description="График(правый глаз)" />
    <Attribute Name="ImageOs" Type="string" Description="График(левый глаз)" />
  </CalculatingAttributes>
</Entity>