Skip to content

Commit

Permalink
Merge pull request #718 from lantanagroup/LNK-2089
Browse files Browse the repository at this point in the history
Adding case statements for additional validation result message ids
  • Loading branch information
smailliwcs committed Mar 11, 2024
2 parents bb792f2 + ea1a9c2 commit c9b5556
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ private static OperationOutcome.IssueType getIssueCode(String messageId) {
case "Terminology_PassThrough_TX_Message":
case "Terminology_TX_Code_ValueSet_Ext":
case "Terminology_TX_NoValid_17":
case "Terminology_TX_NoValid_16":
case "Terminology_TX_NoValid_3_CC":
return OperationOutcome.IssueType.CODEINVALID;
case "Extension_EXT_Unknown":
return OperationOutcome.IssueType.EXTENSION;
Expand All @@ -101,11 +103,15 @@ private static OperationOutcome.IssueType getIssueCode(String messageId) {
case "Validation_VAL_Profile_Minimum":
case "Validation_VAL_Profile_Maximum":
case "Extension_EXT_Type":
case "Validation_VAL_Profile_Unknown":
case "Reference_REF_NoDisplay":
return OperationOutcome.IssueType.STRUCTURE;
case "Type_Specific_Checks_DT_String_WS":
return OperationOutcome.IssueType.VALUE;
case "Terminology_TX_System_Unknown":
return OperationOutcome.IssueType.UNKNOWN;
case "Type_Specific_Checks_DT_Code_WS":
return OperationOutcome.IssueType.INVALID;
default:
return OperationOutcome.IssueType.NULL;
}
Expand Down

0 comments on commit c9b5556

Please sign in to comment.