FHIR Chat · CDS Hooks Demo · cds hooks

Stream: cds hooks

Topic: CDS Hooks Demo


view this post on Zulip Gaston Fiore (Apr 27 2016 at 14:57):

In the CDS Hooks Demo, Rx View, the "End date" option fills in the MedicationOrder.dateEnded field. However, the definition of MedicationOrder.dateEnded is "The date (and perhaps time) when the prescription was stopped." This implies a past time, whereas "End date" the the demo implies a future time ("take this medication for 3 months.") Is the definition of MedicationOrder.dateEnded not accurate and it is indeed used for future end dates?

view this post on Zulip Josh Mandel (Apr 27 2016 at 15:11):

It's a good question. Possibly this belongs in dosageInstruction.timing.repeat.boundsPeriod.end.

view this post on Zulip Josh Mandel (Apr 27 2016 at 15:11):

None of our sample services uses this field, so it hasn't come up.

view this post on Zulip Josh Mandel (Apr 27 2016 at 15:12):

Let's ask on the implementers chat.

view this post on Zulip Josh Mandel (Apr 27 2016 at 15:20):

There you go :-)

view this post on Zulip Josh Mandel (Apr 27 2016 at 15:41):

Just pushing an update.

view this post on Zulip Josh Mandel (Apr 27 2016 at 15:43):

... deployed to http://hooks.fhir.me

view this post on Zulip Josh Mandel (Apr 27 2016 at 15:47):

Thanks @Gaston Fiore !

view this post on Zulip Gaston Fiore (Apr 27 2016 at 16:06):

Thank you @Josh Mandel . It seems dateEnded is still displayed in the JSON panel in the app (I've just tried it). I can take a look myself if you want and submit a pull request. I think it'll be a worthwhile exercise.

view this post on Zulip Josh Mandel (Apr 27 2016 at 16:09):

You're welcome to (though the exercise may be painful because the CDS Hooks test harness kind of needs a re-work :p). Taht said, I don't see dateEnded anymore. Can you refresh and clear your cache?

view this post on Zulip Gaston Fiore (Apr 27 2016 at 16:13):

You're right, I apologize! Thanks for the quick fix and showing how it's done.

view this post on Zulip Josh Mandel (May 02 2016 at 22:22):

[test message, ignore]


Last updated: Apr 12 2022 at 19:14 UTC