[WIP] Добавил фильтр зубной формулы
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -586,6 +586,13 @@ export const toothMobility = [
|
||||
{ id: 4, label: "IV" },
|
||||
];
|
||||
|
||||
export const formulaFilterMap = [
|
||||
["Все", "К", "П"],
|
||||
["Д", "Пл", "ИК"],
|
||||
["ИЗ", "В", "И"],
|
||||
["КЗ", "О", "Пт"],
|
||||
];
|
||||
|
||||
export const protocolForms = [
|
||||
{
|
||||
title: "Жалобы",
|
||||
|
||||
Reference in New Issue
Block a user