public static void Init(TestContext context)
        {
            SpecificationProvider provider = SpecificationProvider.CreateOffline(new FileArtifactSource("TestData"));
            SpecificationBuilder builder = new SpecificationBuilder(provider);

            builder.Add(StructureFactory.PrimitiveTypes());
            builder.Add(StructureFactory.NonFhirNamespaces());
            builder.Add("http://disk/Profile/lipid.profile.xml#lipidPanel");
            builder.Expand();

            spec =  builder.ToSpecification();
        }
Exemplo n.º 2
0
 private SpecificationBinder(Specification specification)
 {
     this.specification = specification;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Make the profile complete and usable by binding all internal structures and perform precompilation
 /// </summary>
 public static void Bind(Specification specification)
 {
     SpecificationBinder binder = new SpecificationBinder(specification);
     binder.bind();
 }
Exemplo n.º 4
0
 public static void Init(TestContext context)
 {
     spec = Factory.GetPatientSpec(expand: true, online: false);
 }
 public SpecificationValidator(Specification profile)
 {
     this.profile = profile;
 }
Exemplo n.º 6
0
 public ResourceValidator(Specification profile)
 {
     this.specification = profile;
 }