go to post Enrico Parisi · Mar 25 An idea, not sure if it fits in your case, if not...disregard it! 😊 1) Get the schema of your HL7 message (for example "2.5")2) Loop the segments contained in your HL7 message (this should be fairly easy)3) For each segment get all the fields defined for that segment on the schema it belongs to and check if contains data To get all the possible fields of a segment, example for 2.5:PID (demo version):Set rs = ##class(%ResultSet).%New("EnsLib.HL7.Message:EnumerateSegTypes")Do rs.Execute("2.5:PID", 4, 1)Do rs.%Display(",") This way you should get all virtual path for fields with values in your message. Repeating fields (like PatientIdentifierList()) of course require some extra coding to get/check them all. P.S.: I think/guess 4 levels (second param in Execute()) is the maximum, otherwise....increase it.
go to post Enrico Parisi · Mar 25 I doubt it can be done with a generic process for any VDOC type. For HL7 to get Virtual Property Path using names ("symbolic ones") you must know and use the "DocType" (that is the schema category and message structure) of the message. In HL7, for a given HL7 message, it's not clear to me what you need/want as output, you want to visit all nodes/fields....defined? All possible nodes/fields defined in the schema structure? All nodes/fields that contains values? If you need all possible nodes/fields for a given DocType, then you can get them from the Schema Definition.
go to post Enrico Parisi · Mar 23 For training and certification you get a corresponding Credly badge that you can add/share in your Developer Community profile or your Linkedin and other social accounts. When you take an InterSystems training course you get attendance badge, for example: Building and Managing HL7 Integrations Training Certification is separate from training, when you pass a certification exam (performed by a third party entity) you get the corresponding certification Credly badge, for example: InterSystems HL7® Interface Specialist
go to post Enrico Parisi · Mar 22 If the SetValueAt() method is not working I guess it's also returning an error, my suggestion is to check the returned error, so: Set sc=tOBXSegment.SetValueAt(tOBXText, 5)Do $system.OBJ.DisplayError(sc)
go to post Enrico Parisi · Mar 19 Status already includes stack-trace I know, that is the very reason why I'm curious to see how it's implemented there! My guess is that is using $ZU(41,-2).
go to post Enrico Parisi · Mar 18 I wish I could see the code in $$macroERROR^%occMsgXML() (used by $$$ERROR() macro and other) to store the stack in a Status.
go to post Enrico Parisi · Mar 13 Hi Scott, I don't consider 255 as larger than the typical string length and I'm surprised of your issue and I don't fully understand your code, probably because it's not complete (set tSC = rs.Insert(pInput) make no sense to me). Anyway, my suggestion is to find some more info that may give you some hint. For example I'd add the following lines in your OnProcessInput() method: Set colId=pInput.GetColumnID("ExternalName")$$$LOGINFO("ColumnType is "_pInput.GetColumnType(colId))$$$LOGINFO("ColumnSQLType is "_pInput.GetColumnSQLType(colId))$$$LOGINFO("ColumnSize is "_pInput.GetColumnSize(colId)) Please test this using a query that extract a few records to avoid flooding your event log. I'm curious to see what you get.
go to post Enrico Parisi · Mar 13 Can you please provide some more details on "columns that are larger than the typical string length"? How long (max) can be?What's the data type for these columns in the external database?What database are you connecting to? Using ODBC or JDBC?
go to post Enrico Parisi · Mar 11 InterSystems offers specific training course for Building and Managing HL7 integration periodically available in InterSystems offices, remote/online and on customer site. To get detailed info and take advantage of what it's available in InterSystem Learning, click the Learning link on left top of this page. There you can find plenty of material regarding HL7v2 and MUCH more. An excellent starting point would be to start with what's freely available for self learning, with a quick search I found couple of Learning Path on HL7v2: Building Basic HL7 V2 Integrations with InterSystems Building Advanced HL7 V2 Integrations with InterSystems In addition to these Learning Paths there are additional more specific resources for specific topics. In the Developer Community there are many HL7v2 articles you can learn from and maybe browsing HL7v2 related questions and provided answers can help learning. Last but not least, in Open Exchange (fourth link on top of this page) also contains many HL7v2 projects you can learn from. Regarding certification, please check InterSystems Certification Program, link on top of this page. Enjoy learning! 😊
go to post Enrico Parisi · Mar 10 Be careful, in some cases that method does not work correctly. I was testing this using a class where the package redefine the SQL schema name for the classes, in that case the ClassNameToTableName() returns a wrong result.
go to post Enrico Parisi · Mar 10 I know this is an old question, but in case someone will search for the same question, another option (better, IMHO) is to use: $$$ClassSQLTable("my.ClassName") In case you need it for current class: $$$ClassSQLTable($classname()) To use the $$$ClassSQLTable macro your class needs: Include Ensemble
go to post Enrico Parisi · Mar 6 I'm afraid that the query you suggest does not returns the same result. It returns one row per session, each with the number of messages for the session.
go to post Enrico Parisi · Mar 5 Well...if fact, a better query would be: select count(DISTINCT SessionId)from Ens.MessageHeaderwhere TimeCreated between '2025-02-01 00:00:00' and '2025-02-28 23:59:59' Note: while the query is different, it ends running pretty much the same code as the previous query, but I like this better 😊
go to post Enrico Parisi · Mar 4 select count(*) from (select SessionIdfrom Ens.MessageHeaderwhere TimeCreated between '2025-02-01 00:00:00' and '2025-02-28 23:59:59'group by SessionId)
go to post Enrico Parisi · Mar 4 Ciao Riccardo, <PROTECT> error, evidently the caller or the web application does not have enough permission. Is the caller being authenticated? How? What user? What roles has the user? Check the associated Web Application authentication and the user used by the caller to connect to your (FHIR) Web Application.
go to post Enrico Parisi · Feb 28 Hi @Muhammad Waseem , nice and useful article. Please note that for embedded SQL, since some version 2020.1, when the Universal Query Cache was introduced, it's no longer true that "SQL statements are pre-compiled into the program during development", please check relevant documentation. You can find more details and a discussion of this topic, including comments from @Dan Pasco, the initial dynamic SQL developer, in the post A look at Dynamic SQL and Embedded SQL
go to post Enrico Parisi · Feb 28 You can enable the log in the .NET Gateway and see if the log give you some useful info. As in my previous post, my guess is that you are passing the wrong/incomplete class name as 1st parameter of new().
go to post Enrico Parisi · Feb 28 Are you sure you are using the correct/full name reference to your parametisedClass? It should be NamespaceName.PublicClassName
go to post Enrico Parisi · Feb 28 I'm not familiar with Spring Boot, so I don't understand what you want to implement in IRIS. Do you want to define a custom datatype? What kind of behavior you need to implement in IRIS?