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
}
ObjectScriptObjectScript
IRISMYDEV>zwrite ^CacheTemp.HS.Stream ^CacheTemp.HS.Stream=8 IRISMYDEV>zw ^CacheTemp.HS.Stream("T8") IRISMYDEV>
Apparently, The quick stream's are cleared end of process.
Thanks!