Sebastian,

What are the actual differences in AP version and standard installation kits if a customer is only licensed for Health Connect portion of it? If there are differences then there should be a separate standard install kit which excludes Patient Index, Active Analytics, and Clinical viewer. Otherwise, what's stopping Health Connect customer from using AP install kit? From what we experience AP version is released earlier than standard.

Yuriy

Brian,

Try this.

ClassMethod getRawHL7Content(pSessionID As %String = "", pTargetName As %String = "") As %String
{
    set RawContent= "Message Not Found: Contact Interface Team"
    set pID = ""
    
    if (..NotEmpty(pSessionID)) && (..NotEmpty(pTargetName)) 
    {
        &sql(
            SELECT TOP 1 MessageBodyId INTO :pID
            FROM Ens.MessageHeader
            WHERE (TargetConfigName=:pTargetName AND SessionId=:pSessionID)    
            OR    (SourceConfigName=:pTargetName AND SessionId=:pSessionID)
        )
        if SQLCODE '= 0 {
            set RawContent = "Message Not Found: Contact Interface Team"
        }
        else
        {
            set RawContent = ##class(EnsLib.HL7.Message).%OpenId(pID).OutputToString()
        }
    }
    
    
    Quit RawContent
}