From dd48811c869ede5cc09aafe9ece95c3fbf5c3bcf Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 6 Aug 2020 07:36:38 +1000 Subject: [PATCH] debugging improvements --- .../fhir/r5/context/CanonicalResourceManager.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/CanonicalResourceManager.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/CanonicalResourceManager.java index 5e4a72039..52ab706fb 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/CanonicalResourceManager.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/CanonicalResourceManager.java @@ -85,7 +85,12 @@ public class CanonicalResourceManager { this.resource = resource; } - public abstract CanonicalResource loadResource() throws FHIRException; + public abstract CanonicalResource loadResource() throws FHIRException; + + @Override + public String toString() { + return type+"/"+id+": "+url+"|"+version; + } } public class CanonicalListSorter implements Comparator { @@ -142,6 +147,12 @@ public class CanonicalResourceManager { public boolean hasVersion() { return resource != null ? resource.hasVersion() : proxy.getVersion() != null; } + + @Override + public String toString() { + return resource != null ? resource.fhirType()+"/"+resource.getId()+": "+resource.getUrl()+"|"+resource.getVersion() : proxy.toString(); + } + } public class MetadataResourceVersionComparator> implements Comparator {