diff --git a/src/pages/oldCalendar/TheCalendar.vue b/src/pages/oldCalendar/TheCalendar.vue
deleted file mode 100644
index 6a6fd5b..0000000
--- a/src/pages/oldCalendar/TheCalendar.vue
+++ /dev/null
@@ -1,189 +0,0 @@
-
- .calendar-container.flex
- calendar-sidebar(
- :url="url",
- :schedules-data="schedulesData",
- :open-form-create="openFormCreateEvent",
- :event-statuses="eventStatuses",
- @width="changeWidth",
- )
- calendar-schedule(
- :url="url",
- :schedules-data="schedulesData",
- :current-date="currentDate",
- :time-information="timeInformation",
- :events-data="eventsData",
- :sidebar-width="sidebarWidth",
- :event-statuses="eventStatuses",
- @previous-date="switchPreviousDate",
- @next-date="switchNextDate",
- @selected-layout="changeCalendarLayout",
- @selected-event="writeEventData",
- @delete-event="openModal",
- :open-form-create-event="openFormCreateEvent"
- )
- calendar-form-add-event(
- v-model="isOpenForm",
- :selected-event-data="selectedEvent",
- :event-statuses="eventStatuses",
- :time-information="timeInformation",
- :current-date="currentDate",
- @clear-event-data="clearSelectedEvent"
- )
- base-modal(
- v-model="showModal",
- title="Удаление события"
- )
- calendar-delete-modal(
- :event-statuses="eventStatuses",
- :owner-event="selectedEvent",
- :close-modal="changeShowModal",
- @update-events="fetchEventsData"
- )
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarBackground.vue b/src/pages/oldCalendar/components/CalendarBackground.vue
deleted file mode 100644
index 9c87afc..0000000
--- a/src/pages/oldCalendar/components/CalendarBackground.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
- .flex.flex-col(
- :style="backgroundExtendedWidth"
- )
- .flex.flex-col
- .line-wrapper
- .line.flex.items-center(
- v-for="hour in timeCoil",
- :key="hour"
- )
- .middle-line
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarClockColumn.vue b/src/pages/oldCalendar/components/CalendarClockColumn.vue
deleted file mode 100644
index 0441973..0000000
--- a/src/pages/oldCalendar/components/CalendarClockColumn.vue
+++ /dev/null
@@ -1,63 +0,0 @@
-
- .calendar-clock-column.flex.flex-col.items-end.gap-y-43.pb-5.px-3
- span.text-base(
- v-for="hour in timeCoil",
- :key="hour",
- :class="currentHourStyle(hour)"
- ) {{ hour }}
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarColumn.vue b/src/pages/oldCalendar/components/CalendarColumn.vue
deleted file mode 100644
index 2ec213f..0000000
--- a/src/pages/oldCalendar/components/CalendarColumn.vue
+++ /dev/null
@@ -1,259 +0,0 @@
-
- .calendar-column-wrapper.flex.flex-col
- .header.flex.items-center.justify-between.py-2.px-6.top-0
- .flex.items-center
- base-avatar.mr-2(:size="32", :color="ownerData.color")
- img.h-full.object-cover(
- :src="url + ownerData.photo",
- alt="Team member",
- v-if="ownerData.photo"
- )
- span(v-if="!ownerData.photo") {{ defaultAvatar }}
- span.owner-name.font-medium.text-base.mr-6 {{ ownerName }}
- img.icon-wrapper.cursor-pointer(src="@/assets/icons/lock.svg")
- column-header-checkbox
- .body(@dblclick="clickOnBackground")
- //.nonworking-time(:style="nonworkingStartTime")
- transition-group(name="card")
- calendar-event-card(
- v-for="event, index in dayEvents",
- :key="event.id + index",
- :id="event.id",
- :ownerEvent="event",
- :event-statuses="eventStatuses",
- :style="eventCardPosition(event.start, event.end)",
- @selected-event="transmitEventData",
- @delete-event="transmitDeleteEvent",
- :schedule-body-ref="scheduleBodyRef",
- )
- //.nonworking-time.absolute(:style="nonworkingEndTime")
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarColumnHeaderCheckbox.vue b/src/pages/oldCalendar/components/CalendarColumnHeaderCheckbox.vue
deleted file mode 100644
index 8ec28e7..0000000
--- a/src/pages/oldCalendar/components/CalendarColumnHeaderCheckbox.vue
+++ /dev/null
@@ -1,42 +0,0 @@
-
- div.icon-wrap.flex.items-center.justify-center.cursor-pointer.py-1.px-2(
- :class="{disable: !isChecked}",
- @click="changeState"
- )
- .icon-doc-ok.text-xxl
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarDeleteModal.vue b/src/pages/oldCalendar/components/CalendarDeleteModal.vue
deleted file mode 100644
index d59ee3c..0000000
--- a/src/pages/oldCalendar/components/CalendarDeleteModal.vue
+++ /dev/null
@@ -1,78 +0,0 @@
-
- .flex.flex-col.mb-1.mt-4
- span.font-medium.text-base.modal-text.mb-3 Вы действительно хотите удалить это событие?
- .card-container
- calendar-event-description-card(
- disabled,
- :event-statuses="eventStatuses",
- :owner-event="ownerEvent"
- )
- .flex.gap-x-3.mt-6.font-semibold
- q-btn(
- label="Отменить",
- no-caps,
- outline,
- color="primary",
- padding="10px 22px",
- @click="closeModal"
- )
- q-btn(
- label="Удалить",
- no-caps,
- outline,
- style="color: var(--border-red-color)",
- padding="10px 22px",
- @click="deleteEvent"
- )
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarEventCard.vue b/src/pages/oldCalendar/components/CalendarEventCard.vue
deleted file mode 100644
index 18c8d51..0000000
--- a/src/pages/oldCalendar/components/CalendarEventCard.vue
+++ /dev/null
@@ -1,348 +0,0 @@
-
- .wrapper.cursor-pointer.my-1.mx-1(
- :style="themeColors",
- :class="cardTheme",
- ref="eventCard"
- )
- .card.flex.px-2(
- :class="{'py-6px flex-col': longCard}",
- :style="cardHeight",
- @click="openDescriptionCard",
- @dblclick.stop
- )
- .header.flex.justify-between.items-center(:class="{'items-start': longCard}")
- .header-text
- span.inline-block.align-middle.font-bold.text-base.mr-4 {{ eventTime }}
- span.inline-block.align-middle.font-medium.text-base {{ eventMember }}
- .details-count.flex.justify-center.items-center.text-xxs.font-medium(v-if="someDetailsShown") {{ `+${detailsCount}` }}
- .body.flex.text-xxs.font-medium(v-if="longCard")
- .col.mr-22px
- ul
- li.mt-2(v-for="elem in descriptionColumns.leftColumn" :key="elem") {{ elem }}
- .col
- ul
- li.mt-2(v-for="elem in descriptionColumns.rightColumn" :key="elem") {{ elem }}
- transition(name="description")
- calendar-event-description-card(
- v-if="isOpenDescriptionCard",
- :owner-event="ownerEvent",
- :event-statuses="eventStatuses",
- @selected-event="transmitEventData",
- @close-description-card="closeDescriptionCard",
- @delete-event="transmitDeleteEvent",
- :schedule-body-ref="scheduleBodyRef"
- )
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarEventDescriptionCard.vue b/src/pages/oldCalendar/components/CalendarEventDescriptionCard.vue
deleted file mode 100644
index 51ac05f..0000000
--- a/src/pages/oldCalendar/components/CalendarEventDescriptionCard.vue
+++ /dev/null
@@ -1,214 +0,0 @@
-
- .wrapper.px-4.pt-14px.pb-4.font-medium.cursor-auto(
- :style="{...typeColor, ...position, ...constantWidth}",
- v-click-outside="close",
- :class="{'shadow': !disabled}",
- ref="descriptionCard"
- )
- .flex.justify-between.items-center.mb-2
- .flex
- span.inline-block.font-bold.text-base.mr-3.mt-2px {{ eventTime }}
- .type.text-xs.font-medium.flex.items-center.justify-center.px-14px(v-if="isCertainType")
- span.type-text {{ status }}
- .right-side.flex.gap-x-4.text-sm(v-if="!disabled")
- .icon-basket.flex.items-center.cursor-pointer(@click="transmitDeleteEvent")
- .icon-edit.flex.items-center.cursor-pointer(@click="transmitEventData")
- .icon-cancel.text-xxs.flex.items-center.cursor-pointer(@click="close")
- .body.mr-6
- span.text-base {{ eventMember }}
- .flex.text-xxs.justify-between(
- v-if="!disabled",
- :class="{'mt-4': description.length > 0}"
- )
- .column
- ul
- li(v-for="elem in description" :key="elem") {{ elem }}
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarFormAddEvent.vue b/src/pages/oldCalendar/components/CalendarFormAddEvent.vue
deleted file mode 100644
index f88d92c..0000000
--- a/src/pages/oldCalendar/components/CalendarFormAddEvent.vue
+++ /dev/null
@@ -1,648 +0,0 @@
-
- base-modal(
- v-model="value",
- :title="!selectedEventData.id ? 'Запись на прием' : 'Изменение записи'",
- draggable,
- hide-overlay
- )
- .event-form.flex.flex-col.gap-y-6.pt-8
- .flex.flex-col.gap-y-8
- base-select(
- v-if="selectedEventData.id"
- v-model="status",
- :items="statusesList",
- label="Статус приема",
- size="M"
- )
- base-input(
- v-else,
- disabled,
- v-model="status.label",
- label="Статус приема",
- size="M"
- )
- base-select(
- :items="ownersList",
- v-model="employees.employee",
- placeholder="Выберите сотрудника"
- label="Сотрудник",
- size="M"
- )
- base-select(
- :items="membersList",
- v-model="members.person",
- placeholder="Выберите клиента",
- label="Клиент",
- size="M"
- )
- .flex.gap-x-4
- base-input(
- v-model="eventDate",
- label="Дата",
- type="date",
- size="M"
- )
- .flex.gap-x-2.items-center.justify-between
- base-input(
- type="time",
- v-model="startTime",
- label="Начало",
- size="M"
- )
- span.mt-4 —
- base-input(
- type="time",
- v-model="endTime",
- label="Конец",
- size="M"
- )
- q-btn.create-button(
- v-if="!selectedEventData.id",
- label="Создать событие",
- no-caps,
- color="primary",
- padding="10px 22px",
- :disabled="disabledCreateButton",
- @click="sendEventData",
- )
- q-btn.update-button(
- v-else,
- label="Сохранить",
- no-caps,
- color="primary",
- padding="10px 22px",
- :disabled="disabledUpdateButton",
- @click="updateEventData",
- )
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarHeader.vue b/src/pages/oldCalendar/components/CalendarHeader.vue
deleted file mode 100644
index 42547ac..0000000
--- a/src/pages/oldCalendar/components/CalendarHeader.vue
+++ /dev/null
@@ -1,124 +0,0 @@
-
- .calendar-header-wrapper.flex.items-center.justify-between.py-4.pl-4.pr-6
- .flex.items-center
- q-btn.mr-4(
- color="secondary",
- round,
- size="14px",
- dense,
- icon="arrow_back_ios_new"
- text-color="primary",
- @click="previousHandler"
- )
- q-btn.mr-4(
- color="secondary",
- icon="arrow_forward_ios",
- round,
- size="14px",
- text-color="primary",
- dense,
- @click="nextHandler"
- )
- .text.flex.items-center
- span.font-medium.text-base {{ dateString }}
- span.today.font-bold.text-xxs(v-if="isCurrentDate") Сегодня
- //q-btn(
- color="blue-grey-1",
- round,
- size="14px",
- text-color="primary",
- @click="previousHandler"
- icon="arrow_back_ios_new"
- //)
- //.text.flex.items-center.mx-4
- span.font-medium.text-base {{ dateString }}
- span.today.font-bold.text-xxs(v-if="isCurrentDate") Сегодня
- //q-btn(
- color="blue-grey-1",
- icon="arrow_forward_ios",
- round,
- size="14px",
- text-color="primary",
- @click="nextHandler"
- //)
- //.flex.gap-x-4.ml-5.border-2.border-green-600.bg-lime-200.items-center
- .w-120.h-10.flex.items-center {{ date }}
- base-date-picker(v-model="date")
- calendar-layout-switch(@selected="changeSelectedLayout")
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarLayoutSwitch.vue b/src/pages/oldCalendar/components/CalendarLayoutSwitch.vue
deleted file mode 100644
index 762f6e6..0000000
--- a/src/pages/oldCalendar/components/CalendarLayoutSwitch.vue
+++ /dev/null
@@ -1,52 +0,0 @@
-
- .layout-switch-wrapper.flex.h-10.p-1
- button#day.flex.items-center.px-3.transition.duration-200.ease-linear(
- :class="dayLayoutState",
- @click="changeSelectedLayout"
- ) День
- button#week.flex.items-center.px-3.transition.duration-200.ease-linear(
- :class="weekLayoutState",
- @click="changeSelectedLayout"
- ) Неделя
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarSchedule.vue b/src/pages/oldCalendar/components/CalendarSchedule.vue
deleted file mode 100644
index e5e63c3..0000000
--- a/src/pages/oldCalendar/components/CalendarSchedule.vue
+++ /dev/null
@@ -1,424 +0,0 @@
-
- .schedule.mx-2.pb-22px(
- ref="schedule",
- :style="scheduleWidth"
- )
- calendar-header(
- :current-date="currentDate",
- :is-current-date="isCurrentDate",
- @previous-date="previousDate",
- @next-date="nextDate",
- @selected-layout="selectedLayout"
- )
- .schedule-body(
- @scroll="changeScrollingState",
- ref="scheduleBody"
- )
- .hiding-container.fixed(v-if="isScrolling")
- .column-wrapper.flex.ml-20(:style="columnWrapperWidth")
- calendar-column(
- v-for="(owner, index) in filteredOwners",
- :key="owner.id",
- :owner-data="owner",
- :url="url",
- :day-events="filterEventsByOwner(owner)",
- :day-start-time="validateStartTime",
- :day-end-time="validateEndTime",
- :style="columnSize",
- :event-statuses="eventStatuses",
- @selected-event="transmitEventData",
- @delete-event="transmitDeleteEvent",
- :schedule-body-ref="$refs.scheduleBody",
- :open-form-create-event="openFormCreateEvent",
- :current-date="currentDate"
- )
- .flex.w-full.relative
- .time-coil-wrapper.left-0.-mt-12.pt-9
- calendar-clock-column(
- :timeCoil="timeCoil",
- :current-time="currentTime",
- :is-current-date="isCurrentDate",
- :day-end-time="validateEndTime"
- )
- .time-circle-indicator.left-74px(
- v-if="isShownIndicator",
- :style="circleIndicatorLocation"
- )
- span.time-line-indicator.block.left-20(
- v-if="isShownIndicator",
- :style="lineIndicatorLocation"
- )
- .flex(:class="calendarBackgroundWidth")
- calendar-background(
- :time-coil="timeCoil",
- :owners-count="ownersCount"
- )
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarSidebar.vue b/src/pages/oldCalendar/components/CalendarSidebar.vue
deleted file mode 100644
index 65535d6..0000000
--- a/src/pages/oldCalendar/components/CalendarSidebar.vue
+++ /dev/null
@@ -1,113 +0,0 @@
-
- .sidebar.flex.flex-col.bg-white(:class="openSidebar")
- .sidebar-wrapper.h-full.my-13px.flex.flex-col.justify-between(:style="sidebarWidth")
- .sidebar-content.items-center.flex.flex-col.gap-y-8.px-4.py-19px
- q-btn(
- color="primary",
- round,
- icon="add",
- size="13px",
- @click="openFormCreate",
- v-if="!isOpen"
- )
- q-btn(
- no-caps
- label="Создать событие",
- color="primary",
- class="text-weight-medium, full-width",
- icon-right="add",
- @click="openFormCreate",
- v-else
- )
- calendar-sidebar-event(:is-open="isOpen", :event-statuses="eventStatuses")
- calendar-sidebar-teammate(:team-data="teamData", :is-open="isOpen", :url="url")
- //.button-wrapper.flex.justify-center.mb-23px
- q-btn(
- round,
- icon="app:icon-long-arrow",
- size="13px",
- color="secondary",
- text-color="primary"
- :style="{ transform: `rotate(${turnButton})`}",
- @click="changeSize",
- )
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarSidebarEvent.vue b/src/pages/oldCalendar/components/CalendarSidebarEvent.vue
deleted file mode 100644
index 310c7f1..0000000
--- a/src/pages/oldCalendar/components/CalendarSidebarEvent.vue
+++ /dev/null
@@ -1,82 +0,0 @@
-
- .flex.flex-col.items-center.w-full
- .flex.flex-col.items-center(v-if="!isOpen")
- q-btn(
- round,
- icon="add",
- size="12px",
- text-color="primary",
- color="secondary"
- padding="4px",
- dense
- )
- .flex.flex-col.gap-y-2.items-center.mt-4
- .event.flex.items-center.justify-center(v-for="event in eventStatuses" :key="event.id")
- .event-type(:style="{ background: event.color }")
- .flex.flex-col.gap-y-4.w-full(v-else)
- .flex.items-center.justify-between
- .flex.text-base.font-bold(:style="{ color: 'var(--font-dark-blue-color)' }") Виды событий
- q-btn(
- v-if="isOpen",
- round,
- icon="add",
- size="12px",
- text-color="primary",
- color="secondary"
- padding="4px"
- )
- .flex.flex-col.gap-y-2
- .relative.flex.items-center.gap-x-3.h-8(v-for="event in eventStatuses")
- input.custom-input.py-2.pl-6.h-full.not-italic.font-medium.text-xxs(
- :placeholder="event.label"
- :key="event.id"
- )
- .event-open(:style="{ background: event.color }")
- span.icon-edit.cursor-pointer
-
-
-
-
-
diff --git a/src/pages/oldCalendar/components/CalendarSidebarTeammate.vue b/src/pages/oldCalendar/components/CalendarSidebarTeammate.vue
deleted file mode 100644
index e9ed9b5..0000000
--- a/src/pages/oldCalendar/components/CalendarSidebarTeammate.vue
+++ /dev/null
@@ -1,86 +0,0 @@
-
- .flex.flex-col.items-center.gap-y-2.justify-center(v-if="!isOpen")
- q-btn(
- round,
- icon="add",
- size="12px",
- text-color="primary",
- color="secondary"
- padding="4px",
- dense
- )
- .team-card(v-for="teammate in teamData" :key="teammate.id")
- base-avatar(:size="32", :color="teammate.color")
- img.h-full.object-cover(:src="url + teammate.photo", alt="Team member", v-if="teammate.photo")
- span(v-if="!teammate.photo") {{teammateAvatar(teammate)}}
- .flex.flex-col.gap-y-4.w-full(v-else, :style="{ color: 'var(--font-dark-blue-color)' }")
- .flex.items-center.justify-between
- .flex.text-base.font-bold Команды
- q-btn(
- round,
- icon="add",
- size="12px",
- text-color="primary",
- color="secondary"
- padding="4px",
- dense
- )
- .box-team.flex.flex-col.gap-y-2
- .team-card.flex.items-center.justify-between.cursor-pointer(
- v-for="teammate in teamData",
- :key="teammate.id"
- )
- .flex.items-center
- base-avatar(:size="32", :color="teammate.color")
- img.h-full.object-cover(:src="url + teammate.photo", alt="Team member", v-if="teammate.photo")
- span(v-if="!teammate.photo") {{teammateAvatar(teammate)}}
- .flex.ml-2.not-italic.font-medium.text-xxs {{ changeName(teammate.last_name, teammate.first_name, teammate.patronymic) }}
- span.icon-change-place.cursor-pointer.w-5.flex.items-center.justify-center.w-6.h-6
-
-
-
-
-
diff --git a/src/pages/oldCalendar/utils/statusesConfig.js b/src/pages/oldCalendar/utils/statusesConfig.js
deleted file mode 100644
index cc13253..0000000
--- a/src/pages/oldCalendar/utils/statusesConfig.js
+++ /dev/null
@@ -1,44 +0,0 @@
-export const statusesConfig = [
- {
- id: 0,
- label: "Планируется прием",
- value: "PLANNED",
- color: "var(--default-white)",
- },
- {
- id: 1,
- label: "Отменил",
- value: "CANCELED",
- color: "var(--bg-event-grey-color)",
- },
- {
- id: 2,
- label: "Ожидается прием",
- value: "EXPECTED",
- color: "var(--bg-event-yellow-color)",
- },
- {
- id: 3,
- label: "Опаздывает",
- value: "LATE",
- color: "var(--bg-event-orange-color)",
- },
- {
- id: 4,
- label: "Идет прием",
- value: "RECEPTION",
- color: "var(--bg-event-blue-color)",
- },
- {
- id: 5,
- label: "Прием завершен",
- value: "COMPLETED",
- color: "var(--bg-event-green-color)",
- },
- {
- id: 6,
- label: "Не пришел",
- value: "DID_NOT_COME",
- color: "var(--bg-event-red-color)",
- },
-];
diff --git a/src/pages/oldMedicalCard/TheMedicalCard.vue b/src/pages/oldMedicalCard/TheMedicalCard.vue
deleted file mode 100644
index da36529..0000000
--- a/src/pages/oldMedicalCard/TheMedicalCard.vue
+++ /dev/null
@@ -1,13 +0,0 @@
-
- medical-card-wrapper
-
-
-
-
-
diff --git a/src/pages/oldMedicalCard/components/MedicalBaseData.vue b/src/pages/oldMedicalCard/components/MedicalBaseData.vue
deleted file mode 100644
index 627e887..0000000
--- a/src/pages/oldMedicalCard/components/MedicalBaseData.vue
+++ /dev/null
@@ -1,92 +0,0 @@
-
- .base.flex.flex-col.gap-y-6
- .flex.flex-col.gap-y-6
- span.font-bold Основное
- .flex.flex-col.gap-y-6
- base-input.w-full(
- placeholder="ФИО*",
- v-model="clientDetail.fullName",
- disabled,
- size="M"
- )
- base-radio-buttons-group(
- :items="gendersList",
- radioButtonsLabel="Пол",
- v-model="clientDetail.gender",
- inline
- )
- .flex.gap-x-4
- .input
- base-input(
- type="date",
- label="Дата рождения",
- v-model="clientDetail.birth_date",
- size="M"
- )
- .input
- base-input(
- placeholder="000–000–000 00",
- mask="###-###-### ##",
- label="СНИЛС",
- v-model="clientDetail.insurance_number",
- size="M"
- )
- .flex.flex-col.gap-y-6
- base-input(
- label="Адрес регистрации",
- placeholder="Введите полный адрес",
- v-model="clientDetail.registration_address"
- size="M"
- )
- base-input(
- label="Фактический адрес места жительства",
- placeholder="Введите полный адрес",
- v-model="clientDetail.temporary_address"
- size="M"
- )
- .flex.gap-x-4
- .input
- base-input(
- label="Номер телефона",
- placeholder="+7 (915) 644–92–23",
- mask="+7 (###) ###-##-##",
- v-model="clientDetail.phone",
- size="M"
- )
- .input
- base-input(
- label="Email",
- placeholder="user@yandex.ru"
- v-model="clientDetail.email",
- size="M"
- )
-
-
-
-
-
diff --git a/src/pages/oldMedicalCard/components/MedicalCardHeader.vue b/src/pages/oldMedicalCard/components/MedicalCardHeader.vue
deleted file mode 100644
index 43b271b..0000000
--- a/src/pages/oldMedicalCard/components/MedicalCardHeader.vue
+++ /dev/null
@@ -1,29 +0,0 @@
-
- .flex.w-full
- .flex.w-full.text-lgx.font-bold.items-center.justify-center Медицинская карта №{{numberCard}}
- .flex.h-10.gap-x-2
- q-btn(
- outline,
- icon="icon-download",
- color="primary",
- size="12px",
- padding="8px 24px",
- )
- q-btn(
- color="primary",
- icon="add",
- label="Создать",
- style="width: 146px"
- padding="6px 24px",
- no-caps
- )
-
-
-
diff --git a/src/pages/oldMedicalCard/components/MedicalCardWrapper.vue b/src/pages/oldMedicalCard/components/MedicalCardWrapper.vue
deleted file mode 100644
index 6692a78..0000000
--- a/src/pages/oldMedicalCard/components/MedicalCardWrapper.vue
+++ /dev/null
@@ -1,429 +0,0 @@
-
- .wrapper.flex.w-full.relative.mx-2
- .wrapper-medical.relative.flex.gap-y-4.flex-col.h-full.w-full( class="pb-52px")
- .card-upper.flex.flex-col.gap-y-4.px-6.py-6
- medical-card-header(:number-card="numberCard")
- .card-basic-info.flex
- base-detail-info(
- :title="configData.identity_document.title"
- :height="configData.identity_document.height"
- :data="defineEmptyData(configData.identity_document.fields)"
- )
- base-detail-input(
- v-for="field in configData.identity_document.fields"
- :field="field"
- :data="medicalDataInit"
- :mask="field.mask"
- )
- .flex.flex-col.gap-30px
- base-detail-info(
- :title="configData.registration_address.title"
- :height="configData.registration_address.height"
- :data="defineEmptyData(configData.registration_address.fields)"
- )
- base-detail-input(
- v-for="field in configData.registration_address.fields"
- :field="field"
- :data="medicalDataInit"
- )
- base-detail-info(
- :title="configData.temporary_address.title"
- :height="configData.temporary_address.height"
- :data="defineEmptyData(configData.temporary_address.fields)"
- )
- base-detail-input(
- v-for="field in configData.temporary_address.fields"
- :field="field"
- :data="medicalDataInit"
- )
- .flex.flex-col.gap-2
- base-detail-info(
- :title="configData.snils.title"
- :height="configData.snils.height"
- :data="defineEmptyData(configData.snils.fields)"
- )
- base-detail-input(
- v-for="field in configData.snils.fields"
- :field="field"
- :data="medicalDataInit"
- :mask="field.mask"
- )
- base-detail-info(
- :title="configData.policy.title"
- :height="configData.policy.height"
- :data="defineEmptyData(configData.policy.fields)"
- )
- base-detail-input(
- v-for="field in configData.policy.fields"
- :field="field"
- :data="medicalDataInit"
- :mask="field.mask"
- )
- base-detail-info(
- :title="configData.policy_organization.title"
- :height="configData.policy_organization.height"
- :data="defineEmptyData(configData.policy_organization.fields)"
- )
- base-detail-input(
- v-for="field in configData.policy_organization.fields"
- :field="field"
- :data="medicalDataInit"
- )
- .flex.flex-col.gap-4
- base-detail-info(
- :title="configData.additional.title"
- :height="configData.additional.height"
- :data="defineEmptyData(configData.additional.fields)"
- )
- base-detail-input(
- v-for="field in configData.additional.fields"
- :field="field"
- :data="medicalDataInit"
- :mask="field.mask"
- )
- base-detail-info(
- :title="configData.agreement_form.title"
- :height="configData.agreement_form.height"
- :data="defineEmptyData(configData.agreement_form.fields)"
- direction-row
- )
- base-detail-input(
- v-for="field in configData.agreement_form.fields"
- :field="field"
- :data="medicalDataInit"
- )
- .flex.flex-col(class="px-92px gap-y-60px")
- .flex.flex-col(class="gap-y-2.5")
- .flex.flex-col.gap-y-2(v-for="(key, index) in Object.keys(dentalIndications)")
- span.font-bold.text-xsx {{`${index+1}. ${configData.dental_indications[key]}`}}
- medical-dental-formula(v-if="key === 'dental_formula'" :formula-data="dentalIndications[key]")
- base-input(v-model="dentalIndications[key]", v-else, size="M")
- .flex.justify-center
- q-btn(
- @click="validateFormCard",
- color="primary",
- label="Сохранить",
- padding="8px 24px",
- no-caps
- )
-
-
-
-
-
diff --git a/src/pages/oldMedicalCard/components/MedicalDentalFormula.vue b/src/pages/oldMedicalCard/components/MedicalDentalFormula.vue
deleted file mode 100644
index 01e5908..0000000
--- a/src/pages/oldMedicalCard/components/MedicalDentalFormula.vue
+++ /dev/null
@@ -1,50 +0,0 @@
-
- .wrapper.flex.w-full.px-52px.py-7.gap-x-102px
- .flex.flex-col.gap-y-5
- .flex.flex-col.gap-y-4
- span.font-bold.text-base Состояние зубов:
- .flex.flex-col.gap-y-1
- div(v-for="condition in dentalCondition")
- span.font-bold.text-base {{condition.name}}
- span.text-base {{` - ${condition.discription}`}}
- .flex.flex-col.gap-y-1
- .font-bold.text-base Подвижность:
- span.text-base Степень -
- span.font-bold.text-base I, II, III
- .flex.flex-col.h-fit.rounded
- medical-formula-table(:data="formulaData[0]")
- medical-formula-table(:data="formulaData[1]")
-
-
-
-
-
diff --git a/src/pages/oldMedicalCard/components/MedicalFormulaTable.vue b/src/pages/oldMedicalCard/components/MedicalFormulaTable.vue
deleted file mode 100644
index 9f4f9ed..0000000
--- a/src/pages/oldMedicalCard/components/MedicalFormulaTable.vue
+++ /dev/null
@@ -1,48 +0,0 @@
-
- //TODO: Поправить бордеры у таблицы
- .table-formula.flex.border-collapse
- .flex.flex-col.border-collapse
- .cell-grey.flex.w-52.h-50px.font-bold.text-lg.justify-center.items-center.border-collapse(v-for="row in data.rowMap") {{row.label}}
- .flex.flex-col.border-collapse(v-for="tooth in data.columns")
- .cell.flex.w-50px.h-50px.font-bold.text-2xl.justify-center.items-center(v-for="(row, index) in data.rowMap" :class="{'cell-grey': row.name === 'tooth_number'}")
- span(v-if="row.name === 'tooth_number'") {{tooth[row.name]}}
- base-input.pl-4.pr-2(v-if="row.name === 'dental_condition'" v-model="tooth[row.name]" :rules="[ruleCondition]" :max-length="2" borderless no-error-icon)
- label.flex.w-full.h-full.justify-center.items-center.cursor-pointer(v-if="row.name === 'tooth_mobility'")
- base-select.pl-4.pr-4(v-model="tooth[row.name]" :id="`${row.name}_${index}`" :items="mobilityMap" :outlined="false" menu-anchor="bottom start" borderless hide-dropdown-icon)
-
-
-
-
-
diff --git a/src/pages/oldMedicalCard/components/MedicalIdentityDocuments.vue b/src/pages/oldMedicalCard/components/MedicalIdentityDocuments.vue
deleted file mode 100644
index 51a400d..0000000
--- a/src/pages/oldMedicalCard/components/MedicalIdentityDocuments.vue
+++ /dev/null
@@ -1,47 +0,0 @@
-
- .base.flex.flex-col.gap-y-6
- .flex.flex-col.gap-y-6
- span.font-bold Паспортные данные
- .flex.flex-col.gap-y-6
- base-input(
- label="Серия и номер",
- placeholder="0000 000000",
- mask="#### ######",
- v-model="clientDetail.identity_documents.series_number",
- size="M"
- )
- base-input(
- label="Кем выдан",
- placeholder="Точно как в паспорте",
- v-model="clientDetail.identity_documents.issued_by_org",
- size="M"
- )
- .flex.gap-x-4
- base-input(
- label="Код подразделения",
- placeholder="000-000",
- mask="###-###",
- v-model="clientDetail.identity_documents.issued_by_org_code",
- size="M"
- )
- base-input(
- type="date",
- label="Дата выдачи",
- v-model="clientDetail.identity_documents.issued_by_date",
- size="M"
- )
-
-
-
diff --git a/src/pages/oldMedicalCard/components/MedicalPolicyDocuments.vue b/src/pages/oldMedicalCard/components/MedicalPolicyDocuments.vue
deleted file mode 100644
index 9a013d4..0000000
--- a/src/pages/oldMedicalCard/components/MedicalPolicyDocuments.vue
+++ /dev/null
@@ -1,93 +0,0 @@
-
- .base.flex.flex-col.gap-y-6
- span.font-bold Полис
- base-radio-buttons-group(
- :items="policiesList",
- v-model="clientDetail.policy",
- :columnGap="152",
- inline
- )
- .flex.gap-x-4
- .flex.flex-col.gap-y-4
- base-input.input(
- label="Серия и номер полиса ОМС",
- placeholder="000000 0000000000",
- v-model="clientDetail.OMSPolicy.number",
- mask="###### ##########",
- :disabled="!selectedOMSPolicy",
- size="M"
- )
- base-input.input(
- label="Страховая организация полиса ОМС",
- v-model="clientDetail.OMSPolicy.organization",
- :disabled="!selectedOMSPolicy",
- size="M"
- )
- .flex.flex-col.gap-y-4
- base-input.input(
- label="Серия и номер полиса ДМС",
- placeholder="000000 0000000000",
- v-model="clientDetail.DMSPolicy.number",
- mask="###### ##########",
- :disabled="selectedOMSPolicy",
- size="M"
- )
- base-input.input(
- label="Страховая организация полиса ДМС",
- v-model="clientDetail.DMSPolicy.organization",
- :disabled="selectedOMSPolicy",
- size="M"
- )
- base-input(
- label="Код категории льготы",
- placeholder="000",
- mask="###"
- v-model="clientDetail.benefit_code",
- size="M"
- )
- base-input(
- label="К кому обращаться в случае необходимости",
- placeholder="ФИО*",
- v-model="clientDetail.confidant_name",
- size="M"
- )
- base-input(
- label="Номер телефона",
- placeholder="+7 (915) 644–92–23",
- mask="+7 (###) ###-##-##",
- v-model="clientDetail.confidant_phone",
- size="M"
- )
-
-
-
-
-
diff --git a/src/pages/oldMedicalCard/utils/medicalConfig.js b/src/pages/oldMedicalCard/utils/medicalConfig.js
deleted file mode 100644
index 0651b97..0000000
--- a/src/pages/oldMedicalCard/utils/medicalConfig.js
+++ /dev/null
@@ -1,449 +0,0 @@
-export const medicalDetailConfig = {
- gendersList: [
- {
- id: "1",
- label: "Мужской",
- value: "MALE",
- },
- {
- id: "2",
- label: "Женский",
- value: "WOMEN",
- },
- ],
- policiesList: [
- {
- id: "1",
- label: "Полис ОМС",
- value: "OMS",
- },
- {
- id: "2",
- label: "Полис ДМС",
- value: "DMS",
- },
- ],
- identity_document: {
- height: 316,
- title: "Паспортные данные",
- fields: [
- {
- label: "number_series",
- title: "Серия и номер",
- type: "text",
- mask: "#### ######",
- copy: true,
- },
- {
- label: "issued_by_org",
- title: "Выдан",
- type: "textarea",
- },
- {
- label: "issued_by_org_code",
- title: "Код подразделения",
- type: "text",
- mask: "###-###",
- },
- {
- label: "issued_by_date",
- title: "Дата выдачи",
- type: "date",
- },
- ],
- },
- registration_address: {
- height: 85,
- title: "Адрес регистрации",
- fields: [
- {
- label: "registration_address",
- title: "Полный адрес",
- type: "textarea",
- },
- ],
- },
- temporary_address: {
- height: 85,
- title: "Адрес проживания",
- fields: [
- {
- label: "temporary_address",
- title: "Полный адрес",
- type: "textarea",
- },
- ],
- },
- snils: {
- height: 85,
- title: "СНИЛС",
- fields: [
- {
- label: "insurance_number",
- title: "Номер",
- type: "text",
- mask: "###-###-### ##",
- copy: true,
- },
- ],
- },
- policy: {
- height: 162,
- title: "ПОЛИС",
- fields: [
- {
- label: "policy_series",
- title: "Серия",
- type: "text",
- mask: "####",
- },
- {
- label: "policy_number",
- title: "Номер",
- type: "text",
- mask: "#######",
- },
- ],
- },
- policy_organization: {
- height: 85,
- title: "Страховая организация",
- fields: [
- {
- label: "policy_organization",
- title: "Название",
- type: "text",
- },
- ],
- },
- additional: {
- height: 218,
- title: "Дополнительная информация",
- fields: [
- {
- icon: "icon-person",
- label: "name_confidant",
- title: "Доверенное лицо",
- type: "text",
- },
- {
- icon: "icon-phone",
- label: "phone_confidant",
- title: "",
- type: "text",
- mask: "+7 (###) ###-##-##",
- },
- {
- label: "benefit_code",
- title: "Код категории льготы",
- type: "text",
- mask: "###",
- },
- ],
- },
- agreement_form: {
- height: 121,
- title:
- "Информированное добровольное согласие на виды медицинских вмешательств, включенные в Перечень определенных видов медицинских вмешательств:",
- fields: [
- {
- label: "agreement",
- title: "Получено",
- type: "radio",
- items: [
- {
- id: "1",
- label: "Да",
- value: true,
- },
- {
- id: "2",
- label: "Нет",
- value: false,
- },
- ],
- },
- {
- label: "agreement_date",
- title: "Дата",
- type: "date",
- },
- ],
- },
- dental_indications: {
- complaints: "Жалобы",
- allergic: "Аллергологический анамнез",
- past_diseases: "Перенесённые и сопутствующие заболевания",
- medications_taken: "Принимаемые лекарственные препараты",
- thermometry: "Термометрия (по показаниям)",
- tonometry: "Тонометрия, ЧСС (по показаниям)",
- disease_progress: "Развитие настоящего заболевания",
- visual_examination: "Внешний осмотр",
- oral_examination: "Осмотр преддверия и полости рта",
- dental_formula: "Зубная формула",
- dental_bite: "Прикус",
- hygiene_index: "Индекс гигиены",
- dmf_index: "Индекс КПУ",
- diagnostic_findings: "Предварительный диагноз",
- icd_code: "Код МКБ-10",
- survey_plan: "План обследования",
- survey_data: "Данные обследования",
- clinical_diagnosis: "Клинический диагноз",
- treatment_plan: "План лечения",
- treatment_protocol: "Протокол лечения",
- },
-};
-
-export const dentalСonditionMap = [
- {
- name: "К",
- discription: "кариес",
- },
- {
- name: "П",
- discription: "пульпит",
- },
- {
- name: "Пт",
- discription: "периодонтит",
- },
- {
- name: "Д",
- discription: "дефект",
- },
- {
- name: "Пл",
- discription: "пломба",
- },
- {
- name: "Ик",
- discription: "искусственная коронка",
- },
- {
- name: "Из",
- discription: "искусственный зуб",
- },
- {
- name: "В",
- discription: "вкладка",
- },
- {
- name: "И",
- discription: "имплантат",
- },
- {
- name: "Кз",
- discription: "корень зуба",
- },
- {
- name: "О",
- discription: "отсутствующий зуб",
- },
-];
-
-export const mobilityMap = [
- { id: 1, label: "I" },
- { id: 2, label: "II" },
- { id: 3, label: "III" },
-];
-
-export const formulaDataMap = [
- {
- name: "upperJaw",
- rowMap: [
- {
- label: "Подвижность",
- name: "tooth_mobility",
- },
- {
- label: "Cостояние зубов",
- name: "dental_condition",
- },
- {
- label: "Верхняя челюсть",
- name: "tooth_number",
- },
- ],
- columns: [
- {
- tooth_number: 18,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 17,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 16,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 15,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 14,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 13,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 12,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 11,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 21,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 22,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 23,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 24,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 25,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 26,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 27,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 28,
- dental_condition: "",
- tooth_mobility: "",
- },
- ],
- },
- {
- name: "lowerJaw",
- rowMap: [
- {
- label: "Нижняя челюсть",
- name: "tooth_number",
- },
- {
- label: "Cостояние зубов",
- name: "dental_condition",
- },
- {
- label: "Подвижность",
- name: "tooth_mobility",
- },
- ],
- columns: [
- {
- tooth_number: 48,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 47,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 46,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 45,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 44,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 43,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 42,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 41,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 31,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 32,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 33,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 34,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 35,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 36,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 37,
- dental_condition: "",
- tooth_mobility: "",
- },
- {
- tooth_number: 38,
- dental_condition: "",
- tooth_mobility: "",
- },
- ],
- },
-];
diff --git a/src/pages/oldMedicalCard/utils/wrapperMedicalCard.js b/src/pages/oldMedicalCard/utils/wrapperMedicalCard.js
deleted file mode 100644
index ab6455a..0000000
--- a/src/pages/oldMedicalCard/utils/wrapperMedicalCard.js
+++ /dev/null
@@ -1,226 +0,0 @@
-import { fetchWrapper } from "@/shared/fetchWrapper";
-import moment from "moment";
-export function requestCreateMedicalCard(entry, key, id) {
- const url = `medical_card/${key}/create/`;
- let arrayValue;
- if (["tonometry", "dental_bite", "dmf_index"].includes(key)) {
- arrayValue = entry.split(",");
- }
- switch (key) {
- case "complaints":
- case "medications_taken":
- case "disease_progress":
- case "visual_examination":
- case "diagnostic_findings":
- case "survey_plan":
- case "treatment_plan":
- case "treatment_protocol":
- return fetchWrapper.post(url, {
- title: entry,
- description: entry,
- medical_history: id,
- });
- case "thermometry":
- return fetchWrapper.post(url, {
- title: entry,
- temperature: Number(entry),
- medical_history: id,
- });
- case "tonometry":
- return fetchWrapper.post(url, {
- title: entry,
- sys: Number(arrayValue[0]),
- dia: Number(arrayValue[1]),
- pul: Number(arrayValue[2]),
- medical_history: id,
- });
- case "dental_bite":
- return fetchWrapper.post(url, {
- custom: arrayValue[0],
- physiological: arrayValue[1],
- abnormal: arrayValue[2],
- medical_history: id,
- });
- case "dmf_index":
- return fetchWrapper.post(url, {
- caries: Number(arrayValue[0]),
- filling: Number(arrayValue[1]),
- remote: Number(arrayValue[2]),
- medical_history: id,
- });
- case "clinical_diagnosis":
- return fetchWrapper.post(url, {
- title: entry,
- description: "string",
- medical_history: id,
- icd10: id,
- });
- case "dental_formula":
- return fetchWrapper.post(url, {
- ...entry,
- tooth_mobility: entry.tooth_mobility ? entry.tooth_mobility.label : "",
- tooth_number: entry.tooth_number,
- medical_history: id,
- });
- case "registration_address":
- return fetchWrapper.post(`general/address/create/`, {
- ...entry,
- person: id,
- registration_flg: true,
- });
- case "temporary_address":
- return fetchWrapper.post(`general/address/create/`, {
- ...entry,
- person: id,
- temporary_registration_flg: true,
- });
- case "identity_document":
- return fetchWrapper.post(`general/identity_document/create/`, {
- ...entry,
- person: id,
- });
- case "insurance_policy":
- return fetchWrapper.post(`general/insurance_policy/create/`, {
- ...entry,
- title: "string",
- person: id,
- });
- }
-}
-
-export function requestUpdateMedicalCard(entry, key, id) {
- const url = `medical_card/${key}/${id}/update/`;
- let arrayValue;
- if (["tonometry", "dental_bite", "dmf_index"].includes(key)) {
- arrayValue = entry.split(",");
- }
- switch (key) {
- case "complaints":
- case "medications_taken":
- case "disease_progress":
- case "visual_examination":
- case "diagnostic_findings":
- case "survey_plan":
- case "treatment_plan":
- case "treatment_protocol":
- return fetchWrapper.post(url, {
- title: entry,
- description: entry,
- });
- case "thermometry":
- return fetchWrapper.post(url, {
- title: entry,
- temperature: Number(entry),
- });
- case "tonometry":
- return fetchWrapper.post(url, {
- title: entry,
- sys: Number(arrayValue[0]),
- dia: Number(arrayValue[1]),
- pul: Number(arrayValue[2]),
- });
- case "dental_bite":
- return fetchWrapper.post(url, {
- custom: entry,
- physiological: entry,
- abnormal: entry,
- });
- case "dmf_index":
- return fetchWrapper.post(url, {
- caries: Number(entry),
- filling: Number(entry),
- remote: Number(entry),
- });
- case "clinical_diagnosis":
- return fetchWrapper.post(url, {
- title: entry,
- description: "string",
- icd10: id,
- });
- case "dental_formula":
- return fetchWrapper.post(url, {
- ...entry,
- tooth_mobility: entry.tooth_mobility ? entry.tooth_mobility.label : "",
- tooth_number: entry.tooth_number,
- });
- case "registration_address":
- return fetchWrapper.post(`general/address/${id}/update/`, {
- ...entry,
- registration_flg: true,
- });
- case "temporary_address":
- return fetchWrapper.post(`general/address/${id}/update/`, {
- ...entry,
- temporary_registration_flg: true,
- });
- case "identity_document":
- return fetchWrapper.post(`general/identity_document/${id}/update/`, {
- ...entry,
- });
- case "insurance_policy":
- return fetchWrapper.post(`general/insurance_policy/${id}/update/`, {
- ...entry,
- title: "string",
- });
- case "person":
- return fetchWrapper.post(`general/person/${id}/update/`, {
- ...entry,
- });
- }
-}
-
-export function getRequestDataPerson(person, dental) {
- const dataPersonRequest = {
- identity_document: {
- issued_by_org: person.issued_by_org,
- issued_by_org_code: person.issued_by_org_code,
- issued_by_date: moment(person.issued_by_date).format("YYYY-MM-DD"),
- number: person.number_series.split(" ")[1],
- series: person.number_series.split(" ")[0],
- },
- registration_address: {
- full_address: person.registration_address,
- },
- temporary_address: {
- full_address: person.temporary_address,
- },
- insurance_policy: {
- series: person.policy_series,
- number: person.policy_number,
- organization: person.policy_organization,
- },
- person: {
- insurance_number: person.insurance_number,
- benefit_code: person.benefit_code,
- allergic: dental.allergic,
- },
- agreement: {
- agreement: person.agreement,
- },
- };
- return dataPersonRequest;
-}
-export function getDentalEntiesValue(data, key) {
- switch (key) {
- case "complaints":
- case "medications_taken":
- case "disease_progress":
- case "visual_examination":
- case "diagnostic_findings":
- case "survey_plan":
- case "treatment_plan":
- case "treatment_protocol":
- case "clinical_diagnosis":
- return data?.description;
- case "thermometry":
- return `${data?.temperature}`;
- case "tonometry":
- return `${data?.sys},${data?.dia},${data?.pul}`;
- case "dental_bite":
- return `${data?.custom},${data?.physiological},${data?.abnormal}`;
- case "dmf_index":
- return data["index_calculation"];
- case "hygiene_index":
- return data["index_calculation"];
- }
-}