FHIR Chat · Requesting StructureDefinition of Profile via REST · implementers

Stream: implementers

Topic: Requesting StructureDefinition of Profile via REST


view this post on Zulip Georg Fette (Jan 08 2019 at 11:31):

Hello, via the REST call for the metadata a user can obtain a list of available resource profiles that exist on a FHIR server. How can I access the StructureDefinition of an specific resource profiles?
Greetings

view this post on Zulip Stefan Lang (Jan 08 2019 at 11:39):

You can always use the search API, e.g. searching for the profile's canonical URI, like this:
http://fhir.hl7.de:8080/baseDstu3/StructureDefinition?url=http://fhir.de/StructureDefinition/medikationsplanplus/patient

view this post on Zulip Georg Fette (Jan 08 2019 at 11:43):

Is it always true, that for every resource profile there exists a corresponding StructureDefinition on the same server ?

view this post on Zulip Stefan Lang (Jan 08 2019 at 11:54):

A resource profile is always defined in a StructureDefinition resource, so: yes for "a corresponding StructureDefinition exists".
It must also be known to the server, if the server claims to be capable of supporting that profile, so: also yes for "on the same server".

I think a server implementer might decide not to expose StructureDefinition reources via the API, in which case the client would not be able to retrieve it. At least I'm not aware of the FHIR spec enforcing that.

But usually you would get your FHIR conformance resources by looking at the implementation guide you are implementing. These also contain StructureDefinitions and terminology resources, no matter whether they are published using IG Publisher, Simplifier or any other means (like Zip files).
Also the npm package format is on it's way for the distribution of FHIR conformance resources.

view this post on Zulip Lloyd McKenzie (Jan 08 2019 at 16:17):

"Known to the server" is not the same as "searchable/retrievable using the StructureDefinition endpoint on that server". The CapabilityStatement will list the profiles the server claims to support. You can start by trying to query them from that server. If not, you can look to see if you already have a local copy or if a copy exists in your favorite registry. And if that doesn't work, you can fall back to resolving the canonical URL.

view this post on Zulip Michael Donnelly (Jan 14 2019 at 21:46):

I suspect that in real world cases, it will most commonly be the last thing Lloyd says - the canonical URL.


Last updated: Apr 12 2022 at 19:14 UTC