Home > Class Reference > HSLIB namespace > HS.IHE.XDSb.Util

HS.IHE.XDSb.Util

abstract class HS.IHE.XDSb.Util

IHE Utility Functions

Method Inventory

Methods

classmethod AttachDocuments(pInline=0, pSource As HS.Message.IHE.XDSb.Metadata, pTarget As HS.Message.XMLMessage) as %Status [ Language = objectscript ]
Move inline documents to attachments (pInline=0), calculate size and hash
classmethod ContentIDToXOP(pClientId As %String) as %String [ Language = objectscript ]
classmethod DeleteAttachments(ByRef pMessage As HS.Message.XMLMessage) as %Status [ Language = objectscript ]
classmethod ErrorResponse(pSC As %Status, pResponseName As %String, Output pResponse As HS.Message.XMLMessage, pTransformer As HS.Util.XSLTTransformer = "") as %Status [ Language = objectscript ]
Create an error response for various XDSb transactions pSC = the error pResponseName = the response name (ie. XDSb_RegistryResponse) pResponse = the resulting XMLMessage pTransformer = if the caller is a transformer, can send this to avoid reloading the XSLT used by this function
classmethod ProcessMetadata(pMetadata As HS.IHE.XDSb.Types.Metadata, Output pConsented As %Boolean = 0) as %Status [ Language = objectscript ]
Process a XDSb metadata container, returning an error if response is a failure This is an optimization to ProcessResponse when the caller needs the metadata and to log errors/warnings by skipping the XPath evaluation
classmethod ProcessResponse(pResponse As HS.Message.XMLMessage) as %Status [ Language = objectscript ]
Process a registry response, throwing an error if response is a failure
classmethod StreamHash(tStream As %Stream.GlobalBinary) as %String [ Language = objectscript ]
Calculate the hash value for a document
classmethod XOPToContentID(pXOP As %String) as %String [ Language = objectscript ]