Stream: conformance
Topic: grouping resources in implementationguide
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?
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.
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?
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"
Grahame Grieve (Nov 15 2019 at 22:13):
is this groups you define? or the ones out the spec?
Jose Costa Teixeira (Nov 15 2019 at 22:24):
I would define them
Lloyd McKenzie (Nov 16 2019 at 12:22):
You can define groupings in the IG, but each resource can only appear in one
Jose Costa Teixeira (Nov 16 2019 at 12:44):
yes, this is why I asked if groupingId can be 0..* (or other solution)
Lloyd McKenzie (Nov 16 2019 at 12:56):
Nope. 0..1
Grahame Grieve (Nov 16 2019 at 15:28):
maybe you should try the list approach
Jose Costa Teixeira (Nov 16 2019 at 16:30):
You mean make my own groups using List resources?
Grahame Grieve (Nov 16 2019 at 19:48):
Yes
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.
Grahame Grieve (Nov 18 2019 at 08:29):
group my resources by those lists
I don't know what this means?
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
Grahame Grieve (Nov 18 2019 at 09:28):
that's what we're doing in the terminology IG
Grahame Grieve (Nov 18 2019 at 09:29):
https://build.fhir.org/ig/HL7/UTG/codesystems.html
Grahame Grieve (Nov 18 2019 at 09:29):
done with tabs there
Jose Costa Teixeira (Nov 18 2019 at 10:10):
yes, this is it. is this manually maintained, or magically generated?
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
Grahame Grieve (Nov 18 2019 at 10:34):
well, if you made a list of lists I could do that too, I guess.
Grahame Grieve (Nov 18 2019 at 10:34):
in that IG, the tabs a manual, but the contents of the tabs are generated
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?
Grahame Grieve (Nov 18 2019 at 10:49):
build an example so I have something to debug...
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
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.
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.
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:
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
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?
Grahame Grieve (Jan 18 2020 at 21:01):
these are made manually, right now, I think
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