FHIR Release 3 (STU) CI-Build

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0 . For a full list Continuous Integration Build of available versions, see FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions . Page versions: R4B R4 R3 R2

Content Detailed Descriptions Mappings XML JSON

Example CodeSystem/questionnaire-answer-constraint (XML)

Extension: map   Maturity Level : 1 URL for this extension: http://hl7.org/fhir/StructureDefinition/valueset-map
Vocabulary Responsible Owner: FHIR Infrastructure Work Group Standards Status : Informative Use Context : Any

Summary Name Flags Card. Type Description & Constraints extension 0..1 Reference Raw XML ( ConceptMap ) URL = http://hl7.org/fhir/StructureDefinition/valueset-map map: A reference to a concept map that is relevant for the interpretation of this value set. Use on element: ValueSet Documentation for this format Full Structure Name Flags Card. Type Description & Constraints extension 0..1 Extension URL = http://hl7.org/fhir/StructureDefinition/valueset-map map: A reference to a concept map that is relevant for the interpretation of this value set. Use on element: ValueSet url 1..1 uri "http://hl7.org/fhir/StructureDefinition/valueset-map" valueReference 0..1 Reference canonical form ( ConceptMap + also see XML Format Specification ) Value of extension Documentation for this format XML Template

<!-- map --> < xmlns="http://hl7.org/fhir" url="" > <!-- from Element: <</valueReference> </extension>

JSON Template Definition for Code SystemQuestionnaireAnswerConstraint

{ // // from Element: " ], " " } Summary
<?xml version="1.0" encoding="UTF-8"?>

<CodeSystem xmlns="http://hl7.org/fhir">  <id value="questionnaire-answer-constraint"/>   <meta>     <lastUpdated value="2025-12-17T09:50:17.012+00:00"/>   </meta>   <text>     <status value="generated"/>     <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>   </text>   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">    <valueCode value="fhir"/>   </extension>   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">    <valueCode value="normative"/>   </extension>   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">    <valueInteger value="5"/>   </extension>   <url value="http://hl7.org/fhir/questionnaire-answer-constraint"/>   <identifier>     <system value="urn:ietf:rfc:3986"/>     <value value="urn:oid:2.16.840.1.113883.4.642.4.2019"/>   </identifier>   <version value="6.0.0-ballot3"/>   <name value="QuestionnaireAnswerConstraint"/>   <title value="Questionnaire answer constraint codes"/>   <status value="active"/>   <experimental value="false"/>   <publisher value="HL7 International"/>   <description value="Codes that describe the types of constraints possible on a question item that has

   a list of permitted answers"/> 
  <jurisdiction>     <coding>       <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>       <code value="001"/>       <display value="World"/>     </coding>   </jurisdiction>   <caseSensitive value="true"/>   <content value="complete"/>   <concept>     <code value="optionsOnly"/>     <display value="Options only"/>     <definition value="Only values listed as answerOption or in the expansion of the answerValueSet are

     permitted"/> 
  </concept>   <concept>     <code value="optionsOrType"/>     <display value="Options or 'type'"/>     <definition value="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"/> 
  </concept>   <concept>     <code value="optionsOrString"/>     <display value="Options or string"/>     <definition value="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'."/> 
  </concept> 

Name
Flags
Card.
Type
Description
&
Constraints


</

CodeSystem


>


extension
0..1
Reference
(
ConceptMap
)
URL
=
http://hl7.org/fhir/StructureDefinition/valueset-map
map:
A
reference
to
a
concept
map
that
is
relevant
for
the
interpretation
of
this
value
set.
Use
on
element:
ValueSet
Documentation
for
this
format



Full Structure Name Flags Card. Type Description & Constraints extension 0..1 Extension URL = http://hl7.org/fhir/StructureDefinition/valueset-map map: A reference Usage note: every effort has been made to a concept map ensure that is relevant for the interpretation of this value set. Use on element: ValueSet url 1..1 uri "http://hl7.org/fhir/StructureDefinition/valueset-map" valueReference 0..1 Reference ( ConceptMap ) Value examples are correct and useful, but they are not a normative part of extension Documentation for this format XML Template <!-- map --> < xmlns="http://hl7.org/fhir" url="" > <!-- from Element: <</valueReference> </extension> JSON Template the specification.

{ // // from Element: " ], " " }   Constraints ele-1 : All FHIR elements must have a @value or children (xpath: @value|f:*|h:div ) ext-1 : Must have either extensions or value[x], not both (xpath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) )