-
Notifications
You must be signed in to change notification settings - Fork 40
BFD-4764: Prior Auth Server Implementation #3201
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 17 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
e4bdddb
BFD-4764: Prior Auth Server Implementation
mel1-G e1604e1
Suppress warnings for duplicate string literals for displays
mel1-G a082274
refactor to query prior auth in parallel with claims + some clean up
mel1-G 41c98c5
resolve merge conflicts
mel1-G cebd6e8
filter SAMHSA prior auths & rework source filter
mel1-G 2f91dda
support prior auth search through _tag & determine system for HIPPS cd
mel1-G ee5babd
rework SystemType so each type outlines its compatible sources
mel1-G 419d74d
update mapping for HCPCS_OR_CPT_OR_HIPPS and remove data absent check…
mel1-G bb250bb
remove old todo comment
mel1-G 09667ad
resolve merge conflict & bump migration
mel1-G 5f64971
clean up filters for determining whether or not PA should be queried
mel1-G b1721d5
fix port mappings to not conflict with other db
aschey-forpeople 440d86d
refactor samhsa tests for prior authorization
mel1-G a107871
expanded samhsa pa coverage and did some clean up
mel1-G 9a53005
guard against false positives with checking if code is SAMHSA
mel1-G cbd96e2
resolve merge conflict
mel1-G 6fa02d3
revert getOrDefault for systems check
mel1-G 97d152c
address mapping mismatches
mel1-G 386ef78
resolve merge conflict
mel1-G dfbbe5a
bump migration
mel1-G 3fc6c39
Merge branch 'master' into BFD-4764
alex-dzeda 579857c
bump migration again :(
mel1-G 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
63 changes: 63 additions & 0 deletions
63
apps/bfd-db-migrator-ng/migrations/V1_35_0__add_prvdr_prior_auth_item.sql
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,63 @@ | ||
| ALTER TABLE idr.prior_auth | ||
| ADD COLUMN bfd_order_refer_careteam_name character varying(135), | ||
| ADD COLUMN bfd_order_refer_npi_type integer, | ||
| ADD COLUMN bfd_render_careteam_name character varying(135), | ||
| ADD COLUMN bfd_render_npi_type integer, | ||
| ADD COLUMN bfd_att_phy_careteam_name character varying(135), | ||
| ADD COLUMN bfd_att_phy_npi_type integer; | ||
|
|
||
| ALTER TABLE idr.prior_auth | ||
| ADD COLUMN resource_id UUID DEFAULT gen_random_uuid(); | ||
|
|
||
| CREATE TABLE idr.prior_auth_item ( | ||
| mbi_num VARCHAR(11) NOT NULL, | ||
| utn VARCHAR(14) NOT NULL, | ||
| current_segment INT NOT NULL, | ||
| hcpcs_or_cpt_or_hipps VARCHAR(5) NOT NULL, | ||
| price_mod1 VARCHAR(2) NOT NULL, | ||
| price_mod2 VARCHAR(2) NOT NULL, | ||
| place_of_serv VARCHAR(2) NOT NULL, | ||
| rev_code_1 VARCHAR(4) NOT NULL, | ||
| pa_dt_added DATE NOT NULL, | ||
| pa_dt_updated DATE, | ||
| pa_decision VARCHAR(1) NOT NULL, | ||
| pa_req_sub_dt DATE NOT NULL, | ||
| pa_req_rec_dt DATE NOT NULL, | ||
| pa_decision_dt DATE, | ||
| pa_decision_exp_dt DATE, | ||
| service_cnts INT NOT NULL, | ||
| svc_render_st VARCHAR(2) NOT NULL, | ||
| mr_count_ind INT NOT NULL, | ||
| mr_count_st_dt DATE, | ||
| mr_count_end_dt DATE, | ||
| rrb_excl_ind VARCHAR(1) NOT NULL, | ||
| bfd_created_ts TIMESTAMPTZ NOT NULL, | ||
| bfd_updated_ts TIMESTAMPTZ, | ||
| PRIMARY KEY(mbi_num, utn, current_segment) | ||
| ); | ||
|
|
||
| ALTER TABLE idr.prior_auth | ||
| DROP CONSTRAINT prior_auth_pkey, | ||
| DROP COLUMN current_segment, | ||
| ADD CONSTRAINT prior_auth_pkey PRIMARY KEY (mbi_num, utn); | ||
|
|
||
| ALTER TABLE idr.prior_auth | ||
| DROP COLUMN hcpcs_or_cpt_or_hipps, | ||
| DROP COLUMN price_mod1, | ||
| DROP COLUMN price_mod2, | ||
| DROP COLUMN place_of_serv, | ||
| DROP COLUMN rev_code_1, | ||
| DROP COLUMN pa_dt_added, | ||
| DROP COLUMN pa_dt_updated, | ||
| DROP COLUMN pa_decision, | ||
| DROP COLUMN pa_req_sub_dt, | ||
| DROP COLUMN pa_req_rec_dt, | ||
| DROP COLUMN pa_decision_dt, | ||
| DROP COLUMN pa_decision_exp_dt, | ||
| DROP COLUMN service_cnts, | ||
| DROP COLUMN svc_render_st, | ||
| DROP COLUMN mr_count_ind, | ||
| DROP COLUMN mr_count_st_dt, | ||
| DROP COLUMN mr_count_end_dt, | ||
| DROP COLUMN rrb_excl_ind; | ||
|
|
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
Oops, something went wrong.
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.