Re: [HAPI-devel] QRF-5 Subcomponent

2013-04-26 Thread watersniper
Hi,james Thanks for your help! But from api,I got: ST getOtherQRYSubjectFilter(int rep) Returns a specific repetition of QRF-5: "Other QRY Subject Filter" - creates it if necessary It's just ST type,how can I change to other type? Thanks John > Hi there, > > The issue here is that the

Re: [HAPI-devel] QRF-5 Subcomponent

2013-04-26 Thread James Agnew
Hi there, The issue here is that the ST data type is not a composite type, which means that it can't have subcomponents. The ampersand (&) is a subcomponent delimiter, so you need to choose a datatype that can be composite. One random example might be "CE". If you get it's first component, and the

[HAPI-devel] QRF-5 Subcomponent

2013-04-25 Thread water watersniper
Hello! I'm learning HAPI from beginning. Now,I want to create MESSAGE like below: MSH|^~\&|||QRY^R02|1203|P|2.3.1 QRD|20060731145557|R|I|Q895211|RES QRF|MON0&0 but,I can't get correct QRF-5 field. This is my code: ST data = qrf.getOtherQRYSubjectFilter(0); data.setValue("0"); ST s