BFD-4784: Create way to generate EOB-Pharmacy data json files for model-idr - #3239
Merged
Conversation
marshallweekley-eng
marked this pull request as ready for review
August 4, 2026 21:11
marshallweekley-eng
requested review from
alex-dzeda,
aschey-forpeople,
malessi,
mel1-G and
mjburling
as code owners
August 4, 2026 21:11
Contributor
|
Adding specific comments, but can you also post the output of running the conformance testing against the generated input? Anything of note? (you can grab the snippet in ./compile-all-resources.sh for pharmacy, just make sure you run sushi, too, if you're running it in isolation). |
Co-authored-by: aschey-forpeople <162160982+aschey-forpeople@users.noreply.github.com>
Create util method for str extract EOB Type AutoDetection
Contributor
Author
I added the sushi output. |
aschey-forpeople
previously approved these changes
Aug 6, 2026
aschey-forpeople
self-requested a review
August 6, 2026 16:47
Co-authored-by: aschey-forpeople <162160982+aschey-forpeople@users.noreply.github.com>
aschey-forpeople
approved these changes
Aug 6, 2026
patrickgmayday
approved these changes
Aug 6, 2026
clewellyn-nava
approved these changes
Aug 6, 2026
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.





JIRA Ticket:
BFD-4784
What Does This PR Do?
Create way to generate EOB-Pharmacy data json files for model-idr.
This is written to be able to be built upon for other eob types
What Should Reviewers Watch For?
That the sample output is what we are looking for.
If you're reviewing this PR, please check for these things in particular:
Data mapping and that data is coming from the correct files.
What Security Implications Does This PR Have?
Please indicate if this PR does any of the following:
Adds any new software dependencies
Modifies any security controls
Adds new transmission or storage of data
Any other changes that could possibly affect security?
I have considered the above security implications as it relates to this PR. (If one or more of the above apply, it cannot be merged without the ISSO or team security engineer's (
@sb-benohe) approval.)I have created tests to sufficiently ensure the reliability of my code, if applicable. If this is a modification to an existing piece of code, I have audited the associated tests to ensure everything works as expected.
Validation
It is being compared against the existing sample file to see that it has all data nodes.
Example output
{ "resourceType": "ExplanationOfBenefit-Pharmacy", "id": "5003182605428", "lastUpdated": "2025-11-17 14:13:59.002053", "CLM_FINL_ACTN_IND": "Y", "CLM_SRC_ID": "20000", "BENE_SK": "-683399246", "CLM_TYPE_CD": 2, "CLM_UNIQ_ID": "-5003182605428", "CLM_CNTL_NUM": "-87030670488496VTA", "CLM_ORIG_CNTL_NUM": "-08471235414105FMQ", "CLM_FROM_DT": "2023-12-20", "CLM_THRU_DT": "2024-01-19", "CLM_EFCTV_DT": "2026-08-04", "CLM_SRVC_PRVDR_GNRC_ID_NUM": "1656158338", "CLM_PD_DT": "2023-12-31", "PRVDR_PRSCRBNG_PRVDR_NPI_NUM": "2056702345", "CLM_PRSBNG_PRVDR_GNRC_ID_NUM": "2056702345", "PRVDR_PRSBNG_ID_QLFYR_CD": "08", "PRVDR_LAST_NAME": "", "CNTRCT_PBP_NAME": "Happy Heart", "CLM_BENE_PMT_AMT": "28.37", "CLM_OTHR_TP_PD_AMT": "776.75", "META_SRC_SK": "7", "PRVDR_SRVC_ID_QLFYR_CD": "08", "supportingInfoComponents": [], "lineItemComponents": [ { "CLM_LINE_NUM": "1", "CLM_LINE_FROM_DT": "2023-12-20", "CLM_LINE_NDC_CD": "00338011704", "CLM_LINE_NDC_QTY": "8", "CLM_LINE_NDC_QTY_QLFYR_CD": "ML", "CLM_LINE_CVRD_PD_AMT": "457378.85", "CLM_LINE_GRS_ABOVE_THRSHLD_AMT": "379162.84", "CLM_LINE_GRS_BLW_THRSHLD_AMT": "723008.55", "CLM_LINE_LIS_AMT": "347272.83", "CLM_LINE_TROOP_TOT_AMT": "349911.82", "CLM_LINE_PLRO_AMT": "76176.32", "CLM_RPTD_MFTR_DSCNT_AMT": "208343.02", "CLM_LINE_INGRDNT_CST_AMT": "293667.21", "CLM_LINE_SRVC_CST_AMT": "191300.47", "CLM_LINE_SLS_TAX_AMT": "745040.33", "CLM_LINE_VCCN_ADMIN_FEE_AMT": "806157.04", "CLM_PRCNG_EXCPTN_CD": "M", "CLM_LINE_BENE_PMT_AMT": "4.66", "CLM_CMS_CALCD_MFTR_DSCNT_AMT": "838.25", "CLM_LINE_GRS_CVRD_CST_TOT_AMT": "", "CLM_LINE_REBT_PASSTHRU_POS_AMT": "843.63", "CLM_PHRMCY_PRICE_DSCNT_AT_POS_AMT": "129.77", "CLM_LINE_OTHR_TP_PD_AMT": "500.02", "CLM_LINE_NCVRD_PD_AMT": "763103.57", "CLM_LINE_RPTD_GAP_DSCNT_AMT": "295541.44", "CLM_LINE_AUTHRZD_FILL_NUM": "0", "CLM_PHRMCY_SRVC_TYPE_CD": "01", "CLM_LINE_RX_ORGN_CD": "3", "CLM_BRND_GNRC_CD": "B", "CLM_PTNT_RSDNC_CD": "13", "CLM_LTC_DSPNSNG_MTHD_CD": "18", "CLM_CMPND_CD": "2", "CLM_LINE_DAYS_SUPLY_QTY": "6", "CLM_LINE_RX_FILL_NUM": "6", "CLM_DAW_PROD_SLCTN_CD": "0", "CLM_DRUG_CVRG_STUS_CD": "O", "CLM_CTSTRPHC_CVRG_IND_CD": "A", "CLM_LINE_RX_NUM": "22120.27", "CLM_DSPNSNG_STUS_CD": "C" } ], "CLM_CMS_PROC_DT": "2024-01-19", "CLM_IDR_LD_DT ": "2024-09-01", "CLM_ADJSTMT_TYPE_CD": "2", "CLM_SBMT_FRMT_CD": "A", "CLM_SBMTR_CNTRCT_NUM": "Z0005", "CLM_SBMTR_CNTRCT_PBP_NUM": "004", "CLM_DT_SGNTR_SK": "-287553384478" }Produced