Hello community,
I'm trying to break it down to the core problem: why does this function return the following output when trying to create a XML stream - is this a bug?
{
ClassMethod FhirToXmlExample() As %Status
{
#dim tCapStat as HS.FHIR.DTL.vR4.Model.Resource.CapabilityStatement;
set tCapStat = ##class(HS.FHIR.DTL.vR4.Model.Resource.CapabilityStatement).%New()
w tCapStat.ToJSON()
w tCapStat.ToXML()
}
}
> 426@%Stream.TmpCharacter
> do ##class(HOME.ms.MsFunctionSet).FhirToXmlExample() - Error <FUNCTION>
Regards,
Martin
So, you mean replacing
write tResponse.%ToJSON()
with
do tResponse.%ToJSON()
will do the job, even for big responses? That would be great.
Thank you,
Martin
Thanks for your helpful reply.
Regards,
Martin