[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user a
From: |
Jim Busser |
Subject: |
Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments? |
Date: |
Thu, 06 Oct 2011 17:42:43 -0700 |
On 2011-10-06, at 3:12 PM, Karsten Hilbert wrote:
> Try any of:
>
> $<patient_comm::homephone::>$
>
> and
>
> $<patient_comm::homephone::9999>$ (to set
> the max length to 9999)
>
> This is what gmMacro.py sayeth about the format:
>
> # those must satisfy the pattern "$<name::args::(optional) max string
> length>$" when used
>
> across the top of the relevant placeholder list.
1) under the above logic, the lack of a terminal :: in the following
$<gender_mapper::Male//Female//Transg>$
should be argued to not work, yet it does. So…
2) when a placeholder is not commented in gmMacro.py as supporting any
arguments, and even when it does not stand to reason that a person would desire
to insert arguments (or character limitations), are you suggesting that all of
the following (barring bugs) can insert empty arguments and empty formatting
plus minus character limits and *should* work?
$<firstname::>$
$<firstname::::>$
$<firstname::::9999>$
$<firstname:://::9999>$
3) anyhow, the following *still* don't work which does not surprise me, given 1)
& home phone $<patient_comm::homephone::>$\\
& home phone $<patient_comm::homephone::9999>$\\
which each result in:
home phone error with placeholder [< patientcomm :: homephone :: 9999 >]
home phone error with placeholder [< patientcomm :: homephone ::>]
??
Appended are
- the complete chunk of code for patient identification (in the template in
question)
- a screenshot showing that yes, the channel homephone actually does exist in
the database
- a screenshot of the resulting portion of the resulting PDF
I even tried quoting homephone:
& home phone $<patient_comm::'homephone'::9999>$ \\
-- Jim
\begin{tabular}{ l | l | }
\cline{2-2}
re & $<lastname>$, $<title>$ $<firstname>$
($<gender_mapper::Male//Female//Transg>$, born $<date_of_birth::%Y %B %d>$) \\
& $<adr_number::home>$ $<adr_street::home>$ \\
& $<adr_location::home>$ $<adr_postcode::home>$\\
& \\
& home phone $<patient_comm::homephone::9999>$ \\
\cline{2-2}
\end{tabular}
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Jim Busser, 2011/10/05
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Karsten Hilbert, 2011/10/05
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Jim Busser, 2011/10/05
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Karsten Hilbert, 2011/10/06
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Jim Busser, 2011/10/06
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Karsten Hilbert, 2011/10/06
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Jim Busser, 2011/10/06
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Karsten Hilbert, 2011/10/06
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?,
Jim Busser <=
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Karsten Hilbert, 2011/10/08
- Re: [Gnumed-bugs] Placeholder external ids - improperly formatted user arguments?, Karsten Hilbert, 2011/10/08