[WIP] Добавил фильтр зубной формулы

This commit is contained in:
DwCay
2023-06-05 11:15:55 +03:00
parent 30ffa4f488
commit 94ac479e2f
7 changed files with 123 additions and 22 deletions

View File

@@ -55,7 +55,8 @@ export function getConfidantObject(data) {
}
}
export const getFiiledConditions = (condition) => {
export const getFilledConditions = (condition) => {
let filledConditions = [];
let crown = Object.keys(condition.crown)
.map((key) => ({
value: condition.crown[key],
@@ -70,5 +71,11 @@ export const getFiiledConditions = (condition) => {
part: key,
}))
.filter((el) => el.value.length);
return [...crown, ...root];
filledConditions = [...crown, ...root];
if (condition.general)
filledConditions.unshift({
value: condition.general,
type: "general",
});
return filledConditions;
};

View File

@@ -586,6 +586,13 @@ export const toothMobility = [
{ id: 4, label: "IV" },
];
export const formulaFilterMap = [
["Все", "К", "П"],
["Д", "Пл", "ИК"],
["ИЗ", "В", "И"],
["КЗ", "О", "Пт"],
];
export const protocolForms = [
{
title: "Жалобы",