Thanks James,

Very helpful and it worked to generate the link. Unfortunately I've
discovered that due to security restrictions, most browsers no longer allow
file:// links from pages served over HTTP meaning my idea doesn't work!

Question to the list: Has anybody implemented a way to store files that are
accessible within or easily through OpenMRS? The situation is that we have
thousands of word documents containing old consultation notes stored in
directories labeled with a patient ID that clinicians need to reference.
It's very time consuming and difficult for them to wade through the
filesystem manually or even use windows search. One solution I've read is
to setup a web server that has file browsing enabled on the network share.
This doesn't really allow additional files to be uploaded but I guess it's
better than nothing...

Thanks in advance,

Tobin



On Sun, Apr 22, 2012 at 3:27 PM, James Arbaugh <[email protected]>wrote:

> Hi Tobin,****
>
> ** **
>
> To just get the first identifier of that type, you could use… ****
>
> <lookup expression="patient.getPatientIdentifier(1)"/>****
>
> ** **
>
> I would try putting the link in as HTML, and just inserting the HAS number
> into the link to see if that can get you around the space problem.  But,
> I’m inserting an image based on the identifier with very similar code to
> yours and it’s not including a stray space.  My code is…****
>
> <lookup complexExpression="****
>
> &#60;img src=&#34;
> http://localhost:81/frontdesk/barre_code.php?string=${patient.getPatientIdentifier(1)}&#34;/&#62<http://localhost:81/frontdesk/barre_code.php?string=$%7Bpatient.getPatientIdentifier(1)%7D"/&%2362>
> ;****
>
> " />****
>
> ** **
>
> Hope this helps.****
>
> ** **
>
> James****
>
> ** **
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Tobin Greensweig
> *Sent:* Saturday, April 21, 2012 7:23 PM
> *To:* [email protected]
> *Subject:* [OPENMRS-IMPLEMENTERS] HTML form link****
>
> ** **
>
> Hi,****
>
> ** **
>
> I'm trying to put a link onto an HTML form that will allow the user to
> link to a mapped network share where some files are stored in directories =
> one of our patient ID types. The following is working except for a space
> which is being inserted just before the ID. An example of a link being
> generated is:  file:///S:/OpenMRS/ 00F51CD-2 (note the space just before
> 00F51CD-2).****
>
> ** **
>
> Any ideas?****
>
> ** **
>
> <lookup complexExpression="****
>
> &#60;a href=&#34;file:///S:/OpenMRS/#foreach($patId in
> $patientIdentifiers.get('New Clinic ID')) $patId #end&#34;
> target=&#34;_blank&#34;/&#62;LINK TO OLD PATIENT RECORDS&#60;/a&#62;" />**
> **
>
> ** **
>
> Also, how would I modify this just to grab the first patient ID of this
> type instead of all of them should there be multiple?****
>
> ** **
>
> Thanks,****
>
> ** **
>
> Tobin****
>
> ** **
>
> ** **
>
> ** **
> ------------------------------
>
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-implement-l>from
>  OpenMRS Implementers' mailing list
> ****
>  ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-implement-l>from
>  OpenMRS Implementers' mailing list




-- 
Tobin

_________________________________________

To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-implement-l" in the  body 
(not the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]

Reply via email to