Fix for some old packages missing ElementDefinition.min

This commit is contained in:
Grahame Grieve 2022-10-14 08:34:52 +11:00
parent 85bd0ac6dc
commit 004519ccc8
2 changed files with 2 additions and 1 deletions

View File

@ -284,6 +284,7 @@ public class PackageVisitor {
private boolean corePackage(NpmPackage npm) { private boolean corePackage(NpmPackage npm) {
return npm != null && !Utilities.noString(npm.name()) && ( return npm != null && !Utilities.noString(npm.name()) && (
npm.name().startsWith("hl7.terminology") || npm.name().startsWith("hl7.terminology") ||
npm.name().startsWith("hl7.fhir.core") ||
npm.name().startsWith("hl7.fhir.r2.") || npm.name().startsWith("hl7.fhir.r2.") ||
npm.name().startsWith("hl7.fhir.r2b.") || npm.name().startsWith("hl7.fhir.r2b.") ||
npm.name().startsWith("hl7.fhir.r3.") || npm.name().startsWith("hl7.fhir.r3.") ||

View File

@ -3979,7 +3979,7 @@ public class ProfileUtilities extends TranslatingUtilities {
tracker.used = !max.getValue().equals("0"); tracker.used = !max.getValue().equals("0");
String hint = null; String hint = null;
if ("*".equals(max.getValue()) && 0 == min.getValue()) { if (max.hasValue() && min.hasValue() && "*".equals(max.getValue()) && 0 == min.getValue()) {
if (definition.hasExtension(ToolingExtensions.EXT_JSON_EMPTY)) { if (definition.hasExtension(ToolingExtensions.EXT_JSON_EMPTY)) {
String code = ToolingExtensions.readStringExtension(definition, ToolingExtensions.EXT_JSON_EMPTY); String code = ToolingExtensions.readStringExtension(definition, ToolingExtensions.EXT_JSON_EMPTY);
if ("present".equals(code)) { if ("present".equals(code)) {