{
  "resourceType": "CodeSystem",
  "id": "version-algorithm",
  "meta": {
    "lastUpdated": "2023-03-26T15:21:02.749+11:00",
    "profile": [
      "http://hl7.org/fhir/StructureDefinition/shareablecodesystem"
    ]
  },
  "text": {
    "status": "generated",
    "div": "<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.naturalordersort.org/)</td></tr></table></div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1
    }
  ],
  "url": "http://hl7.org/fhir/version-algorithm",
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.840.1.113883.4.642.4.1989"
    }
  ],
  "version": "5.0.0",
  "name": "VersionAlgorithm",
  "title": "Version Algorithm",
  "status": "active",
  "experimental": false,
  "date": "2021-01-05T10:01:24+11:00",
  "publisher": "HL7 (FHIR Project)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        },
        {
          "system": "email",
          "value": "fhir@lists.hl7.org"
        }
      ]
    }
  ],
  "description": "Indicates the mechanism used to compare versions to determine which is more current.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001",
          "display": "World"
        }
      ]
    }
  ],
  "caseSensitive": true,
  "valueSet": "http://hl7.org/fhir/ValueSet/version-algorithm",
  "content": "complete",
  "concept": [
    {
      "code": "semver",
      "display": "SemVer",
      "definition": "Uses the semantic versioning scheme as defined in [semver.org](http://semver.org)."
    },
    {
      "code": "integer",
      "display": "Integer",
      "definition": "Versions are integers and ordered numerically"
    },
    {
      "code": "alpha",
      "display": "Alphabetical",
      "definition": "Simple alphabetic sort on a case-insensitive and accent-insensitive basis.  (Sorting of different cases or accented versions of a character is indeterminate)"
    },
    {
      "code": "date",
      "display": "Date",
      "definition": "Versions are expressed as an ISO date/time syntax (including syntaxes with only portions of a date)"
    },
    {
      "code": "natural",
      "display": "Natural",
      "definition": "Sorted according to the algorithm defined here: [naturalordersort.org](http://www.naturalordersort.org/)"
    }
  ]
}