darius
(Darius Jazayeri)
November 4, 2015, 10:56pm
21
To close this out, I forgot to mention the one key thing that you can’t
currently do without code, which leaves the Ad Hoc Analysis tool quite
incomplete: you need to be able to define your own queries.
This can be done in code, as you can see here in a PIH example:
@Override
public Class<? super CohortDefinition> getDefinitionType() {
return CohortDefinition.class;
}
@Override
public String getKeyPrefix() {
return PREFIX;
}
@DocumentedDefinition(value = "specificCodedDiagnosesBetweenDates")
public DiagnosisCohortDefinition getSpecificCodedDiagnosesBetweenDates() {
DiagnosisCohortDefinition cd = new DiagnosisCohortDefinition();
cd.addParameter(new Parameter("onOrAfter", "reporting.parameter.onOrAfter", Date.class));
cd.addParameter(new Parameter("onOrBefore", "reporting.parameter.onOrBefore", Date.class));
cd.addParameter(new Parameter("codedDiagnoses", "mirebalaisreports.parameter.codedDiagnoses", Concept.class, List.class, null));
return cd;
}
@DocumentedDefinition(value = "testPatients")
public CohortDefinition getTestPatients() {