protected override Profile LoadProfile() { ProfileBuilder builder = new ProfileBuilder(); //profile.Add(ProfileFactory.MetaTypesProfile()); //profile.Add(ProfileFactory.DataTypesProfile()); builder.Add(StructureFactory.PrimitiveTypes()); builder.Add(StructureFactory.NonFhirNamespaces()); builder.LoadXMLValueSets("Data\\valuesets.xml"); builder.LoadXmlFile("Data\\type-Extension.profile.xml"); builder.LoadXmlFile("Data\\type-HumanName.profile.xml"); builder.LoadXmlFile("Data\\type-Identifier.profile.xml"); builder.LoadXmlFile("Data\\type-Narrative.profile.xml"); builder.LoadXmlFile("Data\\patient.profile.xml"); return(builder.ToProfile()); }
public static void LoadXMLValueSets(this ProfileBuilder builder, string filename) { XmlDocument document = new XmlDocument(); document.Load(filename); ProfileReader reader = new ProfileReader(); List <ValueSet> valuesets = reader.ReadValueSets(document); builder.Add(valuesets); }
protected override Profile LoadProfile() { ProfileBuilder builder = new ProfileBuilder(); //profile.Add(ProfileFactory.MetaTypesProfile()); //profile.Add(ProfileFactory.DataTypesProfile()); builder.Add(StructureFactory.PrimitiveTypes()); //profile.LoadXMLValueSets("Data\\valuesets.xml"); //profile.LoadXmlFile("Data\\type-HumanName.profile.xml"); //profile.LoadXmlFile("Data\\type-Identifier.profile.xml"); builder.LoadXmlFile("Data\\type-ResourceReference.profile.xml"); builder.LoadXmlFile("Data\\profile.profile.xml"); return(builder.ToProfile()); }
public static void LoadXmlFile(this ProfileBuilder builder, string filename) { List <Structure> structures = LoadXmlFile(filename); builder.Add(structures); }