Question Jonathan Harris · Oct 24, 2024 I want to test if two fields are numeric and positive, do subtraction, and test if the result is positive. If both fields are numeric and the result of subtraction of field1-field2 is positive, only then put the result is a data field. I am doing this within an Iris DTL. I don't find any functions like IsNumeric(). Once I get that, I can test if field1>0 and field2>0, do the subtraction, and test if diff>0. I just need a function to determine if they are numeric, rather than some cumbersome way like a regex where the only characters are 0-9. I see functions in documentation but don't see them used at tests, only in WRITE statements. Thanks, #InterSystems IRIS for Health 0 10 0 130
Question Jonathan Harris · Mar 26, 2024 zip all files in a unix directory in a script to send to windows as email attachment I have files of mixed types; e.g. a.pdf, b.pdf, c.txt. I zipped them with gzip to make a.pdf.gz, b.pdf.gz, c.txt.gz. I concatenated them into one file, all.gz. I renamed all.gz to all.zip. I emailed it but cannot extract in windows browser. #InterSystems IRIS 0 9 0 205
Question Jonathan Harris · Mar 7, 2023 Is it possible to use a regular expression in a ..ReplaceStr function Messages will contain fields with expressions like "REASON->Blood(1.23)" or "REASON->Bone(4.56)" or "REASON->Muscle Mass(7.89)". The word after the "->" can vary. I would like the outputs to be; "REASON(1.23)" or "REASON(4.56)" or "REASON(7.89)", basically removing "->" and the word or words that follow but leaving the parens and the numeric characters within. Thanks, Jonathan Harris #InterSystems IRIS for Health 0 2 1 357
Discussion Jonathan Harris · Feb 6, 2023 Upgrade Iris for Health to 2021.1.2 checklist If anyone has a custom checklist of tasks that must absolutely be done when doing this upgrade to make sure everything is included and nothing is lost or destroyed, we would greatly appreciate it? We have the generic checklist provided on the support websites but we run custom build classes, ftp, tcp-ip, batch, etc. Thanks, Jonathan Harris #InterSystems IRIS 0 1 0 165
Question Jonathan Harris · Jul 7, 2022 Delete first part of HL7 field up to first "(" character I am doing a HL7 data transformation with object script but need to only write a substring from the first "(" of the NTE-3 field to the end. example Input: NTE|1|||Some text (HI) (321)|ABC Desired Output: NTE|1|||(HI) (321)|ABC Basically I'd like to delete "Some text ". If I were writing a shell script I would use sed 's/^.*(/(/' with perhaps a modification to get only the first. I use the function wizard but can't seem to get the right code. #Key Question #InterSystems IRIS 0 9 0 583
Question Jonathan Harris · Mar 3, 2022 Command line script to get data from database table using sql I want to have a script that can run from the usual unix, linux, or aix command line. It has to be able to get into an irissession and use set statements to get data using sql. It seems like I'm in a catch-22. When I use the irissession SERVER command at the command line, I can't run a script. When I put the irissession SERVER command in a script, it won't run anything in the script after that. My goal for this script is to get this information and put it into a file which I can then parse. #SQL #InterSystems IRIS 0 10 0 2.4K
Question Jonathan Harris · Mar 3, 2022 How to exit irissession SERVER I entered the irissession SERVER command and got the prompt PROMPT> Now I want to exit this and return to the generic aix prompt $ I try q, quit, e, exit... none of these work. #Terminal #InterSystems IRIS 1 4 0 838