Skip to content

Commit

Permalink
FhirpathRefTests: Exclusions for 'extensions'.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrszul committed Feb 14, 2025
1 parent 2992ba7 commit dad69f5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ void testVariables(@Nonnull final RuntimeCase testCase) {
// hasValue.yaml
// simple.yaml

@Disabled
@YamlSpec("fhirpath-js/cases/extensions.yaml")
void testExtension(@Nonnull final RuntimeCase testCase) {
run(testCase);
Expand Down
27 changes: 27 additions & 0 deletions fhirpath/src/test/resources/fhirpath-js/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,33 @@ excludeSet:
type: framework-gap
spel:
- "#testCase.context == 'g1'"
- title: Extension exclusions
glob: 'fhirpath-js/cases/extensions.yaml'
exclude:
- title: 'ID on primitive types not supported'
comment: "That also includes the case of an empty primitive value with non-empty attributes"
type: feature
any:
- "** id for primitive type"
- "Patient.address[1].id = 'someId'"
- "** count nodes without value, but with extensions"
- title: 'extensions on primitive types not supported'
type: feature
any:
- "** expression with extension for primitive type 1"
- "** expression with extension for primitive type 3"
- "Patient.communication.preferred.extension('test').value.id"
- "Patient.communication.preferred.extension('test').exists()"
- "Patient.name.given[0].extension('http://hl7.org/fhir/StructureDefinition/display').value = 'Jacomus1'"
- "Patient.name.given[3].extension('http://hl7.org/fhir/StructureDefinition/display').value = 'Jacomus2'"
- "** expression with extension() for primitive type (using FHIR model data)"
- "** value of extension of extension (using FHIR model data)"
- "** id of extension of extension"
- title: "BUG: empty() should be true for empty collections"
type: bug
any:
- "** empty url"
- "** empty input collection"
- title: Factory exclusions
glob: 'fhirpath-js/cases/factory.yaml'
exclude:
Expand Down

0 comments on commit dad69f5

Please sign in to comment.