#1022 - fix expected type for Code Validation parameters

This commit is contained in:
Grahame Grieve 2022-11-30 11:04:47 +11:00
parent aaa53cdfb0
commit 8f9261febf
1 changed files with 7 additions and 4 deletions

View File

@ -1284,13 +1284,13 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
if (p.getName().equals("result")) {
ok = ((BooleanType) p.getValue()).getValue().booleanValue();
} else if (p.getName().equals("message")) {
message = ((StringType) p.getValue()).getValue();
message = p.getValue().primitiveValue();
} else if (p.getName().equals("display")) {
display = ((StringType) p.getValue()).getValue();
display = p.getValue().primitiveValue();
} else if (p.getName().equals("system")) {
system = ((StringType) p.getValue()).getValue();
system = p.getValue().primitiveValue();
} else if (p.getName().equals("code")) {
code = ((StringType) p.getValue()).getValue();
code = p.getValue().primitiveValue();
} else if (p.getName().equals("cause")) {
try {
IssueType it = IssueType.fromCode(((StringType) p.getValue()).getValue());
@ -2345,4 +2345,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
return this;
}
public void registerVSACRule(boolean byVersion) {
valueSets.registerSpecialRule(valueSets.new VSACRule(byVersion));
}
}