예제 #1
0
        /// <summary>Determines if the specified value represents the name of a FHIR complex data type (NOT including resources and primitives).</summary>
        public static bool IsDataType(string name)
        {
            if (String.IsNullOrEmpty(name))
            {
                return(false);
            }

            return(FhirTypeToCsType.ContainsKey(name) && !IsKnownResource(name) && !IsPrimitive(name));
        }
예제 #2
0
        /// <summary>Determines if the specified value represents the name of a FHIR primitive data type.</summary>
        public static bool IsPrimitive(string name)
        {
            if (String.IsNullOrEmpty(name))
            {
                return(false);
            }

            return(FhirTypeToCsType.ContainsKey(name) && Char.IsLower(name[0]));
        }
예제 #3
0
 public static Type GetTypeForFhirType(string name)
 {
     if (!FhirTypeToCsType.ContainsKey(name))
     {
         return(null);
     }
     else
     {
         return(FhirTypeToCsType[name]);
     }
 }
예제 #4
0
 public static bool IsDataType(string name)
 {
     return(FhirTypeToCsType.ContainsKey(name) && !IsKnownResource(name) && !IsPrimitive(name));
 }
예제 #5
0
 public static bool IsPrimitive(string name)
 {
     return(FhirTypeToCsType.ContainsKey(name) && Char.IsLower(name[0]));
 }
예제 #6
0
 /// <summary>Determines if the specified value represents the name of a core Resource, Datatype or primitive.</summary>
 public static bool IsCoreModelType(string name) => FhirTypeToCsType.ContainsKey(name);