FHIR Chat · hapi-fhir: issue 286: Resource Chain not working as docum... · hapi

Stream: hapi

Topic: hapi-fhir: issue 286: Resource Chain not working as docum...


view this post on Zulip Zulip HAPI Bot (Jan 19 2016 at 15:41):

lcamilo15 opened issue 286

I'm trying to follow your Dynamic Chains example and I'm noticing it is not updating the Overlay/GUI documentation as it does for Encounter->Patient chain. Can you please point me in the right direction so that I can implement this right or help you fixing the issue inside of the project?

This is what we are trying to accomplish
![Production encounter chain](http://i.imgur.com/kswQe1F.png)

This is how it is being rendered on our local environment
![Localhost encounter chain](http://i.imgur.com/cIuYAms.png)

@Search()
    public List<Encounter> findEncounter(
        @RequiredParam(name = Encounter.SP_PATIENT,
            chainWhitelist = {Patient.SP_FAMILY, Patient.SP_GENDER})
        ReferenceParam theSubject)
{
...
 }

Additional Notes : We are using version 1.3

view this post on Zulip Zulip HAPI Bot (Jan 21 2016 at 03:35):

jamesagnew commented on issue 286

Hi @lcamilo15 - The issue here is definitely that the chains are not being added to the automatically generated conformance statement for your server. I'd say this is an issue with HAPI and not an issue with your code.

The JPA server does add these chains, which is why this works the way you're expecting on our public server. You can see this by looking at the conformance statement for our public server. (search for "chain")

The conformance statement is generated by ServerConformanceProvider.

The JPA module extends that class and adds a few things. One of those things is that chains.

I thing these should be added by ServerConformanceProvider.

Are you interested in taking a crack at this bug? If so, awesome! If not, I'll have a look soon.

view this post on Zulip Zulip HAPI Bot (Jan 28 2016 at 12:29):

jamesagnew commented on issue 286

Ok, I actually found some time to work on this and I'm committing a fix now.

view this post on Zulip Zulip HAPI Bot (Jan 28 2016 at 13:31):

jamesagnew closed issue 286


Last updated: Apr 12 2022 at 19:14 UTC