Stream: cds hooks
Topic: smartapp server down
Lloyd McKenzie (Apr 20 2021 at 04:36):
https://launch.smarthealthit.org/v/r2/fhir seems to be unavailable (which is interfering with the CDS Hooks demo site)
@Josh Mandel @Isaac Vetter
Josh Mandel (Apr 20 2021 at 15:46):
@Vladimir Ignatov may have insight here.
Josh Mandel (Apr 20 2021 at 15:47):
https://launch.smarthealthit.org/v/r2/fhir seems up to me though (e.g., https://launch.smarthealthit.org/v/r2/fhir/metadata or https://launch.smarthealthit.org/v/r2/fhir/Patient are returning data)
Josh Mandel (Apr 20 2021 at 15:49):
It looks like maybe the issue is that the default patient for the CDS Hook sandbox (http://sandbox.cds-hooks.org/) is ttps://launch.smarthealthit.org/v/r2/fhir/Patient/smart-1288992, which doesn't currently exist (appears deleted)
Josh Mandel (Apr 20 2021 at 15:50):
@Vladimir Ignatov is this expected to re-appear after a nightly reset?
Vladimir Ignatov (Apr 20 2021 at 15:57):
Yes the servers are up but I am currently updating the patient data. The patients are getting older over time which is an issue for some apps so I had to shift all dates in the dataset... Everything is updated, except for the DSTU-2 smart patients, which are causing some weird HAPI-specific issues during the nightly reset. Might be fixed tomorrow but may also take longer. If you can, try using other patients until that is fixed.
John Silva (Apr 21 2021 at 11:14):
@Vladimir Ignatov - aging of patient data on test/demo servers - a common problem when FHIR test data is hosted on a FHIR server. How do you deal with this? Do you 'clear out the DB' and reload all the patient data? How do you update all the patient data's date information, e.g. Observation.effectiveDateTime, etc.? We've done something like this for small test data sets using scripting to update the dates in a relative time way, e.g. "today - 200 days".
Vladimir Ignatov (Apr 21 2021 at 16:13):
We have a nightly reset script that uses HAPI-specific procedures (e.g. $expunge) to copy data from a private server to the public one, thus overwriting any changes that people may have made during the day. As for the time manipulation, I ended up writing a script that can shift all dates in a given data set (a folder of FHIR bundles) - https://github.com/smart-on-fhir/timeshift
Feel free to try it if you need something like that, just keep in mind that it is currently only configured to handle the data that we have on the SMART sandbox. For other datasets more paths may have to be added to the config.js
file which simply defines all the paths that MAY exist and contain a date-like value.
John Silva (Apr 21 2021 at 19:48):
@Vladimir Ignatov - thanks. Does the HAPI $expunge have to be done one resource at a time or is it 'global', removing all resources?
I'd like to take a look at that timeshift script but it seems to require access to the Github repo. I've got a simple script using node.js and the moment library to update date-related fields. The script has a list of which date-related fields it updates. I don't have it working on updating date fields that are within arrays (JSON).
Vladimir Ignatov (Apr 21 2021 at 20:43):
Yes, sorry. The timeshift
repo is now public. It uses a double dot notation to dive into arrays. As for the expunge, see https://smilecdr.com/docs/fhir_repository/deleting_data.html#expunge
Last updated: Apr 12 2022 at 19:14 UTC