FHIR Chat · List resource structure definitions · hapi

Stream: hapi

Topic: List resource structure definitions


view this post on Zulip Andrew Broadbent (Apr 13 2017 at 14:01):

Hi all, Is there a way to list the structure definition urls for all the resource types in hapi base? I have a user specify a string, which is either a profile, or a structure definiton of a resource type (e.g. http://hl7.org/fhir/StructureDefinition/Patient), and then I produce either an instance of that resource type, or an instance of Basic with a profile set.

I'm wondering if there is any way to get from a context, to the structure definition url of a given resource? E.g.
RuntimeResourceDefinition defintion = context.getResourceDefinition("Patient");
return defintion.getStructureDefURL().equalsIgnoreCase(myString);

view this post on Zulip Kevin Mayfield (Apr 13 2017 at 14:46):

If your server is loaded with the StructuredDefnitions then you will be able to retrieve it as a StructuredDefinition e.g. http://fhirtest.uhn.ca/baseDstu2/StructureDefinition/Patient


Last updated: Apr 12 2022 at 19:14 UTC