From fe86ab1d7c1dec0331a513782129b1fbe2f86d9e Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 21 Apr 2023 18:52:36 +0800 Subject: [PATCH 1/6] reorg server settings --- .../txClient/TerminologyClientFactory.java | 4 +-- .../utils/client/FHIRToolingClientTest.java | 5 ++-- .../java/org/hl7/fhir/utilities/Servers.java | 13 ---------- .../org/hl7/fhir/utilities/Utilities.java | 5 ++++ .../hl7/fhir/utilities/npm/NpmPackage.java | 4 +++ .../fhir/utilities/settings/FhirSettings.java | 25 ++++++++++++++++++- .../utilities/settings/FhirSettingsPOJO.java | 12 +++++++++ .../org/hl7/fhir/validation/ValidatorCli.java | 3 +++ .../fhir/validation/cli/model/CliContext.java | 5 ++-- .../hl7/fhir/validation/cli/utils/Common.java | 5 ++-- .../comparison/tests/ComparisonTests.java | 5 ++-- .../ExternalTerminologyServiceTests.java | 7 +++--- .../validation/ResourceValidationTests.java | 5 ++-- .../tests/ValidationEngineTests.java | 7 +++--- .../validation/tests/ValidationTests.java | 3 ++- 15 files changed, 75 insertions(+), 33 deletions(-) delete mode 100644 org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Servers.java diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientFactory.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientFactory.java index 0603dba05..56cc4ae74 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientFactory.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/txClient/TerminologyClientFactory.java @@ -4,7 +4,7 @@ import java.net.URISyntaxException; import org.hl7.fhir.r5.terminologies.TerminologyClient; import org.hl7.fhir.utilities.FhirPublication; -import org.hl7.fhir.utilities.Servers; + import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.VersionUtilities; @@ -61,7 +61,7 @@ public class TerminologyClientFactory { private static String checkEndsWith(String term, String url) { if (url.endsWith(term)) return url; - if (Servers.isTxFhirOrg(url)) { + if (Utilities.isTxFhirOrgServer(url)) { return Utilities.pathURL(url, term); } return url; diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/utils/client/FHIRToolingClientTest.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/utils/client/FHIRToolingClientTest.java index 56ed41179..6987d1fc0 100644 --- a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/utils/client/FHIRToolingClientTest.java +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/utils/client/FHIRToolingClientTest.java @@ -21,7 +21,8 @@ import org.hl7.fhir.r5.model.Resource; import org.hl7.fhir.r5.model.TerminologyCapabilities; import org.hl7.fhir.r5.utils.client.network.Client; import org.hl7.fhir.r5.utils.client.network.ResourceRequest; -import org.hl7.fhir.utilities.Servers; + +import org.hl7.fhir.utilities.settings.FhirSettings; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -38,7 +39,7 @@ import static org.mockito.Mockito.times; class FHIRToolingClientTest { - String TX_ADDR = Servers.TX_SERVER_DEV; + String TX_ADDR = FhirSettings.getTxFhirDevelopment(); Header h1 = new Header("header1", "value1"); Header h2 = new Header("header2", "value2"); diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Servers.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Servers.java deleted file mode 100644 index dbc64d4aa..000000000 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Servers.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.hl7.fhir.utilities; - -public class Servers { - - public static final String TX_SERVER_PROD = "http://tx.fhir.org"; - public static final String TX_SERVER_DEV = "http://tx-dev.fhir.org"; - public static final String TX_SERVER_LOCAL = "http://local.fhir.org"; - - public static boolean isTxFhirOrg(String s) { - return Utilities.startsWithInList(s.replace("https://", "http://"), TX_SERVER_PROD, TX_SERVER_DEV, TX_SERVER_LOCAL); - } - -} diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java index 76371ab78..7710748d1 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java @@ -64,6 +64,7 @@ import java.util.zip.ZipInputStream; import org.apache.commons.io.FileUtils; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.utilities.FileNotifier.FileNotifier2; +import org.hl7.fhir.utilities.settings.FhirSettings; import javax.annotation.Nullable; @@ -1961,4 +1962,8 @@ public class Utilities { //} + public static boolean isTxFhirOrgServer(String s) { + return Utilities.startsWithInList(s.replace("https://", "http://"), FhirSettings.getTxFhirProduction(), FhirSettings.getTxFhirDevelopment(), FhirSettings.getTxFhirLocal()); + } + } diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java index 8f8a6ef18..b5b3679da 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java @@ -1224,6 +1224,10 @@ public class NpmPackage { public String toString() { return "NpmPackage "+name()+"#"+version()+" [path=" + path + "]"; } + + public String getFilePath(String d) throws IOException { + return Utilities.path(path, "package", d); + } } \ No newline at end of file diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettings.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettings.java index 2f4e74c5a..c9e95f671 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettings.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettings.java @@ -11,9 +11,9 @@ import java.io.IOException; import java.io.InputStream; - public class FhirSettings { + public static final String FHIR_SETTINGS_PATH = "fhir.settings.path"; private static String explicitFilePath = null; private static Boolean prohibitNetworkAccess; @@ -136,6 +136,28 @@ public class FhirSettings { prohibitNetworkAccess = value; } + + public static String getTxFhirProduction() { + getInstance(); + return instance.fhirSettings.getTxFhirProduction() == null + ? FhirSettingsPOJO.TX_SERVER_PROD + : instance.fhirSettings.getTxFhirProduction(); + } + + public static String getTxFhirDevelopment() { + getInstance(); + return instance.fhirSettings.getTxFhirDevelopment() == null + ? FhirSettingsPOJO.TX_SERVER_PROD + : instance.fhirSettings.getTxFhirDevelopment(); + } + + public static String getTxFhirLocal() { + getInstance(); + return instance.fhirSettings.getTxFhirLocal() == null + ? FhirSettingsPOJO.TX_SERVER_PROD + : instance.fhirSettings.getTxFhirLocal(); + } + private static FhirSettings instance = null; private static FhirSettings getInstance() { @@ -187,4 +209,5 @@ public class FhirSettings { protected static String getDefaultSettingsPath() throws IOException { return Utilities.path(System.getProperty("user.home"), ".fhir", "fhir-settings.json"); } + } diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettingsPOJO.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettingsPOJO.java index 72a832984..170a2724e 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettingsPOJO.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettingsPOJO.java @@ -13,6 +13,11 @@ import java.util.Map; @AllArgsConstructor public class FhirSettingsPOJO { + + protected static final String TX_SERVER_PROD = "http://tx.fhir.org"; + protected static final String TX_SERVER_DEV = "http://tx-dev.fhir.org"; + protected static final String TX_SERVER_LOCAL = "http://local.fhir.org"; + private String fhirDirectory; private Map apiKeys; @@ -30,6 +35,10 @@ public class FhirSettingsPOJO { private Boolean prohibitNetworkAccess; + private String txFhirProduction; + private String txFhirDevelopment; + private String txFhirLocal; + protected FhirSettingsPOJO() { apiKeys = null; npmPath = null; @@ -38,5 +47,8 @@ public class FhirSettingsPOJO { diffToolPath = null; tempPath = null; testIgsPath = null; + txFhirProduction = TX_SERVER_PROD; + txFhirDevelopment = TX_SERVER_DEV; + txFhirLocal = TX_SERVER_LOCAL; } } diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidatorCli.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidatorCli.java index 3b1f618a9..d6dd2d9bd 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidatorCli.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidatorCli.java @@ -335,6 +335,9 @@ public class ValidatorCli { case SNAPSHOT: validationService.generateSnapshot(cliContext, validator); break; + case INSTALL: + validationService.install(cliContext, validator); + break; case SPREADSHEET: validationService.generateSpreadsheet(cliContext, validator); break; diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/model/CliContext.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/model/CliContext.java index 176c3640e..5a94bbf06 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/model/CliContext.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/model/CliContext.java @@ -9,8 +9,9 @@ import java.util.Objects; import org.hl7.fhir.r5.terminologies.JurisdictionUtilities; import org.hl7.fhir.r5.utils.validation.BundleValidationRule; -import org.hl7.fhir.utilities.Servers; + import org.hl7.fhir.utilities.VersionUtilities; +import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.validation.cli.utils.EngineMode; import org.hl7.fhir.validation.cli.utils.QuestionnaireMode; import org.hl7.fhir.validation.cli.utils.ValidationLevel; @@ -62,7 +63,7 @@ public class CliContext { @JsonProperty("htmlOutput") private String htmlOutput = null; @JsonProperty("txServer") - private String txServer = Servers.TX_SERVER_PROD; + private String txServer = FhirSettings.getTxFhirProduction(); @JsonProperty("sv") private String sv = null; @JsonProperty("txLog") diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Common.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Common.java index f047240bf..c45c13144 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Common.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Common.java @@ -2,9 +2,10 @@ package org.hl7.fhir.validation.cli.utils; import org.hl7.fhir.r5.model.Constants; import org.hl7.fhir.utilities.FhirPublication; -import org.hl7.fhir.utilities.Servers; + import org.hl7.fhir.utilities.TimeTracker; import org.hl7.fhir.utilities.VersionUtilities; +import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.validation.ValidationEngine; public class Common { @@ -75,7 +76,7 @@ public class Common { * Default validation engine will point to "http://tx.fhir.org" terminology server. */ public static ValidationEngine getValidationEngine(String version, String definitions, String txLog, TimeTracker tt) throws Exception { - return getValidationEngine(version, Servers.TX_SERVER_PROD, definitions, txLog, tt); + return getValidationEngine(version, FhirSettings.getTxFhirProduction(), definitions, txLog, tt); } public static ValidationEngine getValidationEngine(String version, String txServer, String definitions, String txLog, TimeTracker tt) throws Exception { diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/comparison/tests/ComparisonTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/comparison/tests/ComparisonTests.java index 7c09589b9..f57412913 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/comparison/tests/ComparisonTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/comparison/tests/ComparisonTests.java @@ -46,7 +46,7 @@ import org.hl7.fhir.r5.model.Resource; import org.hl7.fhir.r5.model.StructureDefinition; import org.hl7.fhir.r5.model.ValueSet; import org.hl7.fhir.r5.test.utils.TestingUtilities; -import org.hl7.fhir.utilities.Servers; + import org.hl7.fhir.utilities.TextFile; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.VersionUtilities; @@ -54,6 +54,7 @@ import org.hl7.fhir.utilities.npm.CommonPackages; import org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager; import org.hl7.fhir.utilities.npm.NpmPackage; import org.hl7.fhir.utilities.npm.ToolsVersion; +import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.utilities.validation.ValidationMessage; import org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity; import org.hl7.fhir.utilities.xhtml.XhtmlComposer; @@ -94,7 +95,7 @@ public class ComparisonTests { private static IWorkerContext context; private JsonObject content; - private static final String DEF_TX = Servers.TX_SERVER_DEV; + private static final String DEF_TX = FhirSettings.getTxFhirDevelopment(); private static final String HEADER = ""; private static final String BREAK = "
"; private static final String FOOTER = ""; diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/ExternalTerminologyServiceTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/ExternalTerminologyServiceTests.java index 1f748f03a..5c9982ddc 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/ExternalTerminologyServiceTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/ExternalTerminologyServiceTests.java @@ -22,8 +22,9 @@ import org.hl7.fhir.r5.formats.XmlParser; import org.hl7.fhir.r5.model.Constants; import org.hl7.fhir.r5.model.Resource; import org.hl7.fhir.r5.test.utils.TestingUtilities; -import org.hl7.fhir.utilities.Servers; + import org.hl7.fhir.utilities.json.model.JsonObject; +import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.validation.special.TxTester; import org.hl7.fhir.validation.special.TxTester.ITxTesterLoader; @@ -47,8 +48,8 @@ public class ExternalTerminologyServiceTests implements ITxTesterLoader { private JsonObject test; } - private static final String SERVER = Servers.TX_SERVER_DEV; -// private static final String SERVER = Servers.TX_SERVER_LOCAL; + private static final String SERVER = FhirSettings.getTxFhirDevelopment(); +// private static final String SERVER = FhirSettings.getTxFhirLocal(); @Parameters(name = "{index}: id {0}") public static Iterable data() throws IOException { diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/ResourceValidationTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/ResourceValidationTests.java index 8d350a0b7..098066fba 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/ResourceValidationTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/ResourceValidationTests.java @@ -25,8 +25,9 @@ import org.hl7.fhir.r5.test.utils.CompareUtilities; import org.hl7.fhir.r5.test.utils.TestingUtilities; import org.hl7.fhir.r5.utils.validation.IResourceValidator; import org.hl7.fhir.utilities.FhirPublication; -import org.hl7.fhir.utilities.Servers; + import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.utilities.validation.ValidationMessage; import org.hl7.fhir.validation.instance.InstanceValidator; import org.hl7.fhir.validation.tests.ValidationEngineTests; @@ -47,7 +48,7 @@ public class ResourceValidationTests { TestingUtilities.injectCorePackageLoader(); if (val == null) { ctxt = TestingUtilities.getSharedWorkerContext(); - engine = TestUtilities.getValidationEngine("hl7.fhir.r5.core#5.0.0", Servers.TX_SERVER_DEV, null, FhirPublication.R5, true, "5.0.0"); + engine = TestUtilities.getValidationEngine("hl7.fhir.r5.core#5.0.0", FhirSettings.getTxFhirDevelopment(), null, FhirPublication.R5, true, "5.0.0"); val = engine.getValidator(null); val.setDebug(false); } diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationEngineTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationEngineTests.java index dc79c88cb..bd0c566e5 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationEngineTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationEngineTests.java @@ -4,7 +4,8 @@ import java.util.ArrayList; import java.util.List; import org.hl7.fhir.utilities.FhirPublication; -import org.hl7.fhir.utilities.Servers; + +import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.utilities.tests.CacheVerificationLogger; import org.hl7.fhir.r5.elementmodel.Manager.FhirFormat; import org.hl7.fhir.r5.model.OperationOutcome; @@ -21,8 +22,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue; public class ValidationEngineTests { - private static final String DEF_TX = Servers.TX_SERVER_DEV; -// private static final String DEF_TX = Servers.TX_SERVER_LOCAL; + private static final String DEF_TX = FhirSettings.getTxFhirDevelopment(); +// private static final String DEF_TX = FhirSettings.getTxFhirLocal(); public static boolean inbuild; diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTests.java index bb3ac87d9..6fefd8b33 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTests.java @@ -72,6 +72,7 @@ import org.hl7.fhir.utilities.SimpleHTTPClient.HTTPResult; import org.hl7.fhir.utilities.json.JsonTrackingParser; import org.hl7.fhir.utilities.json.JsonUtilities; import org.hl7.fhir.utilities.npm.NpmPackage; +import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.utilities.validation.ValidationMessage; import org.hl7.fhir.validation.IgLoader; import org.hl7.fhir.validation.ValidationEngine; @@ -404,7 +405,7 @@ public class ValidationTests implements IEvaluationContext, IValidatorResourceFe private ValidationEngine buildVersionEngine(String ver, String txLog) throws Exception { - String server = Servers.TX_SERVER_DEV; + String server = FhirSettings.getTxFhirDevelopment(); switch (ver) { case "1.0": return TestUtilities.getValidationEngine("hl7.fhir.r2.core#1.0.2", server, txLog, FhirPublication.DSTU2, true, "1.0.2"); case "1.4": return TestUtilities.getValidationEngine("hl7.fhir.r2b.core#1.4.0", server, txLog, FhirPublication.DSTU2016May, true, "1.4.0"); From 1498823d5f7157a1cb8c4766e32d024f66894bf7 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 21 Apr 2023 18:53:03 +0800 Subject: [PATCH 2/6] fix error processing nucc locally --- .../hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java | 9 +++++++-- .../src/main/resources/Messages.properties | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java index 4b1428ce3..4394866f5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java @@ -359,8 +359,13 @@ public class ValueSetCheckerSimple extends ValueSetWorker implements ValueSetChe } if (!inExpansion) { if (valueset != null && valueset.hasExpansion()) { - String msg = context.formatMessage(I18nConstants.CODESYSTEM_CS_UNK_EXPANSION, valueset.getUrl(), code.getCode().toString(), code.getSystem()); - return new ValidationResult(IssueSeverity.ERROR, msg, makeIssue(IssueSeverity.ERROR, IssueType.NOTFOUND, path, msg)); + String msg = context.formatMessage(I18nConstants.CODESYSTEM_CS_UNK_EXPANSION, + valueset.getUrl(), + code.getSystem(), + code.getCode().toString()); + List issues = new ArrayList<>(); + issues.addAll(makeIssue(IssueSeverity.ERROR, IssueType.NOTFOUND, path, msg)); + throw new VSCheckerException(msg, issues); } else { List issues = new ArrayList<>(); issues.addAll(makeIssue(IssueSeverity.ERROR, IssueType.NOTFOUND, path+".system", warningMessage)); diff --git a/org.hl7.fhir.utilities/src/main/resources/Messages.properties b/org.hl7.fhir.utilities/src/main/resources/Messages.properties index f39e1f169..335d99003 100644 --- a/org.hl7.fhir.utilities/src/main/resources/Messages.properties +++ b/org.hl7.fhir.utilities/src/main/resources/Messages.properties @@ -720,7 +720,7 @@ SD_VALUE_TYPE_IILEGAL = The element {0} has a {1} of type {2}, which is not in t SD_VALUE_TYPE_REPEAT_HINT = The repeating element has a {1}. The {1} will apply to all the repeats (this has not been clear to all users) SD_VALUE_TYPE_REPEAT_WARNING_DOTNET = The repeating element has a {1} value for a primitive type. The DotNet validator will not apply this to all the repeats - this is an error SD_NO_TYPES_OR_CONTENTREF = The element {0} has no assigned types, and no content reference -CODESYSTEM_CS_UNK_EXPANSION = The code provided ({2}) is not in the value set {0}, and a code is required from this value set. The system {1} is unknown. +CODESYSTEM_CS_UNK_EXPANSION = The code provided ({2}) is not in the expansion in the value set {0}, and a code is required from this value set. The system {1} is unknown. BUNDLE_SEARCH_NOSELF = SearchSet Bundles should have a self link that specifies what the search was BUNDLE_SEARCH_SELF_NOT_UNDERSTOOD = No types could be determined from the search string, so the types can''t be checked BUNDLE_SEARCH_ENTRY_NO_RESOURCE = SearchSet Bundle Entries must have resources From fbaff6cdb07344a6c2be8ec8d6f5635aba3b8e13 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 21 Apr 2023 18:53:20 +0800 Subject: [PATCH 3/6] add -install for packages --- .../hl7/fhir/validation/ValidationEngine.java | 6 +++ .../cli/services/ValidationService.java | 43 ++++++++++++++++++- .../fhir/validation/cli/utils/EngineMode.java | 3 +- .../hl7/fhir/validation/cli/utils/Params.java | 3 ++ .../tests/NativeHostServiceTester.java | 5 ++- 5 files changed, 56 insertions(+), 4 deletions(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java index 40851c583..90235c7c0 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java @@ -2,6 +2,7 @@ package org.hl7.fhir.validation; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; +import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; @@ -1114,4 +1115,9 @@ public class ValidationEngine implements IValidatorResourceFetcher, IValidationP } + public Resource loadResource(byte[] content, String fn) throws FHIRException, IOException { + return igLoader.loadResourceByVersion(version, content, fn); + + } + } \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ValidationService.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ValidationService.java index 9a490a8a0..5c575294d 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ValidationService.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ValidationService.java @@ -2,6 +2,7 @@ package org.hl7.fhir.validation.cli.services; import java.io.ByteArrayInputStream; import java.io.File; +import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintStream; @@ -16,6 +17,7 @@ import java.util.Locale; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.conformance.R5ExtensionsLoader; +import org.hl7.fhir.r5.conformance.profile.ProfileUtilities; import org.hl7.fhir.r5.context.ContextUtilities; import org.hl7.fhir.r5.context.SimpleWorkerContext; import org.hl7.fhir.r5.context.SystemOutLoggingService; @@ -51,6 +53,7 @@ import org.hl7.fhir.utilities.i18n.LanguageFileProducer.LanguageProducerSession; import org.hl7.fhir.utilities.i18n.PoGetTextProducer; import org.hl7.fhir.utilities.i18n.XLIFFProducer; import org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager; +import org.hl7.fhir.utilities.npm.NpmPackage; import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.utilities.validation.ValidationMessage; import org.hl7.fhir.validation.Content; @@ -480,7 +483,7 @@ public class ValidationService { } public String determineVersion(CliContext cliContext, String sessionId) throws Exception { - if (cliContext.getMode() != EngineMode.VALIDATION) { + if (cliContext.getMode() != EngineMode.VALIDATION && cliContext.getMode() != EngineMode.INSTALL) { return "5.0"; } System.out.println("Scanning for versions (no -version parameter):"); @@ -637,4 +640,42 @@ public class ValidationService { // System.exit(ec > 0 ? 1 : 0); // // } + + private int cp; + private int cs; + public void install(CliContext cliContext, ValidationEngine validator) throws FHIRException, IOException { + cp = 0; + cs = 0; + System.out.println("Generating Snapshots"); + for (String ig : cliContext.getIgs()) { + processIG(validator, ig); + } + System.out.println("Installed/Processed "+cp+" packages, generated "+cs+" snapshots"); + } + + private void processIG(ValidationEngine validator, String ig) throws FHIRException, IOException { + validator.loadPackage(ig, null); + NpmPackage npm = validator.getPcm().loadPackage(ig); + if (!npm.isCore()) { + for (String d : npm.dependencies()) { + processIG(validator, d); + } + System.out.println("Processing "+ig); + cp++; + for (String d : npm.listResources("StructureDefinition")) { + String filename = npm.getFilePath(d); + Resource res = validator.loadResource(TextFile.fileToBytes(filename), filename); + if (!(res instanceof StructureDefinition)) + throw new FHIRException("Require a StructureDefinition for generating a snapshot"); + StructureDefinition sd = (StructureDefinition) res; + if (!sd.hasSnapshot()) { + StructureDefinition base = validator.getContext().fetchResource(StructureDefinition.class, sd.getBaseDefinition()); + cs++; + new ProfileUtilities(validator.getContext(), null, null).setAutoFixSliceNames(true).generateSnapshot(base, sd, sd.getUrl(), null, sd.getName()); + validator.handleOutput(sd, filename, validator.getVersion()); + } + } + } + } + } diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/EngineMode.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/EngineMode.java index 73c76b03e..e9765247b 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/EngineMode.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/EngineMode.java @@ -12,5 +12,6 @@ public enum EngineMode { SPREADSHEET, FHIRPATH, VERSION, - RUN_TESTS + RUN_TESTS, + INSTALL } diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Params.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Params.java index 7aab8bd95..fcb6cb8b6 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Params.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/utils/Params.java @@ -44,6 +44,7 @@ public class Params { public static final String LANG_TRANSFORM = "-lang-transform"; public static final String NARRATIVE = "-narrative"; public static final String SNAPSHOT = "-snapshot"; + public static final String INSTALL = "-install"; public static final String SCAN = "-scan"; public static final String TERMINOLOGY = "-tx"; public static final String TERMINOLOGY_LOG = "-txLog"; @@ -261,6 +262,8 @@ public class Params { cliContext.setMode(EngineMode.SPREADSHEET); } else if (args[i].equals(SNAPSHOT)) { cliContext.setMode(EngineMode.SNAPSHOT); + } else if (args[i].equals(INSTALL)) { + cliContext.setMode(EngineMode.INSTALL); } else if (args[i].equals(RUN_TESTS)) { // TODO setBaseTestingUtils test directory cliContext.setMode(EngineMode.RUN_TESTS); diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/NativeHostServiceTester.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/NativeHostServiceTester.java index 4144e57c9..bdf9db48e 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/NativeHostServiceTester.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/NativeHostServiceTester.java @@ -2,8 +2,9 @@ package org.hl7.fhir.validation.tests; import org.hl7.fhir.r5.elementmodel.Manager.FhirFormat; import org.hl7.fhir.r5.test.utils.TestingUtilities; -import org.hl7.fhir.utilities.Servers; + import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.utilities.settings.FhirSettings; import org.hl7.fhir.validation.NativeHostServices; import org.junit.jupiter.api.Test; @@ -20,7 +21,7 @@ public class NativeHostServiceTester { NativeHostServices svc = new NativeHostServices(); svc.init("hl7.fhir.r4.core#4.0.1"); - svc.connectToTxSvc(Utilities.path(Servers.TX_SERVER_DEV, "r4"), null, getTerminologyCacheDirectory("nativeHost").toString()); + svc.connectToTxSvc(Utilities.path(FhirSettings.getTxFhirDevelopment(), "r4"), null, getTerminologyCacheDirectory("nativeHost").toString()); msg("base: "+svc.status()); svc.seeResource(TestingUtilities.loadTestResourceBytes("validator", "misc", "ValueSet-dicm-2-AnatomicModifier.json"), FhirFormat.JSON); From 907126703f325dbe8837082a5b51fd2ad57c94e7 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sat, 22 Apr 2023 18:55:56 +0800 Subject: [PATCH 4/6] fix default server settings --- .../java/org/hl7/fhir/utilities/settings/FhirSettings.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettings.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettings.java index c9e95f671..4d7b8130a 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettings.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/settings/FhirSettings.java @@ -147,14 +147,14 @@ public class FhirSettings { public static String getTxFhirDevelopment() { getInstance(); return instance.fhirSettings.getTxFhirDevelopment() == null - ? FhirSettingsPOJO.TX_SERVER_PROD + ? FhirSettingsPOJO.TX_SERVER_DEV : instance.fhirSettings.getTxFhirDevelopment(); } public static String getTxFhirLocal() { getInstance(); return instance.fhirSettings.getTxFhirLocal() == null - ? FhirSettingsPOJO.TX_SERVER_PROD + ? FhirSettingsPOJO.TX_SERVER_LOCAL : instance.fhirSettings.getTxFhirLocal(); } From 20f73e2094db3d37019a53dc5f6fc42eb3b2f97d Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 24 Apr 2023 23:07:09 +1000 Subject: [PATCH 5/6] fix spelling mistakes --- .../main/java/org/hl7/fhir/dstu2/utils/ProfileUtilities.java | 2 +- .../java/org/hl7/fhir/dstu2016may/utils/ProfileUtilities.java | 2 +- .../java/org/hl7/fhir/dstu3/conformance/ProfileUtilities.java | 2 +- .../main/java/org/hl7/fhir/r4/conformance/ProfileUtilities.java | 2 +- .../hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/utils/ProfileUtilities.java b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/utils/ProfileUtilities.java index 88e32acb1..ca24f79f5 100644 --- a/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/utils/ProfileUtilities.java +++ b/org.hl7.fhir.dstu2/src/main/java/org/hl7/fhir/dstu2/utils/ProfileUtilities.java @@ -508,7 +508,7 @@ public class ProfileUtilities { if (!orderMatches(dSlice.getOrderedElement(), bSlice.getOrderedElement())) throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - order @ "+path+" ("+contextName+")"); if (!discriiminatorMatches(dSlice.getDiscriminator(), bSlice.getDiscriminator())) - throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - disciminator @ "+path+" ("+contextName+")"); + throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - discriminator @ "+path+" ("+contextName+")"); if (!ruleMatches(dSlice.getRules(), bSlice.getRules())) throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - rule @ "+path+" ("+contextName+")"); } diff --git a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/utils/ProfileUtilities.java b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/utils/ProfileUtilities.java index 52d515fd8..45b709c61 100644 --- a/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/utils/ProfileUtilities.java +++ b/org.hl7.fhir.dstu2016may/src/main/java/org/hl7/fhir/dstu2016may/utils/ProfileUtilities.java @@ -509,7 +509,7 @@ public class ProfileUtilities { if (!orderMatches(dSlice.getOrderedElement(), bSlice.getOrderedElement())) throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - order @ "+path+" ("+contextName+")"); if (!discriiminatorMatches(dSlice.getDiscriminator(), bSlice.getDiscriminator())) - throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - disciminator @ "+path+" ("+contextName+")"); + throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - discriminator @ "+path+" ("+contextName+")"); if (!ruleMatches(dSlice.getRules(), bSlice.getRules())) throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - rule @ "+path+" ("+contextName+")"); } diff --git a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/conformance/ProfileUtilities.java b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/conformance/ProfileUtilities.java index 428ae8d96..665f07f06 100644 --- a/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/conformance/ProfileUtilities.java +++ b/org.hl7.fhir.dstu3/src/main/java/org/hl7/fhir/dstu3/conformance/ProfileUtilities.java @@ -678,7 +678,7 @@ public class ProfileUtilities extends TranslatingUtilities { if (dSlice.hasOrderedElement() && bSlice.hasOrderedElement() && !orderMatches(dSlice.getOrderedElement(), bSlice.getOrderedElement())) throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - order @ "+path+" ("+contextName+")"); if (!discriminatorMatches(dSlice.getDiscriminator(), bSlice.getDiscriminator())) - throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - disciminator @ "+path+" ("+contextName+")"); + throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - discriminator @ "+path+" ("+contextName+")"); if (!ruleMatches(dSlice.getRules(), bSlice.getRules())) throw new DefinitionException("Slicing rules on differential ("+summariseSlicing(dSlice)+") do not match those on base ("+summariseSlicing(bSlice)+") - rule @ "+path+" ("+contextName+")"); } diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/conformance/ProfileUtilities.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/conformance/ProfileUtilities.java index 72e18c208..658e8b834 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/conformance/ProfileUtilities.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/conformance/ProfileUtilities.java @@ -970,7 +970,7 @@ public class ProfileUtilities extends TranslatingUtilities { if (dSlice.hasOrderedElement() && bSlice.hasOrderedElement() && !orderMatches(dSlice.getOrderedElement(), bSlice.getOrderedElement())) throw new DefinitionException("Slicing rules on differential ("+summarizeSlicing(dSlice)+") do not match those on base ("+summarizeSlicing(bSlice)+") - order @ "+path+" ("+contextName+")"); if (!discriminatorMatches(dSlice.getDiscriminator(), bSlice.getDiscriminator())) - throw new DefinitionException("Slicing rules on differential ("+summarizeSlicing(dSlice)+") do not match those on base ("+summarizeSlicing(bSlice)+") - disciminator @ "+path+" ("+contextName+")"); + throw new DefinitionException("Slicing rules on differential ("+summarizeSlicing(dSlice)+") do not match those on base ("+summarizeSlicing(bSlice)+") - discriminator @ "+path+" ("+contextName+")"); if (!ruleMatches(dSlice.getRules(), bSlice.getRules())) throw new DefinitionException("Slicing rules on differential ("+summarizeSlicing(dSlice)+") do not match those on base ("+summarizeSlicing(bSlice)+") - rule @ "+path+" ("+contextName+")"); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java index f295632cf..e5d5ca58b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfilePathProcessor.java @@ -878,7 +878,7 @@ public class ProfilePathProcessor { if (dSlice.hasOrderedElement() && bSlice.hasOrderedElement() && !profileUtilities.orderMatches(dSlice.getOrderedElement(), bSlice.getOrderedElement())) throw new DefinitionException(profileUtilities.getContext().formatMessage(I18nConstants.SLICING_RULES_ON_DIFFERENTIAL__DO_NOT_MATCH_THOSE_ON_BASE___ORDER___, profileUtilities.summarizeSlicing(dSlice), profileUtilities.summarizeSlicing(bSlice), path, cursors.contextName)); if (!profileUtilities.discriminatorMatches(dSlice.getDiscriminator(), bSlice.getDiscriminator())) - throw new DefinitionException(profileUtilities.getContext().formatMessage(I18nConstants.SLICING_RULES_ON_DIFFERENTIAL__DO_NOT_MATCH_THOSE_ON_BASE___DISCIMINATOR___, profileUtilities.summarizeSlicing(dSlice), profileUtilities.summarizeSlicing(bSlice), path, cursors.contextName)); + throw new DefinitionException(profileUtilities.getContext().formatMessage(I18nConstants.SLICING_RULES_ON_DIFFERENTIAL__DO_NOT_MATCH_THOSE_ON_BASE___DISCIMINATOR___, profileUtilities.summarizeSlicing(dSlice), profileUtilities.summarizeSlicing(bSlice), path, url)); if (!currentBase.isChoice() && !profileUtilities.ruleMatches(dSlice.getRules(), bSlice.getRules())) throw new DefinitionException(profileUtilities.getContext().formatMessage(I18nConstants.SLICING_RULES_ON_DIFFERENTIAL__DO_NOT_MATCH_THOSE_ON_BASE___RULE___, profileUtilities.summarizeSlicing(dSlice), profileUtilities.summarizeSlicing(bSlice), path, cursors.contextName)); } From b6b4fbcd0c2a85869790535041b14ed7bbfcbf88 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 24 Apr 2023 23:08:29 +1000 Subject: [PATCH 6/6] more tx test fixes --- .../src/main/resources/Messages.properties | 2 +- .../tests/TerminologyServiceTests.java | 6 +- .../tests/ValidationEngineTests.java | 2 +- .../1.0.2/.capabilityStatement.cache | 8 +- .../1.0.2/.terminologyCapabilities.cache | 62 +-- .../1.4.0/.capabilityStatement.cache | 2 +- .../1.4.0/all-systems.cache | 10 + .../3.0.2/.capabilityStatement.cache | 2 +- .../org.hl7.fhir.validation/3.0.2/loinc.cache | 44 +- .../3.0.2/snomed.cache | 23 +- .../org.hl7.fhir.validation/3.0.2/ucum.cache | 20 +- .../4.0.1/.capabilityStatement.cache | 2 +- .../4.0.1/.terminologyCapabilities.cache | 2 +- .../4.0.1/all-systems.cache | 48 +- .../org.hl7.fhir.validation/4.0.1/loinc.cache | 276 ++++++------ .../4.0.1/snomed.cache | 80 ++-- .../org.hl7.fhir.validation/4.0.1/ucum.cache | 40 +- .../4.3.0/.capabilityStatement.cache | 2 +- .../4.3.0/.terminologyCapabilities.cache | 2 +- .../5.0.0/.capabilityStatement.cache | 10 +- .../5.0.0/.terminologyCapabilities.cache | 154 +++---- .../5.0.0/all-systems.cache | 58 +-- .../org.hl7.fhir.validation/5.0.0/lang.cache | 12 +- .../org.hl7.fhir.validation/5.0.0/loinc.cache | 158 ++++--- .../5.0.0/snomed.cache | 410 +++++++++--------- .../org.hl7.fhir.validation/5.0.0/ucum.cache | 80 ++-- .../5.0.0/v2-0136.cache | 6 +- 27 files changed, 765 insertions(+), 756 deletions(-) create mode 100644 org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.4.0/all-systems.cache diff --git a/org.hl7.fhir.utilities/src/main/resources/Messages.properties b/org.hl7.fhir.utilities/src/main/resources/Messages.properties index 335d99003..f5dd567f2 100644 --- a/org.hl7.fhir.utilities/src/main/resources/Messages.properties +++ b/org.hl7.fhir.utilities/src/main/resources/Messages.properties @@ -342,7 +342,7 @@ Not_done_yet = Not done yet Unknown_type__at_ = Unknown type {0} at {1} Differential_walks_into____but_the_base_does_not_and_there_is_not_a_single_fixed_type_The_type_is__This_is_not_handled_yet = Differential walks into ''{0} (@ {1})'', but the base does not, and there is not a single fixed type. The type is {2}. This is not handled yet Slicing_rules_on_differential__do_not_match_those_on_base___rule___ = Slicing rules on differential ({0}) do not match those on base ({1}) - rule @ {2} ({3}) -Slicing_rules_on_differential__do_not_match_those_on_base___disciminator___ = Slicing rules on differential ({0}) do not match those on base ({1}) - disciminator @ {2} ({3}) +Slicing_rules_on_differential__do_not_match_those_on_base___disciminator___ = Slicing rules on differential ({0}) do not match those on base ({1}) - discriminator @ {2} ({3}) Slicing_rules_on_differential__do_not_match_those_on_base___order___ = Slicing rules on differential ({0}) do not match those on base ({1}) - order @ {2} ({3}) not_done_yet__slicing__types__ = Not done yet - slicing / types @ {0} Invalid_slicing__there_is_more_than_one_type_slice_at__but_one_of_them__has_min__1_so_the_other_slices_cannot_exist=Invalid slicing: there is more than one type slice at {0}, but one of them ({1}) has min = 1, so the other slices cannot exist diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/TerminologyServiceTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/TerminologyServiceTests.java index 21e1af0b8..c0e3f5571 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/TerminologyServiceTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/terminology/tests/TerminologyServiceTests.java @@ -22,6 +22,7 @@ import org.hl7.fhir.r5.context.IWorkerContext.ValidationResult; import org.hl7.fhir.r5.formats.IParser.OutputStyle; import org.hl7.fhir.r5.formats.JsonParser; import org.hl7.fhir.r5.formats.XmlParser; +import org.hl7.fhir.r5.model.CodeType; import org.hl7.fhir.r5.model.Coding; import org.hl7.fhir.r5.model.Constants; import org.hl7.fhir.r5.model.OperationOutcome; @@ -29,6 +30,7 @@ import org.hl7.fhir.r5.model.OperationOutcome.IssueSeverity; import org.hl7.fhir.r5.model.OperationOutcome.IssueType; import org.hl7.fhir.r5.model.OperationOutcome.OperationOutcomeIssueComponent; import org.hl7.fhir.r5.model.Resource; +import org.hl7.fhir.r5.model.UriType; import org.hl7.fhir.r5.model.ValueSet; import org.hl7.fhir.r5.model.CodeSystem.ConceptDefinitionComponent; import org.hl7.fhir.r5.model.CodeableConcept; @@ -244,10 +246,10 @@ public class TerminologyServiceTests { } org.hl7.fhir.r5.model.Parameters res = new org.hl7.fhir.r5.model.Parameters(); if (vm.getSystem() != null) { - res.addParameter("system", vm.getSystem()); + res.addParameter("system", new UriType(vm.getSystem())); } if (vm.getCode() != null) { - res.addParameter("code", vm.getCode()); + res.addParameter("code", new CodeType(vm.getCode())); } if (vm.getSeverity() == org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity.ERROR) { res.addParameter("result", false); diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationEngineTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationEngineTests.java index bd0c566e5..dc1f445ab 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationEngineTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationEngineTests.java @@ -213,7 +213,7 @@ public class ValidationEngineTests { OperationOutcome op = ve.validate(FhirFormat.XML, TestingUtilities.loadTestResourceStream("validator", "observation301.xml"), null); if (!TestUtilities.silent) for (OperationOutcomeIssueComponent issue : op.getIssue()) - System.out.println(" - " + issue.getDetails().getText()); + System.out.println(" - " + issue.getDetails().getText()+" ("+issue.getSeverity().toCode()+")"); int e = errors(op); int w = warnings(op); int h = hints(op); diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.0.2/.capabilityStatement.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.0.2/.capabilityStatement.cache index 26c7e5bd6..5a47be239 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.0.2/.capabilityStatement.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.0.2/.capabilityStatement.cache @@ -12,11 +12,11 @@ "url" : "http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown", "valueCode" : "both" }], - "url" : "http://tx.fhir.org/r2/metadata", + "url" : "http://localhost/r2/metadata", "version" : "1.0.2-2.0.14", "name" : "FHIR Reference Server Conformance Statement", "status" : "active", - "date" : "2023-04-18T00:47:26.299Z", + "date" : "2023-04-24T12:40:21.199Z", "contact" : [{ "telecom" : [{ "system" : "other", @@ -31,8 +31,8 @@ "releaseDate" : "2022-05-13T19:50:55.040Z" }, "implementation" : { - "description" : "FHIR Server running at http://tx.fhir.org/r2", - "url" : "http://tx.fhir.org/r2" + "description" : "FHIR Server running at http://localhost/r2", + "url" : "http://localhost/r2" }, "fhirVersion" : "1.0.2", "format" : ["application/xml+fhir", diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.0.2/.terminologyCapabilities.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.0.2/.terminologyCapabilities.cache index 35a19e2e9..11e448018 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.0.2/.terminologyCapabilities.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.0.2/.terminologyCapabilities.cache @@ -138,9 +138,6 @@ { "uri" : "http://hl7.org/fhir/concept-map-equivalence" }, - { - "uri" : "http://hl7.org/fhir/conditional-delete-status" - }, { "uri" : "http://hl7.org/fhir/condition-category" }, @@ -153,6 +150,9 @@ { "uri" : "http://hl7.org/fhir/condition-ver-status" }, + { + "uri" : "http://hl7.org/fhir/conditional-delete-status" + }, { "uri" : "http://hl7.org/fhir/conformance-expectation" }, @@ -165,15 +165,15 @@ { "uri" : "http://hl7.org/fhir/constraint-severity" }, - { - "uri" : "http://hl7.org/fhir/contactentity-type" - }, { "uri" : "http://hl7.org/fhir/contact-point-system" }, { "uri" : "http://hl7.org/fhir/contact-point-use" }, + { + "uri" : "http://hl7.org/fhir/contactentity-type" + }, { "uri" : "http://hl7.org/fhir/content-type" }, @@ -196,10 +196,10 @@ "uri" : "http://hl7.org/fhir/data-absent-reason" }, { - "uri" : "http://hl7.org/fhir/dataelement-stringency" + "uri" : "http://hl7.org/fhir/data-types" }, { - "uri" : "http://hl7.org/fhir/data-types" + "uri" : "http://hl7.org/fhir/dataelement-stringency" }, { "uri" : "http://hl7.org/fhir/days-of-week" @@ -210,15 +210,15 @@ { "uri" : "http://hl7.org/fhir/device-action" }, - { - "uri" : "http://hl7.org/fhir/devicestatus" - }, { "uri" : "http://hl7.org/fhir/device-use-request-priority" }, { "uri" : "http://hl7.org/fhir/device-use-request-status" }, + { + "uri" : "http://hl7.org/fhir/devicestatus" + }, { "uri" : "http://hl7.org/fhir/diagnostic-order-priority" }, @@ -270,9 +270,6 @@ { "uri" : "http://hl7.org/fhir/episode-of-care-status" }, - { - "uri" : "http://hl7.org/fhir/exception" - }, { "uri" : "http://hl7.org/fhir/ex-fdi" }, @@ -288,9 +285,6 @@ { "uri" : "http://hl7.org/fhir/ex-surface" }, - { - "uri" : "http://hl7.org/fhir/extension-context" - }, { "uri" : "http://hl7.org/fhir/ex-udi" }, @@ -300,15 +294,18 @@ { "uri" : "http://hl7.org/fhir/ex-visionprescriptionproduct" }, + { + "uri" : "http://hl7.org/fhir/exception" + }, + { + "uri" : "http://hl7.org/fhir/extension-context" + }, { "uri" : "http://hl7.org/fhir/FDI-surface" }, { "uri" : "http://hl7.org/fhir/filter-operator" }, - { - "uri" : "http://hl7.org/fhir/flagCategory" - }, { "uri" : "http://hl7.org/fhir/flag-category" }, @@ -318,6 +315,9 @@ { "uri" : "http://hl7.org/fhir/flag-status" }, + { + "uri" : "http://hl7.org/fhir/flagCategory" + }, { "uri" : "http://hl7.org/fhir/fm-conditions" }, @@ -504,6 +504,9 @@ { "uri" : "http://hl7.org/fhir/object-type" }, + { + "uri" : "http://hl7.org/fhir/obs-kind" + }, { "uri" : "http://hl7.org/fhir/observation-category" }, @@ -513,9 +516,6 @@ { "uri" : "http://hl7.org/fhir/observation-status" }, - { - "uri" : "http://hl7.org/fhir/obs-kind" - }, { "uri" : "http://hl7.org/fhir/operation-kind" }, @@ -531,15 +531,15 @@ { "uri" : "http://hl7.org/fhir/organization-type" }, + { + "uri" : "http://hl7.org/fhir/participant-type" + }, { "uri" : "http://hl7.org/fhir/participantrequired" }, { "uri" : "http://hl7.org/fhir/participantstatus" }, - { - "uri" : "http://hl7.org/fhir/participant-type" - }, { "uri" : "http://hl7.org/fhir/participationstatus" }, @@ -553,10 +553,10 @@ "uri" : "http://hl7.org/fhir/payeetype" }, { - "uri" : "http://hl7.org/fhir/paymentstatus" + "uri" : "http://hl7.org/fhir/payment-type" }, { - "uri" : "http://hl7.org/fhir/payment-type" + "uri" : "http://hl7.org/fhir/paymentstatus" }, { "uri" : "http://hl7.org/fhir/practitioner-role" @@ -735,15 +735,15 @@ { "uri" : "http://hl7.org/fhir/substance-category" }, - { - "uri" : "http://hl7.org/fhir/supplydelivery-status" - }, { "uri" : "http://hl7.org/fhir/supply-item-type" }, { "uri" : "http://hl7.org/fhir/supply-kind" }, + { + "uri" : "http://hl7.org/fhir/supplydelivery-status" + }, { "uri" : "http://hl7.org/fhir/supplyrequest-reason" }, diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.4.0/.capabilityStatement.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.4.0/.capabilityStatement.cache index 178a66674..33fe291a2 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.4.0/.capabilityStatement.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.4.0/.capabilityStatement.cache @@ -16,7 +16,7 @@ "version" : "3.0.2-2.0.14", "name" : "FHIR Reference Server Conformance Statement", "status" : "active", - "date" : "2023-04-17T22:53:00.924Z", + "date" : "2023-04-24T12:40:23.206Z", "contact" : [{ "telecom" : [{ "system" : "other", diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.4.0/all-systems.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.4.0/all-systems.cache new file mode 100644 index 000000000..8eec66395 --- /dev/null +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/1.4.0/all-systems.cache @@ -0,0 +1,10 @@ +------------------------------------------------------------------------------------- +{"code" : { + "code" : "Foo" +}, "url": "https://fhir.infoway-inforoute.ca/ValueSet/canadianjurisdiction", "version": "20170626", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"true", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### +v: { + "severity" : "error", + "error" : "The CodeSystem http://canadapost.ca/CodeSystem/ProvinceCodes is unknown; The provided code is not in the value set 'https://fhir.infoway-inforoute.ca/ValueSet/canadianjurisdiction' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/.capabilityStatement.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/.capabilityStatement.cache index 8266efac3..e94936f11 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/.capabilityStatement.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/.capabilityStatement.cache @@ -16,7 +16,7 @@ "version" : "3.0.2-2.0.14", "name" : "FHIR Reference Server Conformance Statement", "status" : "active", - "date" : "2023-04-17T22:53:03.430Z", + "date" : "2023-04-24T12:40:25.073Z", "contact" : [{ "telecom" : [{ "system" : "other", diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/loinc.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/loinc.cache index 15630bf06..4e13a358d 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/loinc.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/loinc.cache @@ -1,4 +1,26 @@ ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "29463-7", + "display" : "Body Weight" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "display" : "Body weight", + "code" : "29463-7", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "3141-9", + "display" : "Body weight Measured" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "display" : "Body weight Measured", + "code" : "3141-9", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- {"code" : { "system" : "http://loinc.org", "code" : "19935-6", @@ -307,25 +329,3 @@ v: { "system" : "http://loinc.org" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "29463-7", - "display" : "Body Weight" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "Error performing tx3 operation 'validate-code: Failed to connect to local.fhir.org/127.0.0.1:80' (parameters = \"\")", - "class" : "SERVER_ERROR" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "3141-9", - "display" : "Body weight Measured" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "Error performing tx3 operation 'validate-code: Failed to connect to local.fhir.org/127.0.0.1:80' (parameters = \"\")", - "class" : "SERVER_ERROR" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/snomed.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/snomed.cache index c228398e3..be238ea6a 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/snomed.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/snomed.cache @@ -1,4 +1,15 @@ ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "27113001", + "display" : "Body weight" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "display" : "Body weight", + "code" : "27113001", + "system" : "http://snomed.info/sct" +} +------------------------------------------------------------------------------------- {"code" : { "system" : "http://snomed.info/sct", "code" : "66493003" @@ -343,6 +354,7 @@ v: { } }, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### v: { + "display" : "Steady", "code" : "55011004", "system" : "http://snomed.info/sct" } @@ -357,14 +369,3 @@ v: { "class" : "UNKNOWN" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "27113001", - "display" : "Body weight" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "Error performing tx3 operation 'validate-code: Failed to connect to local.fhir.org/127.0.0.1:80' (parameters = \"\")", - "class" : "SERVER_ERROR" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/ucum.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/ucum.cache index c1db7d135..530d8c0f9 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/ucum.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/3.0.2/ucum.cache @@ -1,4 +1,14 @@ ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://unitsofmeasure.org", + "code" : "[lb_av]" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "display" : "[lb_av]", + "code" : "[lb_av]", + "system" : "http://unitsofmeasure.org" +} +------------------------------------------------------------------------------------- {"code" : { "system" : "http://unitsofmeasure.org", "code" : "L/min" @@ -39,13 +49,3 @@ v: { "system" : "http://unitsofmeasure.org" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://unitsofmeasure.org", - "code" : "[lb_av]" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "Error performing tx3 operation 'validate-code: Failed to connect to local.fhir.org/127.0.0.1:80' (parameters = \"\")", - "class" : "SERVER_ERROR" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/.capabilityStatement.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/.capabilityStatement.cache index 3e1ae14fa..f510499ec 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/.capabilityStatement.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/.capabilityStatement.cache @@ -12,7 +12,7 @@ "version" : "4.0.1-2.0.14", "name" : "FHIR Reference Server Conformance Statement", "status" : "active", - "date" : "2023-04-17T22:53:10.837Z", + "date" : "2023-04-24T12:40:13.869Z", "contact" : [{ "telecom" : [{ "system" : "other", diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/.terminologyCapabilities.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/.terminologyCapabilities.cache index 4fe88968d..94340ca07 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/.terminologyCapabilities.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/.terminologyCapabilities.cache @@ -5,7 +5,7 @@ "version" : "1.0.0", "name" : "FHIR Reference Server Teminology Capability Statement", "status" : "active", - "date" : "2023-04-17T22:53:10.876Z", + "date" : "2023-04-24T12:40:14.114Z", "contact" : [{ "telecom" : [{ "system" : "other", diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/all-systems.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/all-systems.cache index bfc6c1c68..4666f7c5d 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/all-systems.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/all-systems.cache @@ -418,6 +418,30 @@ v: { "system" : "urn:ietf:bcp:13" } ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "371532007", + "display" : "Progress note" +}, "url": "http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.typeCode", "version": "2.0.1", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### +v: { + "display" : "Progress report", + "code" : "371532007", + "system" : "http://snomed.info/sct", + "severity" : "warning", + "error" : "Wrong Display Name 'Progress note' for http://snomed.info/sct#371532007 - should be one of 3 choices: 'Progress report, \"Report of subsequent visit\", \"Progress report (record artifact)\"' for the language(s) '--' (from null)" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "371525003", + "display" : "Clinical procedure report" +}, "url": "http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.classCode", "version": "2.0.4", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### +v: { + "display" : "Clinical procedure report", + "code" : "371525003", + "system" : "http://snomed.info/sct" +} +------------------------------------------------------------------------------------- {"code" : { "code" : "text/css" }, "url": "http://hl7.org/fhir/ValueSet/mimetypes", "version": "4.0.1", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"true", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### @@ -692,27 +716,3 @@ v: { "class" : "UNKNOWN" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "371532007", - "display" : "Progress note" -}, "url": "http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.typeCode", "version": "2.0.1", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### -v: { - "display" : "Progress report", - "code" : "371532007", - "system" : "http://snomed.info/sct", - "severity" : "warning", - "error" : "Wrong Display Name 'Progress note' for http://snomed.info/sct#371532007 - should be one of 3 choices: 'Progress report, \"Report of subsequent visit\", \"Progress report (record artifact)\"' for the language(s) '--' (from null)" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "371525003", - "display" : "Clinical procedure report" -}, "url": "http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.classCode", "version": "2.0.4", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### -v: { - "display" : "Clinical procedure report", - "code" : "371525003", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/loinc.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/loinc.cache index c755ffbc0..07fb1fb2d 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/loinc.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/loinc.cache @@ -47,6 +47,144 @@ v: { "error" : "Wrong Display Name 'Flow Rate' for http://loinc.org#3151-8 - should be one of 37 choices: 'Inhaled oxygen flow rate, \"Inhaled O2 flow rate\", \"O2\" (zh-CN), \"tO2\" (zh-CN), \"总氧\" (zh-CN), \"氧气 体积速率(单位时间)\" (zh-CN), \"单位时间内体积的变化速率\" (zh-CN), \"流量 可用数量表示的\" (zh-CN), \"定量性\" (zh-CN), \"数值型\" (zh-CN), \"数量型\" (zh-CN), \"连续数值型标尺 吸入气\" (zh-CN), \"吸入气体\" (zh-CN), \"吸入的空气 所吸入的氧\" (zh-CN), \"已吸入的氧气 时刻\" (zh-CN), \"随机\" (zh-CN), \"随意\" (zh-CN), \"瞬间 气 气体类 空气\" (zh-CN), \"Inhaled O2\" (pt-BR), \"vRate\" (pt-BR), \"Volume rate\" (pt-BR), \"Flow\" (pt-BR), \"Point in time\" (pt-BR), \"Random\" (pt-BR), \"IhG\" (pt-BR), \"Inhaled Gas\" (pt-BR), \"Inspired\" (pt-BR), \"Quantitative\" (pt-BR), \"QNT\" (pt-BR), \"Quant\" (pt-BR), \"Quan\" (pt-BR), \"Gases\" (pt-BR), \"Clinico Gas inalati Punto nel tempo (episodio) Tasso di Volume\" (it-IT), \"Количественный Объемная скорость Точка во времени\" (ru-RU), \"Момент\" (ru-RU), \"ingeademde O2\" (nl-NL), \"O2-Zufuhr\" (de-AT)' for the language(s) '--' (from null)" } ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "59408-5" +}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### +v: { + "display" : "Oxygen saturation in Arterial blood by Pulse oximetry", + "code" : "59408-5", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "2708-6" +}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0' (from null)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "2708-6" +}, "url": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult--0", "version": "4.0.1", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### +v: { + "display" : "Oxygen saturation in Arterial blood", + "code" : "2708-6", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "59408-5", + "display" : "O2 % BldC Oximetry" +}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### +v: { + "display" : "Oxygen saturation in Arterial blood by Pulse oximetry", + "code" : "59408-5", + "system" : "http://loinc.org", + "severity" : "warning", + "error" : "Wrong Display Name 'O2 % BldC Oximetry' for http://loinc.org#59408-5 - should be one of 25 choices: 'Oxygen saturation in Arterial blood by Pulse oximetry, \"SaO2 % BldA PulseOx\", \"O2 SaO2\" (pl-PL), \"saturacja krwi tlenem\" (pl-PL), \"MFr O2\" (zh-CN), \"tO2\" (zh-CN), \"总氧\" (zh-CN), \"氧气 SaO2 动脉血 动脉血O2饱和度 可用数量表示的\" (zh-CN), \"定量性\" (zh-CN), \"数值型\" (zh-CN), \"数量型\" (zh-CN), \"连续数值型标尺 时刻\" (zh-CN), \"随机\" (zh-CN), \"随意\" (zh-CN), \"瞬间 肺部测量指标与呼吸机管理 脉搏血氧测定法\" (zh-CN), \"脉搏血氧定量\" (zh-CN), \"脉搏血氧测定\" (zh-CN), \"脉搏血氧仪 血氧测定法 饱和 饱和状态 饱和程度\" (zh-CN), \"O2-Sättigung\" (de-DE), \"Frazione di massa Gestione ventilazione polmonare Punto nel tempo (episodio) Sangue arterioso\" (it-IT), \"Oksijen doymuşluğu\" (tr-TR), \"Количественный Кровь артериальная Массовая доля Насыщение кислородом Оксигемометрия\" (ru-RU), \"Гемоксиметрия Точка во времени\" (ru-RU), \"Момент\" (ru-RU), \"O2 SatO2\" (fr-BE)' for the language(s) '--' (from null)" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "2708-6", + "display" : "Oxygen saturation in Arterial blood" +}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### +v: { + "display" : "Oxygen saturation in Arterial blood", + "code" : "2708-6", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "59408-5" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### +v: { + "display" : "Oxygen saturation in Arterial blood by Pulse oximetry", + "code" : "59408-5", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "2708-6" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### +v: { + "display" : "Oxygen saturation in Arterial blood", + "code" : "2708-6", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "3150-0" +}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### +v: { + "display" : "Inhaled oxygen concentration", + "code" : "3150-0", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "3150-0", + "display" : "Inhaled Oxygen Concentration" +}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### +v: { + "display" : "Inhaled oxygen concentration", + "code" : "3150-0", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "3150-0" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### +v: { + "display" : "Inhaled oxygen concentration", + "code" : "3150-0", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "3151-8" +}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### +v: { + "display" : "Inhaled oxygen flow rate", + "code" : "3151-8", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "3151-8", + "display" : "Flow Rate" +}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### +v: { + "display" : "Inhaled oxygen flow rate", + "code" : "3151-8", + "system" : "http://loinc.org", + "severity" : "warning", + "error" : "Wrong Display Name 'Flow Rate' for http://loinc.org#3151-8 - should be one of 37 choices: 'Inhaled oxygen flow rate, \"Inhaled O2 flow rate\", \"O2\" (zh-CN), \"tO2\" (zh-CN), \"总氧\" (zh-CN), \"氧气 体积速率(单位时间)\" (zh-CN), \"单位时间内体积的变化速率\" (zh-CN), \"流量 可用数量表示的\" (zh-CN), \"定量性\" (zh-CN), \"数值型\" (zh-CN), \"数量型\" (zh-CN), \"连续数值型标尺 吸入气\" (zh-CN), \"吸入气体\" (zh-CN), \"吸入的空气 所吸入的氧\" (zh-CN), \"已吸入的氧气 时刻\" (zh-CN), \"随机\" (zh-CN), \"随意\" (zh-CN), \"瞬间 气 气体类 空气\" (zh-CN), \"Inhaled O2\" (pt-BR), \"vRate\" (pt-BR), \"Volume rate\" (pt-BR), \"Flow\" (pt-BR), \"Point in time\" (pt-BR), \"Random\" (pt-BR), \"IhG\" (pt-BR), \"Inhaled Gas\" (pt-BR), \"Inspired\" (pt-BR), \"Quantitative\" (pt-BR), \"QNT\" (pt-BR), \"Quant\" (pt-BR), \"Quan\" (pt-BR), \"Gases\" (pt-BR), \"Clinico Gas inalati Punto nel tempo (episodio) Tasso di Volume\" (it-IT), \"Количественный Объемная скорость Точка во времени\" (ru-RU), \"Момент\" (ru-RU), \"ingeademde O2\" (nl-NL), \"O2-Zufuhr\" (de-AT)' for the language(s) '--' (from null)" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "3151-8" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### +v: { + "display" : "Inhaled oxygen flow rate", + "code" : "3151-8", + "system" : "http://loinc.org" +} +------------------------------------------------------------------------------------- {"code" : { "system" : "http://loinc.org", "code" : "5792-7" @@ -1979,141 +2117,3 @@ v: { "system" : "http://loinc.org" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "59408-5" -}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### -v: { - "display" : "Oxygen saturation in Arterial blood by Pulse oximetry", - "code" : "59408-5", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "2708-6" -}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### -v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0' (from null)", - "class" : "UNKNOWN" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "2708-6" -}, "url": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult--0", "version": "4.0.1", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### -v: { - "display" : "Oxygen saturation in Arterial blood", - "code" : "2708-6", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "59408-5", - "display" : "O2 % BldC Oximetry" -}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### -v: { - "display" : "Oxygen saturation in Arterial blood by Pulse oximetry", - "code" : "59408-5", - "system" : "http://loinc.org", - "severity" : "warning", - "error" : "Wrong Display Name 'O2 % BldC Oximetry' for http://loinc.org#59408-5 - should be one of 25 choices: 'Oxygen saturation in Arterial blood by Pulse oximetry, \"SaO2 % BldA PulseOx\", \"O2 SaO2\" (pl-PL), \"saturacja krwi tlenem\" (pl-PL), \"MFr O2\" (zh-CN), \"tO2\" (zh-CN), \"总氧\" (zh-CN), \"氧气 SaO2 动脉血 动脉血O2饱和度 可用数量表示的\" (zh-CN), \"定量性\" (zh-CN), \"数值型\" (zh-CN), \"数量型\" (zh-CN), \"连续数值型标尺 时刻\" (zh-CN), \"随机\" (zh-CN), \"随意\" (zh-CN), \"瞬间 肺部测量指标与呼吸机管理 脉搏血氧测定法\" (zh-CN), \"脉搏血氧定量\" (zh-CN), \"脉搏血氧测定\" (zh-CN), \"脉搏血氧仪 血氧测定法 饱和 饱和状态 饱和程度\" (zh-CN), \"O2-Sättigung\" (de-DE), \"Frazione di massa Gestione ventilazione polmonare Punto nel tempo (episodio) Sangue arterioso\" (it-IT), \"Oksijen doymuşluğu\" (tr-TR), \"Количественный Кровь артериальная Массовая доля Насыщение кислородом Оксигемометрия\" (ru-RU), \"Гемоксиметрия Точка во времени\" (ru-RU), \"Момент\" (ru-RU), \"O2 SatO2\" (fr-BE)' for the language(s) '--' (from null)" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "2708-6", - "display" : "Oxygen saturation in Arterial blood" -}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### -v: { - "display" : "Oxygen saturation in Arterial blood", - "code" : "2708-6", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "59408-5" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### -v: { - "display" : "Oxygen saturation in Arterial blood by Pulse oximetry", - "code" : "59408-5", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "2708-6" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### -v: { - "display" : "Oxygen saturation in Arterial blood", - "code" : "2708-6", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "3150-0" -}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### -v: { - "display" : "Inhaled oxygen concentration", - "code" : "3150-0", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "3150-0", - "display" : "Inhaled Oxygen Concentration" -}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### -v: { - "display" : "Inhaled oxygen concentration", - "code" : "3150-0", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "3150-0" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### -v: { - "display" : "Inhaled oxygen concentration", - "code" : "3150-0", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "3151-8" -}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs--0", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### -v: { - "display" : "Inhaled oxygen flow rate", - "code" : "3151-8", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "3151-8", - "display" : "Flow Rate" -}, "url": "http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs", "version": "4.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"false"}#### -v: { - "display" : "Inhaled oxygen flow rate", - "code" : "3151-8", - "system" : "http://loinc.org", - "severity" : "warning", - "error" : "Wrong Display Name 'Flow Rate' for http://loinc.org#3151-8 - should be one of 37 choices: 'Inhaled oxygen flow rate, \"Inhaled O2 flow rate\", \"O2\" (zh-CN), \"tO2\" (zh-CN), \"总氧\" (zh-CN), \"氧气 体积速率(单位时间)\" (zh-CN), \"单位时间内体积的变化速率\" (zh-CN), \"流量 可用数量表示的\" (zh-CN), \"定量性\" (zh-CN), \"数值型\" (zh-CN), \"数量型\" (zh-CN), \"连续数值型标尺 吸入气\" (zh-CN), \"吸入气体\" (zh-CN), \"吸入的空气 所吸入的氧\" (zh-CN), \"已吸入的氧气 时刻\" (zh-CN), \"随机\" (zh-CN), \"随意\" (zh-CN), \"瞬间 气 气体类 空气\" (zh-CN), \"Inhaled O2\" (pt-BR), \"vRate\" (pt-BR), \"Volume rate\" (pt-BR), \"Flow\" (pt-BR), \"Point in time\" (pt-BR), \"Random\" (pt-BR), \"IhG\" (pt-BR), \"Inhaled Gas\" (pt-BR), \"Inspired\" (pt-BR), \"Quantitative\" (pt-BR), \"QNT\" (pt-BR), \"Quant\" (pt-BR), \"Quan\" (pt-BR), \"Gases\" (pt-BR), \"Clinico Gas inalati Punto nel tempo (episodio) Tasso di Volume\" (it-IT), \"Количественный Объемная скорость Точка во времени\" (ru-RU), \"Момент\" (ru-RU), \"ingeademde O2\" (nl-NL), \"O2-Zufuhr\" (de-AT)' for the language(s) '--' (from null)" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "3151-8" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### -v: { - "display" : "Inhaled oxygen flow rate", - "code" : "3151-8", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/snomed.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/snomed.cache index ebf536a5f..ca5d6bfaa 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/snomed.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/snomed.cache @@ -560,6 +560,46 @@ v: { "system" : "http://snomed.info/sct" } ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "371532007" +}, "url": "http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.typeCode--0", "version": "2.0.1", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### +v: { + "display" : "Progress report (record artifact)", + "code" : "371532007", + "system" : "http://snomed.info/sct" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "371532007" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### +v: { + "display" : "Progress report", + "code" : "371532007", + "system" : "http://snomed.info/sct" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "371525003" +}, "url": "http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.classCode--0", "version": "2.0.4", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### +v: { + "display" : "Clinical procedure report (record artifact)", + "code" : "371525003", + "system" : "http://snomed.info/sct" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "371525003" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### +v: { + "display" : "Clinical procedure report", + "code" : "371525003", + "system" : "http://snomed.info/sct" +} +------------------------------------------------------------------------------------- {"code" : { "system" : "http://snomed.info/sct", "code" : "419891008", @@ -1266,43 +1306,3 @@ v: { "class" : "UNKNOWN" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "371532007" -}, "url": "http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.typeCode--0", "version": "2.0.1", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### -v: { - "display" : "Progress report (record artifact)", - "code" : "371532007", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "371532007" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### -v: { - "display" : "Progress report", - "code" : "371532007", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "371525003" -}, "url": "http://fhir.ch/ig/ch-epr-term/ValueSet/DocumentEntry.classCode--0", "version": "2.0.4", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### -v: { - "display" : "Clinical procedure report (record artifact)", - "code" : "371525003", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "371525003" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### -v: { - "display" : "Clinical procedure report", - "code" : "371525003", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/ucum.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/ucum.cache index b44c5e173..c7eb4b637 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/ucum.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.0.1/ucum.cache @@ -19,6 +19,26 @@ v: { "system" : "http://unitsofmeasure.org" } ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://unitsofmeasure.org", + "code" : "%" +}, "url": "http://hl7.org/fhir/ValueSet/ucum-vitals-common--0", "version": "4.0.1", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### +v: { + "display" : "percent", + "code" : "%", + "system" : "http://unitsofmeasure.org" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://unitsofmeasure.org", + "code" : "L/min" +}, "url": "http://hl7.org/fhir/ValueSet/ucum-vitals-common--0", "version": "4.0.1", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/ucum-vitals-common--0' (from null)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- {"code" : { "system" : "http://unitsofmeasure.org", "code" : "cm" @@ -229,23 +249,3 @@ v: { "system" : "http://unitsofmeasure.org" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://unitsofmeasure.org", - "code" : "%" -}, "url": "http://hl7.org/fhir/ValueSet/ucum-vitals-common--0", "version": "4.0.1", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### -v: { - "display" : "percent", - "code" : "%", - "system" : "http://unitsofmeasure.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://unitsofmeasure.org", - "code" : "L/min" -}, "url": "http://hl7.org/fhir/ValueSet/ucum-vitals-common--0", "version": "4.0.1", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"false"}#### -v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/ucum-vitals-common--0' (from null)", - "class" : "UNKNOWN" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.3.0/.capabilityStatement.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.3.0/.capabilityStatement.cache index 51a54c0d7..262a742d5 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.3.0/.capabilityStatement.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.3.0/.capabilityStatement.cache @@ -12,7 +12,7 @@ "version" : "4.0.1-2.0.14", "name" : "FHIR Reference Server Conformance Statement", "status" : "active", - "date" : "2023-04-17T22:56:51.081Z", + "date" : "2023-04-24T12:40:18.698Z", "contact" : [{ "telecom" : [{ "system" : "other", diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.3.0/.terminologyCapabilities.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.3.0/.terminologyCapabilities.cache index 206021708..748471556 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.3.0/.terminologyCapabilities.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/4.3.0/.terminologyCapabilities.cache @@ -5,7 +5,7 @@ "version" : "1.0.0", "name" : "FHIR Reference Server Teminology Capability Statement", "status" : "active", - "date" : "2023-04-17T22:56:51.098Z", + "date" : "2023-04-24T12:40:18.709Z", "contact" : [{ "telecom" : [{ "system" : "other", diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/.capabilityStatement.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/.capabilityStatement.cache index a6b65e505..ac8ebf6bb 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/.capabilityStatement.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/.capabilityStatement.cache @@ -8,11 +8,11 @@ "display" : "Subsetted" }] }, - "url" : "http://localhost/r4/metadata", + "url" : "http://tx.fhir.org/r4/metadata", "version" : "4.0.1-2.0.14", "name" : "FHIR Reference Server Conformance Statement", "status" : "active", - "date" : "2023-04-17T22:56:55.380Z", + "date" : "2023-04-24T12:43:23.721Z", "contact" : [{ "telecom" : [{ "system" : "other", @@ -27,8 +27,8 @@ "releaseDate" : "2022-05-13T19:50:55.040Z" }, "implementation" : { - "description" : "FHIR Server running at http://localhost/r4", - "url" : "http://localhost/r4" + "description" : "FHIR Server running at http://tx.fhir.org/r4", + "url" : "http://tx.fhir.org/r4" }, "fhirVersion" : "4.0.1", "format" : ["application/fhir+xml", @@ -60,7 +60,7 @@ }, { "name" : "versions", - "definition" : "http://localhost/r4/OperationDefinition/fso-versions" + "definition" : "http://tx.fhir.org/r4/OperationDefinition/fso-versions" }] }] } \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/.terminologyCapabilities.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/.terminologyCapabilities.cache index b83926ca9..ffb5f7af7 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/.terminologyCapabilities.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/.terminologyCapabilities.cache @@ -1,11 +1,11 @@ { "resourceType" : "TerminologyCapabilities", "id" : "FhirServer", - "url" : "http://localhost/r4/metadata", + "url" : "http://tx.fhir.org/r4/metadata", "version" : "1.0.0", "name" : "FHIR Reference Server Teminology Capability Statement", "status" : "active", - "date" : "2023-04-17T22:56:55.394Z", + "date" : "2023-04-24T12:43:24.018Z", "contact" : [{ "telecom" : [{ "system" : "other", @@ -133,27 +133,21 @@ { "uri" : "http://hl7.org/fhir/code-search-support" }, - { - "uri" : "http://hl7.org/fhir/codesystem-content-mode" - }, - { - "uri" : "http://hl7.org/fhir/codesystem-hierarchy-meaning" - }, { "uri" : "http://hl7.org/fhir/CodeSystem/example" }, - { - "uri" : "http://hl7.org/fhir/CodeSystem/medication-statement-status" - }, - { - "uri" : "http://hl7.org/fhir/CodeSystem/medication-status" - }, { "uri" : "http://hl7.org/fhir/CodeSystem/medicationrequest-intent" }, { "uri" : "http://hl7.org/fhir/CodeSystem/medicationrequest-status" }, + { + "uri" : "http://hl7.org/fhir/CodeSystem/medication-statement-status" + }, + { + "uri" : "http://hl7.org/fhir/CodeSystem/medication-status" + }, { "uri" : "http://hl7.org/fhir/CodeSystem/status" }, @@ -163,6 +157,12 @@ { "uri" : "http://hl7.org/fhir/CodeSystem/task-code" }, + { + "uri" : "http://hl7.org/fhir/codesystem-content-mode" + }, + { + "uri" : "http://hl7.org/fhir/codesystem-hierarchy-meaning" + }, { "uri" : "http://hl7.org/fhir/compartment-type" }, @@ -175,6 +175,9 @@ { "uri" : "http://hl7.org/fhir/concept-map-equivalence" }, + { + "uri" : "http://hl7.org/fhir/conceptmap-unmapped-mode" + }, { "uri" : "http://hl7.org/fhir/concept-properties" }, @@ -184,9 +187,6 @@ { "uri" : "http://hl7.org/fhir/concept-subsumption-outcome" }, - { - "uri" : "http://hl7.org/fhir/conceptmap-unmapped-mode" - }, { "uri" : "http://hl7.org/fhir/conditional-delete-status" }, @@ -196,15 +196,15 @@ { "uri" : "http://hl7.org/fhir/consent-data-meaning" }, + { + "uri" : "http://hl7.org/fhir/consentperformer" + }, { "uri" : "http://hl7.org/fhir/consent-provision-type" }, { "uri" : "http://hl7.org/fhir/consent-state-codes" }, - { - "uri" : "http://hl7.org/fhir/consentperformer" - }, { "uri" : "http://hl7.org/fhir/constraint-severity" }, @@ -340,6 +340,9 @@ { "uri" : "http://hl7.org/fhir/event-timing" }, + { + "uri" : "http://hl7.org/fhir/examplescenario-actor-type" + }, { "uri" : "http://hl7.org/fhir/ex-claimitemtype" }, @@ -355,18 +358,6 @@ { "uri" : "http://hl7.org/fhir/ex-pharmaservice" }, - { - "uri" : "http://hl7.org/fhir/ex-servicemodifier" - }, - { - "uri" : "http://hl7.org/fhir/ex-serviceproduct" - }, - { - "uri" : "http://hl7.org/fhir/ex-udi" - }, - { - "uri" : "http://hl7.org/fhir/examplescenario-actor-type" - }, { "uri" : "http://hl7.org/fhir/explanationofbenefit-status" }, @@ -376,12 +367,21 @@ { "uri" : "http://hl7.org/fhir/expression-language" }, + { + "uri" : "http://hl7.org/fhir/ex-servicemodifier" + }, + { + "uri" : "http://hl7.org/fhir/ex-serviceproduct" + }, { "uri" : "http://hl7.org/fhir/extension-context-type" }, { "uri" : "http://hl7.org/fhir/extra-activity-type" }, + { + "uri" : "http://hl7.org/fhir/ex-udi" + }, { "uri" : "http://hl7.org/fhir/feeding-device" }, @@ -473,10 +473,10 @@ "uri" : "http://hl7.org/fhir/language-preference-type" }, { - "uri" : "http://hl7.org/fhir/link-type" + "uri" : "http://hl7.org/fhir/linkage-type" }, { - "uri" : "http://hl7.org/fhir/linkage-type" + "uri" : "http://hl7.org/fhir/link-type" }, { "uri" : "http://hl7.org/fhir/list-mode" @@ -521,10 +521,10 @@ "uri" : "http://hl7.org/fhir/message-events" }, { - "uri" : "http://hl7.org/fhir/message-significance-category" + "uri" : "http://hl7.org/fhir/messageheader-response-request" }, { - "uri" : "http://hl7.org/fhir/messageheader-response-request" + "uri" : "http://hl7.org/fhir/message-significance-category" }, { "uri" : "http://hl7.org/fhir/metric-calibration-state" @@ -650,10 +650,10 @@ "uri" : "http://hl7.org/fhir/related-artifact-type" }, { - "uri" : "http://hl7.org/fhir/relation-type" + "uri" : "http://hl7.org/fhir/relationship" }, { - "uri" : "http://hl7.org/fhir/relationship" + "uri" : "http://hl7.org/fhir/relation-type" }, { "uri" : "http://hl7.org/fhir/remittance-outcome" @@ -997,18 +997,18 @@ { "uri" : "http://terminology.hl7.org/CodeSystem/chromosome-human" }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/claim-exception" - }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/claim-type" - }, { "uri" : "http://terminology.hl7.org/CodeSystem/claimcareteamrole" }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/claim-exception" + }, { "uri" : "http://terminology.hl7.org/CodeSystem/claiminformationcategory" }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/claim-type" + }, { "uri" : "http://terminology.hl7.org/CodeSystem/codesystem-altcode-kind" }, @@ -1066,21 +1066,18 @@ { "uri" : "http://terminology.hl7.org/CodeSystem/container-cap" }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/contract-content-derivative" - }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/contract-data-meaning" - }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/contract-type" - }, { "uri" : "http://terminology.hl7.org/CodeSystem/contractaction" }, { "uri" : "http://terminology.hl7.org/CodeSystem/contractactorrole" }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/contract-content-derivative" + }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/contract-data-meaning" + }, { "uri" : "http://terminology.hl7.org/CodeSystem/contractsignertypecodes" }, @@ -1093,6 +1090,9 @@ { "uri" : "http://terminology.hl7.org/CodeSystem/contracttermtypecodes" }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/contract-type" + }, { "uri" : "http://terminology.hl7.org/CodeSystem/copy-number-event" }, @@ -1103,10 +1103,10 @@ "uri" : "http://terminology.hl7.org/CodeSystem/coverage-copay-type" }, { - "uri" : "http://terminology.hl7.org/CodeSystem/coverage-selfpay" + "uri" : "http://terminology.hl7.org/CodeSystem/coverageeligibilityresponse-ex-auth-support" }, { - "uri" : "http://terminology.hl7.org/CodeSystem/coverageeligibilityresponse-ex-auth-support" + "uri" : "http://terminology.hl7.org/CodeSystem/coverage-selfpay" }, { "uri" : "http://terminology.hl7.org/CodeSystem/data-absent-reason" @@ -1189,6 +1189,12 @@ { "uri" : "http://terminology.hl7.org/CodeSystem/ex-diagnosistype" }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/expansion-parameter-source" + }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/expansion-processing-rule" + }, { "uri" : "http://terminology.hl7.org/CodeSystem/ex-payee-resource-type" }, @@ -1216,21 +1222,15 @@ { "uri" : "http://terminology.hl7.org/CodeSystem/ex-tooth" }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/extra-security-role-type" + }, { "uri" : "http://terminology.hl7.org/CodeSystem/ex-USCLS" }, { "uri" : "http://terminology.hl7.org/CodeSystem/ex-visionprescriptionproduct" }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/expansion-parameter-source" - }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/expansion-processing-rule" - }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/extra-security-role-type" - }, { "uri" : "http://terminology.hl7.org/CodeSystem/failure-action" }, @@ -1280,10 +1280,10 @@ "uri" : "http://terminology.hl7.org/CodeSystem/hl7-document-format-codes" }, { - "uri" : "http://terminology.hl7.org/CodeSystem/hl7-work-group" + "uri" : "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" }, { - "uri" : "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" + "uri" : "http://terminology.hl7.org/CodeSystem/hl7-work-group" }, { "uri" : "http://terminology.hl7.org/CodeSystem/immunization-evaluation-dose-status" @@ -1369,12 +1369,6 @@ { "uri" : "http://terminology.hl7.org/CodeSystem/medication-admin-status" }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/medication-statement-category" - }, - { - "uri" : "http://terminology.hl7.org/CodeSystem/medication-usage-admin-location" - }, { "uri" : "http://terminology.hl7.org/CodeSystem/medicationdispense-performer-function" }, @@ -1402,6 +1396,12 @@ { "uri" : "http://terminology.hl7.org/CodeSystem/medicationrequest-status-reason" }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/medication-statement-category" + }, + { + "uri" : "http://terminology.hl7.org/CodeSystem/medication-usage-admin-location" + }, { "uri" : "http://terminology.hl7.org/CodeSystem/message-reasons-encounter" }, @@ -1451,10 +1451,10 @@ "uri" : "http://terminology.hl7.org/CodeSystem/payment-adjustment-reason" }, { - "uri" : "http://terminology.hl7.org/CodeSystem/payment-type" + "uri" : "http://terminology.hl7.org/CodeSystem/paymentstatus" }, { - "uri" : "http://terminology.hl7.org/CodeSystem/paymentstatus" + "uri" : "http://terminology.hl7.org/CodeSystem/payment-type" }, { "uri" : "http://terminology.hl7.org/CodeSystem/plan-definition-type" @@ -3571,9 +3571,6 @@ { "uri" : "urn:ietf:rfc:3986" }, - { - "uri" : "urn:iso-astm:E1762-95:2013" - }, { "uri" : "urn:iso:std:iso:11073:10101" }, @@ -3586,6 +3583,9 @@ { "uri" : "urn:iso:std:iso:4217" }, + { + "uri" : "urn:iso-astm:E1762-95:2013" + }, { "uri" : "urn:oid:1.2.36.1.2001.1001.101.104.16592" }, diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/all-systems.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/all-systems.cache index dd3c5ddd4..d58bc641f 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/all-systems.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/all-systems.cache @@ -1,4 +1,33 @@ ------------------------------------------------------------------------------------- +{"code" : { + "code" : "fr-CA" +}, "url": "http://hl7.org/fhir/ValueSet/languages", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"true", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "display" : "French (Canada)", + "code" : "fr-CA", + "system" : "urn:ietf:bcp:47" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "439401001", + "display" : "Diagnosis" +}, "url": "http://hl7.org/fhir/ValueSet/condition-category", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/condition-category' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "code" : "d" +}, "url": "http://hl7.org/fhir/ValueSet/units-of-time", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"true", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "display" : "day", + "code" : "d", + "system" : "http://unitsofmeasure.org" +} +------------------------------------------------------------------------------------- {"code" : { "code" : "text/plain" }, "url": "http://hl7.org/fhir/ValueSet/mimetypes", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"true", "valueSetMode":"ALL_CHECKS", "versionFlexible":"false"}#### @@ -46,32 +75,3 @@ v: { "system" : "urn:ietf:bcp:47" } ------------------------------------------------------------------------------------- -{"code" : { - "code" : "fr-CA" -}, "url": "http://hl7.org/fhir/ValueSet/languages", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"true", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "French (Canada)", - "code" : "fr-CA", - "system" : "urn:ietf:bcp:47" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "439401001", - "display" : "Diagnosis" -}, "url": "http://hl7.org/fhir/ValueSet/condition-category", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"true"}#### -v: { - "display" : "Diagnosis (observable entity)", - "code" : "439401001", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "code" : "d" -}, "url": "http://hl7.org/fhir/ValueSet/units-of-time", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"true", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "day", - "code" : "d", - "system" : "http://unitsofmeasure.org" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/lang.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/lang.cache index 21d5f7e38..4258330c6 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/lang.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/lang.cache @@ -14,9 +14,9 @@ v: { "code" : "fr-CA" }, "url": "http://hl7.org/fhir/ValueSet/all-languages", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"true"}#### v: { - "display" : "French (Region=Canada)", - "code" : "fr-CA", - "system" : "urn:ietf:bcp:47" + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/all-languages' (from Tx-Server)", + "class" : "UNKNOWN" } ------------------------------------------------------------------------------------- {"code" : { @@ -24,8 +24,8 @@ v: { "code" : "fr-CA" }, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### v: { - "display" : "French (Region=Canada)", - "code" : "fr-CA", - "system" : "urn:ietf:bcp:47" + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" } ------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/loinc.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/loinc.cache index 8361a91b5..f43297ef8 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/loinc.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/loinc.cache @@ -1,4 +1,81 @@ ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "29463-7", + "display" : "Body Weight" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "3141-9", + "display" : "Body weight Measured" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "LA6724-4", + "display" : "Good color all over" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "LA6718-6", + "display" : "At least 100 beats per minute" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "LA6721-0", + "display" : "Grimace and pulling away, cough, or sneeze during suctioning" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "LA6715-2", + "display" : "Active motion " +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "Wrong Display Name 'Active motion ' for http://loinc.org#LA6715-2 - should be 'Active motion' (for the language(s) '--'); The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://loinc.org", + "code" : "LA6727-7", + "display" : "Good, strong cry; normal rate and effort of breathing " +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "Wrong Display Name 'Good, strong cry; normal rate and effort of breathing ' for http://loinc.org#LA6727-7 - should be 'Good, strong cry; normal rate and effort of breathing' (for the language(s) '--'); The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- {"code" : { "system" : "http://loinc.org", "code" : "85354-9", @@ -311,84 +388,3 @@ v: { "error" : "Wrong Display Name 'Triglyceride [Moles/​volume] in Serum or Plasma' for http://loinc.org#35217-9 - should be one of 50 choices: 'Triglyceride [Mass or Moles/volume] in Serum or Plasma, \"Trigl SerPl-msCnc\", \"TG\" (zh-CN), \"Trigly\" (zh-CN), \"甘油三脂\" (zh-CN), \"甘油三酸酯\" (zh-CN), \"三酸甘油酯\" (zh-CN), \"甘油三酸脂\" (zh-CN), \"三酸甘油脂 化学\" (zh-CN), \"化学检验项目\" (zh-CN), \"化学检验项目类\" (zh-CN), \"化学类\" (zh-CN), \"化学试验\" (zh-CN), \"非刺激耐受型化学检验项目\" (zh-CN), \"非刺激耐受型化学检验项目类\" (zh-CN), \"非刺激耐受型化学试验\" (zh-CN), \"非刺激耐受型化学试验类 可用数量表示的\" (zh-CN), \"定量性\" (zh-CN), \"数值型\" (zh-CN), \"数量型\" (zh-CN), \"连续数值型标尺 时刻\" (zh-CN), \"随机\" (zh-CN), \"随意\" (zh-CN), \"瞬间 血清或血浆 质量或摩尔浓度\" (zh-CN), \"质量或摩尔浓度(单位体积)\" (zh-CN), \"质量或物质的量浓度(单位体积)\" (zh-CN), \"Juhuslik Kvantitatiivne Plasma Seerum Seerum või plasma\" (et-EE), \"Trigl\" (pt-BR), \"Triglycrides\" (pt-BR), \"Trig\" (pt-BR), \"Triglycerides\" (pt-BR), \"Level\" (pt-BR), \"Point in time\" (pt-BR), \"Random\" (pt-BR), \"SerPl\" (pt-BR), \"SerPlas\" (pt-BR), \"SerP\" (pt-BR), \"Serum\" (pt-BR), \"SR\" (pt-BR), \"Plasma\" (pt-BR), \"Pl\" (pt-BR), \"Plsm\" (pt-BR), \"Quantitative\" (pt-BR), \"QNT\" (pt-BR), \"Quant\" (pt-BR), \"Quan\" (pt-BR), \"Chemistry\" (pt-BR), \"Chimica Concentrazione Sostanza o Massa Plasma Punto nel tempo (episodio) Siero Siero o Plasma\" (it-IT), \"Количественный Массовая или Молярная Концентрация Плазма Сыворотка Сыворотка или Плазма Точка во времени\" (ru-RU), \"Момент\" (ru-RU)' for the language(s) '--' (from Tx-Server)" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "29463-7", - "display" : "Body Weight" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", - "class" : "UNKNOWN" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "3141-9", - "display" : "Body weight Measured" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", - "class" : "UNKNOWN" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "LA6724-4", - "display" : "Good color all over" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Good color all over", - "code" : "LA6724-4", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "LA6718-6", - "display" : "At least 100 beats per minute" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "At least 100 beats per minute", - "code" : "LA6718-6", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "LA6721-0", - "display" : "Grimace and pulling away, cough, or sneeze during suctioning" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Grimace and pulling away, cough, or sneeze during suctioning", - "code" : "LA6721-0", - "system" : "http://loinc.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "LA6715-2", - "display" : "Active motion " -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Active motion", - "code" : "LA6715-2", - "system" : "http://loinc.org", - "severity" : "warning", - "error" : "Wrong Display Name 'Active motion ' for http://loinc.org#LA6715-2 - should be 'Active motion', (from Tx-Server)" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://loinc.org", - "code" : "LA6727-7", - "display" : "Good, strong cry; normal rate and effort of breathing " -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Good, strong cry; normal rate and effort of breathing", - "code" : "LA6727-7", - "system" : "http://loinc.org", - "severity" : "warning", - "error" : "Wrong Display Name 'Good, strong cry; normal rate and effort of breathing ' for http://loinc.org#LA6727-7 - should be 'Good, strong cry; normal rate and effort of breathing', (from Tx-Server)" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/snomed.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/snomed.cache index 7fcfa75f2..67aa20295 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/snomed.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/snomed.cache @@ -1,4 +1,209 @@ ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "27113001", + "display" : "Body weight" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "90655003" +}, "url": "http://hl7.org/fhir/ValueSet/c80-practice-codes--0", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/c80-practice-codes--0' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "90655003", + "display" : "Geriatrics specialist" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "439401001" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "24484000" +}, "url": "http://hl7.org/fhir/ValueSet/condition-severity--0", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"true"}#### +v: { + "display" : "Severe", + "code" : "24484000", + "system" : "http://snomed.info/sct" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "24484000", + "display" : "Severe" +}, "url": "http://hl7.org/fhir/ValueSet/condition-severity", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/condition-severity' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "24484000" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "39065001", + "display" : "Burn of ear" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "49521004", + "display" : "Left external ear structure" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "443849008", + "display" : "Apgar score at 20 minutes" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "249227004", + "display" : "Apgar color score" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "249223000", + "display" : "Apgar heart rate score" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "249226008", + "display" : "Apgar response to stimulus score" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "249225007", + "display" : "Apgar muscle tone score" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "249224006", + "display" : "Apgar respiratory effort score" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "194828000", + "display" : "Angina (disorder)" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "22298006", + "display" : "Myocardial infarction (disorder)" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "54485002", + "display" : "Ophthalmic route (qualifier value)" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://snomed.info/sct", + "code" : "421538008", + "display" : "Instill - dosing instruction imperative (qualifier value)" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- {"code" : { "system" : "http://snomed.info/sct", "code" : "368209003", @@ -259,208 +464,3 @@ v: { "system" : "http://snomed.info/sct" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "27113001", - "display" : "Body weight" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", - "class" : "UNKNOWN" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "90655003" -}, "url": "http://hl7.org/fhir/ValueSet/c80-practice-codes--0", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/c80-practice-codes--0' (from Tx-Server)", - "class" : "UNKNOWN" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "90655003", - "display" : "Geriatrics specialist" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Geriatrics specialist", - "code" : "90655003", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "439401001" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Diagnosis (observable entity)", - "code" : "439401001", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "24484000" -}, "url": "http://hl7.org/fhir/ValueSet/condition-severity--0", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"false", "guessSystem":"false", "valueSetMode":"CHECK_MEMERSHIP_ONLY", "versionFlexible":"true"}#### -v: { - "display" : "Severe", - "code" : "24484000", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "24484000", - "display" : "Severe" -}, "url": "http://hl7.org/fhir/ValueSet/condition-severity", "version": "5.0.0", "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"NO_MEMBERSHIP_CHECK", "versionFlexible":"true"}#### -v: { - "display" : "Severe", - "code" : "24484000", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "24484000" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Severe", - "code" : "24484000", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "39065001", - "display" : "Burn of ear" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Burn of ear", - "code" : "39065001", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "49521004", - "display" : "Left external ear structure" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Left external ear", - "code" : "49521004", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "443849008", - "display" : "Apgar score at 20 minutes" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Apgar score at 20 minutes (observable entity)", - "code" : "443849008", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "249227004", - "display" : "Apgar color score" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", - "class" : "UNKNOWN" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "249223000", - "display" : "Apgar heart rate score" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Apgar heart rate score", - "code" : "249223000", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "249226008", - "display" : "Apgar response to stimulus score" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Apgar response to stimulus score", - "code" : "249226008", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "249225007", - "display" : "Apgar muscle tone score" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Apgar muscle tone score", - "code" : "249225007", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "249224006", - "display" : "Apgar respiratory effort score" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Apgar respiratory effort score", - "code" : "249224006", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "194828000", - "display" : "Angina (disorder)" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Angina", - "code" : "194828000", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "22298006", - "display" : "Myocardial infarction (disorder)" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Myocardial infarction", - "code" : "22298006", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "54485002", - "display" : "Ophthalmic route (qualifier value)" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Ophthalmic route", - "code" : "54485002", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://snomed.info/sct", - "code" : "421538008", - "display" : "Instill - dosing instruction imperative (qualifier value)" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "Instill - dosing instruction imperative (qualifier value)", - "code" : "421538008", - "system" : "http://snomed.info/sct" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/ucum.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/ucum.cache index f700aa0a8..5146cc509 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/ucum.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/ucum.cache @@ -1,4 +1,44 @@ ------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://unitsofmeasure.org", + "code" : "[lb_av]" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://unitsofmeasure.org", + "code" : "{score}" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://unitsofmeasure.org", + "code" : "mL" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- +{"code" : { + "system" : "http://unitsofmeasure.org", + "code" : "d" +}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### +v: { + "severity" : "error", + "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", + "class" : "UNKNOWN" +} +------------------------------------------------------------------------------------- {"code" : { "system" : "http://unitsofmeasure.org", "code" : "mm[Hg]" @@ -59,43 +99,3 @@ v: { "system" : "http://unitsofmeasure.org" } ------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://unitsofmeasure.org", - "code" : "[lb_av]" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", - "class" : "UNKNOWN" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://unitsofmeasure.org", - "code" : "{score}" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", - "class" : "UNKNOWN" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://unitsofmeasure.org", - "code" : "mL" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "mL", - "code" : "mL", - "system" : "http://unitsofmeasure.org" -} -------------------------------------------------------------------------------------- -{"code" : { - "system" : "http://unitsofmeasure.org", - "code" : "d" -}, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### -v: { - "display" : "d", - "code" : "d", - "system" : "http://unitsofmeasure.org" -} -------------------------------------------------------------------------------------- diff --git a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/v2-0136.cache b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/v2-0136.cache index 3b42365f5..b45544503 100644 --- a/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/v2-0136.cache +++ b/org.hl7.fhir.validation/src/test/resources/txCache/org.hl7.fhir.validation/5.0.0/v2-0136.cache @@ -4,8 +4,8 @@ "code" : "Y" }, "valueSet" :null, "langs":"[en]", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}#### v: { - "severity" : "error", - "error" : "The provided code is not in the value set 'http://hl7.org/fhir/ValueSet/@all' (from Tx-Server)", - "class" : "UNKNOWN" + "display" : "Yes", + "code" : "Y", + "system" : "http://terminology.hl7.org/CodeSystem/v2-0136" } -------------------------------------------------------------------------------------