Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » OHF » Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document?
Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #48078] Wed, 17 September 2008 05:52 Go to next message
RobertHua is currently offline RobertHuaFriend
Messages: 58
Registered: July 2009
Member
I want to create CDA using org.eclipse.ohf.ihe.common.cdar2.I need help.
I do not known how to use it.For example,I add the author element,if
the element is exist,I can add the value of the author,but if the author
is not exist,how can I do?
How can I get the exist element value by code if the CDA document
created?
Thanks in advance!
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #48182 is a reply to message #48078] Wed, 17 September 2008 20:02 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
Hi Robert,
There is some sample code in the src_tests folder of this plugin that
documents ... a little bit ... how to use this model.

regards,
- Sarah


RobertHua wrote:
> I want to create CDA using org.eclipse.ohf.ihe.common.cdar2.I need help.
> I do not known how to use it.For example,I add the author element,if
> the element is exist,I can add the value of the author,but if the author
> is not exist,how can I do?
> How can I get the exist element value by code if the CDA document
> created?
> Thanks in advance!
>
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #48237 is a reply to message #48182] Thu, 18 September 2008 02:53 Go to previous messageGo to next message
RobertHua is currently offline RobertHuaFriend
Messages: 58
Registered: July 2009
Member
I want some codes.For example:
<recordTarget>
<patientRole>
<id extension="REPLACE ME" root="0.0.0.0.0"/>
<addr>
<country>USA</country>
</addr>
<patient>
<name>
<given>REPLACE ME</given>
<family>REPLACE ME</family>
</name>
<administrativeGenderCode code="REPLACE_ME"
codeSystem="2.16.840.1.113883.5.1"/>
<birthTime value="0000"/>
</patient>
</patientRole>
</recordTarget>
<author>
<time value="0000"/>
<assignedAuthor>
<id root="0.0.0.0.0"/>
<assignedAuthoringDevice>
<code code="CAPTURE" codeSystem="1.2.840.10008.2.16.4"
displayName="Image Capture"/>
<manufacturerModelName>REPLACE_ME</manufacturerModelName>
<softwareName>REPLACE_ME</softwareName>
</assignedAuthoringDevice>
<representedOrganization>
<id root="0.0.0.0.0"/>
</representedOrganization>
</assignedAuthor>
</author>
If i want set values,how can I do?
If the element values were setted,how can I get the values?
I see the OHF APIs,but I do not find the way.
Can someone give some codes?
Thanks!
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #48267 is a reply to message #48237] Thu, 18 September 2008 09:45 Go to previous messageGo to next message
RobertHua is currently offline RobertHuaFriend
Messages: 58
Registered: July 2009
Member
<recordTarget>
<patientRole>
<id extension="12345" root="2.16.840.1.113883.19.5"/>
<patient>
<name>
<given>Henry</given>
<family>Levin</family>
<suffix>the 7th</suffix>
</name>
<administrativeGenderCode code="M"
codeSystem="2.16.840.1.113883.5.1"/>
<birthTime value="19320924"/>
</patient>
<providerOrganization>
<id root="2.16.840.1.113883.19.5"/>
</providerOrganization>
</patientRole>
</recordTarget>


//recordTarget
EList recordTarget=root.getClinicalDocument().getRecordTarget();
How can I get the value in the EList?
What's the element type in the EList?

I was able to use code to get the templateId'value ,but how can use code
to set the templateId?
root.getClinicalDocument().setTemplateId is not exist.
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #48329 is a reply to message #48267] Thu, 18 September 2008 16:26 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
Hi Robert,

Did you see the code in the src_tests of this plugin. If this is not
sufficient for you .. you may also look at the CDAExtractor.java in
org.eclipse.ohf.ihe.xds.metadata.extract.cdar2

Hope these help.
Additionally -- This code is generated using EMF (Eclipse Modeling
Framework). There are many sample code examples out there for EMF on the
Eclipse website. This may also help you in using the CDA model by
knowing abit more about how EMF generated code works.

regards,
Sarah



RobertHua wrote:
> <recordTarget>
> <patientRole>
> <id extension="12345" root="2.16.840.1.113883.19.5"/>
> <patient>
> <name>
> <given>Henry</given>
> <family>Levin</family>
> <suffix>the 7th</suffix>
> </name>
> <administrativeGenderCode code="M"
> codeSystem="2.16.840.1.113883.5.1"/>
> <birthTime value="19320924"/>
> </patient>
> <providerOrganization>
> <id root="2.16.840.1.113883.19.5"/>
> </providerOrganization>
> </patientRole>
> </recordTarget>
>
>
> //recordTarget
> EList recordTarget=root.getClinicalDocument().getRecordTarget();
> How can I get the value in the EList? What's the element type in the EList?
>
> I was able to use code to get the templateId'value ,but how can use code
> to set the templateId?
> root.getClinicalDocument().setTemplateId is not exist.
>
>
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #48359 is a reply to message #48078] Fri, 19 September 2008 09:35 Go to previous messageGo to next message
RobertHua is currently offline RobertHuaFriend
Messages: 58
Registered: July 2009
Member
Thanks for the reply, some stuck were solved ,but I still need more
clarification...
How to create a metadata file that not is exist?
Thanks in Advance for both your time and your knowledge!

Greetings!
RobertHua
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #48389 is a reply to message #48359] Mon, 22 September 2008 16:43 Go to previous message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
When you submit a CDA document, metadata extraction from that document
happeds automatically for you. See the "Option 2" tests for document
submission for an example. Otherwise, there are many, many functions for
building the metadata you need in a number of different ways. See the
javadoc on the SubmitTransactionData.java in the xds.source plugin.

- Sarah


RobertHua wrote:
> Thanks for the reply, some stuck were solved ,but I still need more
> clarification...
> How to create a metadata file that not is exist?
> Thanks in Advance for both your time and your knowledge!
>
> Greetings!
> RobertHua
>
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #587695 is a reply to message #48078] Wed, 17 September 2008 20:02 Go to previous message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
Hi Robert,
There is some sample code in the src_tests folder of this plugin that
documents ... a little bit ... how to use this model.

regards,
- Sarah


RobertHua wrote:
> I want to create CDA using org.eclipse.ohf.ihe.common.cdar2.I need help.
> I do not known how to use it.For example,I add the author element,if
> the element is exist,I can add the value of the author,but if the author
> is not exist,how can I do?
> How can I get the exist element value by code if the CDA document
> created?
> Thanks in advance!
>
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #587716 is a reply to message #48182] Thu, 18 September 2008 02:53 Go to previous message
RobertHua is currently offline RobertHuaFriend
Messages: 58
Registered: July 2009
Member
I want some codes.For example:
<recordTarget>
<patientRole>
<id extension="REPLACE ME" root="0.0.0.0.0"/>
<addr>
<country>USA</country>
</addr>
<patient>
<name>
<given>REPLACE ME</given>
<family>REPLACE ME</family>
</name>
<administrativeGenderCode code="REPLACE_ME"
codeSystem="2.16.840.1.113883.5.1"/>
<birthTime value="0000"/>
</patient>
</patientRole>
</recordTarget>
<author>
<time value="0000"/>
<assignedAuthor>
<id root="0.0.0.0.0"/>
<assignedAuthoringDevice>
<code code="CAPTURE" codeSystem="1.2.840.10008.2.16.4"
displayName="Image Capture"/>
<manufacturerModelName>REPLACE_ME</manufacturerModelName>
<softwareName>REPLACE_ME</softwareName>
</assignedAuthoringDevice>
<representedOrganization>
<id root="0.0.0.0.0"/>
</representedOrganization>
</assignedAuthor>
</author>
If i want set values,how can I do?
If the element values were setted,how can I get the values?
I see the OHF APIs,but I do not find the way.
Can someone give some codes?
Thanks!
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #587720 is a reply to message #48237] Thu, 18 September 2008 09:45 Go to previous message
RobertHua is currently offline RobertHuaFriend
Messages: 58
Registered: July 2009
Member
<recordTarget>
<patientRole>
<id extension="12345" root="2.16.840.1.113883.19.5"/>
<patient>
<name>
<given>Henry</given>
<family>Levin</family>
<suffix>the 7th</suffix>
</name>
<administrativeGenderCode code="M"
codeSystem="2.16.840.1.113883.5.1"/>
<birthTime value="19320924"/>
</patient>
<providerOrganization>
<id root="2.16.840.1.113883.19.5"/>
</providerOrganization>
</patientRole>
</recordTarget>


//recordTarget
EList recordTarget=root.getClinicalDocument().getRecordTarget();
How can I get the value in the EList?
What's the element type in the EList?

I was able to use code to get the templateId'value ,but how can use code
to set the templateId?
root.getClinicalDocument().setTemplateId is not exist.
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #587737 is a reply to message #48267] Thu, 18 September 2008 16:26 Go to previous message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
Hi Robert,

Did you see the code in the src_tests of this plugin. If this is not
sufficient for you .. you may also look at the CDAExtractor.java in
org.eclipse.ohf.ihe.xds.metadata.extract.cdar2

Hope these help.
Additionally -- This code is generated using EMF (Eclipse Modeling
Framework). There are many sample code examples out there for EMF on the
Eclipse website. This may also help you in using the CDA model by
knowing abit more about how EMF generated code works.

regards,
Sarah



RobertHua wrote:
> <recordTarget>
> <patientRole>
> <id extension="12345" root="2.16.840.1.113883.19.5"/>
> <patient>
> <name>
> <given>Henry</given>
> <family>Levin</family>
> <suffix>the 7th</suffix>
> </name>
> <administrativeGenderCode code="M"
> codeSystem="2.16.840.1.113883.5.1"/>
> <birthTime value="19320924"/>
> </patient>
> <providerOrganization>
> <id root="2.16.840.1.113883.19.5"/>
> </providerOrganization>
> </patientRole>
> </recordTarget>
>
>
> //recordTarget
> EList recordTarget=root.getClinicalDocument().getRecordTarget();
> How can I get the value in the EList? What's the element type in the EList?
>
> I was able to use code to get the templateId'value ,but how can use code
> to set the templateId?
> root.getClinicalDocument().setTemplateId is not exist.
>
>
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #587746 is a reply to message #48078] Fri, 19 September 2008 09:35 Go to previous message
RobertHua is currently offline RobertHuaFriend
Messages: 58
Registered: July 2009
Member
Thanks for the reply, some stuck were solved ,but I still need more
clarification...
How to create a metadata file that not is exist?
Thanks in Advance for both your time and your knowledge!

Greetings!
RobertHua
Re: Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #587755 is a reply to message #48359] Mon, 22 September 2008 16:43 Go to previous message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
When you submit a CDA document, metadata extraction from that document
happeds automatically for you. See the "Option 2" tests for document
submission for an example. Otherwise, there are many, many functions for
building the metadata you need in a number of different ways. See the
javadoc on the SubmitTransactionData.java in the xds.source plugin.

- Sarah


RobertHua wrote:
> Thanks for the reply, some stuck were solved ,but I still need more
> clarification...
> How to create a metadata file that not is exist?
> Thanks in Advance for both your time and your knowledge!
>
> Greetings!
> RobertHua
>
Previous Topic:RetrieveDocumentSet - Serious Memory Problem
Next Topic:STEM New Feature Requests Discussion
Goto Forum:
  


Current Time: Thu Mar 28 15:25:15 GMT 2024

Powered by FUDForum. Page generated in 0.03534 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top