public ITypedElement Resolve(string reference) { if (string.IsNullOrWhiteSpace(reference)) { return(null); } ReferenceSearchValue parsed = _referenceParser.Parse(reference); if (parsed == null || !_modelInfoProvider.IsKnownResource(parsed.ResourceType)) { return(null); } ISourceNode node = FhirJsonNode.Create( JObject.FromObject( new { resourceType = parsed.ResourceType, id = parsed.ResourceId, })); return(node.ToTypedElement(_modelInfoProvider.StructureDefinitionSummaryProvider)); }