FHIR Chat · HAPI Restful Server Conformance · hapi

Stream: hapi

Topic: HAPI Restful Server Conformance


view this post on Zulip Joel Francis (Nov 08 2017 at 17:19):

Hi,

According to the documentation found here: http://hapifhir.io/doc_rest_server.html, annotating methods with @Read() or @Search() should create entries in the ConformanceStatement to which special extensions can be added.

Currently I have a few resoruce providers but none of the annotations were picked up to create entries in the conformance statement. Conformance.jpg

My annotation on the PatientProvider is as follows is as follows:

Annotation.jpg

Can anyone shed any light on why it isn't picked up by the Conformance Statement or if I maybe be doing something totally absurd?

view this post on Zulip Kevin Mayfield (Nov 08 2017 at 22:02):

You do have a line like this in your hapiconfig?

setResourceProviders(Arrays.asList(
myAppCtx.getBean(PatientProvider.class),
));

view this post on Zulip Kevin Mayfield (Nov 08 2017 at 22:03):

Replace PatientProvider with your own class name

view this post on Zulip Joel Francis (Nov 09 2017 at 13:26):

Replace PatientProvider with your own class name

Well, In my servlet class that extends RestfulServer, I have setResourceProviders(resourceProviders); where resourceProviders is a list of IResourceProvider classes

view this post on Zulip Kevin Mayfield (Nov 09 2017 at 14:35):

Anything in your log files showing a fault? Your conformance seems to the be default one when no providers are present.

view this post on Zulip Joel Francis (Nov 13 2017 at 15:16):

Anything in your log files showing a fault? Your conformance seems to the be default one when no providers are present.

Hi Kevin, nothing showing in the logs either. I suspect there is an eclipse setting where annotations are getting ignored.


Last updated: Apr 12 2022 at 19:14 UTC