Skip to content

Commit afc515b

Browse files
Merge remote-tracking branch 'origin/master' into BFD-4348-prune-older-claim-versions-excluding-part-d
# Conflicts: # apps/bfd-pipeline-idr/pipeline_stages.py # apps/bfd-pipeline-idr/pipeline_utils.py
2 parents b55eb57 + bb05a7f commit afc515b

54 files changed

Lines changed: 251 additions & 205 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
DROP VIEW idr.beneficiary_part_c_and_d_enrollment;
2+
CREATE VIEW idr.beneficiary_part_c_and_d_enrollment AS
3+
SELECT
4+
e.bene_sk,
5+
e.bene_enrlmt_pgm_type_cd,
6+
e.bene_enrlmt_bgn_dt,
7+
e.bene_enrlmt_end_dt,
8+
e.bene_cntrct_num,
9+
e.bene_pbp_num,
10+
e.cntrct_pbp_sk,
11+
e.bene_cvrg_type_cd,
12+
e.bene_enrlmt_emplr_sbsdy_sw,
13+
COALESCE(rx.bene_enrlmt_pdp_rx_info_bgn_dt, DATE '9999-12-31') AS bene_enrlmt_pdp_rx_info_bgn_dt,
14+
rx.bene_pdp_enrlmt_mmbr_id_num,
15+
rx.bene_pdp_enrlmt_grp_num,
16+
rx.bene_pdp_enrlmt_prcsr_num,
17+
rx.bene_pdp_enrlmt_bank_id_num
18+
FROM idr.beneficiary_ma_part_d_enrollment e
19+
LEFT JOIN idr.beneficiary_ma_part_d_enrollment_rx rx
20+
ON e.bene_sk = rx.bene_sk
21+
AND e.bene_enrlmt_bgn_dt = rx.bene_enrlmt_bgn_dt
22+
AND e.cntrct_pbp_sk = rx.cntrct_pbp_sk
23+
AND e.bene_enrlmt_pgm_type_cd in ('2', '3')
24+
AND rx.idr_trans_obslt_ts >= '9999-12-31'
25+
WHERE e.idr_trans_obslt_ts >= '9999-12-31';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE INDEX ON idr.beneficiary_ma_part_d_enrollment(idr_trans_obslt_ts) WHERE idr_trans_obslt_ts < '9999-12-31';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE INDEX ON idr.beneficiary_ma_part_d_enrollment_rx(idr_trans_obslt_ts) WHERE idr_trans_obslt_ts < '9999-12-31';

apps/bfd-db-migrator-ng/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>gov.cms.bfd</groupId>
77
<artifactId>bfd-parent</artifactId>
8-
<version>2.254.0-SNAPSHOT</version>
8+
<version>2.258.0-SNAPSHOT</version>
99
</parent>
1010

1111
<artifactId>bfd-db-migrator-ng</artifactId>

apps/bfd-db-migrator-synthetic/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>gov.cms.bfd</groupId>
77
<artifactId>bfd-parent</artifactId>
8-
<version>2.254.0-SNAPSHOT</version>
8+
<version>2.258.0-SNAPSHOT</version>
99
</parent>
1010

1111
<artifactId>bfd-db-migrator-synthetic</artifactId>

apps/bfd-db-migrator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>gov.cms.bfd</groupId>
77
<artifactId>bfd-parent</artifactId>
8-
<version>2.254.0-SNAPSHOT</version>
8+
<version>2.258.0-SNAPSHOT</version>
99
</parent>
1010

1111
<artifactId>bfd-db-migrator</artifactId>

apps/bfd-model-idr/dictionary-support-files/ExplanationOfBenefit-Pharmacy.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@
4141
- Basis
4242
- Regular
4343
- CMS
44+
- inputPath: ExplanationOfBenefit-Pharmacy.EOB_TYPE
45+
appliesTo:
46+
- Pharmacy
47+
sources:
48+
- DDPS
49+
bfdDerived: True
50+
nameOverride: Claim Stream
51+
definitionOverride: This field can be used to determine which CMS claim stream the claim was processed under.
52+
fhirPath: ExplanationOfBenefit.type.coding.where(system = 'https://bluebutton.cms.gov/fhir/CodeSystem/EOB-TYPE').code
53+
profiles:
54+
- Basis
55+
- Regular
56+
- CMS
4457
- inputPath: ExplanationOfBenefit-Pharmacy.BENE_SK
4558
appliesTo:
4659
- Pharmacy

apps/bfd-model-idr/dictionary-support-files/ExplanationOfBenefit.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,28 @@
145145
- Basis
146146
- Regular
147147
- CMS
148+
- inputPath: ExplanationOfBenefit-Base.EOB_TYPE
149+
appliesTo:
150+
- Inpatient
151+
- Outpatient
152+
- HHA
153+
- Hospice
154+
- SNF
155+
- DME
156+
- Carrier
157+
sources:
158+
- FISS
159+
- MCS
160+
- NCH
161+
- VMS
162+
bfdDerived: True
163+
nameOverride: Claim Stream
164+
definitionOverride: This field can be used to determine which CMS claim stream the claim was processed under.
165+
fhirPath: ExplanationOfBenefit.type.coding.where(system = 'https://bluebutton.cms.gov/fhir/CodeSystem/EOB-TYPE').code
166+
profiles:
167+
- Basis
168+
- Regular
169+
- CMS
148170
- inputPath: ExplanationOfBenefit-Base.BENE_SK
149171
appliesTo:
150172
- Inpatient

apps/bfd-model-idr/sushi/input/fsh/CodeSystem-CLM-EOB-TYPE.fsh renamed to apps/bfd-model-idr/sushi/input/fsh/CodeSystem-EOB-TYPE.fsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
CodeSystem: CLM-EOB-TYPE
1+
CodeSystem: EOB-TYPE
22
Title: "Blue Button EOB Type"
3-
Id: CLM-EOB-TYPE
3+
Id: EOB-TYPE
44
Description: "This is the EOB type code for Blue Button."
55
* ^url = "https://bluebutton.cms.gov/fhir/CodeSystem/EOB-TYPE"
66
* ^status = #active
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Extension: RRB_EXCL_IND
2+
Title: "Railroad Retirement Board Exclusion Indicator"
3+
Description: "Railroad Retirement Board Exclusion Indicator."
4+
Id: RRB-EXCL-IND
5+
* ^url = "https://bluebutton.cms.gov/fhir/StructureDefinition/RRB-EXCL-IND"
6+
* ^context[+].type = #element
7+
* ^context[=].expression = "ExplanationOfBenefit.item"
8+
* value[x] only boolean

0 commit comments

Comments
 (0)