From 2358f3a2f7d28d539c0bdb3842b5b43aa91a5849 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 21 Nov 2024 20:33:23 +1100 Subject: [PATCH] update notes about pattern slicing --- validator/manifest.json | 137 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 130 insertions(+), 7 deletions(-) diff --git a/validator/manifest.json b/validator/manifest.json index 0a2242b6..28ef8eba 100644 --- a/validator/manifest.json +++ b/validator/manifest.json @@ -5974,7 +5974,7 @@ "severity": "warning", "code": "business-rule", "details": { - "text": "The discriminator type 'pattern' has been deprecated. Use type=value with a pattern[x] instead" + "text": "The discriminator type 'pattern' has been deprecated. Use type=value with a pattern[x] instead (if this is not an inherited slicing)" }, "diagnostics": "[22,20]", "expression": [ @@ -34801,6 +34801,17 @@ "expression": [ "StructureDefinition" ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[1,3528]", + "expression": [ + "StructureDefinition.snapshot.element[2].slicing.discriminator[0]" + ] } ] } @@ -34835,6 +34846,17 @@ "expression": [ "StructureDefinition" ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[1,3528]", + "expression": [ + "StructureDefinition.snapshot.element[2].slicing.discriminator[0]" + ] } ] } @@ -36974,6 +36996,17 @@ "StructureDefinition.differential.element[1].type[0].profile[0]" ] }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[294,24]", + "expression": [ + "StructureDefinition.snapshot.element[7].slicing.discriminator[0]" + ] + }, { "severity": "error", "code": "exception", @@ -36983,6 +37016,50 @@ "expression": [ "StructureDefinition.snapshot.element[8].type[0].profile[0]" ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[395,24]", + "expression": [ + "StructureDefinition.snapshot.element[10].slicing.discriminator[0]" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[502,24]", + "expression": [ + "StructureDefinition.snapshot.element[13].slicing.discriminator[0]" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[658,24]", + "expression": [ + "StructureDefinition.snapshot.element[18].slicing.discriminator[0]" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[814,24]", + "expression": [ + "StructureDefinition.snapshot.element[23].slicing.discriminator[0]" + ] } ] } @@ -38761,7 +38838,7 @@ "severity": "error", "code": "structure", "details": { - "text": "CDSHooksResponse.cards.source.label: minimum required = 1, but only found 0 (from http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse|0.2.0)" + "text": "CDSHooksResponse.cards.source.label: minimum required = 1, but only found 0 (from http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse|0.3.0)" }, "diagnostics": "[7,20]", "expression": [ @@ -41649,14 +41726,25 @@ ] }, { - "severity": "warning", + "severity": "information", "code": "business-rule", "details": { - "text": "The discriminator type 'pattern' has been deprecated. Use type=value with a pattern[x] instead" + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" }, - "diagnostics": "[65,14]", + "diagnostics": "[78,14]", "expression": [ - "StructureDefinition.differential.element[0].slicing.discriminator[0]" + "StructureDefinition.differential.element[1].slicing.discriminator[0]" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[93,14]", + "expression": [ + "StructureDefinition.differential.element[2].slicing.discriminator[0]" ] }, { @@ -41670,6 +41758,28 @@ "StructureDefinition.differential.element[2].slicing.discriminator[0]" ] }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[170,14]", + "expression": [ + "StructureDefinition.differential.element[10].slicing.discriminator[0]" + ] + }, + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[227,14]", + "expression": [ + "StructureDefinition.differential.element[15].slicing.discriminator[0]" + ] + }, { "severity": "error", "code": "invalid", @@ -43089,7 +43199,20 @@ "description": "test identifiers defined in THO", "java": { "outcome": { - "resourceType": "OperationOutcome" + "resourceType": "OperationOutcome", + "issue": [ + { + "severity": "information", + "code": "business-rule", + "details": { + "text": "The discriminator type 'value' is been deprecated in R5+. For future compatibility, you could consider using type=value with a pattern[x] instead (if this is not an inherited slicing)" + }, + "diagnostics": "[21,14]", + "expression": [ + "StructureDefinition.differential.element[0].slicing.discriminator[0]" + ] + } + ] } } },