FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example CodeSystem/questionnaire-answer-constraint (Turtle)

Responsible Owner: FHIR Infrastructure Work GroupStandards Status: Informative

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

Definition for Code SystemQuestionnaireAnswerConstraint

@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/questionnaire-answer-constraint> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "questionnaire-answer-constraint"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2025-11-24T20:46:00.100+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 questionnaire-answer-constraint</b></p><a name=\"questionnaire-answer-constraint\"> </a><a name=\"hcquestionnaire-answer-constraint\"> </a><p>This case-sensitive code system <code>http://hl7.org/fhir/questionnaire-answer-constraint</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\">optionsOnly<a name=\"questionnaire-answer-constraint-optionsOnly\"> </a></td><td>Options only</td><td>Only values listed as answerOption or in the expansion of the answerValueSet are permitted</td></tr><tr><td style=\"white-space:nowrap\">optionsOrType<a name=\"questionnaire-answer-constraint-optionsOrType\"> </a></td><td>Options or 'type'</td><td>In addition to the values listed as answerOption or in the expansion of the answerValueSet, any other values that correspond to the specified item.type are permitted</td></tr><tr><td style=\"white-space:nowrap\">optionsOrString<a name=\"questionnaire-answer-constraint-optionsOrString\"> </a></td><td>Options or string</td><td>In addition to the values listed as answerOption or in the expansion of the answerValueSet, free-text strings are permitted.  Answers will have a type of 'string'.</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 "fhir"
     ]
  ] [
     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/questionnaire-answer-constraint"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/questionnaire-answer-constraint>
  ] ; # 
  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.2019" ]
  ] ) ; # 
  fhir:version [ fhir:v "6.0.0-ballot3"] ; # 
  fhir:name [ fhir:v "QuestionnaireAnswerConstraint"] ; # 
  fhir:title [ fhir:v "Questionnaire answer constraint codes"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:publisher [ fhir:v "HL7 International"] ; # 
  fhir:description [ fhir:v "Codes that describe the types of constraints possible on a question item that has a list of permitted answers"] ; # 
  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:hierarchyMeaning [] ; # 
  fhir:content [ fhir:v "complete"] ; # 
  fhir:concept ( [
     fhir:code [ fhir:v "optionsOnly" ] ;
     fhir:display [ fhir:v "Options only" ] ;
     fhir:definition [ fhir:v "Only values listed as answerOption or in the expansion of the answerValueSet are permitted" ]
  ] [
     fhir:code [ fhir:v "optionsOrType" ] ;
     fhir:display [ fhir:v "Options or 'type'" ] ;
     fhir:definition [ fhir:v "In addition to the values listed as answerOption or in the expansion of the answerValueSet, any other values that correspond to the specified item.type are permitted" ]
  ] [
     fhir:code [ fhir:v "optionsOrString" ] ;
     fhir:display [ fhir:v "Options or string" ] ;
     fhir:definition [ fhir:v "In addition to the values listed as answerOption or in the expansion of the answerValueSet, free-text strings are permitted.  Answers will have a type of 'string'." ]
  ] ) . # 

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


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.