FHIR Chat · Provenance of a decision · cds hooks

Stream: cds hooks

Topic: Provenance of a decision


view this post on Zulip John Moehrke (May 06 2017 at 08:45):

Are decisions rendered by cds-hook backed by a Provenance record indicating that decision comes from an identified instance of cds, using a subset of resources as Provenance.entity?

view this post on Zulip Josh Mandel (May 06 2017 at 08:49):

They are not. Can you say more about the use case you have in mind @John Moehrke ?

view this post on Zulip John Moehrke (May 06 2017 at 09:20):

I likely need to understand more about cds-hooks... but I expect it is producing some kind of a decision. that decision is to be consumed and acted upon in some way. That consumption/action should be aware of where this decision comes from, and what it is based upon. This is what the Provenance resource could record. So That, resulting clinical decision and documentation can include the evidence of the decision, the author identity of that decision, and the evidence behind that decision. So That, investigation of that decision can be supported. Unlike where the decision must be simply trusted, or becomes disembodied.

view this post on Zulip Josh Mandel (May 06 2017 at 09:38):

Come stop by the CDS Hooks table and let's talk!

view this post on Zulip Phillip Warner (May 06 2017 at 09:53):

https://fhir.cygni.cc:8443/opencds-decision-support-service/hooks/cds-services

view this post on Zulip Phillip Warner (May 06 2017 at 09:53):

yes

view this post on Zulip Josh Mandel (May 06 2017 at 09:59):

Thanks @Phillip Warner! Any chance you can enable CORS on this service?

view this post on Zulip Phillip Warner (May 06 2017 at 09:59):

yeah--I'll have to remember CORS

view this post on Zulip Josh Mandel (May 06 2017 at 09:59):

In the test harness we're seeing

XMLHttpRequest cannot load https://fhir.cygni.cc:8443/opencds-decision-support-service/hooks/cds-services. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://demo.cds-hooks.org' is therefore not allowed access.

view this post on Zulip Josh Mandel (May 06 2017 at 10:00):

Check out the intro at http://docs.smarthealthit.org/tutorials/server-quick-start/

view this post on Zulip Josh Mandel (May 06 2017 at 10:00):

for a quick and dirty approach.

view this post on Zulip Phillip Warner (May 06 2017 at 10:00):

Access-Control-Allow-Origin: * would be fine?

view this post on Zulip Josh Mandel (May 06 2017 at 10:00):

Yes.

view this post on Zulip Josh Mandel (May 06 2017 at 10:00):

That alone should do the trick.

view this post on Zulip Phillip Warner (May 06 2017 at 10:00):

ok; I'll get that implemented and let you know

view this post on Zulip Josh Mandel (May 06 2017 at 10:01):

Awesome, thanks!

view this post on Zulip Phillip Warner (May 06 2017 at 10:09):

done

view this post on Zulip Josh Mandel (May 06 2017 at 10:11):

I think you also need

Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS

view this post on Zulip Josh Mandel (May 06 2017 at 10:12):

(at least GET, POST, OPTIONS)

view this post on Zulip Phillip Warner (May 06 2017 at 10:26):

OK, hopefully that works for you.

view this post on Zulip Josh Mandel (May 06 2017 at 10:27):

I see:

Allow: POST, GET, OPTIONS, HEAD

But I'm expecting:

Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS

view this post on Zulip Phillip Warner (May 06 2017 at 10:33):

I see

view this post on Zulip Phillip Warner (May 06 2017 at 10:42):

This should work now. I didn't add the OPTIONS to the hookInstance.

view this post on Zulip Simone Heckmann (Nov 21 2018 at 13:41):

We are currently discussing how to capture Provenance of Resources that have been created by algorithms in this stream: https://chat.fhir.org/#narrow/stream/156-data-extraction.20services
I believe most of the talking points may be relevant for CDS as well... Please join the discussion!


Last updated: Apr 12 2022 at 19:14 UTC