designNote.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="designNote" /> 4 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"> 5 <valueCode value="fhir" /> 6 </extension> 7 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"> 8 <valueInteger value="1" /> 9 </extension> 10 <url value="http://hl7.org/fhir/StructureDefinition/designNote" /> 11 <version value="4.0.1" /> 12 <name value="Design Note" /> 13 <status value="draft" /> 14 <date value="2013-12-05" /> 15 <publisher value="Health Level Seven International (FHIR Infrastructure)" /> 16 <contact> 17 <telecom> 18 <system value="url" /> 19 <value value="http://www.hl7.org/Special/committees/fiwg" /> 20 </telecom> 21 </contact> 22 <description value="Information captured by the author/maintainer of the questionnaire for development purposes, not intended to be seen by users." /> 23 <fhirVersion value="4.0.1" /> 24 <mapping> 25 <identity value="rim" /> 26 <uri value="http://hl7.org/v3" /> 27 <name value="RIM Mapping" /> 28 </mapping> 29 <kind value="complex-type" /> 30 <abstract value="false" /> 31 <context> 32 <type value="element" /> 33 <expression value="Questionnaire" /> 34 </context> 35 <context> 36 <type value="element" /> 37 <expression value="Questionnaire.item" /> 38 </context> 39 <context> 40 <type value="element" /> 41 <expression value="Questionnaire.item.item" /> 42 </context> 43 <context> 44 <type value="element" /> 45 <expression value="ElementDefinition" /> 46 </context> 47 <type value="Extension" /> 48 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 49 <derivation value="constraint" /> 50 <snapshot> 51 <element id="Extension"> 52 <path value="Extension" /> 53 <short value="Design comments" /> 54 <definition value="Information captured by the author/maintainer of the questionnaire for development purposes, not intended to be seen by users." /> 55 <comment value="Allows capture of todos, rationale for design decisions, etc." /> 56 <min value="0" /> 57 <max value="1" /> 58 <base> 59 <path value="Extension" /> 60 <min value="0" /> 61 <max value="*" /> 62 </base> 63 <condition value="ele-1" /> 64 <constraint> 65 <key value="ele-1" /> 66 <severity value="error" /> 67 <human value="All FHIR elements must have a @value or children" /> 68 <expression value="hasValue() or (children().count() > id.count())" /> 69 <xpath value="@value|f:*|h:div" /> 70 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 71 </constraint> 72 <constraint> 73 <key value="ext-1" /> 74 <severity value="error" /> 75 <human value="Must have either extensions or value[x], not both" /> 76 <expression value="extension.exists() != value.exists()" /> 77 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 78 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 79 </constraint> 80 <isModifier value="false" /> 81 </element> 82 <element id="Extension.id"> 83 <path value="Extension.id" /> 84 <representation value="xmlAttr" /> 85 <short value="Unique id for inter-element referencing" /> 86 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 87 <min value="0" /> 88 <max value="1" /> 89 <base> 90 <path value="Element.id" /> 91 <min value="0" /> 92 <max value="1" /> 93 </base> 94 <type> 95 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 96 <valueUrl value="string" /> 97 </extension> 98 <code value="http://hl7.org/fhirpath/System.String" /> 99 </type> 100 <isModifier value="false" /> 101 <isSummary value="false" /> 102 <mapping> 103 <identity value="rim" /> 104 <map value="n/a" /> 105 </mapping> 106 </element> 107 <element id="Extension.extension"> 108 <path value="Extension.extension" /> 109 <slicing> 110 <discriminator> 111 <type value="value" /> 112 <path value="url" /> 113 </discriminator> 114 <description value="Extensions are always sliced by (at least) url" /> 115 <rules value="open" /> 116 </slicing> 117 <short value="Extension" /> 118 <definition value="An Extension" /> 119 <min value="0" /> 120 <max value="0" /> 121 <base> 122 <path value="Element.extension" /> 123 <min value="0" /> 124 <max value="*" /> 125 </base> 126 <type> 127 <code value="Extension" /> 128 </type> 129 <constraint> 130 <key value="ele-1" /> 131 <severity value="error" /> 132 <human value="All FHIR elements must have a @value or children" /> 133 <expression value="hasValue() or (children().count() > id.count())" /> 134 <xpath value="@value|f:*|h:div" /> 135 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 136 </constraint> 137 <constraint> 138 <key value="ext-1" /> 139 <severity value="error" /> 140 <human value="Must have either extensions or value[x], not both" /> 141 <expression value="extension.exists() != value.exists()" /> 142 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 143 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 144 </constraint> 145 <isModifier value="false" /> 146 <isSummary value="false" /> 147 </element> 148 <element id="Extension.url"> 149 <path value="Extension.url" /> 150 <representation value="xmlAttr" /> 151 <short value="identifies the meaning of the extension" /> 152 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 153 <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." /> 154 <min value="1" /> 155 <max value="1" /> 156 <base> 157 <path value="Extension.url" /> 158 <min value="1" /> 159 <max value="1" /> 160 </base> 161 <type> 162 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 163 <valueUrl value="uri" /> 164 </extension> 165 <code value="http://hl7.org/fhirpath/System.String" /> 166 </type> 167 <fixedUri value="http://hl7.org/fhir/StructureDefinition/designNote" /> 168 <isModifier value="false" /> 169 <isSummary value="false" /> 170 <mapping> 171 <identity value="rim" /> 172 <map value="N/A" /> 173 </mapping> 174 </element> 175 <element id="Extension.value[x]"> 176 <path value="Extension.value[x]" /> 177 <short value="Value of extension" /> 178 <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list)." /> 179 <min value="1" /> 180 <max value="1" /> 181 <base> 182 <path value="Extension.value[x]" /> 183 <min value="0" /> 184 <max value="1" /> 185 </base> 186 <type> 187 <code value="markdown" /> 188 </type> 189 <constraint> 190 <key value="ele-1" /> 191 <severity value="error" /> 192 <human value="All FHIR elements must have a @value or children" /> 193 <expression value="hasValue() or (children().count() > id.count())" /> 194 <xpath value="@value|f:*|h:div" /> 195 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 196 </constraint> 197 <isModifier value="false" /> 198 <isSummary value="false" /> 199 <mapping> 200 <identity value="rim" /> 201 <map value="N/A" /> 202 </mapping> 203 </element> 204 </snapshot> 205 <differential> 206 <element id="Extension"> 207 <path value="Extension" /> 208 <short value="Design comments" /> 209 <definition value="Information captured by the author/maintainer of the questionnaire for development purposes, not intended to be seen by users." /> 210 <comment value="Allows capture of todos, rationale for design decisions, etc." /> 211 <min value="0" /> 212 <max value="1" /> 213 </element> 214 <element id="Extension.extension"> 215 <path value="Extension.extension" /> 216 <max value="0" /> 217 </element> 218 <element id="Extension.url"> 219 <path value="Extension.url" /> 220 <fixedUri value="http://hl7.org/fhir/StructureDefinition/designNote" /> 221 </element> 222 <element id="Extension.value[x]"> 223 <path value="Extension.value[x]" /> 224 <min value="1" /> 225 <type> 226 <code value="markdown" /> 227 </type> 228 </element> 229 </differential> 230 </StructureDefinition>