go to post Scott Roth · Dec 10, 2018 Without Proxy...0 +«npiregistry.cms.hhs.gov:443With Proxy0 3 %<WRITE>zSend+179^%Net.HttpRequest.1
go to post Scott Roth · Dec 10, 2018 I think I am definately being blocked along the process somewhere. I tried the above commands as Sean mentioned with a proxy and without one, but I keep running into issues.USER>set req=##class(%Net.HttpRequest).%New()USER>set req.SSLConfiguration="npiregistry"USER>set req.Server="npiregistry.cms.hhs.gov"USER>set req.Https=1USER>set req.Port=443USER>set sc=req.Get("/api?city=baltimore&postal_code=212")USER>write req.HttpResponse.Data.Read(300000)WRITE req.HttpResponse.Data.Read(300000)^<INVALID OREF>USER>set req=##class(%Net.HttpRequest).%New()USER>set req.ProxyServer="10.127.20.41"USER>set req.ProxyPort="8080"USER>set req.SSLConfiguration="npiregistry"USER>set req.Server="npiregistry.cms.hhs.gov"USER>set req.Https=1USER>set req.Port=443USER>set sc=req.Get("/api?city=baltimore&postall_code=212")USER>write req.HttpResponse.Data.Read(300000)WRITE req.HttpResponse.Data.Read(300000)^<INVALID OREF>
go to post Scott Roth · Dec 7, 2018 Does this only work on certain Ensemble versions? I tried it on 2015.2.2 and was getting SYNTAX errors.
go to post Scott Roth · Dec 5, 2018 Yes I created a blank SSL/TLS confirguration called npireigstry just like you mentioned above.I wrote out sc after executing the GET and got the following...write sc0 [Š%<WRITE>zSend+199^%Net.HttpRequest.1 'USER #$^zSend+199^%Net.HttpRequest.1 +1 $^zGet+1^%Net.HttpRequest.1 +1X^@ +1$D^zExecute+15^%Studio.General.1 +1X^@ +1 D^runMtdLow+22^%SYS.BINDSRV +1 D^popFrame+199^%SYS.BINDSRV +1!D^ServerLoop+23^%SYS.BINDSRV +2!D^SuperConnect+34^%SYS.DBSRV +1"D^SuperServer+112^%SYS.SERVER +1Any Idea on what this error could be?
go to post Scott Roth · Dec 3, 2018 Sean,I tried running through your example above. When I got to set results={} ,I got the following error. Does this mean I could not get a connection outside my firewall at the Hospital?USER>set req=##class(%Net.HttpRequest).%New() USER>set req.SSLConfiguration="npiregistry" USER>set sc=req.Get("https://npiregistry.cms.hhs.gov/api?city=balimore&postal_code=212") USER>set results={}.%FromJSON(req.HttpResponse.Data) <THROW>%FromJSON+37^%Library.DynamicAbstractObject.1 *%Exception.General Premature end of data 12 Line 1 Offset 0USER 2e1>write results.%Get("result_count") WRITE results.%Get("result_count")^<UNDEFINED>^%Library.DynamicAbstractObject.1 *resultsUSER 2e1>set results={}.%FromJSON(req.HttpResponse.Data) <THROW>%FromJSON+37^%Library.DynamicAbstractObject.1 *%Exception.General Premature end of data 12 Line 1 Offset 0ThanksScott
go to post Scott Roth · Nov 19, 2018 Yes I would think the easiest way would be to create a record mapper structure, then use the DTL to map your HL7 fields to where they need to be, then send it to a EnsLib.RecordMap.Operation.FileOperation.Record MapperDTL
go to post Scott Roth · Nov 18, 2018 Eduard, where can I see the code for ZSTART AND ZSTOP?ThanksScott
go to post Scott Roth · Nov 15, 2018 Yes the JDBC Gateways within the Production do stop and start when Cache' is going down and coming back up, but I am talking at the %SYS level,Without the JDBC Gateway Server running a lot of the JDBC Gateway's (Services) start failing in the production which causes us issues.ZSTART and ZSTOP are kind of vague, how does that fit into ccontrol start and ccontrol stop. Is there any setting where this can be set to automatic?Scott
go to post Scott Roth · Oct 12, 2018 The majority of my Ancillary billing files in HL7 are batch. In the structure I have just made FHS, BHS,FTS,FHS all optional. In my DTL, I am only processing those messages that truly begin with a MSH segment.
go to post Scott Roth · Sep 24, 2018 In a lot of places I use...ConvertDateTime (val,in,out,file)Reads the input string val as a time stamp in in format, and returns the same value converted to a time stamp in out format. See “Time Stamp Specifications for Filenames” in Configuring Ensemble Productions.The default for in and out is %Q. Any %f elements in the out argument are replaced with the file string. If val does not match the in format, out is ignored and val is returned unchanged. ..ConvertDateTime(source.{Z01(1):DateOfBirth},"%Y%m%d","%q(1)")%q(1) is the format.We had a consultant write this for us as well... ClassMethod FormatStringToSQLDate(InDate As %String) As %String [ Final ]{If InDate=""{set OutDate="1900-01-01 00:00:00"}else{set DateLength=..Length(InDate)if (DateLength > 7) && (DateLength < 15){set YYYY=..SubString(InDate,1,4)set mm=..SubString(InDate,5,6)set dd=..SubString(InDate,7,8)set OutDate=YYYY_"-"_mm_"-"_ddif DateLength=8{set OutDate=OutDate_" 00:00:00"}if DateLength=10{set HH=..SubString(InDate,9,10)set OutDate=OutDate_" "_HH_":00:00"}if DateLength=12{set HH=..SubString(InDate,9,10)set MM=..SubString(InDate,11,12)set OutDate=OutDate_" "_HH_":"_MM_":00"}if DateLength=14{set HH=..SubString(InDate,9,10)set MM=..SubString(InDate,11,12)set SS=..SubString(InDate,13,14)set OutDate=OutDate_" "_HH_":"_MM_":"_SS}}else{set OutDate="1900-01-01 00:00:00"}}Quit OutDate}}
go to post Scott Roth · Sep 18, 2018 We've have done something similar but wrote a function to do the looping... This example loops through a given segment and field and looks that value up against a lookup table. This could be modified for your use. This is the only way I know to do the looping within the BusinessRule. ClassMethod GroupIDExists(pHL7Msg As EnsLib.HL7.Message, pSegment As %String, pField As %String, pLookupTable As %String) As %Boolean{ #dim tSeg as EnsLib.HL7.Segment set tSegCount = pHL7Msg.SegCountGet() set i = 1 Set tFound = 0 //get new values set tval="" while ((i <= tSegCount) && (tval="")) { set tSeg = pHL7Msg.GetSegmentAt(i) if (tSeg.Name = pSegment) { set tID = tSeg.GetValueAt(pField) set tval= ..Lookup(pLookupTable, tID) } set i = i + 1 } if (tval '= "") { Q 1 } quit 0}
go to post Scott Roth · Sep 13, 2018 I am not familiar with that function.This is how I am looking up a repeatable segment against a lookup table.ClassMethod GroupIDExists(pHL7Msg As EnsLib.HL7.Message, pSegment As %String, pField As %String, pLookupTable As %String) As %Boolean{ #dim tSeg as EnsLib.HL7.Segment set tSegCount = pHL7Msg.SegCountGet() set i = 1 Set tFound = 0 //get new values set tval="" while ((i <= tSegCount) && (tval="")) { set tSeg = pHL7Msg.GetSegmentAt(i) if (tSeg.Name = pSegment) { set tID = tSeg.GetValueAt(pField) set tval= ..Lookup(pLookupTable, tID) } set i = i + 1 } if (tval '= "") { Q 1 } quit 0}Not sure how you would do that with XECUTE
go to post Scott Roth · Sep 13, 2018 This is not in a translation. We want to write a function to loop through a repeating segment and compare it to a string value within a Routing Rule. I've done this before as a lookup against a table but not compare strings before.
go to post Scott Roth · Sep 13, 2018 Are you connecting from a Windows Client to a Windows LDAP server? Or is it an Unix Client to a Windows LDAP server? Its a matter of using Binds vs SimpleBinds. I am wondering if that is causing your error. I use Delegated Authentication through LDAP using a TLS certificate so my setup maybe more complicated than yours.
go to post Scott Roth · Aug 30, 2018 Was this ever pushed forward as true development? I know you have been working on it sometime, and wanted to see if I could take a look at it for my organization.ThanksScott
go to post Scott Roth · Aug 16, 2018 I got jTDS working through using Squirrel SQL Client, I am just now trying to transpose that over to Ensemble to see if I can get it to work.
go to post Scott Roth · Aug 15, 2018 Maybe I didn't describe this right. I am trying to go from No Authentication to a Windows Authentication account. Has anyone done this? if so can you share your part of your URL to see what I am possibly missing.ThanksScott
go to post Scott Roth · Jul 24, 2018 Yes I was. That would explain the syntax issue. I have verified that the SimpleBinds without StartTLSs works fine. I have added some additional print statements to see where the issue might lie. The code gets past the Init, and SetOption, but then dies on the StartTLSs. LD=1SetOption=Success-11,ldap_StartTLSs(Certificate) - Connect errorI went ahead and opened a ticket up with WRC to see if they could help. Thanks everyone.