Skip to content

Instantly share code, notes, and snippets.

Created April 10, 2018 13:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Basic connection approaches for Fhir terminology server -- See also
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//using RestSharp;
using Newtonsoft.Json;
using Hl7.Fhir.Model;
using Hl7.Fhir.Rest;
namespace ConsoleApplication1
class Program
static void Main(string[] args)
const string Endpoint = "";
var client = new FhirClient(Endpoint);
// Approach Using the ExpandValueSet()
var filter = new FhirString("inr");
var url = new FhirUri("");
var result = client.ExpandValueSet(url, filter);
//Approach using the more versatile .TypeOperation();
var parameters = new Parameters
Parameter = new List<Parameters.ParameterComponent>
new Parameters.ParameterComponent
Name = "identifier",
Value = new FhirUri($"")
new Parameters.ParameterComponent
Name = "filter",
Value = new FhirString("inr")
var result = (ValueSet)client.TypeOperation<ValueSet>("expand",parameters);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment