Esempio n. 1
0
        private void ExtractReferenceTypes(MemberInfo prop, FhirPropertyInfo target)
        {
            var attReferenceAttribute = prop.GetCustomAttribute <ReferencesAttribute>(false);

            if (attReferenceAttribute == null)
            {
                return;
            }

            target.IsReference = true;
            target.AllowedTypes.AddRange(
                attReferenceAttribute.Resources.Select(r => _fhirModel.GetTypeForResourceName(r))
                .Where(at => at != null));
        }