diff --git a/r5/capabilitystatement-import/CapabilityStatement-1.xml b/r5/capabilitystatement-import/CapabilityStatement-1.xml index 9f553157..b26afb71 100644 --- a/r5/capabilitystatement-import/CapabilityStatement-1.xml +++ b/r5/capabilitystatement-import/CapabilityStatement-1.xml @@ -408,7 +408,11 @@ - + + + + + diff --git a/r5/capabilitystatement-import/CapabilityStatement-2.xml b/r5/capabilitystatement-import/CapabilityStatement-2.xml index 56e58dda..69d354c5 100644 --- a/r5/capabilitystatement-import/CapabilityStatement-2.xml +++ b/r5/capabilitystatement-import/CapabilityStatement-2.xml @@ -432,7 +432,11 @@
- + + + + + diff --git a/validator/manifest.json b/validator/manifest.json index a361945d..2e37877f 100644 --- a/validator/manifest.json +++ b/validator/manifest.json @@ -7,6 +7,7 @@ " * 'use-test': set to false and the test will be ignored", " * 'version': the version being validated. values: 1.0, 1.4, 3.0, 4.0. If no version specified, that means current R5", " * 'assumeValidRestReferences' : default = false", + " * 'strictIdentifierSystems' : default = false", " * 'allowed-extension-domain' : Extension URls from this domain are ok", " * 'best-practice': How to treat best practice warnings. missing: ignored, else one of Hint, Warning, or Error", " * 'language': the language to validate with. If unspecified, this defaults to the language of the resource, then to english. This has the same syntax and semantics as the Accept-Language header", @@ -11663,6 +11664,15 @@ "module": "profile", "java": "java/R4.bundle-resolve-deep.json" }, + { + "name": "identifier-systems", + "file": "patient-identifiers.xml", + "description": "Check that identifier systems are valid", + "version": "4.0", + "module": "(default)", + "strictIdentifierSystems": true, + "java": "java/R4.identifier-systems-base.json" + }, { "name": "zzz", "file": "zzz.json", diff --git a/validator/outcomes/java/R4.identifier-systems-base.json b/validator/outcomes/java/R4.identifier-systems-base.json new file mode 100644 index 00000000..b11590e3 --- /dev/null +++ b/validator/outcomes/java/R4.identifier-systems-base.json @@ -0,0 +1,12 @@ +{ + "resourceType": "OperationOutcome", + "issue" : [{ + "severity" : "information", + "code" : "business-rule", + "details" : { + "text" : "Identifier.system is not based on example.org or example.com and is not a preferred URI of any identifier system NamingSystems. Ensure that the Identifier.system value is a properly defined system value" + }, + "diagnostics" : "[8,14]", + "expression" : ["Patient.identifier[0]"] + }] +} \ No newline at end of file diff --git a/validator/patient-identifiers.xml b/validator/patient-identifiers.xml new file mode 100644 index 00000000..23a3b9cf --- /dev/null +++ b/validator/patient-identifiers.xml @@ -0,0 +1,24 @@ + + + + + +
N/A
+
+ + + + + + + + + + + + + + + + +
\ No newline at end of file