QuickStream issues in FHIR Interoperability production
I have created a FHIR endpoint and send the FHIR resource to FHIR Interoperability production class which is HS.FHIRServer.Interop.Service through the the created endpoint(/r4). I can able to see/get the
Executed the below code. Even tried with zwrite of
How to get the FHIR resource for the processed InteropRequest class.
ClassMethod GetQuickStreamVal()
{
set key= $$$AppKeyFromApp("/csp/healthshare/irismydev/fhir/r4")
set obj=##Class(HS.FHIRServer.Interop.Request).%OpenId(64) ;tested with already processed id
set quickStreamIn = ##class(HS.SDA3.QuickStream).%OpenId(obj.QuickStreamId, .tSC)
zw quickStreamIn.Read()
do quickStreamIn.Rewind()
#dim fhirService as HS.FHIRServer.API.Service = ##class(HS.FHIRServer.Service).EnsureInstance(key)
set resource= fhirService.StreamToJSON(quickStreamIn, "JSON")
zw resource
}IRISMYDEV>zwrite ^CacheTemp.HS.Stream
^CacheTemp.HS.Stream=8
IRISMYDEV>zw ^CacheTemp.HS.Stream("T8")
IRISMYDEV> Product version: IRIS 2023.1
$ZV: IRIS for Windows (x86-64) 2023.1 (Build 229) Fri Apr 14 2023 17:36:18 EDT
Discussion (1)1
Comments
Apparently, The quick stream's are cleared end of process.
Thanks!