Good point. There's a feature request
(http://sourceforge.net/tracker/?func=detail&aid=2793060&group_id=38899&atid=423838)
that addresses this problem. 
The Terser currently only supports accessing primitives. I'm not a HAPI
committer, but you can use the sourceforge tracker of the HAPI project to
file a feature request, of course.

regards
Christian


Hi Christian,

Thanks for your response. I obvioulsly meant QBP^Q22^QBP_Q21, the K21 was a
mistake (and I realize there was another in the subject...). And yes, I wish
to build an IHE PDQ query.
The idea of defining a custom QBP_Q21 message structure seems good, but it
leads to new questions :
The DefaultModelClassFactory's javadoc says that if you create custom
classes  for messages, segments, etc. their names must correspond exactly to
their name in the message text. It also says that there can only be one
implementation of a particular message structure. So a new question : what
should I do if I need to use my custom structure for the QBP_Q21 message,
and the standard one ?

Another question : would you think worth in a future release of HAPI to
allow to give the terser a datatype' object, instead of just a String ?
In my example, it would allow to write :

QIP qip1 = new QIP(msg)
// ...
terser.set("/QPD-3(0)", qip1)
// ...
QIP qip2 = new QIP(msg)
terser.set("/QPD-3(1)", qip2)

To finish, in the 3rd point, you give a piece of code that sets a sigle
instance of a  QIP object in the QPD-3 segment, but to be clear, there is no
way to set multiple values with this syntax ?

Best regards,

Loïc Courvoisier


-- 
View this message in context: 
http://old.nabble.com/How-to-build-the-QBP_K22-demographic-fields---tp26236748p26263507.html
Sent from the hl7api-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to