go to post Scott Roth · Apr 10, 2019 What do you mean by "After that you need to create an instance of this class and add it to HeaderOut property of your WS client."I created the custom header as suggested above Class osuwmc.Epic.CustomHeader Extends %SOAP.Header{Parameter XMLFORMAT = "literal";Parameter XMLIGNORENULL = "RUNTIME";Parameter NAMESPACE = "urn:epic-com.2013.Interconnect.Headers";Parameter XMLTYPE = "Epic-Client-ID";Property Value As %String(MAXLEN = 36, XMLPROJECTION = "CONTENT") [ InitialExpression = "12349fe5-2ff8-4b79-b723-e69efbabcdef" ];} then in my operation I did the following... Method AddCustomHeaderElement(mustUnderstand = 0){set h=##class(osuwmc.Epic.CustomHeader).%New()if mustUnderstand{set h.mustUnderstand = 1}Do ..HeadersOut.SetAt(h,"osuwmc.Epic.CustomHeader")} but still got an error on HeadersOut.What is HeadersOut and where do I set it?
go to post Scott Roth · Apr 10, 2019 When I add my method to my operation I am getting an error on ..HeadersOut . I am running 2015.2.2Method AddCustomHeaderElement(mustUnderstand = 0){set h=##class(osuwmc.Epic.CustomHeader).%New()set h."Epic-Client-ID" = "Test"if mustUnderstand{set h.mustUnderstand = 1}Do ..HeadersOut.SetAt(h,"osuwmc.Epic.CustomHeader")}
go to post Scott Roth · Apr 10, 2019 I read the instructions on how to create a custom header, however how do I specify the sub element of Epic-Client-ID, if we aren't allowed to use "-" Parameter, Property names?
go to post Scott Roth · Mar 7, 2019 With a little help I have built the following Method to Decode and save off the Encoded pdf but return me the directory that I saved the PDF under....ClassMethod DecodeBase64HL7ToFile(base64 As %Stream.GlobalBinary, Ancillary As %String, FileName As %String) As %String{set ArchDir = "/ensemble/data/transfer/AncillaryPDF/"set ArchAncDir = ArchDir_Ancillary_"/"set FaxDateDir = ArchAncDir_$PIECE($ZDATE($HOROLOG,7)," ",1)_"-"_$PIECE($ZDATE($HOROLOG,7)," ",2)_"-1/"if '##class(%Library.File).DirectoryExists(ArchDir){do ##class(%Library.File).CreateDirectory(ArchDir) }if '##class(%Library.File).DirectoryExists(ArchAncDir){do ##class(%Library.File).CreateDirectory(ArchAncDir) }if '##class(%Library.File).DirectoryExists(FaxDateDir){do ##class(%Library.File).CreateDirectory(FaxDateDir) }set Oref = ##class(%FileBinaryStream).%New()///$$$LOGINFO(FaxDateDir_FileName)set Oref.Filename = FaxDateDir_FileNameDo base64.Rewind()While 'base64.AtEnd { set ln = base64.ReadLine() set lnDecoded = $system.Encryption.Base64Decode(ln)do Oref.Write(lnDecoded)}Do Oref.%Save()set PDFFilePath = FaxDateDir_FileNamereturn PDFFilePath}
go to post Scott Roth · Feb 20, 2019 I have Field Test 2019.1 loaded on another PC. If I export 2.8.HL7 from it, can I, or will it work in version 2015.2.2??Are schemas backwards compatible within Ensemble?
go to post Scott Roth · Feb 19, 2019 I do something simular to what you asking. But my AD Group matches a Role that I had built within Ensemble. I give certain users access to modify their own data lookup tables, by creating individual pages for them and locking it down so they can not access the rest of Ensemble. It works pretty well.
go to post Scott Roth · Feb 13, 2019 the Syntax for MAXLEN was wrong. Instead of MAXLEN(5000) it should of been MAXLEN = 5000
go to post Scott Roth · Feb 6, 2019 We are still somewhat old school eGate folks in this sense. We send all of our transactions to flat files, then we can use those files to feed in data into the test system if needed. We did this when we moved from eGate to Ensemble to make sure we were getting the same transactions and counts.
go to post Scott Roth · Feb 6, 2019 Suggest that WRC is probably the best option to help you troubleshoot this issue. It can be numerous things from Security, or the system not running like it should.
go to post Scott Roth · Feb 5, 2019 You can use split on ZC02, get the length, then for each number that it split you create a separate DFT message.
go to post Scott Roth · Jan 10, 2019 I didn't originally write the code but it works. My guess is my teammate who wrote it was trying to compensate for partial values, as in decimals.
go to post Scott Roth · Jan 10, 2019 Here is a method we built for our use.ClassMethod IsNumeric(value As %String) As %Boolean{//Load value into local var tNumberset tNumber = value//Use $extract to get the FULL VALUE into an internal format for $isvalidnumset tFullValue = $EXTRACT(tNumber,1,$length(tNumber))//Use $isvalidnum to check if the full value is numeric (ex: 123456789 = true, 123456789x = false)set tNumberIsValid = $ISVALIDNUM(tFullValue)//At this point, we simply return tNumberIsValid (it will either be 1, true or 0, false)quit tNumberIsValid}
go to post Scott Roth · Jan 4, 2019 It seems Node .js is not going to be a viable option. My systems folks said it was compliled with a different GCC than what we have loaded on our AIX Server. If we were to load Node.js it would mess up the rest of the scripting (PERL, Shell) we do on the server.Javascript was just one idea, I bet there are many other types of code that can be used to adjust an image resolution. Is there anything that can be called from Atelier without having to install a bunch of software on the server?
go to post Scott Roth · Jan 3, 2019 I guess I am not following. I have created class files in the past through Studio to call those globals I referenced before. I am not familiar with the CRUD method, but a simple SET ^PERSON(1) = "MIKE|MALE|Developer" should be able to set your global, and when you do a GET to pull the information out of the global you can use PIECE to split the string apart by the | . Someone out here in the development community might have a better answer for you.
go to post Scott Roth · Jan 3, 2019 Others can correct me if I am wrong, but everything Intersystems is moving to under the IRIS name. Think of IRIS as a container with everything running under it. Health Information Exchange (HIE), Cache Object Script, Globals, Ensemble, and etc run under what they call IRIS.Zen is Intersystems way of creating Web Pages that talk directly with Cache.You can use and call globals from any one of the products that you might be using. Globals works across the board, and is just another way of storing the data. In your above example think of the Person global as a variable you can call and retrieve the dataI have a global called OSUWMCLDAP that has various properties I use in some of my class files. I call this global from my class file ie like the following...Here is examples I use in my class files to retrieve the data from the global.#define LDAPServer $Get(^OSUMCLDAP("Server"))Or $Get(^OSUMCLDAP("Domain"))
go to post Scott Roth · Dec 26, 2018 I haven't really dove into Node,js, but I will look into it.ThanksScott
go to post Scott Roth · Dec 20, 2018 Here is the same code but from the Studio (class view)<assign value='##class(%Stream.GlobalCharacter).%New()' property='tStream' action='set' /><assign value='source.GetFieldStreamRaw(.tStream,"ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationValue(1).AlternateText",.tRemainder)' property='tSC' action='set' /><if condition='..Length($get(tSC))>0' ><true><assign value='"1"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:SetIDOBX}' action='set' /><assign value='"ED"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ValueType}' action='set' /><assign value='"7"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationIdentifier.Identifier}' action='set' /><assign value='"URL"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationIdentifier.Text}' action='set' /><assign value='"EXTLRR"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationIdentifier.NameofCodingSystem}' action='set' /><assign value='"1"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationSubID}' action='set' /><assign value='"PDF"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationValue(1).Identifier}' action='set' /><assign value='"TMSAUDIO"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationValue(1).Text}' action='set' /><assign value='"PDF"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationValue(1).NameofCodingSystem}' action='set' /><assign value='"Base64"' property='target.{ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationValue(1).AlternateIdentifier}' action='set' /><assign value='target.StoreFieldStreamRaw(tStream,"ORCgrp(1).OBRgrp(1).OBXgrp(1).OBX:ObservationValue(1).AlternateText", tRemainder)' property='tSC' action='set' /><assign value='""' property='$P(tRemainder,"|",11)' action='set' /></true></if>
go to post Scott Roth · Dec 19, 2018 With the help from WRC we converted the OBX stream to a GlobalCharacter Stream. See below as an example.