fix error message

This commit is contained in:
Grahame Grieve 2020-01-21 12:22:53 +11:00
parent 300c87a657
commit df9a05b56a
2 changed files with 2 additions and 2 deletions

View File

@ -2424,7 +2424,7 @@ public class ProfileUtilities extends TranslatingUtilities {
if (messages == null) { if (messages == null) {
throw new FHIRException("Error at "+purl+"#"+derived.getPath()+": The target profile "+url+" is not valid constraint on the base ("+td.getTargetProfile()+")"); throw new FHIRException("Error at "+purl+"#"+derived.getPath()+": The target profile "+url+" is not valid constraint on the base ("+td.getTargetProfile()+")");
} else { } else {
messages.add(new ValidationMessage(Source.InstanceValidator, IssueType.BUSINESSRULE, pn+"."+derived.getPath(), "The target profile "+url+" is not a valid constraint on the base ("+td.getTargetProfile()+")", IssueSeverity.ERROR)); messages.add(new ValidationMessage(Source.InstanceValidator, IssueType.BUSINESSRULE, derived.getPath(), "The target profile "+u.getValue()+" is not a valid constraint on the base ("+td.getTargetProfile()+")", IssueSeverity.ERROR));
} }
} }
} }

View File

@ -209,7 +209,7 @@ public class TerminologyCache {
return "11073"; return "11073";
if (system.equals("http://dicom.nema.org/resources/ontology/DCM")) if (system.equals("http://dicom.nema.org/resources/ontology/DCM"))
return "dicom"; return "dicom";
return system.replace("/", "_").replace(":", "_"); return system.replace("/", "_").replace(":", "_").replace("?", "X").replace("#", "X");
} }
public NamedCache getNamedCache(CacheToken cacheToken) { public NamedCache getNamedCache(CacheToken cacheToken) {