Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MattCordell
MattCordell / Simple Create Patient Client
Created February 12, 2020 02:03
Sample code for testing FHIR server
using System;
using System.Collections.Generic;
using Hl7.Fhir.Model;
using Hl7.Fhir.Rest;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
@MattCordell
MattCordell / translate.cs
Created March 15, 2019 05:23
FHIR translate in C#
Console.WriteLine("Let's try translate!");
//Translate parameters
var revsertTranslateParameters = new Parameters
{
Parameter = new List<Parameters.ParameterComponent>
{
new Parameters.ParameterComponent
{
@MattCordell
MattCordell / FhirTerminologyServer.cs
Created April 10, 2018 13:17
Basic connection approaches for Fhir terminology server -- See also http://snoyowie.com/2018/03/3-approaches-to-fhir-value-set-expansion/
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;
@MattCordell
MattCordell / LingoLogin.cs
Created April 10, 2018 13:08
LoginWithLingoAPI
using System;
using System.Net;
using RestSharp;
namespace D_Punch
{
public class LingoCredential
{
public string password { get; set; }
public string username { get; set; }
@MattCordell
MattCordell / FhirPatient.cs
Created April 10, 2018 13:01
Adding a patient then searching for by DOB in FHIR
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hl7.Fhir.Rest;
using Hl7.Fhir.Model;
namespace PatientLogger
@MattCordell
MattCordell / ValueSet.cs
Created April 7, 2018 08:30
Custom ValueSet Object (from JSON)
// generated from http://json2csharp.com
public class Parameter
{
public string name { get; set; }
public string valueUri { get; set; }
public string valueString { get; set; }
}
public class Contain
{
public string system { get; set; }