do you get the FileNotFoundExcepton?
On Thu, Jul 22, 2010 at 11:23 AM, Hari <[email protected]> wrote:
> Hi Velmurugan ,
>
> Thank you very much Velmurugan, my progress is started because of
> your help.
>
> As per your Guidance, i wrote below code, but it shows exception on
>
> "com.google.code.ccr4j.ContinuityOfCareRecordDocument.Factory.parse(fileInput)"
> this line.
>
>
> import java.io.FileNotFoundException;
> import
>
> com.google.code.ccr4j.ContinuityOfCareRecordDocument.ContinuityOfCareRecord;
>
> public class Xmlparser {
> public static void main(String arg[])throws Exception{
> String fileInput = "/home/harikrishnan/test.ccr.xml";
> com.google.code.ccr4j.ContinuityOfCareRecordDocument
> ccrdoc=
>
> com.google.code.ccr4j.ContinuityOfCareRecordDocument.Factory.parse(fileInput);
> ContinuityOfCareRecord
> ccrRec=ccrdoc.getContinuityOfCareRecord();
>
>
> com.google.code.ccr4j.ContinuityOfCareRecordDocument.ContinuityOfCareRecord.Patient[]
> patient=ccrRec.getPatientArray();
> }
> }
>
>
> what are the things i need to do for finishing this code. kindly help
> me please.
>
> Thanks in advance.
>
> On Jul 22, 10:32 am, vel murugan <[email protected]> wrote:
> > Hi Hari,
> >
> > I assume you had a CCR xml in ready,
> >
> > 1. create a ccrdoc object like
> > *com.google.code.ccr4j.ContinuityOfCareRecordDocument* ccrdoc= *
> > com.google.code.ccr4j.ContinuityOfCareRecordDocument.Factory.parse*
> > (fileInput);
> >
> > 2. from the above get the ccrrec ref.
> > *ContinuityOfCareRecord*
> ccrRec=ccrdoc.*getContinuityOfCareRecord*();
> >
> > 3. next get the patients
> > *
> >
> com.google.code.ccr4j.ContinuityOfCareRecordDocument.ContinuityOfCareRecord.Patient[]
> > * patient=ccrRec.*getPatientArray()*;
> >
> > 4. from that patient refrence, you can get the problems, allergies.....
> >
> > I hope it may useful to you and not sure this is the efficient way of
> > parsing.
> >
> > Thanks,
> > Velmurugan
> >
> > On Thu, Jul 22, 2010 at 10:43 AM, Hari <[email protected]> wrote:
> > > Hi Velmurugan ,
> >
> > > Thank you for your kind reply,
> >
> > > Could you please send me that sample code for CCR4j, I already have
> > > CCR4j.jar file, but I don't know how to use this jar file in my code.
> > > please give me a good guidance to me.
> >
> > > Thanks a lot.
> >
> > > On Jul 22, 9:36 am, vel murugan <[email protected]> wrote:
> > > > Hi,
> >
> > > > I have also using CCR4j for parsing the CCR xml file.
> >
> > > > thanks,
> > > > Velmurugan
> >
> > > > On Thu, Jul 22, 2010 at 9:44 AM, Hari <[email protected]> wrote:
> > > > > Hi Friends,
> >
> > > > > i need to parse CCR XML file to java model, i planned to user
> CCR4j
> > > > > for parsing, may i know is it right way? or any other party tools
> are
> > > > > there? please give me a sample code for parsing CCR xml file (to
> > > > > java),
> >
> > > > > Kindly do the needful.
> >
> > > > > Thanks
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Google Health Developers" group.
> > > > > To post to this group, send email to
> > > > > [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<googlehealthdevelopers%[email protected]>
> <googlehealthdevelopers%[email protected]<googlehealthdevelopers%[email protected]>
> >
> > > <googlehealthdevelopers%[email protected]<googlehealthdevelopers%[email protected]>
> <googlehealthdevelopers%[email protected]<googlehealthdevelopers%[email protected]>
> >
> >
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/googlehealthdevelopers?hl=en.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Health Developers" group.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<googlehealthdevelopers%[email protected]>
> <googlehealthdevelopers%[email protected]<googlehealthdevelopers%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/googlehealthdevelopers?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Health Developers" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<googlehealthdevelopers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/googlehealthdevelopers?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Health Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/googlehealthdevelopers?hl=en.