Skip to content

Commit c99f20c

Browse files
mel1-Gaschey-forpeople
authored andcommitted
BFD-4543: Refactor Diagnoses Implementation (#3062)
Co-authored-by: aschey-forpeople <162160982+aschey-forpeople@users.noreply.github.com> Co-authored-by: Austin Schey <austin.schey@forpeople.us>
1 parent 9154ffa commit c99f20c

25 files changed

Lines changed: 3974 additions & 1477 deletions

apps/bfd-model-idr/maps/ExplanationOfBenefit-Base.map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ group createEOBBase(source src: ExplanationOfBenefitBase, target tgt: BFDEOB){
108108

109109
src.CLM_TYPE_CD as typeCd where((typeCd > 70 and typeCd <= 82) or (typeCd >= 2700 and typeCd < 2900) or (typeCd >= 1700 and typeCd < 1900)) -> tgt then{
110110
src.diagnoses as diagnoses -> tgt.diagnosis = create('BackboneElement') as tgtDiagnosis then addDiagnosesProfessional(diagnoses, tgtDiagnosis) "Add diagnoses";
111-
} "Add diagnoses for institutional claims.";
111+
} "Add diagnoses for professional claims.";
112112

113113

114114
//Supportinginfo!

apps/bfd-model-idr/out/ExplanationOfBenefit-Carrier.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,8 +981,8 @@
981981
}],
982982
"sequence" : 1,
983983
"careTeamSequence" : [1],
984-
"informationSequence" : [29,
985-
30],
984+
"diagnosisSequence" : [2],
985+
"informationSequence" : [29],
986986
"revenue" : {
987987
"coding" : [{
988988
"system" : "https://bluebutton.cms.gov/fhir/CodeSystem/CLM-REV-CNTR-CD",

apps/bfd-model-idr/out/ExplanationOfBenefit.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,6 @@
12591259
"item" : [{
12601260
"sequence" : 1,
12611261
"careTeamSequence" : [4],
1262-
"diagnosisSequence" : [4],
12631262
"revenue" : {
12641263
"coding" : [{
12651264
"system" : "https://bluebutton.cms.gov/fhir/CodeSystem/CLM-REV-CNTR-CD",

apps/bfd-model-idr/sample-data/EOB-Base-Sample.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@
229229
],
230230
"lineItemComponents":[
231231
{
232-
"CLM_LINE_DGNS_CD": "M48.062",
233232
"PRVDR_RNDRNG_PRVDR_NPI_NUM": "1942945159",
234233
"CLM_LINE_ADD_ON_PYMT_AMT": "11.11",
235234
"CLM_LINE_NON_EHR_RDCTN_AMT": "11.12",

apps/bfd-model-idr/sample-data/EOB-Carrier-Sample.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
],
143143
"lineItemComponents": [
144144
{
145+
"CLM_LINE_DGNS_CD": "M48.062",
145146
"diagnosisRelatedLine": "1",
146147
"CLM_RNDRG_PRVDR_TYPE_CD": "5",
147148
"CARR_LINE_PRVDR_TYPE_CD": "5",

apps/bfd-model-idr/sample-data/EOB-Inpatient-FISS-Sample.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@
164164
],
165165
"lineItemComponents": [
166166
{
167-
"CLM_LINE_DGNS_CD": "E78.00",
168167
"diagnosisRelatedLine": "5",
169168
"CLM_LINE_NUM": "1",
170169
"CLM_LINE_HCPCS_CD": "99213",

apps/bfd-pipeline-idr/test_samples2/SYNTHETIC_CLM_PROD.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ D,,9,2021-10-03,2,322823692140,1,86974,40,25000,,2025-08-30 21:02:39.643878,
88
D,,9,2021-10-03,3,322823692140,1,86974,40,E8889,,2025-10-18 14:19:16.348560,
99
D,,9,2021-10-03,4,322823692140,1,86974,40,V1005,,2025-06-24 04:53:33.189945,
1010
S,5A1D70Z,0,2021-09-29,0,322823692141,1,86974,10,,,2026-02-07 03:19:40.183655,
11-
P,B2111ZZ,0,2021-10-03,1,322823692141,1,86974,10,,,2025-09-07 06:16:52.190134,2025-11-28 06:54:15.224368
12-
D,,0,,1,322823692141,1,86974,10,,U,2025-11-06 19:19:41.633089,2026-01-23 22:23:54.903590
11+
P,,0,,1,322823692141,1,86974,10,W5541XA,,2025-09-07 06:16:52.190134,2025-11-28 06:54:15.224368
12+
D,,0,,1,322823692141,1,86974,10,W5541XA,U,2025-11-06 19:19:41.633089,2026-01-23 22:23:54.903590
1313
A,,0,,1,322823692141,1,86974,10,V972,~,2025-11-16 21:36:13.404555,
1414
E,,,,1,322823692141,1,86974,10,W5813XD,0,2025-07-15 20:24:54.375036,
1515
1,,0,,1,322823692141,1,86974,10,W5813XD,~,2025-06-17 08:58:32.463431,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
CLM_DT_SGNTR_SK,CLM_NUM_SK,GEO_BENE_SK,CLM_TYPE_CD,CLM_NRLN_RIC_CD,IDR_INSRT_TS,IDR_UPDT_TS
22
659052754349,1,86975,71,V,2025-02-05 02:01:20.616567,2025-04-30 10:55:23.977977
33
659052754348,1,86974,2800,M,2025-04-25 08:51:26.299139,
4-
659052754350,1,86975,2700,,2024-01-02 03:09:46.377545,
4+
659052754350,1,86975,2700,,2024-01-02 03:09:46.377545,
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
CLM_PROD_TYPE_CD,CLM_PRCDR_CD,CLM_DGNS_PRCDR_ICD_IND,CLM_PRCDR_PRFRM_DT,CLM_VAL_SQNC_NUM,CLM_DT_SGNTR_SK,CLM_NUM_SK,GEO_BENE_SK,CLM_TYPE_CD,CLM_DGNS_CD,CLM_POA_IND
2-
P,,9,2021-10-03,1,659052754348,1,86974,2800,30495,Y
3-
1,,9,2021-10-03,2,659052754348,1,86974,2800,25000,~
4-
E,,9,2021-10-03,3,659052754348,1,86974,2800,E8889,Y
5-
P,,9,2021-10-03,4,659052754348,1,86974,2800,V1005,~
6-
P,,9,2021-10-03,1,659052754349,1,86975,71,30495,Y
7-
1,,9,2021-10-03,2,659052754349,1,86975,71,25000,~
8-
E,,9,2021-10-03,3,659052754349,1,86975,71,E8889,Y
9-
P,,9,2021-10-03,4,659052754349,1,86975,71,V1005,~
1+
CLM_PROD_TYPE_CD,CLM_PRCDR_CD,CLM_DGNS_PRCDR_ICD_IND,CLM_PRCDR_PRFRM_DT,CLM_VAL_SQNC_NUM,CLM_DT_SGNTR_SK,CLM_NUM_SK,GEO_BENE_SK,CLM_TYPE_CD,CLM_DGNS_CD,CLM_POA_IND,IDR_INSRT_TS,IDR_UPDT_TS
2+
P,,9,2021-10-03,1,659052754349,1,86975,71,30495,Y,2024-12-06 10:21:38.108346,
3+
D,,9,,1,659052754349,1,86975,71,30495,~,2023-08-24 15:38:41.961976,2025-03-25 14:38:43.304857
4+
D,,9,,2,659052754349,1,86975,71,R465,~,2024-09-05 07:39:24.593087,
5+
D,,9,,3,659052754349,1,86975,71,V970,~,2023-10-08 03:54:03.893757,
6+
P,,9,2021-10-03,1,659052754348,1,86974,2800,30495,Y,,
7+
1,,9,2021-10-03,2,659052754348,1,86974,2800,25000,~,,
8+
E,,9,2021-10-03,3,659052754348,1,86974,2800,E8889,Y,,
9+
P,,9,2021-10-03,4,659052754348,1,86974,2800,V1005,~,,
10+
D,,9,2021-10-03,5,659052754348,1,86974,2800,W213,~

apps/bfd-pipeline-idr/uv.lock

Lines changed: 38 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)