You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
3.2 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
return [
/**
* 互斥类型配置
*/
'types' => [
'SAME_DAY' => [
'name' => '同日互斥',
'description' => '同一天内不能同时进行',
'require_param' => false,
],
'WITHIN_DAYS' => [
'name' => 'N天内互斥含当天',
'description' => '在指定天数内不能同时进行',
'require_param' => true,
'fields' => [
[
'key' => 'value',
'label' => '天数',
'type' => 'number',
'default' => 1,
'validation' => 'required|integer|min:1|max:365',
'placeholder' => '请输入天数1-365',
],
],
],
'SAME_BODY_PART' => [
'name' => '同部位互斥',
'description' => '相同检查部位在指定条件下互斥',
'require_param' => true,
'fields' => [
[
'key' => 'scope',
'label' => '互斥范围',
'type' => 'select',
'options' => ['SAME_DAY' => '同天', 'WITHIN_PERIOD' => '指定时间范围内'],
'default' => 'SAME_DAY',
'validation' => 'required|in:SAME_DAY,WITHIN_PERIOD',
],
[
'key' => 'body_part_level',
'label' => '部位层级(0=不限部位)',
'type' => 'number',
'default' => 1,
'validation' => 'required|integer|min:0',
],
[
'key' => 'value',
'label' => '间隔数值',
'type' => 'number',
'default' => 1,
'validation' => 'nullable|integer|min:1',
'show_when' => ['scope' => 'WITHIN_PERIOD'],
],
[
'key' => 'unit',
'label' => '时间单位',
'type' => 'select',
'options' => ['day' => '天', 'hour' => '小时', 'minute' => '分钟'],
'default' => 'day',
'validation' => 'nullable|in:day,hour,minute',
'show_when' => ['scope' => 'WITHIN_PERIOD'],
],
],
],
// 'TIME_CONFLICT' => [
// 'name' => '时间冲突互斥',
// 'description' => '时间段重叠时互斥',
// 'require_param' => true,
// 'fields' => [
// [
// 'key' => 'overlap_threshold',
// 'label' => '重叠阈值(分钟)',
// 'type' => 'number',
// 'default' => 0,
// 'validation' => 'required|integer|min:0',
// 'placeholder' => '请输入重叠阈值',
// ],
// ],
// ],
// 'CONTRAST_CONFLICT' => [
// 'name' => '造影剂互斥',
// 'description' => '使用造影剂的项目互斥',
// 'require_param' => false,
// ],
],
];