WIP Адаптировала карточки под календарь

This commit is contained in:
Daria Golova
2023-06-26 18:03:05 +03:00
parent acf91a938f
commit 8f6ca8e437
6 changed files with 212 additions and 24 deletions

View File

@@ -7,6 +7,49 @@ import filled from "@/assets/icons/medcard_filled.svg";
import partially_filled from "@/assets/icons/medcard_partially_filled.svg";
import not_filled from "@/assets/icons/medcard_not_filled.svg";
export const recordingStatuses = [
{
label: "Не принят",
icon: not_accepted,
value: "not_accepted",
},
{
label: "Принят",
icon: accepted,
value: "accepted",
},
{
label: "Отказ",
icon: rejected,
value: "rejected",
},
{
label: "На приеме",
icon: reception,
value: "reception",
},
];
export const medicalСardStatuses = [
{
label: "Не заполнена",
icon: not_filled,
value: "not_filled",
},
{
label: "Частично заполнена",
icon: partially_filled,
value: "partially_filled",
},
{
label: "Заполнена",
icon: filled,
value: "filled",
},
];
// TODO Статусы приема и статусы заполнения медкарты должны быть общими, чтобы не дублировать в каждом экспорте. Исправить
// TODO patientList - исправить название
export const patientList = [
{
label: "Статус приема",
@@ -203,3 +246,69 @@ export const patientData = {
{ name: "group", text: "Пациенты", active: false },
],
};
export const recordList = [
{
id: "c3df0a95-8093-41f1-9584-5b70ee05e71c",
start: "2023-06-26T10:00:00Z",
end: "2023-06-26T11:00:00Z",
employee: {
id: "464101e6-b4e6-46a4-8ef6-08ecb2921493",
last_name: "Каневский",
first_name: "Леонид",
patronymic: "Семенович",
},
member: {
id: "3e6e54e4-2706-47d3-8b54-b841ee8f0943",
last_name: "Харитонова",
first_name: "Ольга",
patronymic: "Васильевна",
},
status: "not_accepted",
medicalCard: {
status: "partially_filled",
},
},
{
id: "ba931000-7140-4977-bd09-1ac212b8b8e5",
start: "2023-06-28T15:00:00Z",
end: "2023-06-28T15:30:00Z",
employee: {
id: "464101e6-b4e6-46a4-8ef6-08ecb2921493",
last_name: "Каневский",
first_name: "Леонид",
patronymic: "Семенович",
},
member: {
id: "d340d344-4fc7-4fbe-9db8-b7562b70438d",
last_name: "Гаранова",
first_name: "Наталья",
patronymic: "Романовна",
},
status: "accepted",
medicalCard: {
status: "not_filled",
},
},
{
id: "4cd94bec-a0df-4a18-879d-f64cd6d7098e",
start: "2023-06-30T13:00:00Z",
end: "2023-06-30T14:30:00Z",
employee: {
id: "464101e6-b4e6-46a4-8ef6-08ecb2921493",
last_name: "Каневский",
first_name: "Леонид",
patronymic: "Семенович",
},
member: {
id: "0b2d1db1-6aab-4e29-b857-fc7c9777280f",
last_name: "Харитонова",
first_name: "Ольга",
patronymic: "Васильевна",
},
status: "reception",
medicalCard: {
status: "filled",
},
},
];

View File

@@ -1,3 +1,9 @@
export function convertTime(str, startIndex, endIndex) {
return parseInt(str?.slice(startIndex, endIndex), 10);
}
export function trimName(lastName, firstName, patronymic) {
let checkedFirstName = firstName !== null ? firstName[0] + ". " : "";
let checkedPatronymic = patronymic !== null ? patronymic[0] + "." : "";
return `${lastName} ${checkedFirstName}${checkedPatronymic}`;
}