Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

Example ValueSet/example-filter (Turtle)

Vocabulary Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

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

ValueSet Example using code filter (intensional) defined in a code system resource

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

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

[a fhir:ValueSet;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example-filter"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <ul>\n        <li>Include codes from \n          <a href=\"codesystem-example.html\">\n            <code>http://hl7.org/fhir/CodeSystem/example</code>\n          </a> where acme-plasma  =  true\n        </li>\n      </ul>\n    </div>"
  ];
  fhir:ValueSet.url [ fhir:value "http://hl7.org/fhir/ValueSet/example-filter"];
  fhir:ValueSet.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.3.3148" ]
  ];
  fhir:ValueSet.version [ fhir:value "5.0.0-ballot"];
  fhir:ValueSet.name [ fhir:value "ACMECholCodesPlasma"];
  fhir:ValueSet.title [ fhir:value "ACME Codes for Cholesterol: Plasma only"];
  fhir:ValueSet.status [ fhir:value "draft"];
  fhir:ValueSet.experimental [ fhir:value "true"^^xsd:boolean];
  fhir:ValueSet.date [ fhir:value "2018-11-01"^^xsd:date];
  fhir:ValueSet.publisher [ fhir:value "HL7 International"];
  fhir:ValueSet.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "FHIR project team" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ];
  fhir:ValueSet.description [ fhir:value "ACME Codes for Cholesterol: Plasma only - demonstrating the use of a filter defined in a CodeSystem"];
  fhir:ValueSet.compose [
     fhir:ValueSet.compose.include [
       fhir:index 0;
       fhir:ValueSet.compose.include.system [ fhir:value "http://hl7.org/fhir/CodeSystem/example" ];
       fhir:ValueSet.compose.include.filter [
         fhir:index 0;
         fhir:ValueSet.compose.include.filter.property [ fhir:value "acme-plasma" ];
         fhir:ValueSet.compose.include.filter.op [ fhir:value "=" ];
         fhir:ValueSet.compose.include.filter.value [ fhir:value "true" ]
       ]
     ];
     fhir:ValueSet.compose.property [
       fhir:value "status";
       fhir:index 0
     ]
  ]] .

# - ontology header ------------------------------------------------------------

[a owl:Ontology;
  owl:imports fhir:fhir.ttl] .

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


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.