FHIR Chat · FQL for more than one Profile · tooling

Stream: tooling

Topic: FQL for more than one Profile


view this post on Zulip Noemi Deppenwiese (Nov 10 2021 at 08:23):

In my Simplifier project, i want to display constraints from two profiles (one inherits from the other) in one table. I read that the where clause supports FHIRPath, so, using FQL i wrote

from StructureDefinition where (url = 'https://www.medizininformatik-initiative.de/fhir/ext/modul-biobank/StructureDefinition/SpecimenCore') or (url = 'https://www.medizininformatik-initiative.de/fhir/ext/modul-biobank/StructureDefinition/Specimen') for differential.element.constraint select key,severity,human, expression

Unfortunatly I get a "Query syntax not valid" error. Is there a bug in my FQL? How do i query multiple StructureDefinitions?

view this post on Zulip Grahame Grieve (Nov 10 2021 at 09:17):

what's FQL?

view this post on Zulip Noemi Deppenwiese (Nov 10 2021 at 09:19):

The Firely Query Language (https://simplifier.net/docs/fql/home)

view this post on Zulip Grahame Grieve (Nov 10 2021 at 09:23):

that'll be why I don't know what it is ;-)

view this post on Zulip Ardon Toonstra (Nov 10 2021 at 16:30):

Hi @Noemi Deppenwiese ,

Something like this should work:

from StructureDefinition
where url in ('http://example.org/fhir/StructureDefinition/xxx' | 'http://example.org/fhir/StructureDefinition/yyy')
select
Name: name,
Description: description,
Version: version,
Status: status,
URL: url

view this post on Zulip Ardon Toonstra (Nov 10 2021 at 16:32):

@Martijn Harthoorn , room for improvement or updating the docs?

view this post on Zulip Noemi Deppenwiese (Nov 10 2021 at 16:37):

Ardon Toonstra said:

Hi Noemi Deppenwiese ,

Something like this should work:

from StructureDefinition
where url in ('http://example.org/fhir/StructureDefinition/xxx' | 'http://example.org/fhir/StructureDefinition/yyy')
select
Name: name,
Description: description,
Version: version,
Status: status,
URL: url

It did, thanks!

view this post on Zulip Ward Weistra (Dec 28 2021 at 15:46):

@Grahame Grieve It could be fun to play around with FQL a bit, though! For example, this query lists all values for publisher in StructureDefinitions in the latest R4 FHIR core package. Perhaps there's some placeholders like Health Level Seven, Inc. - [WG Name] WG or Grahame Grieve that can still be updated for a coming release :smile:


Last updated: Apr 12 2022 at 19:14 UTC