diff --git a/src/main/java/gov/cms/madie/terminology/dto/Code.java b/src/main/java/gov/cms/madie/terminology/dto/Code.java index dbc6f4d..dfdba52 100644 --- a/src/main/java/gov/cms/madie/terminology/dto/Code.java +++ b/src/main/java/gov/cms/madie/terminology/dto/Code.java @@ -12,6 +12,7 @@ public class Code { private String svsVersion; // 'vsac' in the code-system-entry.json private String codeSystem; private String codeSystemOid; + private String codeSystemUrl; private CodeStatus status; private boolean versionIncluded; } diff --git a/src/main/java/gov/cms/madie/terminology/service/FhirTerminologyService.java b/src/main/java/gov/cms/madie/terminology/service/FhirTerminologyService.java index f6e2441..381dcf9 100644 --- a/src/main/java/gov/cms/madie/terminology/service/FhirTerminologyService.java +++ b/src/main/java/gov/cms/madie/terminology/service/FhirTerminologyService.java @@ -537,6 +537,7 @@ private Code retrieveCodes( .codeSystem(codeSystemName) .fhirVersion(fhirVersion) .svsVersion(vsacVersion) + .codeSystemUrl(codeSystem.getFullUrl()) .display(parameters.getParameter("display").getValue().toString()) .codeSystemOid(parameters.getParameter("Oid").getValue().toString()) .build(); diff --git a/src/test/java/gov/cms/madie/terminology/controller/VsacFhirTerminologyControllerTest.java b/src/test/java/gov/cms/madie/terminology/controller/VsacFhirTerminologyControllerTest.java index 7a41569..72a4233 100644 --- a/src/test/java/gov/cms/madie/terminology/controller/VsacFhirTerminologyControllerTest.java +++ b/src/test/java/gov/cms/madie/terminology/controller/VsacFhirTerminologyControllerTest.java @@ -243,6 +243,7 @@ void testGetCodesList() { .fhirVersion("2.72") .display("Bicarbonate [Moles/volume] in Serum") .codeSystemOid("2.16.840.1.113883.6.1") + .codeSystemUrl("https://loinc.org") .status(CodeStatus.valueOf("ACTIVE")) .build();