FHIR Chat · grouping resources in implementationguide · conformance

Stream: conformance

Topic: grouping resources in implementationguide


view this post on Zulip Jose Costa Teixeira (Nov 15 2019 at 21:18):

how can we group resources with independent classifications like
a) medication or imaging or coordinatedcare
b) realm1 vs realm2
c) foundational vs accessories?
I would like to see the resources like we have the "resources" lists in the FHIR spec page.
Could implementationguide.definition.resource.groupingId be 0..* to support that?

view this post on Zulip Brian Postlethwaite (Nov 15 2019 at 21:23):

At present you'd have to hand make that page (and maintain it) just as we do in the core spec.

view this post on Zulip Grahame Grieve (Nov 15 2019 at 21:29):

Could implementationguide.definition.resource.groupingId be 0..* to support that?

how would that support that? What is it exactly that you want?

view this post on Zulip Jose Costa Teixeira (Nov 15 2019 at 21:34):

if I have a group for medication and one for imaging and one for coordinatedcare and one for realm1 and one for realm2... i can tag each resource and say "this belongs to realm1 and medication. this other is in realm1 and imaging"

view this post on Zulip Grahame Grieve (Nov 15 2019 at 22:13):

is this groups you define? or the ones out the spec?

view this post on Zulip Jose Costa Teixeira (Nov 15 2019 at 22:24):

I would define them

view this post on Zulip Lloyd McKenzie (Nov 16 2019 at 12:22):

You can define groupings in the IG, but each resource can only appear in one

view this post on Zulip Jose Costa Teixeira (Nov 16 2019 at 12:44):

yes, this is why I asked if groupingId can be 0..* (or other solution)

view this post on Zulip Lloyd McKenzie (Nov 16 2019 at 12:56):

Nope. 0..1

view this post on Zulip Grahame Grieve (Nov 16 2019 at 15:28):

maybe you should try the list approach

view this post on Zulip Jose Costa Teixeira (Nov 16 2019 at 16:30):

You mean make my own groups using List resources?

view this post on Zulip Grahame Grieve (Nov 16 2019 at 19:48):

Yes

view this post on Zulip Jose Costa Teixeira (Nov 18 2019 at 08:14):

That would be good, but then I would like the IG template / publisher to support this and group my resources by those lists, not only a flat list in the artefact page. I can do it on my own IG and / or contribute with xslt effort if needed.

view this post on Zulip Grahame Grieve (Nov 18 2019 at 08:29):

group my resources by those lists

I don't know what this means?

view this post on Zulip Jose Costa Teixeira (Nov 18 2019 at 08:54):

instead of having an artifact list page, grouped by groupingId, I would want to have that page with my profiles grouped by the lists

view this post on Zulip Grahame Grieve (Nov 18 2019 at 09:28):

that's what we're doing in the terminology IG

view this post on Zulip Grahame Grieve (Nov 18 2019 at 09:29):

https://build.fhir.org/ig/HL7/UTG/codesystems.html

view this post on Zulip Grahame Grieve (Nov 18 2019 at 09:29):

done with tabs there

view this post on Zulip Jose Costa Teixeira (Nov 18 2019 at 10:10):

yes, this is it. is this manually maintained, or magically generated?

view this post on Zulip Jose Costa Teixeira (Nov 18 2019 at 10:12):

actually, some sub-levels here would be perfect. Exactly like we have in the spec's resourcelist.hml

view this post on Zulip Grahame Grieve (Nov 18 2019 at 10:34):

well, if you made a list of lists I could do that too, I guess.

view this post on Zulip Grahame Grieve (Nov 18 2019 at 10:34):

in that IG, the tabs a manual, but the contents of the tabs are generated

view this post on Zulip Jose Costa Teixeira (Nov 18 2019 at 10:37):

well, if you made a list of lists I could do that too, I guess.

that's it. To discuss in Amsterdam? or no discussion needed?

view this post on Zulip Grahame Grieve (Nov 18 2019 at 10:49):

build an example so I have something to debug...

view this post on Zulip Jose Costa Teixeira (Jan 02 2020 at 18:17):

I'm prototyping on the BE IG, and I really think using Lists is a much nicer way to go

view this post on Zulip Jose Costa Teixeira (Jan 02 2020 at 18:19):

I'd like to see that as an alternative to the "flat/unidimensional" grouping in the implementationguide.

view this post on Zulip Jose Costa Teixeira (Jan 18 2020 at 20:08):

Where should I start experimenting?
I can make the lists of resources, but I do not know how to generate tabs from those.

view this post on Zulip Grahame Grieve (Jan 18 2020 at 20:12):

if you define a list, and the list references resources in the IG, then you should automatically get a series of generated xhtml fragments in _includes:

view this post on Zulip Grahame Grieve (Jan 18 2020 at 20:17):

check for fragments names starting List-{{id}}-list-{{kind}}[-{{type}}]

where id is the id of the list, and type (if present) is the type of the resource (you'll get an all types and type lists for all the types in the list). and kind is one of :

  • no - sorted by the order in the list
  • id - sorted by the resource id
  • name - sorted by the resource name

view this post on Zulip Jose Costa Teixeira (Jan 18 2020 at 20:22):

and to make the page that represents the list itself, i.e. the page that contains the tabs?

view this post on Zulip Grahame Grieve (Jan 18 2020 at 21:01):

these are made manually, right now, I think

view this post on Zulip Grahame Grieve (Jan 18 2020 at 21:02):

you define the list, you define the page.


Last updated: Apr 12 2022 at 19:14 UTC