-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 2794-support-predefined-classmappings
- Loading branch information
Showing
48 changed files
with
877 additions
and
22 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## Intro: | ||
|
||
General improvements and bugfixes | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#nullable enable | ||
|
||
using System.Text.Json.Serialization; | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Authorization | ||
{ | ||
[JsonPropertyName("access_token")] public string? AccessToken { get; set; } // we need this naming for the deserialization | ||
[JsonPropertyName("token_type")] public string? TokenType { get; set; } | ||
[JsonPropertyName("expires_in")] public int? ExpiresIn { get; set; } | ||
public string? Scope { get; set; } | ||
public string? Subject { get; set; } | ||
public string? Patient { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Hl7.Fhir.Model; | ||
|
||
#nullable enable | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Action | ||
{ | ||
public string? Type { get; set; } | ||
public string? Description { get; set; } | ||
public Resource? Resource { get; set; } | ||
public string? Label { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#nullable enable | ||
using Hl7.Fhir.Model; | ||
using System.Collections.Generic; | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Card | ||
{ | ||
public string? Uuid { get; set; } | ||
public string? Summary { get; set; } | ||
public string? Detail { get; set; } | ||
public string? Indicator { get; set; } | ||
public Source? Source { get; set; } | ||
public List<Suggestion>? Suggestions { get; set; } | ||
public string? SelectionBehavior { get; set; } | ||
public List<Coding>? OverrideReasons { get; set; } | ||
public List<Link>? Links { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System; | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
[AttributeUsage(AttributeTargets.Class, Inherited = false)] | ||
public sealed class CdsHookElementAttribute() : Attribute; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#nullable enable | ||
using System.Collections.Generic; | ||
using System.Text.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Context | ||
{ | ||
public string? UserId { get; set; } | ||
public string? PatientId { get; set; } | ||
public string? EncounterId { get; set; } | ||
[JsonExtensionData] public Dictionary<string, JsonElement>? Fields { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.Generic; | ||
|
||
#nullable enable | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class DiscoveryResponse | ||
{ | ||
public List<Service>? Services { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#nullable enable | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Feedback | ||
{ | ||
public string? Card { get; set; } | ||
public string? Outcome { get; set; } | ||
public List<Identifier>? AcceptedSuggestions { get; set; } | ||
public OverrideReason? OverrideReason { get; set; } | ||
public string? OutcomeTimeStamp { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#nullable enable | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Identifier | ||
{ | ||
public string? Id { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#nullable enable | ||
|
||
using System; | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Link | ||
{ | ||
public string? Label { get; set; } | ||
public Uri? Url { get; set; } | ||
public string? Type { get; set; } | ||
public string? AppContext { get; set; } | ||
public bool? Autolaunchable { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#nullable enable | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class OverrideReason | ||
{ | ||
public Coding? Reason { get; set; } | ||
public string? UserComment { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#nullable enable | ||
using Hl7.Fhir.Model; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json; | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Request | ||
{ | ||
public string? HookInstance { get; set; } | ||
public Uri? FhirServer { get; set; } | ||
public string? Hook { get; set; } | ||
public Authorization? FhirAuthorization { get; set; } | ||
public Context? Context { get; set; } | ||
public Dictionary<string, Resource>? Prefetch { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#nullable enable | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Response | ||
{ | ||
public List<Card>? Cards { get; set; } | ||
public List<Action>? SystemActions { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Collections.Generic; | ||
|
||
#nullable enable | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Service | ||
{ | ||
public string? Hook { get; set; } | ||
public string? Title { get; set; } | ||
public string? Description { get; set; } | ||
public string? Id { get; set; } | ||
public Dictionary<string, string>? Prefetch { get; set; } | ||
public string? UsageRequirements { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Hl7.Fhir.Model; | ||
using System; | ||
|
||
#nullable enable | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Source | ||
{ | ||
public string? Label { get; set; } | ||
public Uri? Url { get; set; } | ||
public Uri? Icon { get; set; } | ||
public Coding? Coding { get; set; } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#nullable enable | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Hl7.Fhir.Model.CdsHooks; | ||
|
||
#if NET8_0_OR_GREATER | ||
[System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "ExperimentalApi")] | ||
#else | ||
[System.Obsolete("This function is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.")] | ||
#endif | ||
[CdsHookElement] | ||
public class Suggestion | ||
{ | ||
public string? Label { get; set; } | ||
public string? Uuid { get; set; } | ||
public bool IsRecommended { get; set; } | ||
public List<Action>? Actions { get; set; } | ||
} |
Oops, something went wrong.