How to set the CDA document Title? [message #48507] |
Sun, 28 September 2008 05:00  |
Eclipse User |
|
|
|
Hi Everybody!
When I create a POCDMT000040ClinicalDocumen object clinicalDocument,I
want to set the ClinicalDocument/Title,I do not find the function
clinicalDocument.setTitle(),only finding the clinicalDocument.getTitle().I
believe that there must have a way to set the ClinicalDocument/Title value.
Can someone help me?
Thanks in advance!
RobertHua
|
|
|
Re: How to set the CDA document Title? [message #48596 is a reply to message #48507] |
Mon, 29 September 2008 18:11  |
Eclipse User |
|
|
|
Hi Robert,
Again -- I warn you that the CDA model is generated by EMF :-) So there
is a rather big learning curve to using it. Knowledge of EMF and how it
generates code, etc. will help. Many tutorials and examples are online.
For title -- there is a "set" method. But you need to set the title as
#CDATA of the mixed type element (ie. between the XML tags).
ST1 title = CDAR2Factory.eINSTANCE.createST1();
FeatureMapUtil.addText(title.getMixed(), "My CDA Document Title");
cda.setTitle(title);
regards,
Sarah
RobertHua wrote:
> Hi Everybody!
> When I create a POCDMT000040ClinicalDocumen object clinicalDocument,I
> want to set the ClinicalDocument/Title,I do not find the function
> clinicalDocument.setTitle(),only finding the
> clinicalDocument.getTitle().I believe that there must have a way to set
> the ClinicalDocument/Title value.
> Can someone help me?
>
> Thanks in advance!
> RobertHua
>
|
|
|
Re: How to set the CDA document Title? [message #587808 is a reply to message #48507] |
Mon, 29 September 2008 18:11  |
Eclipse User |
|
|
|
Hi Robert,
Again -- I warn you that the CDA model is generated by EMF :-) So there
is a rather big learning curve to using it. Knowledge of EMF and how it
generates code, etc. will help. Many tutorials and examples are online.
For title -- there is a "set" method. But you need to set the title as
#CDATA of the mixed type element (ie. between the XML tags).
ST1 title = CDAR2Factory.eINSTANCE.createST1();
FeatureMapUtil.addText(title.getMixed(), "My CDA Document Title");
cda.setTitle(title);
regards,
Sarah
RobertHua wrote:
> Hi Everybody!
> When I create a POCDMT000040ClinicalDocumen object clinicalDocument,I
> want to set the ClinicalDocument/Title,I do not find the function
> clinicalDocument.setTitle(),only finding the
> clinicalDocument.getTitle().I believe that there must have a way to set
> the ClinicalDocument/Title value.
> Can someone help me?
>
> Thanks in advance!
> RobertHua
>
|
|
|
Powered by
FUDForum. Page generated in 0.04113 seconds