<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    No, the widget will not support this. We haven't had a need for this
    kind of usage, and I think the normal design pattern would be to
    either 1) look up the label/preferred name from the REST service or
    2) store the label/preferred name with the id, both would be done
    server-side before the HTML page was built and sent to the client.<br>
    <br>
    Paul R Alexander<br>
    Web / UI Developer<br>
    <a href="http://bioportal.bioontology.org">NCBO BioPortal</a><br>
    Stanford Center for Biomedical Informatics Research<br>
    <br>
    <br>
    On 10/1/10 10:22 AM, Trish Whetzel wrote:
    <blockquote
      cite="mid:42A7799C-60FB-491D-9AFC-F6BB9F84F748@stanford.edu"
      type="cite">
      <div>Thanks for the additional information. I'm not sure if the
        widget framework supports this type of use case. </div>
      <div><br>
      </div>
      <div>Paul, can you comment on this?</div>
      <div><br>
      </div>
      <div>Thanks, </div>
      <div>Trish</div>
      <div><br>
      </div>
      <br>
      <div>
        <div>On Sep 30, 2010, at 11:45 PM, Bhandare, Aniket wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite"><span class="Apple-style-span"
            style="border-collapse: separate; font-family: Arial;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-indent: 0px; text-transform: none;
            white-space: normal; widows: 2; word-spacing: 0px;">
            <div link="blue" vlink="purple" lang="EN-US">
              <div class="WordSection1">
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);">Trish,<o:p></o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);">Thanks
                    for your inputs.<o:p></o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);">I was
                    thinking more of usecase for saved data on the page.<o:p></o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);">E.g.
                    let’s say user is creating study participant. On
                    participant create page, user selected participant's
                    race as “White” using "preferred name" widget and
                    clicked save button on this page. Then hidden field
                    "c_bioportal_concept_id" tells us concept_id for
                    race as "185984009".<o:p></o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);">We
                    will save this concept_id in our local database as
                    participant race entered by user along with
                    view/ontology id. So next time user logs in and
                    revisits page for this study participant, user wants
                    to see already saved data.<o:p></o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);">Is
                    there a way to show race "White" in "preferred name"
                    widget from saved concept_id "185984009" and
                    view/ontology id "2057"? I felt it could be very
                    common usecase for many applications and might be
                    supported by bioportal "preferred name" widget.<o:p></o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);">Thanks,<o:p></o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);">-Aniket<o:p></o:p></span></div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><span
                    style="font-size: 11pt; font-family:
                    Calibri,sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></div>
                <div>
                  <div style="border-style: solid none none; border-top:
                    1pt solid rgb(181, 196, 223); padding: 3pt 0in 0in;">
                    <div style="margin: 0in 0in 0.0001pt; font-size:
                      12pt; font-family: 'Times New Roman',serif;"><b><span
                          style="font-size: 10pt; font-family:
                          Tahoma,sans-serif;">From:</span></b><span
                        style="font-size: 10pt; font-family:
                        Tahoma,sans-serif;"><span
                          class="Apple-converted-space"> </span>Trish
                        Whetzel [<a class="moz-txt-link-freetext" href="mailto:whetzel@stanford.edu">mailto:whetzel@stanford.edu</a>]<span
                          class="Apple-converted-space"> </span><br>
                        <b>Sent:</b><span class="Apple-converted-space"> </span>Thursday,
                        September 30, 2010 10:31 PM<br>
                        <b>To:</b><span class="Apple-converted-space"> </span>Bhandare,
                        Aniket<br>
                        <b>Cc:</b><span class="Apple-converted-space"> </span>Nigam
                        Shah; support<br>
                        <b>Subject:</b><span
                          class="Apple-converted-space"> </span>Re:
                        Pre-Populate "Preferred Name" text box from term
                        id<o:p></o:p></span></div>
                  </div>
                </div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><o:p> </o:p></div>
                <div>
                  <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman',serif;">The widget
                    does not support populating a default value. If you
                    would like to display an example for the user to
                    type, below is an example:<o:p></o:p></div>
                </div>
                <div>
                  <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman',serif;"><span
                      class="apple-style-span"><span style="font-family:
                        'Courier New';"><input type="text"
                        value="Enter a term, e.g. Melanoma"
                        id="find_resource" size="30" style="width:
                        240px;" class="greyed ac_input"></span></span><o:p></o:p></div>
                </div>
                <div>
                  <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman',serif;"><o:p> </o:p></div>
                </div>
                <div>
                  <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman',serif;">Trish  <o:p></o:p></div>
                </div>
                <div>
                  <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman',serif;"><o:p> </o:p></div>
                </div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><o:p> </o:p></div>
                <div>
                  <div>
                    <div style="margin: 0in 0in 0.0001pt; font-size:
                      12pt; font-family: 'Times New Roman',serif;">On
                      Sep 30, 2010, at 4:00 PM, Bhandare, Aniket wrote:<o:p></o:p></div>
                  </div>
                  <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                    font-family: 'Times New Roman',serif;"><br>
                    <br>
                    <o:p></o:p></div>
                  <div>
                    <div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;">Hi Trish,<o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;"> <o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;">Nigam pointed me to
                            link<span class="apple-converted-space"> </span><a
                              moz-do-not-send="true"
                              href="http://www.bioontology.org/wiki/index.php/Ontology_Widgets"
                              style="color: blue; text-decoration:
                              underline;">http://www.bioontology.org/wiki/index.php/Ontology_Widgets</a><span
                              class="apple-converted-space"> </span>for
                            widgets documentation<o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;"> <o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;">According to that, I
                            wrote below code. E.g. Say I want to show
                            "Race: West Indian" as default selection.
                            Its id is "160531006" from view "2057". So I
                            gave shortid="160531006" to pre-populate the
                            textbox.<o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;"> <o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;"><input type="text"
                            name="c" class="bp_form_complete-2057-name"
                            size="20"<b>shortid</b>="160531006"/><o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;"> <o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;">I have also tried
                            setting shortid="<a moz-do-not-send="true"
href="http://purl.bioontology.org/ontology/SNOMED-Ethnic-Group#160531006"
                              style="color: blue; text-decoration:
                              underline;">http://purl.bioontology.org/ontology/SNOMED-Ethnic-Group#160531006</a>"
                            and uri="<a moz-do-not-send="true"
href="http://purl.bioontology.org/ontology/SNOMED-Ethnic-Group#160531006"
                              style="color: blue; text-decoration:
                              underline;">http://purl.bioontology.org/ontology/SNOMED-Ethnic-Group#160531006</a>".
                            Still it does not show me text box
                            pre-populated with "Race: West Indian".<o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;"> <o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;">Can you please tell me
                            the exact way to achieve this?<o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;"> <o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;">Thanks,<o:p></o:p></span></div>
                      </div>
                      <div>
                        <div style="margin: 0in 0in 0.0001pt; font-size:
                          12pt; font-family: 'Times New Roman',serif;"><span
                            style="font-size: 11pt; font-family:
                            Calibri,sans-serif;">-Aniket<o:p></o:p></span></div>
                      </div>
                    </div>
                  </div>
                </div>
                <div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
                  font-family: 'Times New Roman',serif;"><o:p> </o:p></div>
              </div>
            </div>
          </span></blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
bioontology-support mailing list
<a class="moz-txt-link-abbreviated" href="mailto:bioontology-support@lists.stanford.edu">bioontology-support@lists.stanford.edu</a>
<a class="moz-txt-link-freetext" href="https://mailman.stanford.edu/mailman/listinfo/bioontology-support">https://mailman.stanford.edu/mailman/listinfo/bioontology-support</a>
</pre>
    </blockquote>
  </body>
</html>