Exemple #1
0
        //
        // STRUCTURE_FORM
        //
        public static StructureForm?GetStructureForm(this Profile.ProfileStructureComponent structure)
        {
            var           val  = structure.GetExtensionValue(STRUCTURE_FORM) as Code;
            StructureForm?form = null;

            if (val != null)
            {
                form = (StructureForm)Enum.Parse(typeof(StructureForm), val.Value);
            }

            return(form);
        }
Exemple #2
0
        //
        // STRUCTURE_BASE_URI
        //
        public static string GetStructureBaseUri(this Profile.ProfileStructureComponent structure)
        {
            var val = structure.GetExtensionValue(STRUCTURE_BASE_URI) as FhirUri;

            return(val != null ? val.Value : null);
        }