Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » OHF » How to set the CDA document Title?
How to set the CDA document Title? [message #48507] Sun, 28 September 2008 09:00 Go to next message
RobertHua is currently offline RobertHuaFriend
Messages: 58
Registered: July 2009
Member
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 22:11 Go to previous message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
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 22:11 Go to previous message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
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
>
Previous Topic:How to set the CDA document TemplateId?
Next Topic:Deprecating a document
Goto Forum:
  


Current Time: Sat Dec 20 16:34:50 GMT 2014

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

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