public void InvokeValidateCodeByCanonical() { var client = new FhirClient(FhirClientTests.TerminologyEndpoint); var coding = new Coding("http://snomed.info/sct", "4322002"); var result = client.ValidateCode(identifier: new FhirUri("http://hl7.org/fhir/ValueSet/c80-facilitycodes"), coding: coding, @abstract: new FhirBoolean(false)); Assert.IsTrue(result.Result?.Value == true); }
public void InvokeValidateCodeWithVS() { var client = new FhirClient(FhirClientTests.TerminologyEndpoint); var coding = new Coding("http://snomed.info/sct", "4322002"); var vs = client.Read <ValueSet>("ValueSet/c80-facilitycodes"); Assert.IsNotNull(vs); var result = client.ValidateCode(valueSet: vs, coding: coding); Assert.IsTrue(result.Result?.Value == true); }