コード例 #1
0
 public void CopyXml()
 {
     foreach (ResourceFile file in _profileSet.Files)
     {
         _outputPaths.WriteUtf8File(file.FileType, file.OutputXmlFilename, file.Xml);
     }
 }
コード例 #2
0
        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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }