R5 Final QA

This page is part of the FHIR Specification (v5.0.0-draft-final: Final QA Preview for R5 - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Example CodeSystem/version-algorithm (XML)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: Informative

Raw XML (canonical form + also see XML Format Specification)

Definition for Code SystemVersionAlgorithm

<?xml version="1.0" encoding="UTF-8"?>

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="version-algorithm"/> 
  <meta> 
    <lastUpdated value="2023-03-01T23:03:57.298+11:00"/> 
    <profile value="http://hl7.org/fhir/StructureDefinition/shareablecodesystem"/> 
  </meta> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p> This code system 
        <code> http://hl7.org/fhir/version-algorithm</code>  defines the following codes:
      </p> 
      <table class="codes">
        <tr> 
          <td style="white-space:nowrap">
            <b> Code</b> 
          </td> 
          <td> 
            <b> Display</b> 
          </td> 
          <td> 
            <b> Definition</b> 
          </td> 
        </tr> 
        <tr> 
          <td style="white-space:nowrap">semver
            <a name="version-algorithm-semver"> </a> 
          </td> 
          <td> SemVer</td> 
          <td> Uses the semantic versioning scheme as defined in [semver.org](http://semver.org).</td> 
        </tr> 
        <tr> 
          <td style="white-space:nowrap">integer
            <a name="version-algorithm-integer"> </a> 
          </td> 
          <td> Integer</td> 
          <td> Versions are integers and ordered numerically</td> 
        </tr> 
        <tr> 
          <td style="white-space:nowrap">alpha
            <a name="version-algorithm-alpha"> </a> 
          </td> 
          <td> Alphabetical</td> 
          <td> Simple alphabetic sort on a case-insensitive and accent-insensitive basis.  (Sorting
             of different cases or accented versions of a character is indeterminate)</td> 
        </tr> 
        <tr> 
          <td style="white-space:nowrap">date
            <a name="version-algorithm-date"> </a> 
          </td> 
          <td> Date</td> 
          <td> Versions are expressed as an ISO date/time syntax (including syntaxes with only
             portions of a date)</td> 
        </tr> 
        <tr> 
          <td style="white-space:nowrap">natural
            <a name="version-algorithm-natural"> </a> 
          </td> 
          <td> Natural</td> 
          <td> Sorted according to the algorithm defined here: [naturalordersort.org](http://www.naturalorde
            rsort.org/)</td> 
        </tr> 
      </table> 
    </div> 
  </text> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="normative"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="5"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
    <valueCode value="4.0.0"/> 
  </extension> 
  <url value="http://hl7.org/fhir/version-algorithm"/> 
  <identifier> 
    <system value="urn:ietf:rfc:3986"/> 
    <value value="urn:oid:2.16.840.1.113883.4.642.4.1989"/> 
  </identifier> 
  <version value="5.0.0-draft-final"/> 
  <name value="VersionAlgorithm"/> 
  <title value="Version Algorithm"/> 
  <status value="active"/> 
  <experimental value="false"/> 
  <date value="2021-01-05T10:01:24+11:00"/> 
  <publisher value="HL7 (FHIR Project)"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://hl7.org/fhir"/> 
    </telecom> 
    <telecom> 
      <system value="email"/> 
      <value value="fhir@lists.hl7.org"/> 
    </telecom> 
  </contact> 
  <description value="Indicates the mechanism used to compare versions to determine which is more current."/> 
  <jurisdiction> 
    <coding> 
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> 
      <code value="001"/> 
      <display value="World"/> 
    </coding> 
  </jurisdiction> 
  <caseSensitive value="true"/> 
  <valueSet value="http://hl7.org/fhir/ValueSet/version-algorithm"/> 
  <content value="complete"/> 
  <concept> 
    <code value="semver"/> 
    <display value="SemVer"/> 
    <definition value="Uses the semantic versioning scheme as defined in [semver.org](http://semver.org)."/> 
  </concept> 
  <concept> 
    <code value="integer"/> 
    <display value="Integer"/> 
    <definition value="Versions are integers and ordered numerically"/> 
  </concept> 
  <concept> 
    <code value="alpha"/> 
    <display value="Alphabetical"/> 
    <definition value="Simple alphabetic sort on a case-insensitive and accent-insensitive basis.  (Sorting
     of different cases or accented versions of a character is indeterminate)"/> 
  </concept> 
  <concept> 
    <code value="date"/> 
    <display value="Date"/> 
    <definition value="Versions are expressed as an ISO date/time syntax (including syntaxes with only
     portions of a date)"/> 
  </concept> 
  <concept> 
    <code value="natural"/> 
    <display value="Natural"/> 
    <definition value="Sorted according to the algorithm defined here: [naturalordersort.org](http://www.naturalorde
    rsort.org/)"/> 
  </concept> 
</CodeSystem> 

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.