mksrom
(Romain Buisson)
1
Hello !
In my HTML Form I want to display a <section> based on the age of the patient in months:
The following line will work:
Patient age (in months): <lookup expression="fn.patientAgeInMonths()"/>
shows:
But if i do (for the same Patient):
<includeIf velocityTest="fn.patientAgeInMonths() < 4">
<font>Patient is less than 4 months old</font>
</includeIf>
The condition doesn’t work, the text is not displayed.
Why ?
k.joseph
(Kaweesi Joseph)
2
Vitals HTML form does this in this way
<includeIf velocityTest="13 > $patient.getAge($encounter.getEncounterDatetime())">
<fieldset>
<legend><lookup expression="fn.getConcept('CIEL:1343').name"/></legend>
<h3><lookup expression="fn.getConcept('CIEL:1343').name"/></h3>
<p>
<obs conceptId="CIEL:1343" id="muac" showUnits="uicommons.units.millimeters" unitsCssClass="append-to-value"/>
</p>
</fieldset>
</includeIf>
mksrom
(Romain Buisson)
3
Thanks for the reply @k_joseph !
I have had already found this but thanks for updating the thread.
Here is the file where it can be seen:
1 Like