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 String diagnostics;
|
||||||
private List<OperationOutcomeIssueComponent> issues = new ArrayList<>();
|
private List<OperationOutcomeIssueComponent> issues = new ArrayList<>();
|
||||||
private CodeableConcept codeableConcept;
|
private CodeableConcept codeableConcept;
|
||||||
|
private Set<String> unknownSystems;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -239,7 +240,12 @@ public interface IWorkerContext {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ValidationResult addToMessage(String message) {
|
||||||
|
this.message = this.message == null ? message : this.message +"; "+ message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public ValidationResult setErrorClass(TerminologyServiceErrorClass errorClass) {
|
public ValidationResult setErrorClass(TerminologyServiceErrorClass errorClass) {
|
||||||
this.errorClass = errorClass;
|
this.errorClass = errorClass;
|
||||||
return this;
|
return this;
|
||||||
|
@ -288,7 +294,16 @@ public interface IWorkerContext {
|
||||||
public CodeableConcept getCodeableConcept() {
|
public CodeableConcept getCodeableConcept() {
|
||||||
return codeableConcept;
|
return codeableConcept;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Set<String> getUnknownSystems() {
|
||||||
|
return unknownSystems;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ValidationResult setUnknownSystems(Set<String> unknownSystems) {
|
||||||
|
this.unknownSystems = unknownSystems;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CodingValidationRequest {
|
public class CodingValidationRequest {
|
||||||
|
|
Loading…
Reference in New Issue