clinical_quality_language icon indicating copy to clipboard operation
clinical_quality_language copied to clipboard

Unable to use AgeAt functions with Patient class of custom name.

Open shelleyMurphy opened this issue 3 years ago • 1 comments

https://github.com/cqframework/clinical_quality_language/blob/5b56ba8dc79c039813c92506fc4af27213907f57/Src/java/cql-to-elm/src/main/java/org/cqframework/cql/cql2elm/SystemFunctionResolver.java#L407

When using a Patient that has a custom name, such as "Person" or "Demographic", specifying the patientClassName in the model-info will not enable use of these functions, as "Patient" is hardcoded in the referenced snippet. Custom birthdate is supported by builder.getDefaultModel().getModelInfo().getPatientBirthDatePropertyName() , is it possible to do such a thing with the name of the Patient class as well?

shelleyMurphy avatar Nov 02 '21 20:11 shelleyMurphy

Yes, this is an unintentional oversight. Marking as a bug.

brynrhodes avatar Nov 04 '21 17:11 brynrhodes