FHIR Chat · application.yml usage with hapi docker · hapi

Stream: hapi

Topic: application.yml usage with hapi docker


view this post on Zulip João Almeida (Aug 18 2021 at 17:30):

Hi everyone,
I have been working with hapi jpa server dockerized and been testing out the various possibilities with application.yml

Firstly, noticed that using supported_resource_types after IG ignores the supported resources. If added before the IG, everything goes ok. Does anyone had a similar experience?

Secondly, can i limit the operations per resource? If so, how?
Thanks!

view this post on Zulip Jose Costa Teixeira (Aug 18 2021 at 17:33):

@Jens Villadsen maybe?

view this post on Zulip Jens Villadsen (Aug 18 2021 at 18:48):

Regarding the first observation: i dont understand

view this post on Zulip Jens Villadsen (Aug 18 2021 at 18:48):

Regarding the second observation: No

view this post on Zulip Jens Villadsen (Aug 18 2021 at 21:09):

not without your own modification to the code that is

view this post on Zulip Jens Villadsen (Aug 18 2021 at 21:16):

It could be implemented as an interceptor

view this post on Zulip João Almeida (Aug 19 2021 at 07:59):

thanks for the reply. I understand that the capability statement is somewhat "hard-coded" and only through code changes one could alter that behaviour correct?

view this post on Zulip João Almeida (Aug 19 2021 at 08:02):

The first observation is about using application.yml for limiting resources. I noticed that having the line after IG, the server ignores that. If before the IGs, it does not ignore them.

Example:

supported_resource_types:
      - Patient
      - Observation
      - StructureDefinition
    implementationguides:
      - url: http://build.fhir.org/ig/xxxxxxx/package.tgz
        name: xxxxx
        version: 0.1.0-test

vs

 implementationguides:
      - url: http://build.fhir.org/ig/xxxxxxx/package.tgz
        name: xxxxx
        version: 0.1.0-test
 supported_resource_types:
      - Patient
      - Observation
      - StructureDefinition

view this post on Zulip Jens Villadsen (Aug 19 2021 at 08:36):

your nesting is different in the two examples

view this post on Zulip João Almeida (Aug 23 2021 at 09:11):

maybe that was it! thanks for the reply and help

view this post on Zulip Kashyap Jois (Mar 02 2022 at 09:07):

application.yaml I cannot seem to understand what is wrong with this. If i comment the implementationguide section it works fine. Can someone please help me

view this post on Zulip Patrick Werner (Mar 02 2022 at 12:56):

Implementationguides is a list, so you have to prefix each entry with a - what is the error/stacktrace you are getting?

view this post on Zulip Kashyap Jois (Mar 16 2022 at 08:48):

ok looks like its an issue with the implementation guide http://build.fhir.org/ig/WorldHealthOrganization/smart-anc/full-ig.zip .. I tried it out with us core and it seems to work fine.


Last updated: Apr 12 2022 at 19:14 UTC