From 4983b0122c5d7444d6c3c0a91a1e435ceb4e696d Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Tue, 15 Feb 2022 19:32:04 +1100 Subject: [PATCH] Fix error accessing experimental on NamingSystem --- RELEASE_NOTES.md | 2 +- .../main/java/org/hl7/fhir/r5/model/CanonicalResource.java | 4 ++++ .../src/main/java/org/hl7/fhir/r5/model/NamingSystem.java | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 7b06c6ab5..5673f7f10 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -4,4 +4,4 @@ ## Other code changes -* no changes \ No newline at end of file +* Fix error access experimental on canonical diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CanonicalResource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CanonicalResource.java index 1cd62a1c7..2994cf550 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CanonicalResource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CanonicalResource.java @@ -554,6 +554,10 @@ public abstract class CanonicalResource extends DomainResource { return true; } + public boolean supportsExperimental() { + return true; + } + public String getVersionedUrl() { return hasVersion() ? getUrl()+"|"+getVersion() : getUrl(); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java index 486815520..9ba3910b1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java @@ -3044,6 +3044,10 @@ public class NamingSystem extends CanonicalResource { return false; } + public boolean supportsExperimental() { + return false; + } + // end addition }