diff --git a/validator/manifest.json b/validator/manifest.json index 1a9cd435..51f87ad4 100644 --- a/validator/manifest.json +++ b/validator/manifest.json @@ -37361,6 +37361,26 @@ } } }, + { + "name": "profile-default-value", + "file": "profile-default-value.xml", + "description": "Check default values are not allowed", + "version": "4.0", + "java": { + "outcome": { + "resourceType" : "OperationOutcome", + "issue" : [{ + "severity" : "error", + "code" : "invariant", + "details" : { + "text" : "Constraint failed: sdf-21: 'Default values can only be specified on specializations'" + }, + "diagnostics" : "[1,50]", + "expression" : ["StructureDefinition"] + }] + } + } + }, { "name": "zzz", "file": "zzz.json", diff --git a/validator/profile-default-value.xml b/validator/profile-default-value.xml new file mode 100644 index 00000000..3ad372a8 --- /dev/null +++ b/validator/profile-default-value.xml @@ -0,0 +1,20 @@ + + + + + + <status value="draft"/> + <date value="2017-09-06T06:30:54+00:00"/> + <fhirVersion value="4.0.1"/> + <kind value="resource"/> + <abstract value="false"/> + <type value="Patient"/> + <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> + <derivation value="constraint"/> + <differential> + <element id="Patient.active"> + <path value="Patient.active"/> + <defaultValueBoolean value="true"/> + </element> + </differential> +</StructureDefinition> \ No newline at end of file