FHIR Chat · Using arbitrary IG on fhirvalidator.org · tooling

Stream: tooling

Topic: Using arbitrary IG on fhirvalidator.org


view this post on Zulip Morten Ernebjerg (Aug 26 2021 at 05:59):

I'm recommending fhirvalidator.org to our devs as a super-easy way to test resources being put together in the code, it's really handy :confetti: Ideally, however, we would like to check the resources against our own IG which is published as a FHIR package. As far as I can tell, the online version currently only offers a fixed, limited set of IGs. Is there some way of getting it to pull an arbitrary published FHIR package, similar to using -ig parameter on the CLI tool?

view this post on Zulip Grahame Grieve (Aug 26 2021 at 06:20):

it offers all IGs that a fully available. IGs authored on simplifier are not available because they are not discoverable. I think

@Mark Iantorno why packages2.fhir.org and not packages.fhir.org?

view this post on Zulip Morten Ernebjerg (Aug 26 2021 at 07:21):

Does that cover all packages on https://registry.fhir.org ? I tried to search for e.g the de.gecco#1.0.4 package but no match comes up.

view this post on Zulip Grahame Grieve (Aug 26 2021 at 07:22):

packages2.fhir.org includes all the packages on packages.fhir.org, except the ones from simplifier.

view this post on Zulip Morten Ernebjerg (Aug 26 2021 at 07:23):

except the ones from simplifier.

OK, that's probably the issue then. Our own package is also published via simplifier. Are the plans to tie in simplifier as well?

view this post on Zulip Grahame Grieve (Aug 26 2021 at 07:26):

I'd like it to, but it's up to the simplifier team - whether they're going to publish an RSS feed that makes them discoverable. That seems unlikely to me though you can ask.

It would be quicker to change to packages.fhir.org instead on fhirvalidator.org

view this post on Zulip Morten Ernebjerg (Aug 26 2021 at 07:33):

@Ward Weistra any chance of an RSS feed?

It would be quicker to change to packages.fhir.org instead on fhirvalidator.org

Do you mean use the online simplifier validator at https://simplifier.net/validate ? - yes, you're right, that's of course also an option

view this post on Zulip Grahame Grieve (Aug 26 2021 at 07:34):

no I mean, fhirvalidator.org is using packages2.fhir.org, but I'd like to see whether it could use packages.fhir.org instead.

view this post on Zulip Morten Ernebjerg (Aug 26 2021 at 07:36):

:+1:

view this post on Zulip Ewout Kramer (Aug 26 2021 at 09:37):

@Matthijs van der Wielen

view this post on Zulip Ewout Kramer (Aug 26 2021 at 09:38):

(@Ward Weistra is on a sabbatical leave)

view this post on Zulip Mark Iantorno (Aug 26 2021 at 12:34):

I can make it configurable?

view this post on Zulip Mark Iantorno (Aug 26 2021 at 12:34):

Like a toggle switch?

view this post on Zulip Mark Iantorno (Aug 26 2021 at 12:35):

is that what you mean?

view this post on Zulip Grahame Grieve (Aug 26 2021 at 12:44):

well, you could just change it, I think. is there any technical reason why not to?

view this post on Zulip Mark Iantorno (Aug 26 2021 at 13:28):

No technical reason, but it might be advantageous to provide users with the option, so that if one is down they can still validate?

view this post on Zulip Grahame Grieve (Aug 26 2021 at 13:29):

maybe, but I don't think packages.fhir.org goes down very much, and users won't understand the choice if we give it to them

view this post on Zulip Matthijs van der Wielen (Aug 27 2021 at 10:03):

From what I understand from this topic, if we would provide a RSS feed, the packages2.fhir.org would also include all the packages from Simplifier?
What is the reason for having the packages2.fhir.org if all the packages are available on packages.fhir.org to begin with? Is this meant as a back-up?
So far we did not see the point of implementing the RSS feed, because we are the main consumers of the feeds. Causing registry.fhir.org to contain everything found in those feeds. But we will take another look at this.

view this post on Zulip Grahame Grieve (Aug 27 2021 at 19:22):

packages.fhir.org does not accept all the packages, only specific kinds (the important ones for most people). packages2.fhir.org acts as a functional backup for packages.fhir.org by accepting packages from intermediate versions, and packages to support publishing

But in addition, you are not the only consumers of feeds, even if you are the main consumers; the feeds serve discovery to the whole community for other purposes, but the simplifier packages are all ignored since there's no discovery service. Unless you query simplifier repeatedly

view this post on Zulip Martijn Harthoorn (Aug 30 2021 at 07:26):

I thought we had https://registry.fhir.org/ for discovery?

view this post on Zulip Grahame Grieve (Aug 30 2021 at 07:28):

we do, but it discovers different things differently. And it doesn't work for tooling the same way

view this post on Zulip Grahame Grieve (Aug 30 2021 at 07:28):

in particular, there's no way to be notified of new packages that are released

view this post on Zulip Martijn Harthoorn (Aug 30 2021 at 07:30):

But an RRS feeds is for exactly that - notification. It's not really meant to do provide a full index, is it?

view this post on Zulip Grahame Grieve (Aug 30 2021 at 07:31):

no. you'd have to download from the RSS links and do that yourself. Which is what some people want to do. And you can't - to my knowledge - do that from simplifier.

view this post on Zulip Grahame Grieve (Aug 30 2021 at 07:31):

everything else you can

view this post on Zulip Martijn Harthoorn (Aug 30 2021 at 07:34):

When working on the FHIR package spec, we left the discovery part out, afaik, partially because

  1. NPM has a tendency to change their own specs over time.
  2. We see from other package standards that providing a full index download is not very scalable.

We have implemented package discovery in SImplifier as an API endpoint, so that you can use that in tools, for example in dropdown completion or intellisense.

view this post on Zulip Martijn Harthoorn (Aug 30 2021 at 07:36):

curl packages.fhir.org/catalog?name=hl7.fhir

view this post on Zulip Martijn Harthoorn (Aug 30 2021 at 07:36):

or packages.simplifier.net/catalog?name=

view this post on Zulip Grahame Grieve (Aug 30 2021 at 07:41):

so just keep querying that to find new packages? And then once for every package to get all the versions?

view this post on Zulip Martijn Harthoorn (Aug 30 2021 at 08:14):

We generally use/expose that to find packages yes, not necessarily new.

view this post on Zulip Martijn Harthoorn (Aug 30 2021 at 08:19):

I am very much open to discuss if we can make this or something similar as part of the spec - or see if we can merge it with the current discovery lists.

view this post on Zulip Grahame Grieve (Aug 30 2021 at 10:37):

well, it would be good to be able to query for recent versions published. there's no query for that right now

view this post on Zulip Martijn Harthoorn (Aug 30 2021 at 12:48):

Would it be sufficient to implement a query with a since parameter?

view this post on Zulip Grahame Grieve (Aug 30 2021 at 12:56):

for versions as well? That's not such a simple addition

view this post on Zulip Martijn Harthoorn (Aug 30 2021 at 13:01):

Should be possible...


Last updated: Apr 12 2022 at 19:14 UTC