clinical_quality_language
clinical_quality_language copied to clipboard
Unable to use AgeAt functions with Patient class of custom name.
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?
Yes, this is an unintentional oversight. Marking as a bug.