From 2735d828cec191622480e407c95577c2c03f0946 Mon Sep 17 00:00:00 2001 From: Prateek Keerthi Date: Tue, 19 Sep 2023 08:39:22 -0400 Subject: [PATCH] Removed redundant data in related artifacts --- .../cms/madie/madiefhirservice/cql/LibraryCqlVisitor.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/gov/cms/madie/madiefhirservice/cql/LibraryCqlVisitor.java b/src/main/java/gov/cms/madie/madiefhirservice/cql/LibraryCqlVisitor.java index a6bf1c01..8a1a1bf0 100644 --- a/src/main/java/gov/cms/madie/madiefhirservice/cql/LibraryCqlVisitor.java +++ b/src/main/java/gov/cms/madie/madiefhirservice/cql/LibraryCqlVisitor.java @@ -119,11 +119,6 @@ public String visitCodesystemDefinition(cqlParser.CodesystemDefinitionContext ct @Override public String visitCodeDefinition(cqlParser.CodeDefinitionContext ctx) { - - RelatedArtifact relatedArtifact = new RelatedArtifact(); - relatedArtifact.setDisplay(getUnquotedFullText(ctx.identifier())); - - relatedArtifact.setId(getUnquotedFullText(ctx.codeId())); String codeSystemName = getUnquotedFullText(ctx.codesystemIdentifier()); String code = getUnquotedFullText(ctx.codeId()); String codeName = getUnquotedFullText(ctx.identifier()); @@ -135,7 +130,6 @@ public String visitCodeDefinition(cqlParser.CodeDefinitionContext ctx) { String csName = getUnquotedFullText(cs.identifier()); String csUri = getUnquotedFullText(cs.codesystemId()); String csVersionUri = getUnquotedFullText(cs.versionSpecifier()); - relatedArtifact.setUrl(csUri); readableArtifacts .getTerminologyCodeModels() .add( @@ -148,7 +142,6 @@ public String visitCodeDefinition(cqlParser.CodeDefinitionContext ctx) { .isCodesystemVersionIncluded(csVersionUri != null) .datatype(null) .build()); - relatedArtifacts.add(relatedArtifact); }, () -> log.error(