Making LOINC filenames configurable; fix implicit ValueSet URL for loinc-all.

This commit is contained in:
Diederik Muylwyk 2019-08-27 13:46:42 -04:00
parent 1adfda44d9
commit 94c7fc49fd
2 changed files with 2 additions and 2 deletions

View File

@ -579,7 +579,7 @@ public class TerminologyLoaderSvcImpl implements IHapiTerminologyLoaderSvc {
ValueSet retVal = new ValueSet(); ValueSet retVal = new ValueSet();
retVal.setId("loinc-all"); retVal.setId("loinc-all");
retVal.setUrl("http://loinc.org/fhir/ValueSet/loinc-all"); retVal.setUrl("http://loinc.org/vs");
retVal.setVersion("1.0.0"); retVal.setVersion("1.0.0");
retVal.setName("All LOINC codes"); retVal.setName("All LOINC codes");
retVal.setStatus(Enumerations.PublicationStatus.ACTIVE); retVal.setStatus(Enumerations.PublicationStatus.ACTIVE);

View File

@ -259,7 +259,7 @@ public class TerminologyLoaderSvcLoincTest extends BaseLoaderTest {
// All LOINC codes // All LOINC codes
assertTrue(valueSets.containsKey("loinc-all")); assertTrue(valueSets.containsKey("loinc-all"));
vs = valueSets.get("loinc-all"); vs = valueSets.get("loinc-all");
assertEquals("http://loinc.org/fhir/ValueSet/loinc-all", vs.getUrl()); assertEquals("http://loinc.org/vs", vs.getUrl());
assertEquals("1.0.0", vs.getVersion()); assertEquals("1.0.0", vs.getVersion());
assertEquals("All LOINC codes", vs.getName()); assertEquals("All LOINC codes", vs.getName());
assertEquals(Enumerations.PublicationStatus.ACTIVE, vs.getStatus()); assertEquals(Enumerations.PublicationStatus.ACTIVE, vs.getStatus());