Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

w2ptr
Copy link
Contributor

@w2ptr w2ptr commented May 7, 2023

Remove old subscriptions from the FHIR store, so there are no duplicates.

Copy link
Contributor

@JuanvdHeijden JuanvdHeijden left a 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")) {
Copy link
Contributor

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) {
Copy link
Contributor

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() {
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants