/// <summary> /// Set Composable. /// </summary> public static void SetComposable(this IExtendable resource, Composable composableValue) { switch (resource) { case StructureDefinition sDef: break; case ElementDefinition eDef: break; default: throw new Exception($"Can only set composable on an element definition"); } resource.AddExtension(ComposableExtensionUri, new FhirString(composableValue.ToString())); }