Stream: FHIRcast
Topic: Sandbox
Eitan Behar (Jun 20 2018 at 13:08):
Hi, the sample calls in the sandbox readme file don't match the spec changes (UID not included, using echo contrroller instead of hub).
Please, could someone update it? Or we can do it together here at a DevDays Handons table :)
Isaac Vetter (Jun 20 2018 at 14:05):
Hi @Eitan Behar ! There are definitely a few issues with the sandbox that we're cleaning up. As you work through this, would you mind using this as a starting point: https://github.com/fhircast/sandbox/wiki/Tutorial ?
I'll work on updating the sandbox README now.
Eitan Behar (Jun 20 2018 at 14:11):
Thanks. Btw, as I mentioned to you yesterday, I have a Windows batch file to show the sandox samples, maybe it could be useful to others.
Isaac Vetter (Jun 20 2018 at 14:12):
Hey Eitan, yes please!
Would it make sense to put it in the tutorial or README as a "fast start" kind of thing?
Eitan Behar (Jun 20 2018 at 14:15):
Sure. I'll do that
Isaac Vetter (Jun 20 2018 at 14:25):
Eitan - if you want to share you batch file with me, I can incorporate it as well, and let you go back to your more productive hacking?
Eitan Behar (Jun 20 2018 at 14:36):
Absolutely (see below) - btw, I have it working with the sandbox as it's today
#### Windows Script to run the Sandbox (create batch file .bat or cmd, and copy contents there)
:: set env variables
set events=switch-patient-chart
set event=switch-patient-chart
set topic=some_topic
::Make a subscription towards the hub.
curl http://localhost:5000/client/subscribe -d "subscriptionUrl=http://localhost:5000/api/hub&topic=%topic%&events=%events%&__RequestVerificationToken=CfDJ8A39pHD4Jy5HhNxARfYcDVax25OReoK_FrEhQZcYcC2YOCAx-i8GTgaMjGTwf5BkveP1j-8dtdH6yozKdAIFubuzc-BaQjJUOFfVR7a3K9QD81hNQS2aOOvPRsrcvzBtFVtHQ-yokjxnAhYZnlXZ4mg"
::List the subscriptions of the hub.
curl http://localhost:5000/api/hub
::Notify the hub that something happened
curl http://localhost:5000/client/post -d "UserIdentifier=user1&PatientIdentifier=mrn1&PatientIdIssuer=1.1.1.1&AccessionNumber=&AccessionNumberGroup=&StudyId=&Topic=%topic%&Event=%event%&__RequestVerificationToken=CfDJ8A39pHD4Jy5HhNxARfYcDVaz5paUGGmWxAcrNf61SunqazJ82gm5ofQIBEzsjfcHhPqRlJtBVs4N3vWGvN04Zz64-mPrPzNySDueE8Lib5FZdHBdN9IeJ24umNmUgavmQzp0N_28Dg0tCL4axxY3h1o"
:: Verify sub and context at http://localhost:5000/client
Eitan Behar (Jun 20 2018 at 15:08):
actually, seems the _RequestVerificationToken is not needed in the sandbox . I just took it from a Fiddler session by using only the client web page.
Leo Bergnéhr (Nov 06 2018 at 15:13):
I'm working right now on updating the sandbox a bit in preparation for the FHIR DevDays in Amsterdam. Anyone else that's up for it are welcome to help :). Adding some end-to-end tests to make it easier for new people to get started contributing without fear of breaking things and also trying to get signalr out in production.
Leo Bergnéhr (Nov 08 2018 at 14:26):
Got signalr working now in the sandbox so no need for the refresh button any more.
Last updated: Apr 12 2022 at 19:14 UTC