Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jr 20240325 concept map unmatched codes #5809

Merged
merged 9 commits into from
Apr 2, 2024
Prev Previous commit
Next Next commit
fix broken test
  • Loading branch information
JasonRoberts-smile committed Mar 28, 2024
commit 4ed75178f7817696349300365b9b4e43e62ea8e7
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public void testImportCsvToConceptMapCommandNoTls(boolean theIncludeTls) throws
assertEquals(CS_URL_3, group.getTarget());
assertEquals("Version 3t", group.getTargetVersion());

assertEquals(4, group.getElement().size());
assertEquals(5, group.getElement().size());

source = group.getElement().get(0);
assertEquals("Code 2a", source.getCode());
Expand Down Expand Up @@ -323,6 +323,19 @@ public void testImportCsvToConceptMapCommandNoTls(boolean theIncludeTls) throws
assertEquals(ConceptMapEquivalence.EQUAL, target.getEquivalence());
assertEquals("3d This is a comment.", target.getComment());

// ensure unmatched codes are handled correctly
source = group.getElement().get(4);
assertEquals("Code 2e", source.getCode());
assertEquals("Display 2e", source.getDisplay());

assertEquals(1, source.getTarget().size());

target = source.getTarget().get(0);
assertNull(target.getCode());
assertNull(target.getDisplay());
assertEquals(ConceptMapEquivalence.UNMATCHED, target.getEquivalence());
assertEquals("3e This is a comment.", target.getComment());

App.main(myTlsAuthenticationTestHelper.createBaseRequestGeneratingCommandArgs(
new String[]{
ImportCsvToConceptMapCommand.COMMAND,
Expand Down
Loading