go to post Scott Roth · Dec 10, 2020 For those that do not know what those tools are and are just getting into SQL, navigating around the tool within IRIS/HealthShare can be difficult at times. Even trying to use those tools can be complicated in setting up the necessary connections and settings.
go to post Scott Roth · Dec 10, 2020 I would like to see a more modern SQL management/editor within IRIS.
go to post Scott Roth · Dec 7, 2020 I figured querying a local table through an SQL call in the DTL would cut down on the amount of development that is needed. I created a view with only 2 columns of the data set and wrote a custom function so my other team members could use it. So far so good.
go to post Scott Roth · Nov 16, 2020 We have used Length many times in Routing rules to check to see if Admit/Discharge date exists. We haven't quite used HL7.{PV1:45} to get the field, we let the system spell it out for us... so instead of HL7.{PV1:45} we allow the system to put it in the nomenclature that it knows the field as.. in this case HL7.{PV1:AdmitDateTime.Time}
go to post Scott Roth · Nov 12, 2020 Nicole, I believe your problem is with the repeating fields. You can not leave () blank. You will need to use a counter or loop through OBX to look for the individual fields you are looking for. Scott
go to post Scott Roth · Oct 12, 2020 setting the following did not work InitialExpression = {$zdt($zu(188),3,1)} as the records are being read by EnsLib.RecordMap.Service.FileService into the record map generated table, I can not get the DateInserted column to auto-populate. Does anyone have any suggestions on getting this DateInserted column to populate as the RecordMap.Service is reading in the file? Thanks Scott
go to post Scott Roth · Oct 9, 2020 I think I figured it out, but could someone verify? I am able to edit the class file in Studio to enable "DDLAllowed". 1. Then I scripted the following... Alter table "osuwmc_Workday_DataStructures_FSINT3376ItemMaster"."Record" ADD DateInserted DateTime 2. After I was able to add the time through SQL I was able to alter the column to set the DEFAULT = getdate() Alter table osuwmc_Workday_DataStructures_FSINT3376ItemMaster.Record Alter DateInserted DEFAULT(getdate()) In the class file it is now showing... Property DateInserted As %Library.TimeStamp [ InitialExpression = {$zdt($zu(188),3,1)}, SqlColumnNumber = 24 ]; I realize I can probably combine my SQL statements, but I did not use the Generator.GenerateObject(). Is this ok? Thanks Scott
go to post Scott Roth · Oct 9, 2020 Also how do a make a Table that was generated from RecordMap, DDL enabled?
go to post Scott Roth · Sep 8, 2020 I haven't spent any time doing anything with NACK's as of yet. I would suggest creating another post for that question to see if other Developers can help you out.
go to post Scott Roth · Sep 3, 2020 I maybe wrong... But since the native format of dates in Ensemble are not strings, unless you create a function to convert $HOROLOG into a string and set it equal to the variable of Today, I do not think this is possible. http://intengtest:57772/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_vhorolog /// Provide the current date HL7 Format YYYYMMDDClassMethod getCurrentDateHL7() As %Numeric{quit $ZDATE($H,8)} /// Compare a Message Date/Time with the CurrentDateClassMethod DateCompare(DateString As %String) As %Boolean [ Final ]{Set CurDate=$PIECE($HOROLOG,",",1)Set MyDate=$EXTRACT(DateString,1,8)Set TestDate=$ZDATEH(MyDate,8) //Calculation example: 20150304 - 20150306 = -2, function returns '0' If (TestDate - CurDate < 0){quit 0}Else{ quit 1}}
go to post Scott Roth · Aug 12, 2020 Yes we have played around with that setting, to no avail. Its like the Vendor just pauses sending us data, never realizes it, or restarts their connection. Currently StayConnected is set to 120, but when they trigger this issue its like the connection is hung.
go to post Scott Roth · Jun 10, 2020 I am not quite sure I am following... osuwmc.Functions is the main class file, we store our custom functions. We have used it in many other Business rules before for other functions we have created. So doesn't that mean osuwmc property should exists? We store all of our files under the osuwmc schema.
go to post Scott Roth · Jun 10, 2020 It appears my first attempt didn't work as expected.. ClassMethod CacheExists(table As %String, index As %String, value As %String) As %Boolean{set:table'["." table=$$$DefaultSchema_"."_table // support unqualified namesset class = $$$GetClassNameFromIQN(table) quit $classmethod(class, index _ "Exists", value)} ERROR <Ens>ErrBPTerminated: Terminating BP SIU949502CaseRoutingRule # due to error: ERROR <Ens>ErrException: <PROPERTY DOES NOT EXIST>zevaluateRuleDefinition+193 ^osuwmc.CaseSchedulingRoutingRule.1 *osuwmc,EnsLib.HL7.MsgRouter.RoutingEngine -- logged as '-'number - @'if (##class(osuwmc.Functions).CacheExists(((pContext.osuwmc)_(pContext.Tecsys)_(pContext.Unit.DataTable)),(pContext.UnitID),(pContext.HL7.GetValueAt("RGSgrp("_(1)_").AIL:LocationResourceID("_(1)_").Facility.NamespaceID")))) {'> ERROR <Ens>ErrException: <PROPERTY DOES NOT EXIST>zevaluateRuleDefinition+193 ^osuwmc.CaseSchedulingRoutingRule.1 *osuwmc,EnsLib.HL7.MsgRouter.RoutingEngine -- logged as '-'number - @'if (##class(osuwmc.Functions).CacheExists(((pContext.osuwmc)_(pContext.Tecsys)_(pContext.Unit.DataTable)),(pContext.UnitID),(pContext.HL7.GetValueAt("RGSgrp("_(1)_").AIL:LocationResourceID("_(1)_").Facility.NamespaceID")))) {'
go to post Scott Roth · Jun 9, 2020 So it would be like this... ClassMethod CacheExists(table as %String , index As %String, value As %String) As %Boolean {set:table'["." table=$$$DefaultSchema_"."_table // support unqualified namesset class = $$$GetClassNameFromIQN(table) DO $classmethod(class, index _ "Exists", value)}
go to post Scott Roth · Jun 9, 2020 So %Dictionary.CacheClassname would be my table name then? I don't have to use any :sql.... type code for it to do the lookup? What about the existing EXISTS function that already exists that is used for Data Lookup Tables (lut)?