And here is that project for that:
 
https://wiki.openmrs.org/display/projects/Upload+and+View+or+Download+Image+or+File+in+HTMLForm+Entry+Module
 
 


________________________________
From: Mark Goodrich <[email protected]>
To: [email protected] 
Sent: Monday, April 23, 2012 8:49 AM
Subject: Re: [OPENMRS-IMPLEMENTERS] HTML form link


There is a GSoC project this summer add support for complex obs to html form 
entry.


________________________________
From: James Arbaugh
Sent: 4/22/2012 5:17 PM
To: [email protected]
Subject: Re: [OPENMRS-IMPLEMENTERS] HTML form link


Hi Tobin,
 
I’m glad you found it helpful.
 
As an alternative to a web server, you could store them as complex obs in 
OpenMRS.
 
https://wiki.openmrs.org/display/docs/Complex+Obs+Support
 
and
 
https://wiki.openmrs.org/display/docs/Creating+Complex+Observations+and+Concepts
 
 
I’m not sure if HTML Form Entry supports complex obs at this time.  I searched 
for the ticket but didn’t find one.
 
James
 
From:[email protected] [mailto:[email protected]] On Behalf Of 
Tobin Greensweig
Sent: Sunday, April 22, 2012 3:21 PM
To: [email protected]
Subject: Re: [OPENMRS-IMPLEMENTERS] HTML form link
 
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;
" />
 
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 from OpenMRS Implementers' mailing list 

________________________________

Click here to unsubscribe from OpenMRS Implementers' mailing list


 
-- 
Tobin

________________________________

Click here to unsubscribe from OpenMRS Implementers' mailing list 

________________________________
Click here to unsubscribe from OpenMRS Implementers' mailing list

________________________________
Click here to unsubscribe from OpenMRS Implementers' mailing list

_________________________________________

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