ElementDefinition adornments

This commit is contained in:
Grahame Grieve 2022-05-05 23:09:55 +10:00
parent 264e79bc24
commit 7a7e3240b4
2 changed files with 17 additions and 1 deletions

View File

@ -11574,6 +11574,22 @@ When pattern[x] is used to constrain a complex object, it means that each proper
return "0".equals(getMax());
}
public boolean hasFixedOrPattern() {
return hasFixed() || hasPattern();
}
public DataType getFixedOrPattern() {
return hasFixed() ? getFixed() : getPattern();
}
public boolean isProhibited() {
return "0".equals(getMax());
}
public boolean isRequired() {
return getMin() == 1;
}
// end addition

View File

@ -19,7 +19,7 @@
<properties>
<hapi_fhir_version>5.4.0</hapi_fhir_version>
<validator_test_case_version>1.1.98</validator_test_case_version>
<validator_test_case_version>1.1.99-SNAPSHOT</validator_test_case_version>
<junit_jupiter_version>5.7.1</junit_jupiter_version>
<junit_platform_launcher_version>1.7.1</junit_platform_launcher_version>
<maven_surefire_version>3.0.0-M5</maven_surefire_version>