public void RetrieveArtifactMulti() { var resolver = new MultiResolver(source, new WebResolver()); var vs = resolver.ResolveByCanonicalUri("http://hl7.org/fhir/ValueSet/v2-0292"); Assert.IsNotNull(vs); Assert.IsTrue(vs is ValueSet); var artifact = resolver.ResolveByUri("http://fhir2.healthintersections.com.au/open/StructureDefinition/flag"); Assert.IsNotNull(artifact); Assert.IsTrue(artifact is StructureDefinition); Assert.AreEqual("Flag", ((StructureDefinition)artifact).Name); }
public void RetrieveArtifactMulti() { var resolver = new MultiResolver(source, new WebResolver()); var vs = resolver.ResolveByCanonicalUri("http://hl7.org/fhir/ValueSet/v2-0292"); Assert.IsNotNull(vs); Assert.IsTrue(vs is ValueSet); var artifact = resolver.ResolveByUri("http://test.fhir.org/r2/StructureDefinition/Patient"); Assert.IsNotNull(artifact); Assert.IsTrue(artifact is StructureDefinition); Assert.AreEqual("Patient", ((StructureDefinition)artifact).Name); }