WIP Ренейминг компонентов

This commit is contained in:
Daria Golova
2023-04-13 12:57:23 +03:00
parent 86d6c6f7b8
commit d7f8bf5daa
12 changed files with 77 additions and 133 deletions

View File

@@ -0,0 +1,187 @@
export const baseDataForm = [
{
dataLabel: "Личные данные",
dataKey: "personalData",
fields: [
{
key: "last_name",
label: "Фамилия",
type: "text",
},
{
key: "first_name",
label: "Имя",
type: "text",
},
{
key: "patronymic",
label: "Отчество",
type: "text",
},
{
key: "gender",
label: "Пол",
type: "select",
},
{
key: "birth_date",
label: "Дата рождения",
type: "date",
},
{
key: "photo",
label: "Фото",
type: "avatar",
},
],
},
{
dataLabel: "Адрес регистрации",
dataKey: "registrationAddress",
fields: [
{
key: "region",
label: "Регион",
type: "text",
},
{
key: "city",
label: "Город",
type: "text",
},
{
key: "street",
label: "Улица",
type: "text",
},
{
key: "house_number",
label: "Дом",
type: "text",
rules: [(val) => !/^[\W0]/.test(val)],
},
{
key: "apartment_number",
label: "Квартира",
type: "text",
rules: [(val) => !/^[\W0]/.test(val)],
},
],
},
{
dataLabel: "Адрес проживания",
dataKey: "residenceAddress",
fields: [
{
key: "region",
label: "Регион",
type: "text",
},
{
key: "city",
label: "Город",
type: "text",
},
{
key: "street",
label: "Улица",
type: "text",
},
{
key: "house_number",
label: "Дом",
type: "text",
rules: [(val) => !/^[\W0]/.test(val)],
},
{
key: "apartment_number",
label: "Квартира",
type: "text",
rules: [(val) => !/^[\W0]/.test(val)],
},
],
},
];
export const genderOptions = [
{
id: "MALE",
label: "Мужской",
},
{
id: "WOMEN",
label: "Женский",
},
];
export const headerMenuItem = [
{
title: "Общая информация",
id: "basic",
component: "MedicalBaseInfo",
},
{
title: "Журнал посещений",
id: "session-log",
component: "SessionLog",
},
{
title: "Планы лечения",
id: "treatment-plans",
component: "TreatmentPlans",
},
{
title: "Статистика",
id: "statistics",
component: "Statistics",
},
{
title: "История контактов",
id: "contact-history",
component: "ContactHistory",
},
];
export const baseInfoMenu = [
{
title: "Основные данные",
id: "basic-data",
component: "MedicalBasicDataWrapper",
},
{
title: "Протоколы первичного осмотра",
id: "protocols",
component: "Protocols",
},
{
title: "Доверенное лицо",
id: "trusted-person",
component: "TrustedPerson",
},
{
title: "Аллергии",
id: "allergies",
component: "Allergies",
},
{
title: "Состояние здоровья",
id: "health-status",
component: "HealthStatus",
},
{
title: "История болезней",
id: "medical-history",
component: "MedicalHistory",
},
{
title: "Зубная формула",
id: "dental-formula",
component: "DentalFormula",
},
];
export const routesDictionary = {
"/clients": "Клиенты",
"/calendar": "Календарь",
"/medical-card": "Медкарта",
};