Skip to content

Commit

Permalink
range search added
Browse files Browse the repository at this point in the history
  • Loading branch information
enricsinergia committed Jan 8, 2024
1 parent 2f06c92 commit b6ae4d8
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 3 deletions.
15 changes: 15 additions & 0 deletions modules/stic_Medication_Log/metadata/SearchFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@
'enable_range_search' => true,
'is_date_field' => true
),
'range_intake_date' => array(
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true,
),
'start_range_intake_date' => array(
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true,
),
'end_range_intake_date' => array(
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true,
),
//Range Search Support
'favorites_only' => array(
'query_type' => 'format',
Expand Down
3 changes: 2 additions & 1 deletion modules/stic_Medication_Log/vardefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
'unified_search' => false,
'merge_filter' => 'disabled',
'size' => '20',
'enable_range_search' => false,
'options' => 'date_range_search_dom',
'enable_range_search' => 1,
),
'medication' =>
array (
Expand Down
30 changes: 30 additions & 0 deletions modules/stic_Prescription/metadata/SearchFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,36 @@
'enable_range_search' => true,
'is_date_field' => true
),
'range_start_date' => array(
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true,
),
'start_range_start_date' => array(
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true,
),
'end_range_start_date' => array(
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true,
),
'range_end_date' => array(
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true,
),
'start_range_end_date' => array(
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true,
),
'end_range_end_date' => array(
'query_type' => 'default',
'enable_range_search' => true,
'is_date_field' => true,
),
//Range Search Support
'favorites_only' => array(
'query_type' => 'format',
Expand Down
6 changes: 4 additions & 2 deletions modules/stic_Prescription/vardefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
'unified_search' => false,
'merge_filter' => 'disabled',
'size' => '20',
'enable_range_search' => false,
'options' => 'date_range_search_dom',
'enable_range_search' => 1,
),
'end_date' =>
array (
Expand All @@ -67,7 +68,8 @@
'unified_search' => false,
'merge_filter' => 'disabled',
'size' => '20',
'enable_range_search' => false,
'options' => 'date_range_search_dom',
'enable_range_search' => 1,
),
'active' =>
array (
Expand Down

0 comments on commit b6ae4d8

Please sign in to comment.