Release 5 FHIR CI-Build

This page is part of the Continuous Integration Build of FHIR Specification (v5.0.0: R5 - STU ). This is the current published version in it's permanent home (it will always (will be available incorrect/inconsistent at this URL). For a full list of available versions, see times).
See the Directory of published versions

Example ValueSet/color-codes (Turtle)

Maturity Level : N/A
Responsible Owner: Terminology Infrastructure Work Group Standards Status : Informative

Raw Turtle (+ also see Turtle/RDF Format Specification )

Definition for Value SetColor Codes (Names or RGB Values)

@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 -------------------------------------------------------------------

[] a fhir:ValueSet ;
  fhir:id [ fhir:v "color-codes"] ;

<http://hl7.org/fhir/ValueSet/color-codes> a fhir:ValueSet ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "color-codes"] ; # 

  fhir:meta [
     fhir:lastUpdated [ fhir:v "2023-03-26T15:21:02.749+11:00" ] ;
     fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/shareablevalueset" ] )
  ] ;

     fhir:lastUpdated [ fhir:v "2025-11-27T16:48:47.349+00:00"^^xsd:dateTime ]
  ] ; # 

  fhir:text [
     fhir:status [ fhir:v "generated" ]
  ] ;

     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: ValueSet color-codes</b></p><a name=\"color-codes\"> </a><a name=\"hccolor-codes\"> </a><p>This value set includes codes based on the following rules:</p><ul><li>Include all codes defined in <a href=\"codesystem-color-names.html\"><code>http://hl7.org/fhir/color-names</code></a><span title=\"Version is not explicitly stated, which means it is fixed to the version provided in this specification\"> version ?6.0.0-ballot3</span></li><li>Include all codes defined in <a href=\"codesystem-color-rgb.html\"><code>http://hl7.org/fhir/color-rgb</code></a><span title=\"Version is not explicity stated. No matching Code System found\"> version Not Stated (use latest from terminology server)</span></li></ul></div>"^^rdf:XMLLiteral ]
  ] ; # 

  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:value [ fhir:v "fhir" ]

     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 "fhir"
     ]

  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ;
     fhir:value [ fhir:v "trial-use" ]

     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" ] ;
     fhir:value [ fhir:v "1" ]
  ] ) ;
  fhir:url [ fhir:v "http://hl7.org/fhir/ValueSet/color-codes"], [ fhir:v "http://hl7.org/fhir/ValueSet/color-codes"] ;

     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 2
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/ValueSet/color-codes"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/ValueSet/color-codes>
  ] ; # 

  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.3.3326" ]
  ] [
     fhir:use [ fhir:v "old" ] ;
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.3.3326" ]
  ] [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;

     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.3.3326" ]
  ] [
     fhir:use [ fhir:v "old" ] ;
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;

     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.3.3326" ]
  ] ) ;
  fhir:version [ fhir:v "5.0.0"], [ fhir:v "5.0.0"] ;
  fhir:name [ fhir:v "ColorCodesOrRGB"], [ fhir:v "ColorCodesOrRGB"] ;
  fhir:title [ fhir:v "Color Codes (Names or RGB Values)"], [ fhir:v "Color Codes (Names or RGB Values)"] ;
  fhir:status [ fhir:v "draft"], [ fhir:v "draft"] ;
  fhir:experimental [ fhir:v "true"], [ fhir:v "true"] ;
  fhir:publisher [ fhir:v "FHIR Infrastructure"], [ fhir:v "FHIR Infrastructure"] ;

  ] ) ; # 
  fhir:version [ fhir:v "6.0.0-ballot3"] ; # 
  fhir:name [ fhir:v "ColorCodesOrRGB"] ; # 
  fhir:title [ fhir:v "Color Codes (Names or RGB Values)"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:publisher [ fhir:v "FHIR Infrastructure"] ; # 

  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] ) ;
  fhir:description [ fhir:v "This value set includes color codes - either the color names as defined in [CSS4](https://www.w3.org/TR/css-color-4/), or any valid RGB code (```#RRGGBB``` in Hex)."], [ fhir:v "This value set includes color codes - either the color names as defined in [CSS4](https://www.w3.org/TR/css-color-4/), or any valid RGB code (```#RRGGBB``` in Hex)."] ;
  fhir:copyright [ fhir:v "[Copyright](https://www.w3.org/Consortium/Legal/ipr-notice) ©2022 World Wide Web Consortium. All Rights Reserved. This work is distributed under the [W3C® Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software) in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."], [ fhir:v "[Copyright](https://www.w3.org/Consortium/Legal/ipr-notice) ©2022 World Wide Web Consortium. All Rights Reserved. This work is distributed under the [W3C® Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software) in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."] ;

  ] ) ; # 
  fhir:description [ fhir:v "This value set includes color codes - either the color names as defined in [CSS4](https://www.w3.org/TR/css-color-4/), or any valid RGB code (```#RRGGBB``` in Hex)."] ; # 
  fhir:copyright [ fhir:v "[Copyright](https://www.w3.org/Consortium/Legal/ipr-notice) ©2022 World Wide Web Consortium. All Rights Reserved. This work is distributed under the [W3C® Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software) in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."] ; # 

  fhir:compose [
     fhir:include ( [
       fhir:system [ fhir:v "http://hl7.org/fhir/color-names" ]

       fhir:system [
         fhir:v "http://hl7.org/fhir/color-names"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/color-names>
       ]

     ] [
       fhir:system [ fhir:v "http://hl7.org/fhir/color-rgb" ]

       fhir:system [
         fhir:v "http://hl7.org/fhir/color-rgb"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/color-rgb>
       ]

     ] )
  ] .

  ] ; # 
  fhir:expansion [] . # 


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


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.