FHIR Chat · IG · implementers

Stream: implementers

Topic: IG


view this post on Zulip Laxmi Singh (Apr 09 2021 at 14:14):

Hi , I have generated an IG using FHIR IG Publisher tool . The IG contains long default list of Constraint & Terminology Bindings, which I want to remove. I tried editing spreadsheet data but nothing happens. Can someone help me on how to edit constraint & Terminologies .

view this post on Zulip Jose Costa Teixeira (Apr 09 2021 at 14:26):

is your work available in a public repository? Or can you post a screenshot of the things you want to remove?

view this post on Zulip Laxmi Singh (Apr 09 2021 at 14:30):

Sure terminology.JPG constraint.JPG . These constraint & Terminologies table are default published on each resource type page. As they are the default ones from FHIR Specification I want to removes these and keep the custom ones which I will define .

view this post on Zulip Jose Costa Teixeira (Apr 09 2021 at 14:56):

The only thing I can think of is to check that your IG's parameter "show-inherited-invariants" is set to false

view this post on Zulip Laxmi Singh (Apr 09 2021 at 15:02):

where can I find this parameter. I have this folder structure and when I search with this 'show-inherited-invariants' , search results are zero. I searched in whole folder structure pasted below. Am I searching at the correct place?
image.png

view this post on Zulip Jose Costa Teixeira (Apr 09 2021 at 15:29):

inside the input folder, you should have an xml file

view this post on Zulip Jose Costa Teixeira (Apr 09 2021 at 17:37):

in that xml file you may have parameters. If there is one there for show-inherited-invariants, you can set it to false (or set it to false anyway just in case)
image.png

view this post on Zulip Laxmi Singh (Apr 12 2021 at 10:41):

Hi ,

I tried adding in the file "athenaFlexIG.xml" . And it worked. Thanks a lot. Can you tell me how can I remove Terminology Bindings please ??? . I tried to find suitable parameter in this confluence page : https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters but could not find the related one. Your help is greatly appreciated

image.png

view this post on Zulip Jose Costa Teixeira (Apr 12 2021 at 11:49):

terminology bindings are still part of a profile, and I think they are all inherited for that reason. I don't know of a way to remove those

view this post on Zulip Lloyd McKenzie (Apr 16 2021 at 17:52):

You can't remove bindings. All you can do is tighten them according to the profiling rules

view this post on Zulip Vassil Peytchev (Apr 16 2021 at 18:46):

Can you remove example bindings? Or do these simply not propagate?

view this post on Zulip Lloyd McKenzie (Apr 16 2021 at 20:49):

You can't remove them and they do propagate. You can, however, override them to a different example binding.

view this post on Zulip Laxmi Singh (Apr 27 2021 at 11:31):

Hi , I am trying to modify IG styling like changing color of banner from red to purple , modifying the IG width and others . Is there a way to add custom CSS file where I can mention my classes and overwrite the ones displayed by default in IG or in which file existing file I need to make changes. Attaching the screenshot of current IG banner ,Please help

image.png

view this post on Zulip Oliver Egger (Apr 27 2021 at 11:34):

https://build.fhir.org/ig/FHIR/ig-guidance/branches/master/template.html#example has examples how to customize the css

view this post on Zulip Laxmi Singh (Apr 27 2021 at 11:38):

Thanks Oliver. I will check that.

view this post on Zulip Lloyd McKenzie (Apr 27 2021 at 14:03):

Note that you should start from the 'base' template that doesn't have the HL7 logos.

view this post on Zulip Laxmi Singh (May 04 2021 at 12:07):

Hi , I tried to implement custom template to add custom CSS design. I created a folder called 'projectTemplate' and added at below position.
image.png
I am trying to change the css but it is not getting reflected . Can you tell me where it went wrong. Following is my repo link : https://github.com/gigglegirl/fhir-ig-demo

My another question is I want all resourceTypes pages to be displayed in some particular design like adding all search parameters elements inside a table . Is it possible to do in such a way that I don't have to modify each & every resourceType page and when I generate the IG all pages comes in that format. ???? Your help is greatly appreciated here.

view this post on Zulip Jose Costa Teixeira (May 04 2021 at 13:41):

your repo does not contain the IG

view this post on Zulip Laxmi Singh (May 04 2021 at 13:43):

It is my company's IG , I will not be able to share it completely. I wanted to know whether I added it at correct place ? Is my folder content is correct. ?

view this post on Zulip Lloyd McKenzie (May 04 2021 at 13:56):

Does your ig.ini point to the projectTemplate folder?

view this post on Zulip Lloyd McKenzie (May 04 2021 at 13:57):

Search parameters aren't defined on a per profile basis, so it's going to be hard for a profile to figure out what search parameters go with which profile automatically.

view this post on Zulip Lloyd McKenzie (May 04 2021 at 13:58):

Also, if you put custom scripts in your template, you won't be able to use the CI build because your template won't be 'trusted'.

view this post on Zulip Laxmi Singh (May 04 2021 at 14:46):

Thanks a lot, changes got reflected. Some of the CSS is breaking . I will try to fix it. Thanks for your quick response. I think it would be better to this point in the guide. ​
https://build.fhir.org/ig/FHIR/ig-guidance/branches/master/template.html#example

Also does that mean that each resource page needs to be modified by ourselves??? and we cant use something (a code or template or something else) which will render all resource pages in some particular format like we did in CSS templates.

view this post on Zulip Lloyd McKenzie (May 04 2021 at 15:30):

You can change the layouts in the template to change what will show up. However, it'll be hard for a layout for a profile to expose search parameters - given that search is orthogonal to profile. You can also use Ant, XSLT and/or JavaScript to control rendering programmatically - however, if you do that, you can't use the CI build process.

view this post on Zulip Laxmi Singh (May 04 2021 at 15:55):

If I am getting correctly you mean that we can use templates to change the layout instead of modifying it for each page.?? Can you tell me how to do . Is there any link ?? . Sorry for multiple questions.

view this post on Zulip Lloyd McKenzie (May 04 2021 at 16:08):

There's a limited amount of documentation, but primarily it's a question of digging into the existing templates, seeing how they do what they do and experimenting. What documentation exists is here:
http://build.fhir.org/ig/FHIR/ig-guidance/using-templates.html
http://build.fhir.org/ig/FHIR/ig-guidance/template.html
You can also look at the Git projects that define templates here: http://build.fhir.org/ig/FHIR/ig-guidance/

To understand the current templates, you'll need to understand Ant, XSLT and Liquid.

view this post on Zulip Laxmi Singh (May 05 2021 at 06:51):

Thanks @Lloyd McKenzie

view this post on Zulip Laxmi Singh (Jun 04 2021 at 07:20):

I published my IG today and suddenly the CSS is changed. Font-family changed, table borders are not visible suddenly. Is there any recent change made in the publisher which has caused this ???

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 07:23):

There were some changes yesterday but nothing that would impact font family. Let me check

view this post on Zulip Laxmi Singh (Jun 04 2021 at 07:25):

Any idea about table borders ? They are also gone. There is some change in look and feel of the CSS

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 07:26):

there was one CSS dropped, I will see if that has impact.

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 07:26):

can you point to a screen that shows the font and table borders?

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 07:27):

link to webpage is better

view this post on Zulip Laxmi Singh (Jun 04 2021 at 07:28):

image.png
Search Parameters table had a border now its not there

view this post on Zulip Laxmi Singh (Jun 04 2021 at 07:29):

Font family looks different now

image.png

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 07:33):

do you have a repository for me to test locally?

view this post on Zulip Laxmi Singh (Jun 04 2021 at 07:37):

Please give me some time. Let me try.

view this post on Zulip Laxmi Singh (Jun 04 2021 at 07:41):

I will not be able to share my company IG and repository.

view this post on Zulip Laxmi Singh (Jun 04 2021 at 07:42):

image.png
All this should be inside table. I cant see table borders now.

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 07:54):

Ok, I think I found it

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 07:54):

there's a silly CORS issue preventing a css to be loaded.

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 07:56):

let me see if i can replicate, should take 5 minutes

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 07:56):

then i'll see what can be done for fixing

view this post on Zulip Laxmi Singh (Jun 04 2021 at 07:57):

Ok Thanks

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 08:06):

found it. There is a duplicte CSS.

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 08:07):

there are 2 fixes possible, but I'd like to check them with Lloyd when he's back here. Is it ok for you to wait a few hours @Laxmi Singh ?

view this post on Zulip Laxmi Singh (Jun 04 2021 at 08:08):

Ok sure

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 16:40):

@Laxmi Singh Can you try now?

view this post on Zulip Jose Costa Teixeira (Jun 04 2021 at 16:41):

apologies for the delay.

view this post on Zulip Laxmi Singh (Jun 07 2021 at 06:36):

working fine now. Thanks

image.png

view this post on Zulip Laxmi Singh (Jun 15 2021 at 10:15):

How do I create a custom valueset resource page in IG ? Do I have to just add the custom html file. ?? I want o create a valueset similar to like this : https://hl7.org/fhir/us/core/2017Jan/ValueSet-us-core-substance.html

How will I get values in this table . Please refer below screenshot :

image.png

How do I get different formats mentioned in 'source resources' in first table. Do I have to create the pages separately and then link them ?? Do I have to create the table itself manually .

Your help is appreciated.
Thanks

view this post on Zulip Eric Haas (Jun 15 2021 at 14:58):

This all standard output from the Ig-publisher. Check out https://github.com/FHIR/ig-guidance

view this post on Zulip Laxmi Singh (Jun 16 2021 at 10:08):

I want to edit/change my tabs in IG . How can I do that. I cant find a file where these are editable and I can add new tabs. Please guide me. I want to change the tabs circled in red below .
image.png

view this post on Zulip Grahame Grieve (Jun 16 2021 at 10:22):

this is really a question for #IG creation

view this post on Zulip Grahame Grieve (Jun 16 2021 at 10:22):

and explain how and why you want to change them, since that will change your answer

view this post on Zulip Laxmi Singh (Jun 16 2021 at 10:23):

This capabilitystatement https://www.hl7.org/fhir/us/core/CapabilityStatement-us-core-server.html contains the 3 tabs I want similar tabs for my IG

view this post on Zulip Vaibhav Kumbhar (Jun 21 2021 at 10:17):

Hi, I'm extending the FHIR IG base template https://github.com/HL7/ig-template-base for adding custom tabs on profile page like Operations, Error Codes, Search Parameters. I found a way to add tabs, but for specific page generation, I'm not able to find the logic e.g. generate patient.operations.html page. Can someone guide me on how exactly that template is generated from those scripts. I am not able to find the starting point. image.png

view this post on Zulip Jose Costa Teixeira (Jun 21 2021 at 14:41):

Hi @Vaibhav Kumbhar is this this the same question as in the IG stream? (normally there's no need to double post)

view this post on Zulip Vaibhav Kumbhar (Jun 21 2021 at 16:18):

Jose Costa Teixeira said:

Hi Vaibhav Kumbhar is this this the same question as in the IG stream? (normally there's no need to double post)

I saw Grahame Grieve's above reply. So posted the query in #IG creation . Will post once from now on.


Last updated: Apr 12 2022 at 19:14 UTC