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