compile fixes

This commit is contained in:
Grahame Grieve 2024-11-02 19:24:52 +10:30
parent 4112da2191
commit f8456fb767
2 changed files with 2 additions and 6 deletions

View File

@ -33,6 +33,7 @@ import java.util.List;
import org.apache.commons.lang3.NotImplementedException;
import org.hl7.fhir.exceptions.DefinitionException;
import org.hl7.fhir.exceptions.FHIRException;
import org.hl7.fhir.r5.conformance.profile.ProfileUtilities;
import org.hl7.fhir.r5.context.ContextUtilities;
import org.hl7.fhir.r5.context.IWorkerContext;
@ -50,7 +51,6 @@ import org.hl7.fhir.r5.model.ResourceFactory;
import org.hl7.fhir.r5.model.StructureDefinition;
import org.hl7.fhir.r5.model.StructureDefinition.TypeDerivationRule;
import org.hl7.fhir.utilities.CommaSeparatedStringBuilder;
import org.hl7.fhir.utilities.DebugUtilities;
import org.hl7.fhir.utilities.Utilities;
/**
@ -343,7 +343,7 @@ public class PEBuilder {
if (list.size() == 0) {
profile = context.fetchResource(StructureDefinition.class, url);
if (profile == null) {
DebugUtilities.breakpoint();
throw new FHIRException("Unable to resolve profile "+url);
}
list = pu.getChildList(profile, profile.getSnapshot().getElementFirstRep());
}

View File

@ -42,7 +42,6 @@ import org.hl7.fhir.r5.model.ElementDefinition;
import org.hl7.fhir.r5.model.ElementDefinition.TypeRefComponent;
import org.hl7.fhir.r5.model.StructureDefinition;
import org.hl7.fhir.r5.profilemodel.PEDefinition.PEDefinitionElementMode;
import org.hl7.fhir.utilities.DebugUtilities;
import org.hl7.fhir.utilities.Utilities;
public abstract class PEDefinition {
@ -85,9 +84,6 @@ public abstract class PEDefinition {
this.builder = builder;
this.name = name;
this.profile = profile;
if (profile == null) {
DebugUtilities.breakpoint();
}
this.definition = definition;
this.path = path == null ? name : ppath+"."+name;
}