How much length of data stored in Binary Resource? the Data is base64bineary it support the large data like 50 lac characters length on base64 data(35mb) pdf data stored in IRIS Binary Resource?
I would like to learn about the binary and document reference FHIR Resources. For the PDF data stored in those resources. But I think Binary Resource for the Document PDF stored in FHIR, so this resource is best for it. So sometimes Large PDF 15-page (~35md) data converts into base64 then data length is ~50 lac charecters length of base64binary data. this data store in Binary Resource on data field https://www.hl7.org/fhir/R4/binary.html follow this url this resource used in my case. so it's support the 50 lac charecter of the base64 length? This resource can be Insert into IRIS?
Comments
Please help me with that. If not, what more support is needed for the Base64 binary data? What alternative solution can be used?
Hi @Rutvik ISM
The FHIR binary resource data is exceeding the maximum length allowed by InterSystems IRIS. To store documents such as PDFs and other large data, you should use streams.
- Use
%Stream.GlobalBinaryor%Stream.GlobalCharacterto store the data within the database. - Use
%Stream.FileBinaryor%Stream.FileCharacterto store the files on the file system.
IRIS for Health FHIR Repository can handle any size of resources, including large PDFs stored in the Binary resource. Ashok is referring to deserializing a resource. If your use case requires that, it needs to leverage IRIS stream objects.
The expected location of PDFs in FHIR is in the Binary resource.