Stream: pascal
Topic: Looking for Fhir-Resource-Definition in Pascal/Delphi
Regine Mayer (Feb 09 2021 at 11:23):
I'm looking for a definition of FHIR Resources (Patient, Appointment etc) in Pascal/Delphi. github.com/grahamgrieve/fhirserver seemed very promising. Unfortunately I’m not able to use it as described in „Using the library for a single version“. I keep getting errors in the IndyOpenSSL files. I managed to solve the unknown ppByte and pppByte types but now I’m stuck with the unknown pIdC_TM type in IdOpenSSLHeaders_asn1.pas
I’ve tried to use the units in a RAD Studio 10.4 Delphi project.
Grahame Grieve (Feb 09 2021 at 19:48):
that's odd, I'm using 10.4, and not having that problem. Are you using the openssl headers in the fhirserver code?
Regine Mayer (Feb 10 2021 at 09:50):
Yes, I'm using them. I added searchpaths to the directories below C:\work\fhirserver\dependencies\Indy10. In which file is pIdC_TM type defined?
In the meantime I tried to compile the FHIRToolkitR4 project and get a file not found error for ..\library\version\FHIR.Version.Client.pas
There is no such file in the branch. Do I have to replace version for fhir4? So it would be the file ..\library\fhir4\fhir4_client.pas ?
Regine Mayer (Feb 10 2021 at 10:20):
I fixed the problem with the unknown type pIdC_TM type, searchpath was missing the indy10\system directory.
Regine Mayer (Feb 10 2021 at 11:01):
Next error is
dcc32 Fatal error] IdAntiFreezeBase.pas (180): F2051 Unit IdIOHandlerSocket was compiled with a different version of IdGlobal.IdDisposeAndNil)
I guess I have to disable Indy Packages contained in 10.4 because it's a conflict between them and the Indy files of fhirserver.
Can't do that at the moment because I have to compile a new release and need a stable 10.4 installation. Will try next week.
Regine Mayer (Feb 10 2021 at 11:53):
All problems solved, it was my mistake. I included far too many files from ..library\fhir4 in my project. After removing them the errors disappeared, I apologize for the hassle!
Grahame Grieve (Feb 10 2021 at 20:11):
no problems.
Grahame Grieve (Feb 10 2021 at 20:11):
the FHIRTooklitR4 problem is some missing unit aliases.
Grahame Grieve (Feb 10 2021 at 20:11):
though do you really need that to compile?
Regine Mayer (Feb 11 2021 at 10:42):
No, I don't need the toolkit. Yesterday I managed to parse XML into TFHIRPatient or TFHIRAppointment! I'm going to look into Bundles now.
Thank you for the help and for providing the fhirserver!
Last updated: Apr 12 2022 at 19:14 UTC