Release 5 R6 Ballot (3rd Draft)
This page is part of the FHIR Specification (v5.0.0: R5 - STU ). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Publish-box (todo)

Example CodeSystem/version-algorithm (XML)

FHIR Infrastructure Work Group Maturity Level : N/A Standards Status : Informative

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

Definition for Code SystemVersionAlgorithm

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


  
  
    
    
  
  
    
    
      This code system 
         defines the following codes:
      
      
        
          
            
          
          
            
          
          
            
          
        
        
          semver
            
          
          
          
        
        
          integer
            
          
          
          
        
        
          alpha
            
          
          
          Simple alphabetic sort on a case-insensitive and accent-insensitive basis.  (Sorting
             of different cases or accented versions of a character is indeterminate)
        
        
          date
            
          
          
          Versions are expressed as an ISO date/time syntax (including syntaxes with only
             portions of a date)
        
        
          natural
            
          
          
          Sorted according to the algorithm defined here: [naturalordersort.org](http://www.naturalorde
            rsort.org/)
        
      
    
  
  
    
  
  
    
  
  
    
  
  
  
    
    
  
  
  
  
  
  
  
  
  
    
      
      
    
    
      
      
    
  
  
  
    
      
      
      
    
  
  
  
  
  
    
    
    
  
  
    
    
    
  
  
    
    

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="version-algorithm"/> 
  <meta> 
    <lastUpdated value="2025-04-01T12:16:37.966+11:00"/> 
    <profile value="http://hl7.org/fhir/StructureDefinition/shareablecodesystem"/> 
  </meta> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p class="res-header-id">
        <b> Generated Narrative: CodeSystem version-algorithm</b> 
      </p> 
      <a name="version-algorithm"> </a> 
      <a name="hcversion-algorithm"> </a> 
      <a name="version-algorithm-en-AU"> </a> 
      <div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border:
       1px solid #8da1b4; border-radius: 5px; line-height: 60%">
        <p style="margin-bottom: 0px"/>         <p style="margin-bottom: 0px">Profile:           <a href="shareablecodesystem.html">Shareable CodeSystem</a>         </p>       </div>       <p> This case-sensitive 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>             <div>               <p> Uses the semantic versioning scheme as defined in                 <a href="http://semver.org">semver.org</a> .              </p>             </div>           </td>         </tr>         <tr>           <td style="white-space:nowrap">integer            <a name="version-algorithm-integer"> </a>           </td>           <td> Integer</td>           <td>             <div>               <p> Versions are integers and ordered numerically</p>             </div>           </td>         </tr>         <tr>           <td style="white-space:nowrap">alpha            <a name="version-algorithm-alpha"> </a>           </td>           <td> Alphabetical</td>           <td>             <div>               <p> Simple alphabetic sort on a case-insensitive and accent-insensitive basis.  (Sorting

                 of different cases or accented versions of a character is indeterminate)</p> 
            </div>           </td>         </tr>         <tr>           <td style="white-space:nowrap">date            <a name="version-algorithm-date"> </a>           </td>           <td> Date</td>           <td>             <div>               <p> Versions are expressed as an ISO date/time syntax (including syntaxes with only

                 portions of a date)</p> 
            </div>           </td>         </tr>         <tr>           <td style="white-space:nowrap">natural            <a name="version-algorithm-natural"> </a>           </td>           <td> Natural</td>           <td>             <div>               <p> Sorted according to the algorithm defined here:                 <a href="http://www.naturalordersort.org/">naturalordersort.org</a>               </p>             </div>           </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="trial-use"/>   </extension>   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">    <valueInteger value="1"/>   </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="6.0.0-ballot3"/>   <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)
  
  
    
    

     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)
  
  
    
    

     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/)
  

    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.