From e7904c83550e4b80943f777eb8efbd42831a7ad0 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Sat, 5 Dec 2020 08:47:25 +1100 Subject: [PATCH] fix merge problem --- .../services/StandAloneValidatorFetcher.java | 59 ------------------- 1 file changed, 59 deletions(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/StandAloneValidatorFetcher.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/StandAloneValidatorFetcher.java index a80b6789c..d829992d5 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/StandAloneValidatorFetcher.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/StandAloneValidatorFetcher.java @@ -175,65 +175,6 @@ public class StandAloneValidatorFetcher implements IValidatorResourceFetcher { return mappingsUris.contains(url); } - private boolean isMappingUri(String url) { - if (mappingsUris.isEmpty()) { - JsonObject json; - try { - json = JsonTrackingParser.fetchJson("http://hl7.org/fhir/mappingspaces.json"); - for (JsonObject ms : JSONUtil.objects(json, "spaces")) { - mappingsUris.add(JSONUtil.str(ms, "url")); - } - } catch (IOException e) { - // frozen R4 list - mappingsUris.add("http://hl7.org/fhir/fivews"); - mappingsUris.add("http://hl7.org/fhir/workflow"); - mappingsUris.add("http://hl7.org/fhir/interface"); - mappingsUris.add("http://hl7.org/v2"); - mappingsUris.add("http://loinc.org"); - mappingsUris.add("http://snomed.org/attributebinding"); - mappingsUris.add("http://snomed.info/conceptdomain"); - mappingsUris.add("http://hl7.org/v3/cda"); - mappingsUris.add("http://hl7.org/v3"); - mappingsUris.add("http://nema.org/dicom"); - mappingsUris.add("http://w3.org/vcard"); - mappingsUris.add("http://ihe.net/xds"); - mappingsUris.add("http://www.w3.org/ns/prov"); - mappingsUris.add("http://ietf.org/rfc/2445"); - mappingsUris.add("http://www.omg.org/spec/ServD/1.0/"); - mappingsUris.add("http://metadata-standards.org/11179/"); - mappingsUris.add("http://ihe.net/data-element-exchange"); - mappingsUris.add("http://openehr.org"); - mappingsUris.add("http://siframework.org/ihe-sdc-profile"); - mappingsUris.add("http://siframework.org/cqf"); - mappingsUris.add("http://www.cdisc.org/define-xml"); - mappingsUris.add("http://www.cda-adc.ca/en/services/cdanet/"); - mappingsUris.add("http://www.pharmacists.ca/"); - mappingsUris.add("http://www.healthit.gov/quality-data-model"); - mappingsUris.add("http://hl7.org/orim"); - mappingsUris.add("http://hl7.org/fhir/w5"); - mappingsUris.add("http://hl7.org/fhir/logical"); - mappingsUris.add("http://hl7.org/fhir/auditevent"); - mappingsUris.add("http://hl7.org/fhir/provenance"); - mappingsUris.add("http://hl7.org/qidam"); - mappingsUris.add("http://cap.org/ecc"); - mappingsUris.add("http://fda.gov/UDI"); - mappingsUris.add("http://hl7.org/fhir/object-implementation"); - mappingsUris.add("http://github.com/MDMI/ReferentIndexContent"); - mappingsUris.add("http://ncpdp.org/SCRIPT10_6"); - mappingsUris.add("http://clinicaltrials.gov"); - mappingsUris.add("http://hl7.org/fhir/rr"); - mappingsUris.add("http://www.hl7.org/v3/PORX_RM020070UV"); - mappingsUris.add("https://bridgmodel.nci.nih.gov"); - mappingsUris.add("http://hl7.org/fhir/composition"); - mappingsUris.add("http://hl7.org/fhir/documentreference"); - mappingsUris.add("https://en.wikipedia.org/wiki/Identification_of_medicinal_products"); - mappingsUris.add("urn:iso:std:iso:11073:10201"); - mappingsUris.add("urn:iso:std:iso:11073:10207"); - } - } - return mappingsUris.contains(url); - } - private String findBaseUrl(String url) { String[] p = url.split("\\/"); for (int i = 1; i< p.length; i++) {