public void FindValueSet() { var vs = source.FindValueSet("http://hl7.org/fhir/ValueSet/contact-point-system"); Assert.IsNotNull(vs); var vs2 = source.FindValueSetBySystem("http://hl7.org/fhir/contact-point-system"); Assert.IsNotNull(vs2); Assert.AreEqual(vs.Url, vs2.Url); }
public void FindValueSets() { // A Fhir valueset var vs = source.FindValueSetBySystem("http://hl7.org/fhir/contact-point-system"); Assert.IsNotNull(vs); Assert.IsNotNull(vs.Annotation<OriginInformation>()); // A non-HL7 valueset vs = source.FindValueSetBySystem("http://nema.org/dicom/dicm"); Assert.IsNotNull(vs); // One from v2-tables vs = source.FindValueSetBySystem("http://hl7.org/fhir/v2/0145"); Assert.IsNotNull(vs); // One from v3-codesystems vs = source.FindValueSetBySystem("http://hl7.org/fhir/v3/ActCode"); Assert.IsNotNull(vs); // Something non-existent vs = source.FindValueSetBySystem("http://nema.org/dicom/dicmQQQQ"); Assert.IsNull(vs); }
public ValueSet FindValueSetBySystem(string system) => measureDuration(() => _source.FindValueSetBySystem(system));