Ejemplo n.º 1
0
        public static void RemoveFragmentExtensions(String dir)
        {
            foreach (String filePath in Directory.GetFiles(dir, "*.json"))
            {
                FhirJsonParser parser = new FhirJsonParser();
                DomainResource dr     = parser.Parse <DomainResource>(File.ReadAllText(filePath));
                RemoveFragmentExtensions(dr);
                dr.SaveJson(filePath);
            }

            foreach (String subDir in Directory.GetDirectories(dir))
            {
                RemoveFragmentExtensions(subDir);
            }
        }