Hi Charles,

Unfortunately not, at present there is no good way that I am aware of for
getting a number of repetitions using Terser. There was an attempt at one
point to create a similar construct to Terser which combined message paths
with a sort of "push model" similar to SAX. It was here:
http://hl7api.sourceforge.net/apidocs/ca/uhn/hl7v2/util/MessageQuery.html but
has since been deprecated as the queries tended to be brittle and hard to
maintain, so we stopped using it internally and couldn't find any evidence
of anyone else using it.

I would definitely day that having the ability to ask Terser for the number
of repetitions for a given path would be useful. If anyone wanted to file
an enhancement request, or even try to implement it that would probably be
useful.

I know this isn't what you're looking for, but FWIW UHN's response to this
challenge for most of our applications has been to not use Terser for
working with complex messages. Certainly another option that balances ease
of use with power would be to use a DSL like IPF (
http://www.openehealth.org/display/ipf/HL7+processing+tutorial ).

James


On Mon, Jun 3, 2013 at 5:39 PM, Charles D. Fisher
<[email protected]>wrote:

> I know people have asked for this in the past, but I have not paid
> attention because I have not been using the Terser.  Are there terser
> methods you can use to determine how many reps of a group, segment or field
> exist in a message?  If not, what's the best current workaround?
>
> Charles Fisher
> Division of Epidemiology
> New York State Dept. of Health
> 518-474-2735
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to