Stream: pascal
Topic: Running the toolkit
Jose Costa Teixeira (Jun 13 2018 at 20:44):
I always get an error when running the toolkit. "Could not load BN_num_bits from ."
It's just annoying because I don't know where it comes from. It this something that I must change?
Grahame Grieve (Jun 13 2018 at 21:50):
you ave to have the right openssl dlls
Grahame Grieve (Jun 13 2018 at 21:51):
I'll add them to git
Jose Costa Teixeira (Jun 14 2018 at 09:33):
thanks, got it
Jose Costa Teixeira (Jun 14 2018 at 09:34):
oh, and a leak
pasted image
Jose Costa Teixeira (Jun 14 2018 at 09:34):
i will get to it this evening
Grahame Grieve (Jun 14 2018 at 09:38):
what did you do to get that leak?
Jose Costa Teixeira (Jun 14 2018 at 10:04):
Just ran it, ignored the warning "there is a newer version of the toolkit, do you want to upgrade" and closed immediately.
Jose Costa Teixeira (Jun 14 2018 at 10:05):
it may be somethingwrong with my setup.
Grahame Grieve (Jun 14 2018 at 11:40):
hmm. it will leak badly if you close it before start up is complete
Grahame Grieve (Jun 14 2018 at 11:41):
because start up happens in a background thread that doesn't shut down properly in those circumstances (it just get's terminated)
Jose Costa Teixeira (Jun 18 2018 at 18:28):
i just noticed something in the ExampleScenario that I added - not sure what do i have to do to avoid it:
Jose Costa Teixeira (Jun 18 2018 at 18:36):
there seems to be one thread taking over part of the screen
Jose Costa Teixeira (Jun 18 2018 at 18:50):
Jose Costa Teixeira (Jun 18 2018 at 18:51):
the design to show there is more stuff not being shown:
pasted image
Jose Costa Teixeira (Jun 19 2018 at 09:35):
I think it has to do with my reusing of a form, but I cannot do a full rebuild to fix this.
Jose Costa Teixeira (Jun 19 2018 at 09:36):
the last refactoring is preventing me from doing a build. I tried starting with a fresh IDE, no other apps open, but the IDE still gets confused when building ToolkitR4
Grahame Grieve (Jun 19 2018 at 13:38):
hm.
Jose Costa Teixeira (Jun 19 2018 at 14:23):
meanwhile i am altering my forms, so let me go at it.
since i blindly reused some of the forms, there were some unnecessary components and it misbehaved a bit.
Jose Costa Teixeira (Jun 19 2018 at 19:43):
still seems to be something in between me and my screen components when I run. Is there any thread running and trying to take the screen?
Jose Costa Teixeira (Jun 19 2018 at 19:45):
Symptoms are: sometimes part of the screen is taken,
other times i can see the contents but can't click anywhere...
Jose Costa Teixeira (Jun 19 2018 at 19:48):
cpu usage rises to approx 20-25% as soon as I start my form.
Jose Costa Teixeira (Jun 19 2018 at 19:52):
should i commit as is (with the $UNDEFs in place ) - if you want to take a look?
Jose Costa Teixeira (Jun 22 2018 at 08:19):
I have been hammering this for the week, and it seems that the moment I drop any tcombobox in my form for ImplementationGuide, the IDE (Tokyo) gets confused and no longer builds
Jose Costa Teixeira (Jun 22 2018 at 08:20):
I will keep going at it
Grahame Grieve (Jun 25 2018 at 13:51):
I do not know....
Grahame Grieve (Jun 25 2018 at 13:52):
I think that you could try updating - there was a bug that lead to the code completion thread getting stuck...
Grahame Grieve (Jun 25 2018 at 13:52):
I might have worked around that...
Jose Costa Teixeira (Jul 06 2018 at 19:15):
Just some short update - as i am struggling with some other issues i cannot do much here but :
Build Issue is still there.
ServerForm is harmless for my build.
When I enable PatientHomeForm i get my build issue. Looking at that and documentGeneration (for some reason the IDE opens the dependency list in FHIRToolkitR3 when i build FIRToolkitR4
Grahame Grieve (Jul 06 2018 at 19:32):
I don't see anything unusual about PateitnHomeForm
Jose Costa Teixeira (Jul 06 2018 at 20:08):
me neither. i have to keep digging
Jose Costa Teixeira (Jul 06 2018 at 20:10):
meanwhile, i found the other issue - the moment I put a webbrowser in my app, the UI got a bit crazy (i think it was always trying to bring the webbrowser canvas to the front of the screen, hiding all other controls
Jose Costa Teixeira (Jul 06 2018 at 20:10):
that one I resolved by removing the webbrowser from my IG Editor.
Jose Costa Teixeira (Jul 06 2018 at 20:11):
I propose to work on the IG Editor and commit in the next few days so that you can see if it builds on your side (it should)
Grahame Grieve (Jul 06 2018 at 20:11):
ok
Jose Costa Teixeira (Aug 11 2018 at 06:43):
Short question:
in the toolkit, i need my frame (e.g. ig editor) to find what is the filename where the resource is saved. Is this possible?
Jose Costa Teixeira (Aug 11 2018 at 06:44):
i want to tell the ig editor where to find the IG file so that it can then put it into the publishing template
Grahame Grieve (Aug 11 2018 at 06:47):
does your frame inherited from TBaseResourceFrame?
Jose Costa Teixeira (Aug 11 2018 at 06:48):
yes
Grahame Grieve (Aug 11 2018 at 06:54):
then .FIlename
Jose Costa Teixeira (Aug 11 2018 at 07:01):
thanks. I see why i missed it before: when i do reopen from the main window, filename does not seem to get a value. I will check it and fix if needed.
Jose Costa Teixeira (Aug 11 2018 at 07:07):
(i forgot I had a line in my ig frame saying "filename=''; wonder if that has anything to do with it? :)
Fixed, thanks. hope to commit tomorrow
Jose Costa Teixeira (Aug 15 2018 at 11:15):
Toolkit build was broken - some elements have changed in questionnaire and capabilitystatement. I fixed locally - @Grahame Grieve want me to commit for you to review or we wait for more changes that will appear with R4 changes?
Grahame Grieve (Sep 11 2018 at 10:47):
@Jose Costa Teixeira - found and fixed the compile problem for the toolkit
Grahame Grieve (Sep 11 2018 at 21:03):
https://quality.embarcadero.com/browse/RSP-21218
Jose Costa Teixeira (Sep 27 2018 at 16:09):
Thanks Grahame
Jose Costa Teixeira (Sep 30 2018 at 07:16):
@Grahame Grieve should there be a DiffEngineFrame.pas ? I don't see it.
Jose Costa Teixeira (Sep 30 2018 at 07:16):
perhaps you did not committ it
Grahame Grieve (Sep 30 2018 at 13:42):
I did not. I'll do it now
Jose Costa Teixeira (Oct 18 2018 at 07:25):
ImplementationGuide resource has changed and I now have a discrepancy between the IG publisher and the Delphi code.
Jose Costa Teixeira (Oct 18 2018 at 07:45):
and for some reason now BaseFrame is complaining that it does not recognize TFHIRToolkitSettings
Grahame Grieve (Oct 18 2018 at 08:44):
hmm I'll have to update the pascal code
Torgeir Amundsen (Nov 09 2018 at 19:49):
image-FHIR-client.png
Any Idea why the client is failing like this?
Tested with this:
https://stu3.test.pyrohealth.net/fhir/Patient/22963aeb-ef29-48ae-9da9-2e136ac01424
Grahame Grieve (Nov 09 2018 at 20:34):
looks like the underlying server is not correctly returning a conformance statement. @Angus Millar I believe that this is your server?
Torgeir Amundsen (Nov 09 2018 at 22:54):
Interresting, well, we only did it as a test. Are there some better urls to use as a test for FHIR?
Angus Millar (Nov 10 2018 at 01:04):
I do return a ConformanceStatment at https://stu3.test.pyrohealth.net/fhir/metadata
. Yet I can't think how this error can be thrown by the server given that the error does correctly say metadata
, and yes it is from my server. Is this your tool Grahame, what is the URL it is trying to hit, I assume GET:https://stu3.test.pyrohealth.net/fhir/metadata
which is working fine for me now and I have not touched it for months.
Perhaps I will have to find and download and test my self this tool.
Angus Millar (Nov 10 2018 at 02:40):
looks like the underlying server is not correctly returning a conformance statement. @Angus Millar I believe that this is your server?
Found the call in my server logs @Grahame Grieve , it's not formatted correctly in my view, here it is: https://stu3.test.pyrohealth.net/fhir/Patient/22963aeb-ef29-48ae-9da9-2e136ac01424/metadata
Grahame Grieve (Nov 10 2018 at 05:23):
@Torgeir Amundsen looks like you're setting the patient id as the base url?
Grahame Grieve (Nov 10 2018 at 05:23):
thanks Angus
Torgeir Amundsen (Nov 10 2018 at 09:15):
Thanks! I told the coder I have working on this, I will try to get everything up and running on my own pc soon also so I can assist more.
Torgeir Amundsen (Nov 10 2018 at 09:18):
FHIR is getting big in norway, now everyone doing e prescription has to use FHIR.
Jose Costa Teixeira (Nov 10 2018 at 10:21):
@Grahame Grieve I just made a commit to support some R4 changes to the toolkit.
Marked those as //JCT. I was not familiar with code, i would ask you to please review.
I left one change to do: observation.comment is now observation.noteList and I did not know how to handle that in FHIR.Tools.ObsGraph.
After this, the toolkit builds fine again in my machine.
Husin Alkatiri (Nov 10 2018 at 14:22):
@Grahame Grieve i try to compile and run the FHIRVCLDemo on Delphi 102 Tokyo and found some error when run it ... i am not sure if that because Delphi version or other things ... 1 of it that i found is
when i test with this http://stu3.test.pyrohealth.net/fhir/Patient? and PatientID: 22963aeb-ef29-48ae-9da9-2e136ac01424
i point th error on code at:
hope somebody can help.
Thanks.
Husin Alkatiri (Nov 10 2018 at 15:35):
NB: i already found the problem ... the URL returned FHIR JSON version 3 that treat Family not as an array while the parser is version 2 that expecting Family as Array (the FHIR JSON version 2 is returned family as an array) ... i think it's correct but maybe better if someone confirm this...
Thanks.
Grahame Grieve (Nov 11 2018 at 01:06):
You’re compiling and running an application that is using Fhir r2, and then pointing it at a fhir r3 endpoint
Grahame Grieve (Nov 11 2018 at 01:07):
You can change the app to use r3, but you’ll have to make a few changes,
Husin Alkatiri (Nov 11 2018 at 07:50):
@Grahame Grieve Thanks, yes i found it ... currently i am on changing the application from FHIR2 to FHIR3 ... found some error and fix it and trigger error Invalid class typecast that i still find out where the point of error
Grahame Grieve (Nov 11 2018 at 22:37):
where?
Husin Alkatiri (Nov 11 2018 at 22:41):
@Grahame Grieve np sir, i think i make a mistake in parameter supply ... i will update when compiled and run successfully later ... but i have another error on ToolKItR4 ... i will upload the image soon
Grahame Grieve (Nov 11 2018 at 22:46):
ok
Husin Alkatiri (Nov 12 2018 at 16:53):
@Grahame Grieve i can make an FHIR server run with connection to mysql ver 5.5.39 and MyODBC 5.1 ... but no resource at all in R3 version that is FHIR 3.0.1 ...
then i download the resource file for FHIR Core 3.0.1 from http://hl7.org/fhir/STU3/package.tgz
after that i try upload resource 1 by 1 and some resources can loaded but other cannot ...
here i attach some screenshot to show the error that i am not sure which is my fault on this case, i am not sure if the resource files must uploaded in sequential order or it's because mysql or other things ... hope you can give me enlightment on this.
uploaded resourcse:
InsRes.png
error on load patient resource:
LoadPatient.png
error on load package.json:
PackageJson.png
error on load structdef patient:
StructPatient.png
error on load bundleregistry:
Bundle-Registry.png
Husin Alkatiri (Nov 12 2018 at 17:14):
and i can change the VCLDemo from r2 to r3 ... ut have some error when try to get patient id on http://test.fhir.org
with id 3a6229af-4a68-4c45-a449-b7092719c2 that supposed to return Max Muster.
when i try do with AuthScope = System it will returned error:
Err3-1.png
Err3-2.png
and when i try to do with AuthSCope = User it will returned error on browser:
Err3-3.png
Husin Alkatiri (Nov 12 2018 at 17:27):
also this is an error when compile ToolkitR4,
it trigger error: [dcc64 Error] ExampleScenarioEditor.pas(450): E2003 Undeclared identifier: 'alternative'
Husin Alkatiri (Nov 12 2018 at 17:28):
anyway i can build and run the ToolkitR3
Grahame Grieve (Nov 12 2018 at 17:43):
@Jose Costa Teixeira the compile error looks like yours
Grahame Grieve (Nov 12 2018 at 17:44):
the server - I set it up with a command like this:
Grahame Grieve (Nov 12 2018 at 17:45):
```fhirserver -cmd remount -installer -password "g" -ini "C:\Program Files\FHIRServer\fhirserver.ini" -packages ,hl7.fhir.core#3.6.0,fhir.tx.support#3.6.0 -endpoint r4 -mode open
Grahame Grieve (Nov 12 2018 at 17:45):
but first you have to install whatever packages you're going to use:
```-cmd manager -ini "C:\work\fhirserver\Exec\fhir.dev.local.ini"
Grahame Grieve (Nov 12 2018 at 17:46):
this stuff is not well documented right now...
Grahame Grieve (Nov 12 2018 at 17:47):
I'm not sure why the vcl demo doesn't run against my own server - it would be good if it did, but I haven't got to that. THe problem is related to multiple different versions of the smart app launch spec. Cerner and the client app are using an older version.
Grahame Grieve (Nov 12 2018 at 17:47):
you;'d be better to use the toolkit as your template
Jose Costa Teixeira (Nov 12 2018 at 17:53):
I'll get to the example Scenario issue soon. Sorry, I did not commit the updates from the r4 changes
Husin Alkatiri (Nov 12 2018 at 17:54):
@Grahame Grieve thank you very much ... i will try to do that command ... and yes, lack of documentation make me debugging whole day to find 1 or 2 things that i want to understand.
will try that. anyway hl7.fhir.core#3.6.0 is for the server in source ... the compiled server that downloaded from your site is using fhl7.fhir.core#3.5.0 ... is that correct ?
@Jose Costa Teixeira thank you very much
Grahame Grieve (Nov 12 2018 at 18:16):
the compiled server is now 3.6.0
Husin Alkatiri (Nov 12 2018 at 20:37):
(deleted)
Jose Costa Teixeira (Nov 12 2018 at 22:26):
committed updates to ExampleScenario and IG editors
Jose Costa Teixeira (Nov 12 2018 at 22:27):
@Grahame Grieve toolkit r4 still needs one thing to compile, which is the change in FHIR.Tools.ObsGraph,
due to Observation resource changes (observation.comment changed to observation.noteList). I didn't know how to handle this.
Husin Alkatiri (Nov 12 2018 at 23:01):
@Grahame Grieve Thanks, for the suggestion on cmd ... i can load resource on R3 (Core 3.0.1) now. and the server (R3) is running good now i think.
has some exception while debugging it but it's not stopping the process
ErrContact.png
Thank you very much.
Husin Alkatiri (Nov 12 2018 at 23:02):
anyway... when i try do same thing for R4 (Core 3.6.0) it's stopped and show AV error on console. i not have time to debug it yet to find out the location of error... will check again later.
Jose Costa Teixeira (Dec 09 2018 at 15:38):
Hi Husin. did you find / resolve the issue?
Husin Alkatiri (Dec 13 2018 at 11:30):
@Jose Costa Teixeira @Torgeir Amundsen
not yet resolve ... do you have some suggestion ?
Grahame Grieve (Dec 13 2018 at 12:38):
I've updated the code for R4 final and got everything compiling again
Husin Alkatiri (Dec 13 2018 at 13:04):
I've updated the code for R4 final and got everything compiling again
@Grahame Grieve @Torgeir Amundsen Thank you very much ... was downloaded the new version and try to recompile and setup everything from start again ...
Last updated: Apr 12 2022 at 19:14 UTC