From 6888355c84490c031b1ea3e7677a2560b6012cff Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 30 Sep 2024 17:23:56 +0800 Subject: [PATCH] compile fixes --- .../validation/instance/type/StructureMapValidator.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/StructureMapValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/StructureMapValidator.java index 100a25cb5..b65fbcbc4 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/StructureMapValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/StructureMapValidator.java @@ -339,9 +339,7 @@ public class StructureMapValidator extends BaseValidator { public boolean validateStructureMap(ValidationContext valContext, List errors, Element src, NodeStack stack) { boolean ok = true; - if ("http://smart.who.int/immunizations-measles/StructureMap/IMMZCQRToLM".equals(src.getNamedChildValue("url"))) { - DebugUtilities.breakpoint(); - } + List imports = src.getChildrenByName("import"); int cc = 0; for (Element import_ : imports) { @@ -1261,9 +1259,7 @@ public class StructureMapValidator extends BaseValidator { // target can transition to the source v = getParameter(errors, param, pstack, variables, StructureMapInputMode.TARGET); } - if (v == null) { - DebugUtilities.breakpoint(); - } + if (rule(errors, "2023-06-27", IssueType.INVALID, param.line(), param.col(), pstack.getLiteralPath(), v != null, I18nConstants.SM_DEPENDENT_PARAM_NOT_FOUND, pname, input.getMode().toCode(), variables.summary())) { if (rule(errors, "2023-03-01", IssueType.INVALID, param.line(), param.col(), pstack.getLiteralPath(), v.mode.equals(input.getMode().toCode()) || (v.mode.equals("target") && input.getMode() == StructureMapInputMode.SOURCE), I18nConstants.SM_DEPENDENT_PARAM_MODE_MISMATCH, param.getChildValue("name"), v.mode, input.getMode().toCode(), grp.getTargetGroup().getName()) &&