Handle unknown code systems properly
This commit is contained in:
parent
95d8399992
commit
30290b9567
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue