Rename implySystem to inferSystem per TI decision

This commit is contained in:
Grahame Grieve 2023-08-13 19:55:52 +10:00
parent 2474c198c7
commit 1d4eefa62b
3 changed files with 8 additions and 8 deletions

View File

@ -523,7 +523,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
return doValidateCode(options, code, vs, false); return doValidateCode(options, code, vs, false);
} }
public ValidationResult doValidateCode(ValidationOptions options, Coding code, ValueSet vs, boolean implySystem) { public ValidationResult doValidateCode(ValidationOptions options, Coding code, ValueSet vs, boolean inferSystem) {
CacheToken cacheToken = txCache != null ? txCache.generateValidationToken(options, code, vs) : null; CacheToken cacheToken = txCache != null ? txCache.generateValidationToken(options, code, vs) : null;
ValidationResult res = null; ValidationResult res = null;
if (txCache != null) if (txCache != null)
@ -553,8 +553,8 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
try { try {
Parameters pIn = new Parameters(); Parameters pIn = new Parameters();
pIn.addParameter().setName("coding").setValue(code); pIn.addParameter().setName("coding").setValue(code);
if (implySystem) if (inferSystem)
pIn.addParameter().setName("implySystem").setValue(new BooleanType(true)); pIn.addParameter().setName("inferSystem").setValue(new BooleanType(true));
if (options != null) if (options != null)
setTerminologyOptions(options, pIn); setTerminologyOptions(options, pIn);
res = validateOnServer(vs, pIn); res = validateOnServer(vs, pIn);

View File

@ -914,7 +914,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
Parameters pIn = new Parameters(); Parameters pIn = new Parameters();
pIn.addParameter().setName("coding").setValue(t.getCoding()); pIn.addParameter().setName("coding").setValue(t.getCoding());
if (options.isGuessSystem()) { if (options.isGuessSystem()) {
pIn.addParameter().setName("implySystem").setValue(new BooleanType(true)); pIn.addParameter().setName("inferSystem").setValue(new BooleanType(true));
} }
if (vs != null) { if (vs != null) {
pIn.addParameter().setName("valueSet").setResource(vs); pIn.addParameter().setName("valueSet").setResource(vs);
@ -1030,7 +1030,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
Parameters pIn = new Parameters(); Parameters pIn = new Parameters();
pIn.addParameter().setName("coding").setValue(code); pIn.addParameter().setName("coding").setValue(code);
if (options.isGuessSystem()) { if (options.isGuessSystem()) {
pIn.addParameter().setName("implySystem").setValue(new BooleanType(true)); pIn.addParameter().setName("inferSystem").setValue(new BooleanType(true));
} }
setTerminologyOptions(options, pIn); setTerminologyOptions(options, pIn);
res = validateOnServer(vs, pIn, options); res = validateOnServer(vs, pIn, options);

View File

@ -1271,7 +1271,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
Parameters pIn = new Parameters(); Parameters pIn = new Parameters();
pIn.addParameter().setName("coding").setValue(coding); pIn.addParameter().setName("coding").setValue(coding);
if (options.isGuessSystem()) { if (options.isGuessSystem()) {
pIn.addParameter().setName("implySystem").setValue(new BooleanType(true)); pIn.addParameter().setName("inferSystem").setValue(new BooleanType(true));
} }
setTerminologyOptions(options, pIn); setTerminologyOptions(options, pIn);
return pIn; return pIn;
@ -1288,7 +1288,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
Parameters pIn = new Parameters(); Parameters pIn = new Parameters();
pIn.addParameter().setName("coding").setValue(codingValidationRequest.getCoding()); pIn.addParameter().setName("coding").setValue(codingValidationRequest.getCoding());
if (options.isGuessSystem()) { if (options.isGuessSystem()) {
pIn.addParameter().setName("implySystem").setValue(new BooleanType(true)); pIn.addParameter().setName("inferSystem").setValue(new BooleanType(true));
} }
if (valueSet != null) { if (valueSet != null) {
pIn.addParameter().setName("valueSet").setResource(valueSet); pIn.addParameter().setName("valueSet").setResource(valueSet);
@ -1301,7 +1301,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
Parameters pIn = new Parameters(); Parameters pIn = new Parameters();
pIn.addParameter().setName("coding").setValue(codingValidationRequest.getCoding()); pIn.addParameter().setName("coding").setValue(codingValidationRequest.getCoding());
if (options.isGuessSystem()) { if (options.isGuessSystem()) {
pIn.addParameter().setName("implySystem").setValue(new BooleanType(true)); pIn.addParameter().setName("inferSystem").setValue(new BooleanType(true));
} }
if (vsUrl != null) { if (vsUrl != null) {
pIn.addParameter().setName("url").setValue(new CanonicalType(vsUrl)); pIn.addParameter().setName("url").setValue(new CanonicalType(vsUrl));