go to post Enrico Parisi · Oct 31, 2024 To call a class method the syntax is: ##class(ClassName).MethodName(params)
go to post Enrico Parisi · Oct 30, 2024 I don't think there is a ready to use SQL query/procedure but you can call the class query "TypeCategories" in the class "EnsLib.HL7.Schema" from ObjectScript: set ResultSet=##class(EnsLib.HL7.Schema).TypeCategoriesFunc() do ResultSet.%Display()
go to post Enrico Parisi · Oct 30, 2024 In the documentation page there is a "Feedback" button/link on the right, I encourage you to provide your comments as Feedback, possibly linking this post in the Community.
go to post Enrico Parisi · Oct 29, 2024 You can call: Set status = $System.OBJ.Export(SchemaName_".HL7",Filename)
go to post Enrico Parisi · Oct 29, 2024 You can call: Set status = $system.OBJ.Export(Tablename_".LUT", Filename)
go to post Enrico Parisi · Oct 29, 2024 Hi Timo, your sample is not a valid/full check for "valid number": USER>set number="123.40" USER>write (+number=number) 0 USER>write $isvalidnum(number) 1
go to post Enrico Parisi · Oct 28, 2024 True, but the problem definition is: If both fields are numeric and the result of subtraction of field1-field2 is positive. My understanding/interpretation is that the subtraction and further test should be performed only "If both fields are numeric", so the code should check that condition. If the first part of the problem (If both fields are numeric) is irrelevant....then the question/problem definition is misleading.
go to post Enrico Parisi · Oct 27, 2024 Use XML format and you get 6x faster load than using UDL. My guess the difference is due to the parsing needed by UDL import. My estimate in your case you can get as low as 42 seconds, I'm curious to see the actual numbers.
go to post Enrico Parisi · Oct 25, 2024 I really don't think that an addon package is the solution. I access, more or less regularly, around 20 IRIS different systems used by various customers and a number of local instances in my machines and VMs. Do you really think that installing an add on package in all this systems is a "solution"?
go to post Enrico Parisi · Oct 25, 2024 Can you please provide some details on what you are actually doing in your DTL?
go to post Enrico Parisi · Oct 24, 2024 To check if MyVal is a valid positive number I'd use $ISVALIDNUM(MyVal,,0) See $ISVALIDNUM function documentation.
go to post Enrico Parisi · Oct 11, 2024 This works only if you assume that the stream size is less than the maximum string length.
go to post Enrico Parisi · Oct 11, 2024 I miss how you are going to compare the two base64 json properties. If you assume that the stream AND the base64 converted stream sizes are less than maximum string length, then I miss the point of converting to base64.
go to post Enrico Parisi · Oct 8, 2024 From the other old post: Characters with accents are encoded with two characters in Unicode while it's only one character in Latin1. Unicode IRIS: USER>w $zvIRIS for Windows (x86-64) 2024.2 (Build 247U) Tue Jul 16 2024 09:52:30 EDTUSER>w $l("è")1USER>w $a("è")232USER> 232 is 0xE8, it correspond to è in both latin1 and Unicode. Do not confuse Unicode with utf-8.
go to post Enrico Parisi · Oct 6, 2024 The reason why it happen is explained in the Indirection (@) documentation: Important: All variables referenced in the substitution value are public variables, even when used in a procedure. So, I'd write your method something like: ClassMethod test() [ PublicList = arg ]{ new arg s arg = "asd" s routine = "say^hello(arg)" do @routine}
go to post Enrico Parisi · Oct 5, 2024 In these situations what I use is: If ##class(Ens.Job).ShouldBeQuiescent() || ##class(Ens.Job).ShouldTerminate() { ; close shop! Quit}
go to post Enrico Parisi · Oct 4, 2024 True, only if you don't need/want a response from the called BO.
go to post Enrico Parisi · Oct 3, 2024 VSCode with ObjectScript - tried to run simple MUMPS code and says not supported Can you provide more details on what and how you tried? It should work, in fact, it does work!