diff --git a/packages/core/src/domains/patient/types.ts b/packages/core/src/domains/patient/types.ts index 7c5bea05..f3c07ee5 100644 --- a/packages/core/src/domains/patient/types.ts +++ b/packages/core/src/domains/patient/types.ts @@ -20,7 +20,7 @@ export type Patient = { /** * @see https://github.com/KohlbacherLab/dnpm-dip-service-base/blob/main/src/main/scala/de/dnpm/dip/service/query/PatientMatch.scala */ -export type PatientMatch = { +export type PatientMatchBase = { id: string, managingSite?: Coding, gender: Coding<'male' | 'female' | 'other' | 'unknown'>, diff --git a/packages/rd/src/runtime/components/core/PreparedQueryEntity.ts b/packages/rd/src/runtime/components/core/PreparedQueryEntity.ts index d0ff93f4..c09da1db 100644 --- a/packages/rd/src/runtime/components/core/PreparedQueryEntity.ts +++ b/packages/rd/src/runtime/components/core/PreparedQueryEntity.ts @@ -3,19 +3,19 @@ import { createResourceRecordManager, defineResourceRecordEvents } from '@dnpm-d import type { PropType, SlotsType } from 'vue'; import { defineComponent, toRef } from 'vue'; import { useRDAPIClient } from '../../composables'; -import type { RDPreparedQuery } from '../../domains'; +import type { PreparedQuery } from '../../domains'; export default defineComponent({ props: { entity: { - type: Object as PropType, + type: Object as PropType, }, entityId: { type: String, }, }, - emits: defineResourceRecordEvents(), - slots: Object as SlotsType>, + emits: defineResourceRecordEvents(), + slots: Object as SlotsType>, async setup(props, setup) { const api = useRDAPIClient(); const id = toRef(props, 'entityId'); diff --git a/packages/rd/src/runtime/components/core/PreparedQueryForm.vue b/packages/rd/src/runtime/components/core/PreparedQueryForm.vue index a3f10fde..3d5993ee 100644 --- a/packages/rd/src/runtime/components/core/PreparedQueryForm.vue +++ b/packages/rd/src/runtime/components/core/PreparedQueryForm.vue @@ -6,17 +6,17 @@ import { import SearchForm from './SearchForm.vue'; import PreparedQueryList from './PreparedQueryList'; import PreparedQueryEntity from './PreparedQueryEntity'; -import type { QuerySession, RDPreparedQuery, RDQueryCriteria } from '../../domains'; +import type { PreparedQuery, QueryCriteria, QuerySession } from '../../domains'; export default defineComponent({ components: { PreparedQueryEntity, PreparedQueryList, SearchForm }, emits: ['submitted'], setup(props, setup) { const searchEl = ref(null) as Ref; - const criteria = ref(undefined); + const criteria = ref(undefined); const preparedQueryNode = ref(null) as Ref; - const preparedQuery = ref(undefined); + const preparedQuery = ref(undefined); const preparedQueryId = computed(() => { if (preparedQuery.value) { return preparedQuery.value.id; @@ -33,7 +33,7 @@ export default defineComponent({ }); }; - const togglePreparedQuery = (data: RDPreparedQuery) => { + const togglePreparedQuery = (data: PreparedQuery) => { if ( preparedQuery.value && preparedQuery.value.id === data.id @@ -66,21 +66,21 @@ export default defineComponent({ }); }; - const handlePreparedQueryCreated = (data: RDPreparedQuery) => { + const handlePreparedQueryCreated = (data: PreparedQuery) => { preparedQuery.value = data; if (preparedQueryNode.value) { preparedQueryNode.value.created(data); } }; - const handlePreparedQueryUpdated = (data: RDPreparedQuery) => { + const handlePreparedQueryUpdated = (data: PreparedQuery) => { preparedQuery.value = data; if (preparedQueryNode.value) { preparedQueryNode.value.updated(data); } }; - const handlePreparedQueryDeleted = (data: RDPreparedQuery) => { + const handlePreparedQueryDeleted = (data: PreparedQuery) => { if ( preparedQuery.value && preparedQuery.value.id === data.id diff --git a/packages/rd/src/runtime/components/core/PreparedQueryList.ts b/packages/rd/src/runtime/components/core/PreparedQueryList.ts index ffc66049..973b5b54 100644 --- a/packages/rd/src/runtime/components/core/PreparedQueryList.ts +++ b/packages/rd/src/runtime/components/core/PreparedQueryList.ts @@ -3,11 +3,11 @@ import { createResourceCollectionManager, defineResourceCollectionEvents } from import type { SlotsType } from 'vue'; import { defineComponent } from 'vue'; import { useRDAPIClient } from '../../composables'; -import type { RDPreparedQuery } from '../../domains'; +import type { PreparedQuery } from '../../domains'; export default defineComponent({ - slots: Object as SlotsType>, - emits: defineResourceCollectionEvents(), + slots: Object as SlotsType>, + emits: defineResourceCollectionEvents(), setup(props, setup) { const api = useRDAPIClient(); diff --git a/packages/rd/src/runtime/components/core/QueryPatientMatchEntity.vue b/packages/rd/src/runtime/components/core/QueryPatientMatchEntity.vue index 28566969..204cba6d 100644 --- a/packages/rd/src/runtime/components/core/QueryPatientMatchEntity.vue +++ b/packages/rd/src/runtime/components/core/QueryPatientMatchEntity.vue @@ -1,12 +1,12 @@