Using org.eclipse.ohf.ihe.common.cdar2 to Create CDA Document? [message #48078] |
Wed, 17 September 2008 01:52  |
Eclipse User |
|
|
|
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 #48389 is a reply to message #48359] |
Mon, 22 September 2008 12:43  |
Eclipse User |
|
|
|
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 16:02  |
Eclipse User |
|
|
|
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] |
Wed, 17 September 2008 22:53  |
Eclipse User |
|
|
|
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 05:45  |
Eclipse User |
|
|
|
<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 12:26  |
Eclipse User |
|
|
|
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 #587755 is a reply to message #48359] |
Mon, 22 September 2008 12:43  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.06556 seconds