Exemple #1
0
 public GenerateItem(ProfileGenerator gen,
                     String nameSpace,
                     String name,
                     String profileType,
                     Type fhirType,
                     OutputLanguageType outputLanguage,
                     ElementNode profileElements)
 {
     this.gen             = gen;
     this.nameSpace       = nameSpace;
     this.name            = name;
     this.fhirType        = fhirType;
     this.outputLanguage  = outputLanguage;
     this.profileElements = profileElements;
     this.profileType     = profileType;
 }
Exemple #2
0
        void ProcessFile(String filePath)
        {
            if (File.Exists(filePath) == false)
            {
                throw new Exception($"File {this.inputFile} does not exist");
            }
            ProfileGenerator p = new ProfileGenerator(this.outputLanguage, this.nameSpace, this.outputDir);

            p.AddProfile(filePath);
            bool success = p.Process();

            if (success == false)
            {
                throw new Exception($"ProfileGenerator returned failure");
            }
        }