I want to do things like the following:
                    *   try {*
* ls.getRule("AGE");*
* } catch (Exception ex){*
* *
* AgeRule ageRule = new AgeRule();*
* ls.addRule("AGE", ageRule);*
* }*
*CohortIndicator medianAge = CohortIndicator.newLogicIndicator("medianAge",
new
Mapped<CohortDefinition>(patientWithCD4Count,ParameterizableUtil.createParameterMappings("startDate=${startDate},endDate=${endDate}")),null,MedianAggregator.class,
"AGE");*
* medianAge.addParameter(new Parameter("startDate", "startDate",
Date.class));*
* medianAge.addParameter(new Parameter("endDate", "endDate", Date.class));*


As you see, to calculate the median of patients in patientWithCD4Count cohort
they have used a rule called AgeRule,
so I want to do the same with their CD4 Counts.

Thanks to reply queckly.



On Wed, Apr 4, 2012 at 1:13 PM, Tammy Dugan <[email protected]> wrote:

>  What exactly do you want to CD4CountRule to do?
>
> Thanks,
>
> Tammy Dugan
>
>
> On 4/4/2012 5:28 AM, Mariam N. wrote:
>
>
> Hi,
> In the the report I'm working on with reporting framework, I've tried to
> get the median of patients' CD4 Count
> and the problem was that the CD4CountRule hasn't been done before in the
> logic module.
> So, what I have to do is to add this obs rule.Can u plz help me step by
> step on how this can be done?
> But I think the best way is to add this in the core so that it will be
> useful to everyone who will need to work on obs median issue.
>
>  Regards!
>
>
>
>
>
>  --
> *Mariam NYINAWUMUNTU
> EMR Developer/MOH
>
> *
>
> ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list
>
>
> --
> Tammy Dugan
> CHIRDL Technical Lead
> Children's Health Services Research
> IU School of Medicine
>
>


-- 
*Mariam NYINAWUMUNTU
EMR Developer/MOH

*

_________________________________________

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

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

Reply via email to