Example #1
0
        private void AddImplementationGuide(bool includeVocabulary)
        {
            ImplementationGuideExporter igExporter = new ImplementationGuideExporter(this.tdb, this.schema, "http", "test.com");
            var fhirIg = igExporter.Convert(this.ig, includeVocabulary: includeVocabulary);

            var    fhirIgContent  = FhirSerializer.SerializeResourceToXml(fhirIg);
            string fhirIgFileName = string.Format("resources/implementationguide/ImplementationGuide_{0}.xml", ig.Id);

            this.control.source = "implementationguide/ImplementationGuide_" + ig.Id.ToString() + ".xml";

            this.zip.AddEntry(fhirIgFileName, fhirIgContent);
        }
Example #2
0
        private void AddImplementationGuide(bool includeVocabulary)
        {
            ImplementationGuideExporter igExporter = new ImplementationGuideExporter(this.tdb, this.schema, "http", "test.com");
            var    fhirIg         = igExporter.Convert(this.ig, includeVocabulary: includeVocabulary);
            var    fhirIgContent  = this.Serialize(fhirIg);
            string fileExtension  = this.JsonFormat ? "json" : "xml";
            string fhirIgFileName = string.Format("resources/implementationguide/{0}.{1}", fhirIg.Id, fileExtension);

            this.control.Source = string.Format("implementationguide/{0}.{1}", fhirIg.Id, fileExtension);

            this.zip.AddEntry(fhirIgFileName, fhirIgContent);
        }