I'm running into an intermittent issue with some of our Custom Operations/Processes as a result of some large FHIR R4 Binaries. Essentially we get a response from an AthenaHealth FHIR endpoint that appears to be too large to be processed using the IRIS Built In Functions for FHIR:
I've replicated it on the command line here using a file (binary.json) that has the response from the FHIR Endpoint. Not sharing full contents due to PHI concerns.
HSCUSTOM>S file=##class(%Stream.FileCharacter).%New()
HSCUSTOM>Do file.LinkToFile("/data/binary.json")
HSCUSTOM>w file.Size
4033045
HSCUSTOM>Set FhirBinary = ##class(HS.FHIR.DTL.vR4.Model.Resource.Binary).%New()
HSCUSTOM 2d1>Do FhirBinary.FromJSON(file,"vR4")
<MAXSTRING>%GetNext+12^%Iterator.Object.1
.png)

.png)

