|
|
@@ -68,6 +68,7 @@ const PACKAGE_DEPENDENT_FIELD_ALIASES: Readonly<Record<string, readonly string[]
|
|
|
'2': ['drugs'],
|
|
|
'3': ['drugs'],
|
|
|
'4': ['drugs'],
|
|
|
+ '19': ['drugs'],
|
|
|
'14': ['surveyCategory'],
|
|
|
'31': ['surveyCategory'],
|
|
|
'37': ['surveyCategory'],
|
|
|
@@ -76,7 +77,7 @@ const PACKAGE_DEPENDENT_FIELD_ALIASES: Readonly<Record<string, readonly string[]
|
|
|
'75': ['drugs', 'hospitalOrPharmacy', 'hospitalOrPharmacyAddress'],
|
|
|
'76': ['drugs', 'hospitalOrPharmacy', 'hospitalOrPharmacyAddress'],
|
|
|
'81': ['drugs', 'hospitalOrPharmacy', 'address'],
|
|
|
- '85': ['hospital', 'level'],
|
|
|
+ '85': ['drugs', 'hospital', 'level'],
|
|
|
}
|
|
|
|
|
|
const normalizeTaskTypeId = (taskTypeId: unknown): string => {
|
|
|
@@ -444,6 +445,10 @@ export const useTaskSelectHandlers = ({
|
|
|
invalidateFieldOptionsByAlias('drugs')
|
|
|
}
|
|
|
|
|
|
+ if (fieldTaskTypeId === '85' && field.alias === 'topic') {
|
|
|
+ setFieldTextByAlias('result', event.selectedItem.description ?? '')
|
|
|
+ }
|
|
|
+
|
|
|
if (field.alias === 'meetingType' && MEETING_TASK_TYPE_IDS.has(fieldTaskTypeId)) {
|
|
|
clearFieldValueByAlias('scorePackage')
|
|
|
clearFieldValueByAlias('drugs')
|