@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/CodeSystem/version-algorithm> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "version-algorithm"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2026-06-11T13:08:54.712+00:00"^^xsd:dateTime ]
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<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><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>\n</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>\n</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>\n</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) in the general format of YYYY-MM-DD (with or without separators). Inclusion of the time portion is optional.</p>\n</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>\n</div></td></tr><tr><td style=\"white-space:nowrap\">major-minor<a name=\"version-algorithm-major-minor\"> </a></td><td>Major/Minor</td><td><div><p>Similar to semver, but having only two components - i.e. a major and minor (integer) version number separated by a '.'.  The specific nature of what constitutes a major vs. minor increment is locally defined.</p>\n</div></td></tr><tr><td style=\"white-space:nowrap\">sct-url<a name=\"version-algorithm-sct-url\"> </a></td><td>SNOMED-CT URL</td><td><div><p>Versions are expressed according to the SNOMED URL scheme. See the <a href=\"https://terminology.hl7.org/SNOMEDCT.html#versions\">Versions</a> topic for more details.</p>\n</div></td></tr><tr><td style=\"white-space:nowrap\">us-date<a name=\"version-algorithm-us-date\"> </a></td><td>US Date</td><td><div><p>Versions are expressed as an US date format, i.e. MMDDYYYY (with or without separators).</p>\n</div></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "cds"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "normative"
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm>
     ] ;
     fhir:value [
       a fhir:Integer ;
       fhir:v 5
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/version-algorithm"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/version-algorithm>
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.4.1989" ]
  ] ) ; # 
  fhir:version [ fhir:v "6.0.0-ballot4"] ; # 
  fhir:name [ fhir:v "VersionAlgorithm"] ; # 
  fhir:title [ fhir:v "Version Algorithm"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:date [ fhir:v "2021-01-05T10:01:24+11:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / Clinical Decision Support"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "fhir@lists.hl7.org" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/dss" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Indicates the mechanism used to compare versions to determine which is more current."] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
         fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>
       ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:valueSet [
     fhir:v "http://hl7.org/fhir/ValueSet/version-algorithm"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/ValueSet/version-algorithm>
  ] ; # 
  fhir:hierarchyMeaning [] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "semver" ] ;
     fhir:display [ fhir:v "SemVer" ] ;
     fhir:definition [ fhir:v "Uses the semantic versioning scheme as defined in [semver.org](http://semver.org)." ]
  ] [
     fhir:code [ fhir:v "integer" ] ;
     fhir:display [ fhir:v "Integer" ] ;
     fhir:definition [ fhir:v "Versions are integers and ordered numerically" ]
  ] [
     fhir:code [ fhir:v "alpha" ] ;
     fhir:display [ fhir:v "Alphabetical" ] ;
     fhir:definition [ fhir:v "Simple alphabetic sort on a case-insensitive and accent-insensitive basis.  (Sorting of different cases or accented versions of a character is indeterminate)" ]
  ] [
     fhir:code [ fhir:v "date" ] ;
     fhir:display [ fhir:v "Date" ] ;
     fhir:definition [ fhir:v "Versions are expressed as an ISO date/time syntax (including syntaxes with only portions of a date) in the general format of YYYY-MM-DD (with or without separators). Inclusion of the time portion is optional." ]
  ] [
     fhir:code [ fhir:v "natural" ] ;
     fhir:display [ fhir:v "Natural" ] ;
     fhir:definition [ fhir:v "Sorted according to the algorithm defined here: [naturalordersort.org](http://www.naturalordersort.org/)" ]
  ] [
     fhir:code [ fhir:v "major-minor" ] ;
     fhir:display [ fhir:v "Major/Minor" ] ;
     fhir:definition [ fhir:v "Similar to semver, but having only two components - i.e. a major and minor (integer) version number separated by a '.'.  The specific nature of what constitutes a major vs. minor increment is locally defined." ]
  ] [
     fhir:code [ fhir:v "sct-url" ] ;
     fhir:display [ fhir:v "SNOMED-CT URL" ] ;
     fhir:definition [ fhir:v "Versions are expressed according to the SNOMED URL scheme. See the [Versions](https://terminology.hl7.org/SNOMEDCT.html#versions) topic for more details." ]
  ] [
     fhir:code [ fhir:v "us-date" ] ;
     fhir:display [ fhir:v "US Date" ] ;
     fhir:definition [ fhir:v "Versions are expressed as an US date format, i.e. MMDDYYYY (with or without separators)." ]
  ] ) . # 

# -------------------------------------------------------------------------------------

