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=" <img src="http://localhost:81/frontdesk/barre_code.php?string=${patient.g etPatientIdentifier(1)}"/> " /> 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/ <file:///S:\OpenMRS\> 00F51CD-2 (note the space just before 00F51CD-2). Any ideas? <lookup complexExpression=" <a href="file:///S:/OpenMRS/#foreach($patId in $patientIdentifiers.get('New Clinic ID')) $patId #end" target="_blank"/>LINK TO OLD PATIENT RECORDS</a>" /> 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 <mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l> 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]

