-
Notifications
You must be signed in to change notification settings - Fork 31
Modified the constructor for better handling #125
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
44 commits
Select commit
Hold shift + click to select a range
3814860
Abdm Facility fetch services changes
a2224b4
facility save after carecontext and patientcarecontextx update
1a28c2b
FacilityId save in mongo db and Variable declaration correction
fea418b
Mongo carecontext save query logic changes
9d30d46
ABHA Creation M1 V3 API changes
583594a
Abha V3 changes
8d206ef
resolved merge conflicts
4c76193
removed unused code
helenKaryamsetty c07d839
v3- verify auth by abdm API changes
d26eeda
Merge branch 'PSMRI:develop' into abdmV3
helenKaryamsetty 5e93901
resolved merge conflicts
e669df1
fix pulled latest develop
helenKaryamsetty 7a5c0d4
feat: Abdm M2 V3 changes
helenKaryamsetty 43683a2
feat: mongo query change fetch for linktoken
helenKaryamsetty 8ead599
Merge branch 'abdmV3' into abdmV3
helenKaryamsetty c1c5d38
fix: link carecontext authorization error
helenKaryamsetty 497b3ff
Merge branch 'PSMRI:abdmV3' into abdmV3
helenKaryamsetty d748156
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
helenKaryamsetty 811aef7
Merge branch 'PSMRI:abdmV3' into abdmV3
helenKaryamsetty 945d874
feat: hiTypes addition
helenKaryamsetty c1c96f4
feat: version change for testing
helenKaryamsetty d267c17
fix: minor change for empty response
helenKaryamsetty 49c97fa
fix: resolved merge conflicts
helenKaryamsetty 6d5298f
Simplify queries in CareContextRepo interface
helenKaryamsetty 23b4a20
fix: corrected response format
helenKaryamsetty db670fc
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
helenKaryamsetty 5d6dd44
fix: minor logic change for care context linking
helenKaryamsetty 1d9835a
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
helenKaryamsetty 765d260
small correction in hiType and error message modification
helenKaryamsetty 71c995d
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
helenKaryamsetty fec6064
modified error message
helenKaryamsetty fa7cf00
resolved merge conflicts
helenKaryamsetty 7a21582
feat: new standard FHIR bundles creation
helenKaryamsetty 09913fc
Merge branch 'abdmV3' of https://github.com/helenKaryamsetty/FHIR-APIβ¦
helenKaryamsetty 8269c75
Fix environment variable for systemUrl
helenKaryamsetty 055525e
Fix formatting of systemUrl property
helenKaryamsetty 61506e6
fix: taken coderabbitai comments and minor changes
helenKaryamsetty a1df7fa
fix: resolved merge conflicts
helenKaryamsetty e2bec9a
fix: changed missed variable
helenKaryamsetty 88654c5
fix: resolved merge conflicts
helenKaryamsetty e44be6f
Merge branch 'PSMRI:abdmV3' into abdmV3
helenKaryamsetty 881bcbf
fix: modified the constructor
helenKaryamsetty d116010
Change exception message for Organization resource
helenKaryamsetty 6237bad
Fix typo in exception message for PractitionerDataModel
helenKaryamsetty 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
Some comments aren't visible on the classic Files Changed page.
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing array bounds validation before element access.
The constructor accesses
objArr[0]throughobjArr[15](16 elements) without verifying that the array has sufficient length. AnArrayIndexOutOfBoundsExceptionwill be thrown for shorter arrays, which gets wrapped in a less informativeFHIRException.π Proposed fix: Add bounds check at the start of try block
try { + if (objArr.length < 16) { + throw new FHIRException("Organization resource requires at least 16 elements, but got " + objArr.length); + } this.benVisitID = objArr[0] != null ? Long.parseLong(objArr[0].toString()) : null;π€ Prompt for AI Agents