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();
        }
示例#2
0
 public static void Init(TestContext context)
 {
     spec = SpecificationFactory.Create("http://hl7.org/fhir/Profile/Conformance");
 }
示例#3
0
 public ResourceValidator(SpecificationWorkspace profile)
 {
     this.specification = profile;
 }
        internal Report Validate(SpecificationWorkspace specification)
        {
            SpecificationValidator pv = new SpecificationValidator(specification);

            return(pv.Validate());
        }
示例#5
0
 private SpecificationBinder(SpecificationWorkspace specification)
 {
     this.specification = specification;
 }
示例#6
0
 /// <summary>
 /// Make the profile complete and usable by binding all internal structures and perform precompilation
 /// </summary>
 public static void Bind(SpecificationWorkspace specification)
 {
     SpecificationBinder binder = new SpecificationBinder(specification);
     binder.bind();
 }
 public SpecificationValidator(SpecificationWorkspace profile)
 {
     this.profile = profile;
 }