Skip to content

Commit

Permalink
Merge pull request #2725 from FirelyTeam/feature/rename-code-terminol…
Browse files Browse the repository at this point in the history
…ogy-service

Renamed CodeSystemTerminologyService for clarity
  • Loading branch information
mmsmits authored Mar 6, 2024
2 parents c42b3d8 + 9f4752a commit 7d6eadd
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 7d6eadd

Please sign in to comment.