From b8a95bb02fd1d552a03c1d7583fb0e333e5949d5 Mon Sep 17 00:00:00 2001 From: tada5hi Date: Thu, 31 Oct 2024 14:49:10 +0100 Subject: [PATCH] feat: refactored query filter components, api, ... --- .../core/query/QueryPatientFilters.vue | 83 ++++++++------ packages/core/src/domains/coding/utils.ts | 4 + packages/core/src/domains/query/api.ts | 9 ++ packages/core/src/domains/query/types.ts | 2 - .../MQueryDiagnosisFilter.vue | 58 +++++++--- packages/mtb/src/runtime/domains/query/api.ts | 22 +++- .../mtb/src/runtime/domains/query/types.ts | 22 ++-- .../src/runtime/pages/query/[id]/index.vue | 7 +- .../components/core/RQueryDiagnosisFilter.vue | 96 ++++++++--------- .../components/core/RQueryHPOFilter.vue | 101 +++++++++--------- packages/rd/src/runtime/constants.ts | 11 ++ packages/rd/src/runtime/domains/query/api.ts | 13 ++- .../rd/src/runtime/domains/query/types.ts | 11 +- .../rd/src/runtime/pages/query/[id]/index.vue | 7 +- 14 files changed, 261 insertions(+), 185 deletions(-) rename packages/mtb/src/runtime/components/core/{ => query-filter}/MQueryDiagnosisFilter.vue (80%) create mode 100644 packages/rd/src/runtime/constants.ts diff --git a/packages/core/src/components/core/query/QueryPatientFilters.vue b/packages/core/src/components/core/query/QueryPatientFilters.vue index 2e2ee28a..0e95850b 100644 --- a/packages/core/src/components/core/query/QueryPatientFilters.vue +++ b/packages/core/src/components/core/query/QueryPatientFilters.vue @@ -1,10 +1,8 @@