diff --git a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBase.java b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBase.java index 22a32dad633..e79c2aa2ce1 100644 --- a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBase.java +++ b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBase.java @@ -56,4 +56,9 @@ public interface IBase extends Serializable { */ List getFormatCommentsPost(); + /** + * Returns the FHIR type name for the given element, e.g. "Patient" or "unsignedInt" + */ + default String fhirType() { return null; } + } diff --git a/hapi-fhir-jpaserver-subscription/src/test/java/ca/uhn/fhir/jpa/subscription/module/config/TestSubscriptionDstu3Config.java b/hapi-fhir-jpaserver-subscription/src/test/java/ca/uhn/fhir/jpa/subscription/module/config/TestSubscriptionDstu3Config.java index 4ee87b01ff7..5ff8ce59398 100644 --- a/hapi-fhir-jpaserver-subscription/src/test/java/ca/uhn/fhir/jpa/subscription/module/config/TestSubscriptionDstu3Config.java +++ b/hapi-fhir-jpaserver-subscription/src/test/java/ca/uhn/fhir/jpa/subscription/module/config/TestSubscriptionDstu3Config.java @@ -20,7 +20,7 @@ public class TestSubscriptionDstu3Config extends SubscriptionDstu3Config { @Bean @Primary - public ISubscriptionProvider subsriptionProvider() { + public ISubscriptionProvider subscriptionProvider() { return new MockFhirClientSubscriptionProvider(); }