Adam
I assume that you are referring to seeing references to syntax of the form HL7.{PID:3.1} or similar.
The primary COS equivalents are the GetValueAt() and SetValueAt() methods or the EnsLib.HL7.Message class.
The best documentation for these methods is 'documatic'. That is the class reference documentation see in the top strip menu of the documentation home page. You can get to the same place from the studio using the menu options View --> Show Class Documentation. In either case you just need to make sure you are in the right namespace (top left) and then navigate to the right class.
For example
<assign property='target.{PIDgrp.PID:PatientIdentifierList(1).ID}' value='123456789' action='set'/>
is equivalent to
Set tSC1=target.SetValueAt(123456789,"PIDgrp.PID:PatientIdentifierList(1).ID"
(Although you don't need action='set' because it is the default).
[line wraps may have confused this example]
There are lots of other useful methods of EnsLib.HL7.Message and EnsLib.HL7.Segment so browse documatic.
Dave
PS: A brilliant way to find COS equivalents of DTL is to write DTL that is as close to what you want as possible, and then use the "View Other" button in the studion twice to see the generated code in zTransform. It is generated code and not supposed to be viewed, so it is all scrunched up, but if you are happy reading COS it can give a lot of insights in how to do conditionals and loops in complicated situations.
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en