Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » OHF » set authorRoleDisplayName
set authorRoleDisplayName [message #40162] Fri, 11 January 2008 11:52 Go to next message
Eclipse UserFriend
Originally posted by: juj.lincoln.fr

hi,

I have a question, I don't know how to create authorRoleDisplayName for
XDSDocumentEntry.

Do you have any example?

Thanks a lot.

jjameau
Re: set authorRoleDisplayName [message #40236 is a reply to message #40162] Mon, 14 January 2008 17:44 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
Hi jjameau,

AuthorRole is just a string, at least in the new version of the OHF code
which complies with the newer version of the XDS specification.

The code would look something like this

docEntry.getAuthor().setAuthorRole("primary care provider");

hope this helps,
- Sarah


exquisitus wrote:
> hi,
>
> I have a question, I don't know how to create authorRoleDisplayName for
> XDSDocumentEntry.
>
> Do you have any example?
>
> Thanks a lot.
>
> jjameau
Re: set authorRoleDisplayName [message #40246 is a reply to message #40236] Tue, 15 January 2008 14:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: juj.lincoln.fr

Thank you for your response.

But when I set docEntry.getAuthor() the only method that is available is
.setAuthorPerson() and there isn't the .setAuthorRole() method so
it's not possible to use docEntry.getAuthor().setAuthorRole().

Do you know why?

Thanks.

JJameau


Sarah Knoop wrote:
> Hi jjameau,
>
> AuthorRole is just a string, at least in the new version of the OHF code
> which complies with the newer version of the XDS specification.
>
> The code would look something like this
>
> docEntry.getAuthor().setAuthorRole("primary care provider");
>
> hope this helps,
> - Sarah
>
>
> exquisitus wrote:
>> hi,
>>
>> I have a question, I don't know how to create authorRoleDisplayName
>> for XDSDocumentEntry.
>>
>> Do you have any example?
>>
>> Thanks a lot.
>>
>> jjameau
Re: set authorRoleDisplayName [message #40253 is a reply to message #40246] Tue, 15 January 2008 17:09 Go to previous message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
Sorry, my mistake. author role, institution and speciality are many
valued. thus they are implemented as lists

so the code is:
docEntry.getAuthor().getAuthorRole().add("primary care provider");

regards,
- Sarah

exquisitus wrote:
> Thank you for your response.
>
> But when I set docEntry.getAuthor() the only method that is available is
> .setAuthorPerson() and there isn't the .setAuthorRole() method so it's
> not possible to use docEntry.getAuthor().setAuthorRole().
>
> Do you know why?
>
> Thanks.
>
> JJameau
>
>
> Sarah Knoop wrote:
>
>> Hi jjameau,
>>
>> AuthorRole is just a string, at least in the new version of the OHF
>> code which complies with the newer version of the XDS specification.
>>
>> The code would look something like this
>>
>> docEntry.getAuthor().setAuthorRole("primary care provider");
>>
>> hope this helps,
>> - Sarah
>>
>>
>> exquisitus wrote:
>>
>>> hi,
>>>
>>> I have a question, I don't know how to create authorRoleDisplayName
>>> for XDSDocumentEntry.
>>>
>>> Do you have any example?
>>>
>>> Thanks a lot.
>>>
>>> jjameau
Re: set authorRoleDisplayName [message #584371 is a reply to message #40162] Mon, 14 January 2008 17:44 Go to previous message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
Hi jjameau,

AuthorRole is just a string, at least in the new version of the OHF code
which complies with the newer version of the XDS specification.

The code would look something like this

docEntry.getAuthor().setAuthorRole("primary care provider");

hope this helps,
- Sarah


exquisitus wrote:
> hi,
>
> I have a question, I don't know how to create authorRoleDisplayName for
> XDSDocumentEntry.
>
> Do you have any example?
>
> Thanks a lot.
>
> jjameau
Re: set authorRoleDisplayName [message #584382 is a reply to message #40236] Tue, 15 January 2008 14:08 Go to previous message
exquisitus is currently offline exquisitusFriend
Messages: 211
Registered: July 2009
Senior Member
Thank you for your response.

But when I set docEntry.getAuthor() the only method that is available is
.setAuthorPerson() and there isn't the .setAuthorRole() method so
it's not possible to use docEntry.getAuthor().setAuthorRole().

Do you know why?

Thanks.

JJameau


Sarah Knoop wrote:
> Hi jjameau,
>
> AuthorRole is just a string, at least in the new version of the OHF code
> which complies with the newer version of the XDS specification.
>
> The code would look something like this
>
> docEntry.getAuthor().setAuthorRole("primary care provider");
>
> hope this helps,
> - Sarah
>
>
> exquisitus wrote:
>> hi,
>>
>> I have a question, I don't know how to create authorRoleDisplayName
>> for XDSDocumentEntry.
>>
>> Do you have any example?
>>
>> Thanks a lot.
>>
>> jjameau
Re: set authorRoleDisplayName [message #584393 is a reply to message #40246] Tue, 15 January 2008 17:09 Go to previous message
No real name is currently offline No real nameFriend
Messages: 292
Registered: July 2009
Senior Member
Sorry, my mistake. author role, institution and speciality are many
valued. thus they are implemented as lists

so the code is:
docEntry.getAuthor().getAuthorRole().add("primary care provider");

regards,
- Sarah

exquisitus wrote:
> Thank you for your response.
>
> But when I set docEntry.getAuthor() the only method that is available is
> .setAuthorPerson() and there isn't the .setAuthorRole() method so it's
> not possible to use docEntry.getAuthor().setAuthorRole().
>
> Do you know why?
>
> Thanks.
>
> JJameau
>
>
> Sarah Knoop wrote:
>
>> Hi jjameau,
>>
>> AuthorRole is just a string, at least in the new version of the OHF
>> code which complies with the newer version of the XDS specification.
>>
>> The code would look something like this
>>
>> docEntry.getAuthor().setAuthorRole("primary care provider");
>>
>> hope this helps,
>> - Sarah
>>
>>
>> exquisitus wrote:
>>
>>> hi,
>>>
>>> I have a question, I don't know how to create authorRoleDisplayName
>>> for XDSDocumentEntry.
>>>
>>> Do you have any example?
>>>
>>> Thanks a lot.
>>>
>>> jjameau
Previous Topic:set authorRoleDisplayName
Next Topic:uuid and oid
Goto Forum:
  


Current Time: Thu Mar 28 18:42:00 GMT 2024

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

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

Back to the top