HS.FHIRServer.Util.XMLToJSON
abstract class HS.FHIRServer.Util.XMLToJSON
Method Inventory
Parameters
parameter DEBUG = 0;
Methods
classmethod XMLToJSON(pXMLInput, pSchema As HS.FHIRServer.Schema) as %DynamicObject
@API
XMLToJSON takes a XML-encoded FHIR Resource or string as input, and returns a %DynamicObject (JSON)
representation of the FHIR Resource
Input:
pXMLStreamOrString : (required) XML stream object or string or an %XML.Document object representation
of a FHIR resource
pSchema : The FHIR Schema used to guide the conversion
Returns : A %DynamicObject (JSON) representation of the FHIR Resource
Input:
Returns : A %DynamicObject (JSON) representation of the FHIR Resource
classmethod XMLToJSONStream(pXMLInput, ByRef pOutputStream As %Stream.Object, pSchema As HS.FHIRServer.Schema, pIndentString As %String = "", pLineTerminator As %String = "")
@API
XMLToJSON takes a FHIR XML stream object or string as input, and returns a FHIR JSON stream.
This method requires a class package to be designated as the root of the data model classes
to use during this transform. Indent character(s) and line terminator character(s) for the
JSON output are optional.
Input:
pXMLStreamOrString : (required) FHIR XML stream object or string.
pIndentString : (optional) Indent character(s) to use for each line in the XML output.
pLineTerminator : (optional) Line terminator character(s) to use for the XML output.
Output:
pJSONStream : FHIR JSON stream. If this object is not passed in as input then this
method initializes it as %Stream.TmpCharacter.
Input:
Output: