[WIP] Добавил форму изменения состояния зубов
This commit is contained in:
@@ -57,8 +57,12 @@ export function getConfidantObject(data) {
|
||||
|
||||
export const getFiiledConditions = (condition) => {
|
||||
let filledConditions = [
|
||||
...Object.values(condition.crown).filter((val) => val),
|
||||
...Object.values(condition.root).filter((val) => val),
|
||||
...Object.values(condition.crown)
|
||||
.filter((val) => val.length)
|
||||
.flat(),
|
||||
...Object.values(condition.root)
|
||||
.filter((val) => val.length)
|
||||
.flat(),
|
||||
];
|
||||
return filledConditions;
|
||||
};
|
||||
|
||||
@@ -565,6 +565,27 @@ export const mapEventStatus = {
|
||||
},
|
||||
};
|
||||
|
||||
export const toothConditions = {
|
||||
К: "Кариес",
|
||||
П: "Пульпит",
|
||||
Пт: "Периодонтит",
|
||||
Д: "Дефект",
|
||||
Пл: "Пломба",
|
||||
ИК: "Искусственная коронка",
|
||||
ИЗ: "Искусственный зуб",
|
||||
В: "Вкладка",
|
||||
И: "Имплантат",
|
||||
КЗ: "Корень зуба",
|
||||
О: "Отсутствующий зуб",
|
||||
};
|
||||
|
||||
export const toothMobility = [
|
||||
{ id: 1, label: "I" },
|
||||
{ id: 2, label: "II" },
|
||||
{ id: 3, label: "III" },
|
||||
{ id: 4, label: "IV" },
|
||||
];
|
||||
|
||||
export const protocolForms = [
|
||||
{
|
||||
title: "Жалобы",
|
||||
@@ -933,26 +954,67 @@ export const protocolForms = [
|
||||
component: "ToothFormulaForm",
|
||||
key: "toothFormula",
|
||||
state: "toothFormula",
|
||||
toothConfig: {
|
||||
conditionsForm: {
|
||||
conditions: {
|
||||
К: "Кариес",
|
||||
П: "Пульпит",
|
||||
Пт: "Периодонтит",
|
||||
Д: "Дефект",
|
||||
Пл: "Пломба",
|
||||
ИК: "Искусственная коронка",
|
||||
ИЗ: "Искусственный зуб",
|
||||
В: "Вкладка",
|
||||
И: "Имплантат",
|
||||
КЗ: "Корень зуба",
|
||||
О: "Отсутствующий зуб",
|
||||
general: {
|
||||
options: (() => {
|
||||
let arrayOptions = ["ИЗ", "И", "О", "П"];
|
||||
return arrayOptions.map((item) => ({
|
||||
value: item,
|
||||
label: toothConditions[item],
|
||||
}));
|
||||
})(),
|
||||
label: "Общее",
|
||||
},
|
||||
crown: {
|
||||
options: (() => {
|
||||
let arrayOptions = ["К", "П", "Д", "Пл"];
|
||||
return arrayOptions.map((item) => ({
|
||||
value: item,
|
||||
label: toothConditions[item],
|
||||
}));
|
||||
})(),
|
||||
label: "Коронка",
|
||||
partsTooth: {
|
||||
central: {
|
||||
label: "Центральная часть",
|
||||
},
|
||||
upper: {
|
||||
label: "Верхняя часть",
|
||||
},
|
||||
lower: {
|
||||
label: "Нижняя часть",
|
||||
},
|
||||
left: {
|
||||
label: "Левая часть",
|
||||
},
|
||||
right: {
|
||||
label: "Правая часть",
|
||||
},
|
||||
},
|
||||
},
|
||||
root: {
|
||||
options: (() => {
|
||||
let arrayOptions = ["К", "П", "Д", "Пл"];
|
||||
return arrayOptions.map((item) => ({
|
||||
value: item,
|
||||
label: toothConditions[item],
|
||||
}));
|
||||
})(),
|
||||
label: "Корень",
|
||||
partsTooth: {
|
||||
central: {
|
||||
label: "Центральная часть",
|
||||
},
|
||||
left: {
|
||||
label: "Левая часть",
|
||||
},
|
||||
right: {
|
||||
label: "Правая часть",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
mobility: [
|
||||
{ id: 1, label: "I" },
|
||||
{ id: 2, label: "II" },
|
||||
{ id: 3, label: "III" },
|
||||
{ id: 4, label: "IV" },
|
||||
],
|
||||
},
|
||||
formulaConfig: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user