mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-09 14:31:17 +00:00
publication WG checking not for example resources
This commit is contained in:
parent
1326108207
commit
a6f43420d5
@ -521,6 +521,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
|
||||
private CodingsObserver codingObserver;
|
||||
public List<ValidatedFragment> validatedContent;
|
||||
public boolean testMode;
|
||||
private boolean example ;
|
||||
|
||||
public InstanceValidator(@Nonnull IWorkerContext theContext, @Nonnull IEvaluationContext hostServices, @Nonnull XVerExtensionManager xverManager) {
|
||||
super(theContext, xverManager, false);
|
||||
@ -5353,7 +5354,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
|
||||
}
|
||||
}
|
||||
|
||||
if (isHL7Core(element)) {
|
||||
if (isHL7Core(element) && !isExample()) {
|
||||
ok = checkPublisherConsistency(errors, element, stack) && ok;
|
||||
}
|
||||
}
|
||||
@ -7104,5 +7105,13 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
|
||||
this.testMode = testMode;
|
||||
}
|
||||
|
||||
|
||||
public boolean isExample() {
|
||||
return example;
|
||||
}
|
||||
|
||||
public IResourceValidator setExample(boolean example) {
|
||||
this.example = example;
|
||||
return this;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user