-
Notifications
You must be signed in to change notification settings - Fork 9
Multiple PDS searches during import #4303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
155743b
Add history and fuzzy search as input parameters
murugapl 0fe9a5b
Update ProcessPatientChangesetJob to run multiple searches depending …
murugapl 027a51e
Add tests for ProcessPatientchangesetJob
murugapl 9989ebf
Migration to add PDSSearchResults table
murugapl 86011f9
Import PDSSearchResults during the ChangesetCommit stage
murugapl fdac581
Add PatientChangeset specs
murugapl cd3f416
Extend extravganza feature tests for multiple search scenario
murugapl 59ecb3f
Fix integration tests to work with multiple search setup
murugapl d2b5f98
Create PDSSearchResult from daily job
murugapl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# frozen_string_literal: true | ||
|
||
# == Schema Information | ||
# | ||
# Table name: pds_search_results | ||
# | ||
# id :bigint not null, primary key | ||
# import_type :string | ||
# nhs_number :string | ||
# result :integer not null | ||
# step :integer not null | ||
# created_at :datetime not null | ||
# updated_at :datetime not null | ||
# import_id :bigint | ||
# patient_id :bigint not null | ||
# | ||
# Indexes | ||
# | ||
# index_pds_search_results_on_import (import_type,import_id) | ||
# index_pds_search_results_on_patient_id (patient_id) | ||
# index_pds_search_results_on_patient_import_step (patient_id,import_type,import_id,step) UNIQUE | ||
# | ||
# Foreign Keys | ||
# | ||
# fk_rails_... (patient_id => patients.id) | ||
# | ||
class PDSSearchResult < ApplicationRecord | ||
belongs_to :patient | ||
belongs_to :import, polymorphic: true, optional: true | ||
|
||
enum :step, | ||
{ | ||
no_fuzzy_with_history: 0, | ||
no_fuzzy_with_history_daily: 1, | ||
no_fuzzy_without_history: 2, | ||
no_fuzzy_with_wildcard_postcode: 3, | ||
no_fuzzy_with_wildcard_given_name: 4, | ||
no_fuzzy_with_wildcard_family_name: 5, | ||
fuzzy_without_history: 6, | ||
fuzzy_with_history: 7 | ||
}, | ||
validate: true | ||
|
||
enum :result, | ||
{ no_matches: 0, one_match: 1, too_many_matches: 2 }, | ||
validate: true | ||
end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.