use of org.opencds.cqf.cql.engine.runtime.Quantity in project quality-measure-and-cohort-service by Alvearie.
the class SparkTypeConverterTest method testToSparkRatio.
@Test
public void testToSparkRatio() {
Ratio ratio = new Ratio().setNumerator(new Quantity().withValue(new BigDecimal(1.2)).withUnit("mg/mL")).setDenominator(new Quantity().withValue(new BigDecimal(5.9)).withUnit("mg/mL"));
Object converted = typeConverter.toSparkRatio(ratio);
assertTrue(converted instanceof scala.collection.Map);
}
Aggregations