Element.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="Element" /> 4 <meta> 5 <lastUpdated value="2019-10-31T23:29:23.356+01:00" /> 6 </meta> 7 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 8 <valueCode value="normative" /> 9 </extension> 10 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 11 <valueCode value="4.0.0" /> 12 </extension> 13 <url value="http://hl7.org/fhir/StructureDefinition/Element" /> 14 <version value="4.0.1" /> 15 <name value="Element" /> 16 <status value="active" /> 17 <date value="2019-10-31T23:29:23.0000000+01:00" /> 18 <publisher value="HL7 FHIR Standard" /> 19 <contact> 20 <telecom> 21 <system value="url" /> 22 <value value="http://hl7.org/fhir" /> 23 </telecom> 24 </contact> 25 <description value="Base StructureDefinition for Element Type: Base definition for all elements in a resource." /> 26 <fhirVersion value="4.0.1" /> 27 <mapping> 28 <identity value="rim" /> 29 <uri value="http://hl7.org/v3" /> 30 <name value="RIM Mapping" /> 31 </mapping> 32 <kind value="complex-type" /> 33 <abstract value="true" /> 34 <type value="Element" /> 35 <snapshot> 36 <element id="Element"> 37 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 38 <valueCode value="normative" /> 39 </extension> 40 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 41 <valueCode value="4.0.0" /> 42 </extension> 43 <path value="Element" /> 44 <short value="Base for all elements" /> 45 <definition value="Base definition for all elements in a resource." /> 46 <min value="0" /> 47 <max value="*" /> 48 <base> 49 <path value="Element" /> 50 <min value="0" /> 51 <max value="*" /> 52 </base> 53 <condition value="ele-1" /> 54 <constraint> 55 <key value="ele-1" /> 56 <severity value="error" /> 57 <human value="All FHIR elements must have a @value or children" /> 58 <expression value="hasValue() or (children().count() > id.count())" /> 59 <xpath value="@value|f:*|h:div" /> 60 </constraint> 61 <isModifier value="false" /> 62 <mapping> 63 <identity value="rim" /> 64 <map value="n/a" /> 65 </mapping> 66 </element> 67 <element id="Element.id"> 68 <path value="Element.id" /> 69 <representation value="xmlAttr" /> 70 <short value="Unique id for inter-element referencing" /> 71 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 72 <min value="0" /> 73 <max value="1" /> 74 <base> 75 <path value="Element.id" /> 76 <min value="0" /> 77 <max value="1" /> 78 </base> 79 <type> 80 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 81 <valueUrl value="string" /> 82 </extension> 83 <code value="http://hl7.org/fhirpath/System.String" /> 84 </type> 85 <isModifier value="false" /> 86 <isSummary value="false" /> 87 <mapping> 88 <identity value="rim" /> 89 <map value="n/a" /> 90 </mapping> 91 </element> 92 <element id="Element.extension"> 93 <path value="Element.extension" /> 94 <slicing> 95 <discriminator> 96 <type value="value" /> 97 <path value="url" /> 98 </discriminator> 99 <description value="Extensions are always sliced by (at least) url" /> 100 <rules value="open" /> 101 </slicing> 102 <short value="Additional content defined by implementations" /> 103 <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> 104 <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> 105 <alias value="extensions" /> 106 <alias value="user content" /> 107 <min value="0" /> 108 <max value="*" /> 109 <base> 110 <path value="Element.extension" /> 111 <min value="0" /> 112 <max value="*" /> 113 </base> 114 <type> 115 <code value="Extension" /> 116 </type> 117 <constraint> 118 <key value="ele-1" /> 119 <severity value="error" /> 120 <human value="All FHIR elements must have a @value or children" /> 121 <expression value="hasValue() or (children().count() > id.count())" /> 122 <xpath value="@value|f:*|h:div" /> 123 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 124 </constraint> 125 <constraint> 126 <key value="ext-1" /> 127 <severity value="error" /> 128 <human value="Must have either extensions or value[x], not both" /> 129 <expression value="extension.exists() != value.exists()" /> 130 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 131 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 132 </constraint> 133 <isModifier value="false" /> 134 <isSummary value="false" /> 135 <mapping> 136 <identity value="rim" /> 137 <map value="n/a" /> 138 </mapping> 139 </element> 140 </snapshot> 141 <differential> 142 <element id="Element"> 143 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 144 <valueCode value="normative" /> 145 </extension> 146 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 147 <valueCode value="4.0.0" /> 148 </extension> 149 <path value="Element" /> 150 <short value="Base for all elements" /> 151 <definition value="Base definition for all elements in a resource." /> 152 <min value="0" /> 153 <max value="*" /> 154 <condition value="ele-1" /> 155 <constraint> 156 <key value="ele-1" /> 157 <severity value="error" /> 158 <human value="All FHIR elements must have a @value or children" /> 159 <expression value="hasValue() or (children().count() > id.count())" /> 160 <xpath value="@value|f:*|h:div" /> 161 </constraint> 162 <mapping> 163 <identity value="rim" /> 164 <map value="n/a" /> 165 </mapping> 166 </element> 167 <element id="Element.id"> 168 <path value="Element.id" /> 169 <representation value="xmlAttr" /> 170 <short value="Unique id for inter-element referencing" /> 171 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 172 <min value="0" /> 173 <max value="1" /> 174 <type> 175 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 176 <valueUrl value="string" /> 177 </extension> 178 <code value="http://hl7.org/fhirpath/System.String" /> 179 </type> 180 <mapping> 181 <identity value="rim" /> 182 <map value="n/a" /> 183 </mapping> 184 </element> 185 <element id="Element.extension"> 186 <path value="Element.extension" /> 187 <slicing> 188 <discriminator> 189 <type value="value" /> 190 <path value="url" /> 191 </discriminator> 192 <description value="Extensions are always sliced by (at least) url" /> 193 <rules value="open" /> 194 </slicing> 195 <short value="Additional content defined by implementations" /> 196 <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> 197 <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> 198 <alias value="extensions" /> 199 <alias value="user content" /> 200 <min value="0" /> 201 <max value="*" /> 202 <type> 203 <code value="Extension" /> 204 </type> 205 <mapping> 206 <identity value="rim" /> 207 <map value="n/a" /> 208 </mapping> 209 </element> 210 </differential> 211 </StructureDefinition>