public void CopyXml()
 {
     foreach (ResourceFile file in _profileSet.Files)
     {
         _outputPaths.WriteUtf8File(file.FileType, file.OutputXmlFilename, file.Xml);
     }
 }
        public void Generate(StructureDefinitionFile structureDefinitionFile)
        {
            if (!_resourceFileSet.StructureDefinitionFiles.Contains(structureDefinitionFile))
            {
                throw new ArgumentException("StructureDefinition does not exist in FhirXmlProfileSet", "definition");
            }

            string html = GenerateHtml(structureDefinitionFile);

            _outputPaths.WriteUtf8File(OutputFileType.Html, structureDefinitionFile.OutputHtmlFilename, html);
        }
Beispiel #3
0
        public void Generate(ValueSetFile valuesetFile)
        {
            if (!_profileSet.ValueSetFiles.Contains(valuesetFile))
            {
                throw new ArgumentException("ValueSet does not exist in FhirXmlProfileSet", "valueset");
            }

            string html = GenerateHtml(valuesetFile);

            _outputPaths.WriteUtf8File(OutputFileType.Html, valuesetFile.OutputHtmlFilename, html);
        }
Beispiel #4
0
        public void Generate(ConceptMapFile conceptMapFile)
        {
            if (!_profileSet.ConceptMapFiles.Contains(conceptMapFile))
            {
                throw new ArgumentException("ConceptMap does not exist in FhirXmlProfileSet", "conceptMap");
            }

            string html = GenerateHtml(conceptMapFile);

            _outputPaths.WriteUtf8File(OutputFileType.Html, conceptMapFile.OutputHtmlFilename, html);
        }
Beispiel #5
0
        private void WritePage(string fileName, string itemTypeName, XElement content)
        {
            string contentHtml = Html.Div(new object[]
            {
                Html.H3(itemTypeName),
                content
            })
                                 .ToString(SaveOptions.DisableFormatting);

            string html = Pages.Instance.GetPage(itemTypeName, contentHtml, "0.1", DateTime.Now);

            _outputPaths.WriteUtf8File(OutputFileType.Html, fileName, html);
        }