This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <package id="jose-jwt" version="2.1.0" targetFramework="net461" /> | |
public async Task UseNASHcertificate() | |
{ | |
// retrieve the NASH/Medicare certificate (from the local store - but could come from elsewhere) | |
var cert = GetNASHOrMedicareCertificate(); | |
// Use the Digital certificate as a client cert for the http connection | |
// to the token endpoint | |
HttpClientHandler handler = new HttpClientHandler(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// https://hl7.org/fhir/mapping.g4 | |
/// </summary> | |
public class StructureMap_Serializer | |
{ | |
public string Write_structureMap(StructureMap sm) | |
{ | |
// mapId structure* imports* group+ EOF | |
StringBuilder sb = new StringBuilder(); | |
sb.AppendLine(Write_mapId(sm)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void TestFmlParserReal() | |
{ | |
var expression = "map \"http://hl7.org/fhir/StructureMap/tutorial\" = tutorial\r\n"; | |
expression += "uses \"http://hl7.org/fhir/StructureDefinition/Patient\" alias pat as source\r\n"; | |
expression += "uses \"http://hl7.org/fhir/StructureDefinition/RelatedPerson\" alias rp as target\r\n"; | |
expression += "imports \"http://hl7.org/fhir/StructureMap/core\"\r\n"; | |
expression += "group tutorial\r\n"; | |
Console.WriteLine(expression); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import extensionHelpers from "fhir-extension-helpers"; | |
/** Helper methods */ | |
export namespace structuredDataCapture { | |
/* Extension URLs used in the Structure Data Capture IG */ | |
// ---------------------------------------------------------------------- | |
// markdown | |
// markdown(0..1) | |
// This is an equivalent of the string on which the extension is sent, but includes additional markdown (see documentation about [markdown](datatypes.html#markdown). Note that using HTML [xhtml](extension-rendering-xhtml.html) can allow for greater precision of display. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Hl7.Fhir.Model; | |
using Hl7.Fhir.Rest; | |
using Hl7.FhirPath; | |
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <auto-generated/> | |
// Contents of: hl7.fhir.au.base version: 2.2.0 | |
using System; | |
using System.Buffers; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Linq; | |
using Hl7.Fhir.Model; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class QuestionnaireResponse_Validator | |
{ | |
public QuestionnaireResponse_Validator(ValidationSettings settings = null) | |
{ | |
_settings = settings ?? new ValidationSettings() | |
{ | |
TerminologyServerAddress = "https://sqlonfhir-r4.azurewebsites.net/fhir", | |
TerminologyServerFhirClientSettings = new FhirClientSettings() | |
{ | |
VerifyFhirVersion = false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (operation == "fhirpath") | |
{ | |
Resource resource = operationParameters.GetResource("resource"); | |
string resourceId = operationParameters.GetString("resource"); | |
string terminologyServerUrl = operationParameters.GetString("terminologyserver"); | |
if (resource == null && !string.IsNullOrEmpty(resourceId)) | |
{ | |
// load the resource from another server | |
ResourceIdentity ri = new ResourceIdentity(resourceId); | |
if (!string.IsNullOrEmpty(ri.BaseUri?.OriginalString)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Hl7.Fhir.Model; | |
using Hl7.FhirPath; | |
using Hl7.FhirPath.Expressions; | |
using NaturalSort.Extension; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
// Requires these 2 nuget packages | |
// <PackageReference Include="NaturalSort.Extension" Version="3.2.0" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Threading; | |
using Hl7.Fhir.Model; | |
using Hl7.Fhir.Rest; | |
using Hl7.Fhir.Serialization; | |
using Hl7.Fhir.Utility; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Newtonsoft.Json; |
OlderNewer