From 4a04bd0dd7667394b9d1997a6e6c73d3c5eccba9 Mon Sep 17 00:00:00 2001 From: Piotr Szul Date: Fri, 14 Feb 2025 12:10:43 +1000 Subject: [PATCH] FhirpathRefTests: Exclusions for 'quantities'. --- .../fhirpath/yaml/YamlReferenceImplTest.java | 3 +-- .../src/test/resources/fhirpath-js/config.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/fhirpath/src/test/java/au/csiro/pathling/fhirpath/yaml/YamlReferenceImplTest.java b/fhirpath/src/test/java/au/csiro/pathling/fhirpath/yaml/YamlReferenceImplTest.java index b4a479d8f9..c772f6bfd6 100644 --- a/fhirpath/src/test/java/au/csiro/pathling/fhirpath/yaml/YamlReferenceImplTest.java +++ b/fhirpath/src/test/java/au/csiro/pathling/fhirpath/yaml/YamlReferenceImplTest.java @@ -165,8 +165,7 @@ void testFactory(@Nonnull final RuntimeCase testCase) { void testFhirR4(@Nonnull final RuntimeCase testCase) { run(testCase); } - - @Disabled + @YamlSpec("fhirpath-js/cases/fhir-quantity.yaml") void testFhirQuantity(@Nonnull final RuntimeCase testCase) { run(testCase); diff --git a/fhirpath/src/test/resources/fhirpath-js/config.yaml b/fhirpath/src/test/resources/fhirpath-js/config.yaml index 1874d73699..561c273beb 100644 --- a/fhirpath/src/test/resources/fhirpath-js/config.yaml +++ b/fhirpath/src/test/resources/fhirpath-js/config.yaml @@ -580,6 +580,20 @@ excludeSet: type: feature expression: - "%factory(\\W|$)" + - title: Quantity Exclusions + glob: "fhirpath-js/cases/fhir-quantity.yaml" + exclude: + - title: "Implicit conversion of polymophic types not supported" + comment: "Should the value be implicitly converted to a quantity?" + type: ??? + any: + - "After converting 'a' to year it is equal to year" + - "After converting 'a' to year it isn't equal to 'a'" + - "After converting 'min' to minutes it is equal to minutes" + - title: "Untyped access to polymorphic collections" + type: ??? + any: + - "Can access the comparator field when there isn't a need to convert" - title: Has Value Exclusions glob: 'fhirpath-js/cases/hasValue.yaml' exclude: