-
Notifications
You must be signed in to change notification settings - Fork 4
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
[SEP] Subscription fix #23
base: main
Are you sure you want to change the base?
Conversation
Added scripts for easily building and serving
Improved the scripts and removed the bat versions
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.
Instead of clearing all of the WorkflowCapability subscriptions and posting them to FHIR again, we would like to conditionally post Subscriptions, using a bundle, if they do not exist in the store yet.
for(Extension ext : extension) { | ||
boolean deleted = false; | ||
|
||
if(ext.getUrl().equals("createdBy")) { |
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.
Misuse of Extension in a Subscription Resource
Suggestion: Instead use a tag as part of the meta of a Resource
} | ||
} | ||
|
||
if(deleted) { |
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.
Unnecessary if statement, move println to line 62
* Queries all Subscriptions from the FHIR Store | ||
* @return Array of all Subscriptions | ||
*/ | ||
public Subscription[] getSubscriptions() { |
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.
Return List object instead of an array
Remove old subscriptions from the FHIR store, so there are no duplicates.