diff --git a/src/Hl7.Fhir.Base/ElementModel/TypedElementParseExtensions.cs b/src/Hl7.Fhir.Base/ElementModel/TypedElementParseExtensions.cs
index b7a3518dd..1e0301299 100644
--- a/src/Hl7.Fhir.Base/ElementModel/TypedElementParseExtensions.cs
+++ b/src/Hl7.Fhir.Base/ElementModel/TypedElementParseExtensions.cs
@@ -42,9 +42,8 @@ public static class TypedElementParseExtensions
#pragma warning restore CS0618 // Type or member is obsolete
///
- [Obsolete("WARNING! Intended for internal API usage exclusively, interface IBaseElementNavigator can be changed in " +
- "the near future.")]
- internal static Element? ParseBindableInternal(this ITypedElement instance)
+ [Obsolete("WARNING! Intended for internal API usage exclusively")]
+ public static Element? ParseBindableInternal(this ITypedElement instance)
{
return instance.InstanceType switch
{
@@ -88,8 +87,7 @@ public static Quantity ParseQuantity(this ITypedElement instance)
=> ParseQuantityInternal(instance);
#pragma warning restore CS0618 // Type or member is obsolete
- [Obsolete("WARNING! Intended for internal API usage exclusively, interface IBaseElementNavigator can be changed in " +
- "the near future.")]
+ [Obsolete("WARNING! Intended for internal API usage exclusively")]
public static Quantity ParseQuantityInternal(this ITypedElement instance)
{
var newQuantity = new Quantity
@@ -114,8 +112,7 @@ public static Quantity ParseQuantityInternal(this ITypedElement instance)
=> ParsePrimitiveInternal(instance);
#pragma warning restore CS0618 // Type or member is obsolete
- [Obsolete("WARNING! Intended for internal API usage exclusively, interface IBaseElementNavigator can be changed in " +
- "the near future.")]
+ [Obsolete("WARNING! Intended for internal API usage exclusively")]
public static T ParsePrimitiveInternal(this ITypedElement instance) where T : PrimitiveType, new()
=> new() { ObjectValue = instance.Value };
@@ -128,8 +125,7 @@ public static Coding ParseCoding(this ITypedElement instance)
#pragma warning restore CS0618 // Type or member is obsolete
- [Obsolete("WARNING! Intended for internal API usage exclusively, interface IBaseElementNavigator can be changed in " +
- "the near future.")]
+ [Obsolete("WARNING! Intended for internal API usage exclusively")]
public static Coding ParseCodingInternal(this ITypedElement instance)
{
return new Coding()
@@ -149,8 +145,7 @@ public static ResourceReference ParseResourceReference(this ITypedElement instan
=> instance.ParseResourceReferenceInternal();
#pragma warning restore CS0618 // Type or member is obsolete
- [Obsolete("WARNING! Intended for internal API usage exclusively, interface IBaseElementNavigator can be changed in " +
- "the near future.")]
+ [Obsolete("WARNING! Intended for internal API usage exclusively")]
public static ResourceReference ParseResourceReferenceInternal(this ITypedElement instance)
{
return new ResourceReference()
@@ -167,8 +162,7 @@ public static CodeableConcept ParseCodeableConcept(this ITypedElement instance)
=> instance.ParseCodeableConceptInternal();
#pragma warning restore CS0618 // Type or member is obsolete
- [Obsolete("WARNING! Intended for internal API usage exclusively, interface IBaseElementNavigator can be changed in " +
- "the near future.")]
+ [Obsolete("WARNING! Intended for internal API usage exclusively")]
public static CodeableConcept ParseCodeableConceptInternal(this ITypedElement instance)
{
return new CodeableConcept()
diff --git a/src/Hl7.Fhir.Base/Model/Base.TypedElement.cs b/src/Hl7.Fhir.Base/Model/Base.TypedElement.cs
index 382b83dbe..37e56c59a 100644
--- a/src/Hl7.Fhir.Base/Model/Base.TypedElement.cs
+++ b/src/Hl7.Fhir.Base/Model/Base.TypedElement.cs
@@ -11,6 +11,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
+using System.Runtime.CompilerServices;
using P=Hl7.Fhir.ElementModel.Types;
namespace Hl7.Fhir.Model;
@@ -81,6 +82,8 @@ IEnumerable ITypedElement.Children(string? name) =>
// HEt moet "code" zijn als dit een "Code" is. Dat zijn geloof ik de afwijkingen.
// Wellioht is er ook nog iets met de directe properties "Extension.url" en "Element.id" die van een
// system type zijn ipv een FHIR type.
+
+ [TemporarilyChanged] // TODO: This is a temporary change to make the tests pass. This should be removed. We are not planning to implement ITE.
string? ITypedElement.InstanceType =>
((IStructureDefinitionSummary)
ModelInspector