FHIR Chat · ViewerJS Document Viewer · IG creation

Stream: IG creation

Topic: ViewerJS Document Viewer


view this post on Zulip Saul Kravitz (Jul 13 2020 at 14:53):

I've been tasked with exploring including an inline viewer for a mapping spreadsheet in the CarinBB IG.
The easy way to do this appears to be the inclusion of the open source https://viewerjs.org/instructions/ package (or similar) in the published IG.
This raises two questions:
1) Are there any issues with this? "ViewerJS is a Free Software project. All code is available under the AGPL."
2) Assuming this is allowable, how can I get the IG publisher to "do the right thing", and essentially pass the directory containing the viewerJS stuff through to the published IG?

view this post on Zulip Jose Costa Teixeira (Jul 13 2020 at 15:30):

what is a mapping spreadsheet?

view this post on Zulip Jose Costa Teixeira (Jul 13 2020 at 15:32):

anyway, sounds like this would need a change to your template (which, if it includes code, may not work with the CI build without approval). And the license is AGPL - which seems more restrictive than those we use (MIT / ASL)

view this post on Zulip Saul Kravitz (Jul 13 2020 at 16:00):

Mapping spreadsheet = https://saulakravitz.github.io/carin-bb-publish/CARINMappingtoFHIR20191002copy.xlsx
In this case shows how CPCDS data elements map to FHIR profiles/fields/slices.

What is the path/process to changing the template? If non-trivial, I'll probably spend my time elsewhere. THX

view this post on Zulip Jose Costa Teixeira (Jul 13 2020 at 16:11):

you'd need to use a local template. Then you'd need to change that template's scripts. And then you'd still be stuck, I guess, because local templates do not allow script changes

view this post on Zulip Grahame Grieve (Jul 13 2020 at 19:01):

I admit that I don't understand why this is a good idea. It certainly sounds like it wouldn't be acceptable for ballot

view this post on Zulip Grahame Grieve (Jul 13 2020 at 19:01):

can you please explain what the user experience you are looking for is?

view this post on Zulip Saul Kravitz (Jul 13 2020 at 21:22):

User experience is the ability to browse the spreadsheet cited above in a web browser, rather than downloading it and opening it in excel.

view this post on Zulip Eric Haas (Jul 13 2020 at 21:26):

how about an iframe for a gist in csv

<iframe src="https://gist.github.com/Healthedata1/e1897fe39dc239a397776cdd4ae76554" width="100%" height="100%">
</iframe>

view this post on Zulip Grahame Grieve (Jul 13 2020 at 21:35):

I don't think that 'browse a spreadsheet' is a good user experience generally, though it is better than 'download it'. I don't follow the GIST idea either


Last updated: Apr 12 2022 at 19:14 UTC