Skip to content

Commit

Permalink
Merge branch 'develop' into feature/2627-deserialization-stack-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsmits committed Mar 6, 2024
2 parents 6177922 + 7d6eadd commit 378ef8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ namespace Hl7.Fhir.Specification.Terminology
/// <summary>
/// Base class for checking Code terminology
/// </summary>
public abstract class CodeSystemTerminologyService : ITerminologyService
public abstract class CustomValueSetTerminologyService : ITerminologyService
{
private readonly string _terminologyType;
private readonly string _codeSystem;
private readonly string[] _codeValueSets;

/// <summary>
/// Base class for checking Code terminology.
/// Base class for checking terminology of codes that are part of a value set.
/// </summary>
/// <param name="terminologyType">String representation of the code type which is being checked. Exclusively used for error messages</param>
/// <param name="codeSystem">Name of the specification defining the members of the value set</param>
/// <param name="codeValueSets">uri's of the definitions of the code system. This can be multiple, if a FHIR version has changed this at some point.</param>
protected CodeSystemTerminologyService(string terminologyType, string codeSystem, string[] codeValueSets)
protected CustomValueSetTerminologyService(string terminologyType, string codeSystem, string[] codeValueSets)
{
_terminologyType = terminologyType;
_codeSystem = codeSystem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Hl7.Fhir.Specification.Terminology
/// <summary>
/// Checks if codes are valid language types
/// </summary>
public class LanguageTerminologyService : CodeSystemTerminologyService
public class LanguageTerminologyService : CustomValueSetTerminologyService
{
private const string LANGUAGE_SYSTEM = "urn:ietf:bcp:47";
public const string LANGUAGE_VALUESET = "http://hl7.org/fhir/ValueSet/all-languages";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Hl7.Fhir.Specification.Terminology
/// <summary>
/// Checks if codes are valid Mime-Types (urn:ietf:bcp:13)
/// </summary>
public sealed class MimeTypeTerminologyService : CodeSystemTerminologyService
public sealed class MimeTypeTerminologyService : CustomValueSetTerminologyService
{
private const string MIMETYPE_SYSTEM = "urn:ietf:bcp:13";
public const string MIMETYPE_VALUESET_R4_AND_UP = "http://hl7.org/fhir/ValueSet/mimetypes";
Expand Down

0 comments on commit 378ef8f

Please sign in to comment.