Fix using wrong resource type when validating constraints in data type definitions (R6)
This commit is contained in:
parent
78669add28
commit
ff81c16aeb
|
@ -574,7 +574,7 @@ public class StructureDefinitionValidator extends BaseValidator {
|
||||||
fpe.checkOnTypes(vc, rootPath, types, fpe.parse(exp), warnings);
|
fpe.checkOnTypes(vc, rootPath, types, fpe.parse(exp), warnings);
|
||||||
} else {
|
} else {
|
||||||
StructureDefinition sd = context.fetchTypeDefinition(rootPath);
|
StructureDefinition sd = context.fetchTypeDefinition(rootPath);
|
||||||
if (sd != null) {
|
if (sd != null && sd.getKind() == StructureDefinitionKind.RESOURCE) {
|
||||||
fpe.checkOnTypes(vc, rootPath, types, fpe.parse(exp), warnings);
|
fpe.checkOnTypes(vc, rootPath, types, fpe.parse(exp), warnings);
|
||||||
} else {
|
} else {
|
||||||
fpe.checkOnTypes(vc, "DomainResource", types, fpe.parse(exp), warnings);
|
fpe.checkOnTypes(vc, "DomainResource", types, fpe.parse(exp), warnings);
|
||||||
|
|
Loading…
Reference in New Issue