Skip to main content



      Home
Home » Archived » OHF » set authorRoleDisplayName
set authorRoleDisplayName [message #40162] Fri, 11 January 2008 06: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 12:44 Go to previous messageGo to next message
Eclipse UserFriend
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 09: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 12:09 Go to previous message
Eclipse UserFriend
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 12:44 Go to previous message
Eclipse UserFriend
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 09:08 Go to previous message
Eclipse UserFriend
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 12:09 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 18:27:56 EDT 2025

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

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

Back to the top