-
Notifications
You must be signed in to change notification settings - Fork 6
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
LNK-1871: Some refactors to the FileSystemSender. Also, updates to an… #716
Conversation
…notate validation results with what file each issue listed in the results comes from when the not a Bundle flag is set in the sender configuration and saves said results to the same location as the rest of the bundle files.
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.
Consider re-formatting/indenting the file as a whole... Noticed a couple weird indentations.
Also consider (not required by this ticket, though) modifying the folder that's exported to so that it is based on <tenant's-nhsn-org-id>-<date-time-stamp>
. For example: 43242-20240307T095900+0800
where 43242 is the nhsnOrgId in the tenant's config. Again, not required for this ticket, but I think it would be ideal, if it can be squeezed in.
core/src/main/java/com/lantanagroup/link/sender/FileSystemSender.java
Outdated
Show resolved
Hide resolved
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.
Sorry... meant to reject to request changes as described in my comment within the code file.
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.
One additional general comment: the validation issue expression
s reflect locations in the "unified bundle" (since that's what we actually perform validation on). So when we saveToFolder
, and all those bundled resources get split out into separate files, the expression
s are no longer accurate. Not sure how big of a problem this is.
core/src/main/java/com/lantanagroup/link/sender/FileSystemSender.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/lantanagroup/link/sender/FileSystemSender.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/lantanagroup/link/sender/FileSystemSender.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/lantanagroup/link/sender/FileSystemSender.java
Outdated
Show resolved
Hide resolved
… some minor refactors.
core/src/main/java/com/lantanagroup/link/FhirBundleProcessor.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/lantanagroup/link/sender/FileSystemSender.java
Outdated
Show resolved
Hide resolved
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.
Approved, but note the need for one small thread-safety tweak before merging.
…lization block per the PR.
…of being done each time filterResourcesByPathList is called
…notate validation results with what file each issue listed in the results comes from when the not a Bundle flag is set in the sender configuration and saves said results to the same location as the rest of the bundle files.