ExpandPer0D1 and ExpandPer0D1IntervalOverload copy the spec example that FHIR-58705 reports as incorrect
Los mantenedores suelen responder en 5 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- xml
- Área
- testing
Línea de trabajo
Empieza con CqlIntervalOperatorsTest.xml y revisa los casos ExpandPer0D1 y ExpandPer0D1IntervalOverload. El issue sugiere marcarlos como pendientes de FHIR-58705 o eliminarlos y, después, actualizar las salidas esperadas cuando se resuelva ese ticket; el trabajo está terminado cuando las pruebas ya no verifican el ejemplo controvertido y cubren el comportamiento de Decimal establecido por la resolución.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
CqlIntervalOperatorsTest.xml:
<test name="ExpandPer0D1" version="1.3">
<expression>expand { Interval[10, 10] } per 0.1</expression>
<output>{ Interval[10.0, 10.0], Interval[10.1, 10.1], Interval[10.2, 10.2], Interval[10.3, 10.3], Interval[10.4, 10.4], Interval[10.5, 10.5], Interval[10.6, 10.6], Interval[10.7, 10.7], Interval[10.8, 10.8], Interval[10.9, 10.9] }</output>
</test>
<test name="ExpandPer0D1IntervalOverload" version="1.3">
<expression>expand Interval[10, 10] per 0.1</expression>
<output>{ 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9 }</output>
</test>
These outputs come from the example in Expand. FHIR-58705 ("Correct/Add Interval Expand numeric examples", a Change Request raised against 1.5.3, still Submitted) reports that example as incorrect. Every interval after the first ends after the input's upper boundary of 10, which contradicts the definition: "contribute all the intervals of size per that start on or after the lower boundary and end on or before the upper boundary". The example also doesn't fit the signature, expand(argument List<Interval<T>>, per Quantity) List<Interval<T>>, which makes this a list of Interval<Integer>.
Neither engine passes these tests, and neither runs them:
- The Java engine lists both in its
SKIPset (engine-fhir/src/jvmTest/kotlin/org/hl7/fhirpath/CQLOperationsR4Test.kt). - The runner's cql-execution config skips both with "Invalid Test: Expected output is incorrect: https://jira.hl7.org/browse/FHIR-58705".
What the engines return (Java 5.6.1 via $cql on HAPI FHIR, cql-execution 4.0.0-beta.1):
| Expression | Java | cql-execution |
|---|---|---|
expand { Interval[10, 10] } per 0.1 |
{ Interval[10, 10] } |
{ } |
expand Interval[10, 10] per 0.1 |
{ 10 } |
{ } |
They also differ on the Decimal examples that FHIR-58705 proposes adding to the spec:
| Expression | Java | cql-execution |
|---|---|---|
expand { Interval[10.0, 12.5] } per 1.0 |
{ Interval[10.0, 10.9], Interval[11.0, 11.9] } |
{ Interval[10, 10], Interval[11, 11], Interval[12, 12] } |
expand { Interval[10.0, 12.5] } per 0.5 |
{ Interval[10.0, 10.4], Interval[10.5, 10.9], …, Interval[12.0, 12.4] } (5) |
{ Interval[10, 10.49999999], Interval[10.5, 10.99999999], … } (5) |
expand { Interval[0, 1] } per 0.1 |
{ Interval[0, 0], Interval[1, 1] } |
10 intervals, starting Interval[0, 0.09999999] |
Suggestion: until FHIR-58705 is resolved, mark these two tests as pending that ticket, or remove them, rather than keeping an output the ticket says is wrong. Once it's resolved, update their outputs, and add tests for the Decimal examples the resolution settles, since the engines currently disagree on all of them.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 8
- Forks
- 9
- Merge medio
- 4 d 2 h
- PR fusionados (30 d)
- 3
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cqframework/cql-tests
-
CqlComparisonOperatorsTest: NotEquivalentNullNull marks `null !~ null` invalid, where the specification gives it as falsePosiblemente ocupada @leftonmars la tomó hace 13 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
cqframework/cql-tests#172 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
cqframework/cql-tests#170 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
cqframework/cql-tests#158 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
cqframework/cql-tests#157 ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
cqframework/cql-tests#153 · 2 comentarios ·
Los mantenedores suelen responder en 5 días
Todos los issues de cqframework/cql-tests
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 91/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Posiblemente ocupada @cestercian la tomó hoy. Abiertocomp/cli P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NousResearch/hermes-agent#162259 · 1 comentario ·
Los mantenedores suelen responder en 1 día