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

HS.IHE.Util

abstract class HS.IHE.Util

IHE Utility Functions

Method Inventory

Parameters

parameter FOUNDATION = 1;
parameter KEYAffinityDomain = \IHE\AffinityDomain;
The name of the affinity domain in the OID registry
parameter KEYHomeCommunity = \IHE\HomeCommunity;

Methods

classmethod AAIdentifierTypeForCode(pCode As %String, ByRef pIdentifierType As %String, pExcludeTypes="DN,DL") as %Status [ Language = objectscript ]
AATypeForCode returns an Assigning Authority Type for the specified code when there is one and only one instance of the code found in the Assigning Authority Registry. Currently Codes of IdentifierType By default DN or LN are ignored (pExcludeTypes)
classmethod FindAffinityDomainID(pResponse As HS.Message.PatientSearchResponse, Output pID As %String = "", Output pADOID As %String = "") as %Status [ Language = objectscript ]
Return the Affinity Domain ID (and Name/OID) from the given MPI search If there is no explicit affinity domain ID in the MRN list, the MPI ID is returned.
classmethod GetAffinityDomain() as %String [ Language = objectscript ]
Returns the OID for this Affinity Domain assigning authority
classmethod GetHomeCommunity() as %String [ Language = objectscript ]
Returns the OID for this Affinity Domain assigning authority
classmethod GetHomeCommunityOIDs() as %String [ Language = objectscript ]
Gets all HomeCommunity OIDs in a delimited string
classmethod GetIdForHL7() as %String [ Language = objectscript ]
Get a unique (to this instance) Id for PIXv2 or PDQv2 HL7 MSH:10 (Message ID) or QPD:2 (Query Tag).
classmethod GetNamespaces() as %ArrayOfDataTypes [ Language = objectscript ]
XML namespaces used by IHE
classmethod GetSendingApplication(pOverride As %String = "") as %String [ Language = objectscript ]
classmethod GetXPathDocument(ByRef pDocument, pStream) as %XML.XPATH.Document [ Language = objectscript ]
classmethod GetXPathExpression(pStream, pExpression, pItem, ByRef pValue, ByRef pDocument="") as %Status [ Language = objectscript ]
Set tSC = ..GetXPathExpression(pRequest.ContentStream,"/lcm:SubmitObjectsRequest/rim:RegistryObjectList/rim:ExtrinsicObject/rim:ExternalIdentifier[@identificationScheme='urn:uuid:2e82c1f6-a085-4c72-9da3-8640a32e42ab']","@value",.tDocuments,.tDocument)
classmethod GetXPathValue(pStream, pExpression, pItem, ByRef pValue, ByRef pDocument="") as %Status [ Language = objectscript ]
Set tSC = ..GetXPathValue(pRequest.ContentStream,"/query:AdhocQueryResponse","@status",.tValue)
classmethod IsAsync(pMessage As HS.Message.XMLMessage) as %Boolean [ Language = objectscript ]
classmethod MergeAdditionalInfo(pSource As HS.Message.XMLMessage, pTarget As HS.Message.XMLMessage, pOverwrite As %Boolean = 0) as %Status [ Language = objectscript ]
Merge AdditionInfo arrays, optionally overwriting existing values
classmethod ObjectToXML(pObject As %XML.Adaptor, Output pStream As %Stream.Object) as %Status [ Language = objectscript ]
Convert an object into XML
classmethod SetAffinityDomain(pName As %String = "") as %Status [ Language = objectscript ]
Sets the OID for this affinity domain assigning authority
classmethod SetHomeCommunity(pName As %String = "") as %Status [ Language = objectscript ]
Sets the OID for this affinity domain assigning authority
classmethod TraceXMLMessage(pHost As HS.HC.Util.Trace.Helper, pClass As %String, pMethod As %String, pCaption As %String, pVarName As %String, pMessage As HS.Message.XMLMessage) [ Language = objectscript ]
Dump XMLMessage attachments as character streams rather than binary
classmethod XMLNamespaces(pDefaultNamespace As %String = "") as %String [ Language = objectscript ]
IHE namespaces string for XML elements For example: "xmlns:xdsb='urn:ihe:iti:xds-b:2007' xmlns:xop='http://www.w3.org/2004/08/xop/include'"
classmethod XMLToObject(pStream As %Stream.Object, Output pObject As %XML.Adaptor, pClassname As %String = "") as %Status [ Language = objectscript ]
Convert a XML stream into an object
classmethod XPathNamespaces() as %String [ Language = objectscript ]
IHE namespaces string for XPath documents For example: "xdsb urn:ihe:iti:xds-b:2007,xop http://www.w3.org/2004/08/xop/include"