FHIR Chat · extending ServerConformanceProvider · hapi

Stream: hapi

Topic: extending ServerConformanceProvider


view this post on Zulip Emre Avsar (Mar 08 2017 at 10:06):

Hi HAPI guys, in http://hapifhir.io/doc_rest_server.html#Enhancing_the_Generated_Conformance_Statement there is this written:

If you have a need to add your own content (special extensions, etc.) to your server's conformance statement, but still want to take advantage of HAPI's automatic conformance generation, you may wish to extend ServerConformanceProvider.

In your own class extending this class, you can override the getServerConformance() method to provide your own implementation. In this method, call super.getServerConformance() to obtain the built-in conformance statement and then add your own information to it.

I want to register my extension (like MyPatient here: http://hapifhir.io/doc_extensions.html#Custom_Resource_Types), so that I have it in the /metadata.

Is this possible?


Last updated: Apr 12 2022 at 19:14 UTC