Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2106 - Terminologyserviceexpand #2244

Merged
merged 1 commit into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/Hl7.Fhir.Core.Tests/Rest/OperationsTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
/*
* Copyright (c) 2014, Firely (info@fire.ly) and contributors
* See the file CONTRIBUTORS for details.
*
*
* This file is licensed under the BSD 3-Clause license
* available at https://raw.githubusercontent.com/FirelyTeam/firely-net-sdk/master/LICENSE
*/
Expand Down Expand Up @@ -73,8 +73,13 @@ public void InvokeExpandExistingValueSetHttpClient()

private static void expandExistingValueset(BaseFhirClient client)
{
// expand via instance level operation
var vs = client.ExpandValueSet(ResourceIdentity.Build("ValueSet", "administrative-gender"));
Assert.IsTrue(vs.Expansion.Contains.Any());

// expand via Canonical URI
vs = client.ExpandValueSet(new FhirUri("http://hl7.org/fhir/ValueSet/administrative-gender"));
Assert.IsTrue(vs.Expansion.Contains.Any());
}

[TestMethod]
Expand Down
2 changes: 1 addition & 1 deletion src/Hl7.Fhir.Core/Rest/FhirClientTermSvcExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static async Task<ValueSet> ExpandValueSetAsync(this BaseFhirClient clien

var par = new Parameters();

par.Add("identifier", identifier);
par.Add("url", identifier);
if (filter != null) par.Add("filter", filter);
if (date != null) par.Add("date", date);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Hl7.Fhir.Specification.Tests
public class TerminologyTests : IClassFixture<ValidationFixture>
{
private readonly IAsyncResourceResolver _resolver;
private static Uri _externalTerminologyServerEndpoint = new("https://ontoserver.csiro.au/stu3-latest");
private static Uri _externalTerminologyServerEndpoint = new("https://r4.ontoserver.csiro.au/fhir");

public TerminologyTests(ValidationFixture fixture, Xunit.Abstractions.ITestOutputHelper _)
{
Expand Down