Handle unknown code systems properly

This commit is contained in:
Grahame Grieve 2023-05-22 17:15:29 +10:00
parent 95d8399992
commit 30290b9567
1 changed files with 17 additions and 2 deletions

View File

@ -123,6 +123,7 @@ public interface IWorkerContext {
private String diagnostics;
private List<OperationOutcomeIssueComponent> issues = new ArrayList<>();
private CodeableConcept codeableConcept;
private Set<String> unknownSystems;
@Override
public String toString() {
@ -240,6 +241,11 @@ public interface IWorkerContext {
return this;
}
public ValidationResult addToMessage(String message) {
this.message = this.message == null ? message : this.message +"; "+ message;
return this;
}
public ValidationResult setErrorClass(TerminologyServiceErrorClass errorClass) {
this.errorClass = errorClass;
return this;
@ -289,6 +295,15 @@ public interface IWorkerContext {
return codeableConcept;
}
public Set<String> getUnknownSystems() {
return unknownSystems;
}
public ValidationResult setUnknownSystems(Set<String> unknownSystems) {
this.unknownSystems = unknownSystems;
return this;
}
}
public class CodingValidationRequest {