EnsLib.ITK.AdapterKit.ConvertUtil

class EnsLib.ITK.AdapterKit.ConvertUtil extends Ens.Rule.FunctionSet

This class contains the basic conversion methods that are used in the adapter transformations and processed, but can also be be used in custom code. They are exposed as Ens.Rule.FunctionSet so that they appear as functions when creating transformations and rules.

Method Inventory

Methods

classmethod Base64StreamToHL7(base64 As %Stream) as EnsLib.HL7.Message [ Language = objectscript ]
Converts a stream holding the Base64 represetation of a Pipe and Hat message into a HL7 message
classmethod Base64ToHL7(base64 As %String) as EnsLib.HL7.Message [ Language = objectscript ]
Converts a string holding the Base64 represetation of a Pipe and Hat message into a HL7 message
classmethod HL7ToBase64(message As EnsLib.HL7.Message) as %Stream [ Language = objectscript ]
Converts from a HL7 Message into a PipeHat Base64 Encoded version
classmethod HL7ToXML(message As EnsLib.HL7.Message) as %Stream [ Language = objectscript ]
Converts from an HL7 Message into an XML String
classmethod WrapDistributionEnvelope(payload As %XML.Adaptor, service As %String, auditIdentity As %String, senderAddress As %String) as %Stream [ Language = objectscript ]
Takes a payload object and service and produces a lightweight DistributionEnvelope around it
classmethod WrapStreamDistributionEnvelope(stream As %Stream, service As %String, auditIdentity As %String, senderAddress As %String) as %Stream [ Language = objectscript ]
Takes a payload stream and service and produces a lightweight DistributionEnvelope around it
classmethod WrapStringDistributionEnvelope(content As %String, service As %String, auditIdentity As %String, senderAddress As %String) as %Stream [ Language = objectscript ]
Takes a payload string and service and produces a lightweight DistributionEnvelope around it
classmethod XMLStreamToHL7(str As %Stream) as EnsLib.HL7.Message [ Language = objectscript ]
Converts from an XML stream representing HL7 message into a HL7 Message
classmethod XMLToHL7(xml As %String) as EnsLib.HL7.Message [ Language = objectscript ]
Converts from a XML string representing HL7 message into a HL7 Message

Inherited Members

Inherited Methods

Feedback