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

Update SUSHI --init to avoid publisher errors #899

Merged
merged 5 commits into from
Aug 23, 2021

Conversation

ngfreiter
Copy link
Contributor

Fixes #884.

sushi --init was causing errors and warnings in the IG Publisher. These turned out to be related to:

  • Not having any examples of the MyPatient profile
  • Not having any description on the MyPatient profile
  • Not having a publisher set

So to fix this, this PR updates the patient.fsh file to have an example and a description. It also updates the default sushi-config.yaml file to contain default values for publisher.name and publisher.url, and updates the init() function so that the user can specify custom values for these fields.

Testing

To test this, try doing sushi --init on master, and build with the publisher with _genonce. The QA page, output/qa.html, will have several errors and warnings. Then do the same on this branch, and the QA page should look clean, like this:
image

The QA page should definitely be clean if you use default values, and should likely be clean if you use custom values, but note that certain custom values could lead to warnings. But either way make sure to test both approaches. Ensure that the publisher value you use is inserted in the footer of pages as shown here:
image

- Update patient.fsh to have description and example
- Update default config to have example publisher
- Allow publisher to be overwritten by user
mint-thompson
mint-thompson previously approved these changes Aug 11, 2021
Copy link
Collaborator

@mint-thompson mint-thompson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried it out on my windows machine, and everything appears to be in good order. Thank you!

Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! I confirmed the errors are resolved when I use the defaults and are the expected errors when I use my own values (my url did not resolve). I just had one small comment that you can take or leave.

src/utils/Processing.ts Outdated Show resolved Hide resolved
@jafeltra jafeltra assigned jafeltra and unassigned julianxcarter Aug 17, 2021
Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@ngfreiter ngfreiter merged commit e808402 into master Aug 23, 2021
@ngfreiter ngfreiter deleted the 798-sushi-init-publisher-warnings branch August 23, 2021 14:02
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.

SUSHI init causes errors and warnings in IG Publisher
4 participants