public void Process(Document input, Stage output)
 {
     var generator = new ValueSetGenerator(new ProfileKnowledgeProvider(input.Name, input.Context.Target.Directory));
     var valueset = (ValueSet)FhirParser.ParseResourceFromXml(input.Text);
     Document result = input.CloneMetadata();
     var xmldoc = generator.generate(valueset);
     result.Text = xmldoc.ToString(SaveOptions.DisableFormatting);
     output.Post(result);
 }
Example #2
0
        public void Process(Document input, Stage output)
        {
            Document template = Influx.Single(input);
            Document result   = input.CloneMetadata();

            result.Text      = template.Text.Replace("%body%", input.Text);
            result.Extension = template.Extension;

            output.Post(result);
        }
Example #3
0
        public void Process(Document input, Stage output)
        {
            var      generator = new ValueSetGenerator(new ProfileKnowledgeProvider(input.Name, input.Context.Target.Directory));
            var      valueset  = (ValueSet)FhirParser.ParseResourceFromXml(input.Text);
            Document result    = input.CloneMetadata();
            var      xmldoc    = generator.generate(valueset);

            result.Text = xmldoc.ToString(SaveOptions.DisableFormatting);
            output.Post(result);
        }
 public void Process(Document input, Stage output)
 {
     var pkp = new ProfileKnowledgeProvider(input.Name, input.Context.Target.Directory);
     var generator = new DictHtmlGenerator(pkp);
     var profile = (Profile)FhirParser.ParseResourceFromXml(input.Text);
     Document result = input.CloneMetadata();
     var xmldoc = generator.Generate(profile);
     result.SetFilename(pkp.GetLinkForProfileDict(profile));
     result.Text = xmldoc.ToString(SaveOptions.DisableFormatting);
     output.Post(result);
 }
        public void Process(Document input, Stage output)
        {
            input.Context.EnsureTarget(); // omdat er eerst plaatjes worden gegenereerd voorafgaand aan het document zelf.

            var generator = new ProfileTableGenerator(new ProfileKnowledgeProvider(input.Name, input.Context.Target.Directory));
            var profile = (Profile)FhirParser.ParseResourceFromXml(input.Text);
            Document result = input.CloneMetadata();
            var xmldoc = generator.Generate(profile, extensionsOnly: false);
            result.Text = xmldoc.ToString(SaveOptions.DisableFormatting);
            output.Post(result);
        }
        public void Process(Document input, Stage output)
        {
            Document template = Influx.Single(input);
            Document result = input.CloneMetadata();
            
            result.Text = template.Text.Replace("%body%", input.Text);
            result.Extension = template.Extension;

            output.Post(result);
           
        }
Example #7
0
        public void Process(Document input, Stage output)
        {
            input.Context.EnsureTarget(); // omdat er eerst plaatjes worden gegenereerd voorafgaand aan het document zelf.

            var      generator = new ProfileTableGenerator(new ProfileKnowledgeProvider(input.Name, input.Context.Target.Directory));
            var      profile   = (Profile)FhirParser.ParseResourceFromXml(input.Text);
            Document result    = input.CloneMetadata();
            var      xmldoc    = generator.Generate(profile, extensionsOnly: false);

            result.Text = xmldoc.ToString(SaveOptions.DisableFormatting);
            output.Post(result);
        }
        public void Process(Document input, Stage output)
        {
            var      pkp       = new ProfileKnowledgeProvider(input.Name, input.Context.Target.Directory);
            var      generator = new DictHtmlGenerator(pkp);
            var      profile   = (Profile)FhirParser.ParseResourceFromXml(input.Text);
            Document result    = input.CloneMetadata();
            var      xmldoc    = generator.Generate(profile);

            result.SetFilename(pkp.GetLinkForProfileDict(profile));
            result.Text = xmldoc.ToString(SaveOptions.DisableFormatting);
            output.Post(result);
        }
 public void Process(Document input, Stage output)
 {
     input.Attach(Influx.Documents);
     output.Post(input);
 }
Example #10
0
        public static void Push(string key, Document document)
        {
            Stage stage = Assert(key);

            stage.Post(document);
        }
Example #11
0
 public void Process(Document input, Stage output)
 {
     input.Attach(Influx.Documents);
     output.Post(input);
 }