Narrative.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="Narrative" /> 4 <meta> 5 <lastUpdated value="2023-03-26T06:21:02.749+02: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/Narrative" /> 14 <version value="5.0.0" /> 15 <name value="Narrative" /> 16 <status value="active" /> 17 <experimental value="false" /> 18 <date value="2023-03-26T06:21:02.0000000+02:00" /> 19 <publisher value="HL7 FHIR Standard" /> 20 <contact> 21 <telecom> 22 <system value="url" /> 23 <value value="http://hl7.org/fhir" /> 24 </telecom> 25 </contact> 26 <description value="Narrative Type: A human-readable summary of the resource conveying the essential clinical and business information for the resource." /> 27 <jurisdiction> 28 <coding> 29 <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" /> 30 <code value="001" /> 31 <display value="World" /> 32 </coding> 33 </jurisdiction> 34 <fhirVersion value="5.0.0" /> 35 <mapping> 36 <identity value="rim" /> 37 <uri value="http://hl7.org/v3" /> 38 <name value="RIM Mapping" /> 39 </mapping> 40 <kind value="complex-type" /> 41 <abstract value="false" /> 42 <type value="Narrative" /> 43 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DataType" /> 44 <derivation value="specialization" /> 45 <snapshot> 46 <element id="Narrative"> 47 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 48 <valueCode value="normative" /> 49 </extension> 50 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 51 <valueCode value="4.0.0" /> 52 </extension> 53 <path value="Narrative" /> 54 <short value="Human-readable summary of the resource (essential clinical and business information)" /> 55 <definition value="A human-readable summary of the resource conveying the essential clinical and business information for the resource." /> 56 <min value="0" /> 57 <max value="*" /> 58 <base> 59 <path value="Narrative" /> 60 <min value="0" /> 61 <max value="*" /> 62 </base> 63 <constraint> 64 <key value="ele-1" /> 65 <severity value="error" /> 66 <human value="All FHIR elements must have a @value or children" /> 67 <expression value="hasValue() or (children().count() > id.count())" /> 68 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 69 </constraint> 70 <isModifier value="false" /> 71 <mapping> 72 <identity value="rim" /> 73 <map value="n/a,N/A" /> 74 </mapping> 75 </element> 76 <element id="Narrative.id"> 77 <path value="Narrative.id" /> 78 <representation value="xmlAttr" /> 79 <short value="Unique id for inter-element referencing" /> 80 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 81 <min value="0" /> 82 <max value="1" /> 83 <base> 84 <path value="Element.id" /> 85 <min value="0" /> 86 <max value="1" /> 87 </base> 88 <type> 89 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 90 <valueUrl value="id" /> 91 </extension> 92 <code value="http://hl7.org/fhirpath/System.String" /> 93 </type> 94 <condition value="ele-1" /> 95 <isModifier value="false" /> 96 <isSummary value="false" /> 97 <mapping> 98 <identity value="rim" /> 99 <map value="n/a" /> 100 </mapping> 101 </element> 102 <element id="Narrative.extension"> 103 <path value="Narrative.extension" /> 104 <slicing> 105 <discriminator> 106 <type value="value" /> 107 <path value="url" /> 108 </discriminator> 109 <description value="Extensions are always sliced by (at least) url" /> 110 <rules value="open" /> 111 </slicing> 112 <short value="Additional content defined by implementations" /> 113 <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 managable, 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." /> 114 <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." /> 115 <alias value="extensions" /> 116 <alias value="user content" /> 117 <min value="0" /> 118 <max value="*" /> 119 <base> 120 <path value="Element.extension" /> 121 <min value="0" /> 122 <max value="*" /> 123 </base> 124 <type> 125 <code value="Extension" /> 126 </type> 127 <constraint> 128 <key value="ele-1" /> 129 <severity value="error" /> 130 <human value="All FHIR elements must have a @value or children" /> 131 <expression value="hasValue() or (children().count() > id.count())" /> 132 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 133 </constraint> 134 <constraint> 135 <key value="ext-1" /> 136 <severity value="error" /> 137 <human value="Must have either extensions or value[x], not both" /> 138 <expression value="extension.exists() != value.exists()" /> 139 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 140 </constraint> 141 <isModifier value="false" /> 142 <isSummary value="false" /> 143 <mapping> 144 <identity value="rim" /> 145 <map value="n/a" /> 146 </mapping> 147 </element> 148 <element id="Narrative.status"> 149 <path value="Narrative.status" /> 150 <short value="generated | extensions | additional | empty" /> 151 <definition value="The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data." /> 152 <min value="1" /> 153 <max value="1" /> 154 <base> 155 <path value="Narrative.status" /> 156 <min value="1" /> 157 <max value="1" /> 158 </base> 159 <type> 160 <code value="code" /> 161 </type> 162 <constraint> 163 <key value="ele-1" /> 164 <severity value="error" /> 165 <human value="All FHIR elements must have a @value or children" /> 166 <expression value="hasValue() or (children().count() > id.count())" /> 167 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 168 </constraint> 169 <isModifier value="false" /> 170 <isSummary value="false" /> 171 <binding> 172 <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition"> 173 <valueString value="The status of a resource narrative." /> 174 </extension> 175 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 176 <valueString value="NarrativeStatus" /> 177 </extension> 178 <strength value="required" /> 179 <description value="The status of a resource narrative." /> 180 <valueSet value="http://hl7.org/fhir/ValueSet/narrative-status|5.0.0" /> 181 </binding> 182 <mapping> 183 <identity value="rim" /> 184 <map value="N/A" /> 185 </mapping> 186 </element> 187 <element id="Narrative.div"> 188 <path value="Narrative.div" /> 189 <short value="Limited xhtml content" /> 190 <definition value="The actual narrative content, a stripped down version of XHTML." /> 191 <comment value="The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained stylesheets. The XHTML content SHALL NOT contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects." /> 192 <min value="1" /> 193 <max value="1" /> 194 <base> 195 <path value="Narrative.div" /> 196 <min value="1" /> 197 <max value="1" /> 198 </base> 199 <type> 200 <code value="xhtml" /> 201 </type> 202 <constraint> 203 <key value="ele-1" /> 204 <severity value="error" /> 205 <human value="All FHIR elements must have a @value or children" /> 206 <expression value="hasValue() or (children().count() > id.count())" /> 207 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 208 </constraint> 209 <constraint> 210 <key value="txt-1" /> 211 <severity value="error" /> 212 <human value="The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes" /> 213 <expression value="htmlChecks()" /> 214 <source value="http://hl7.org/fhir/StructureDefinition/Narrative" /> 215 </constraint> 216 <constraint> 217 <key value="txt-2" /> 218 <severity value="error" /> 219 <human value="The narrative SHALL have some non-whitespace content" /> 220 <expression value="htmlChecks()" /> 221 <source value="http://hl7.org/fhir/StructureDefinition/Narrative" /> 222 </constraint> 223 <isModifier value="false" /> 224 <isSummary value="false" /> 225 <mapping> 226 <identity value="rim" /> 227 <map value="N/A" /> 228 </mapping> 229 </element> 230 </snapshot> 231 <differential> 232 <element id="Narrative"> 233 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 234 <valueCode value="normative" /> 235 </extension> 236 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version"> 237 <valueCode value="4.0.0" /> 238 </extension> 239 <path value="Narrative" /> 240 <short value="Human-readable summary of the resource (essential clinical and business information)" /> 241 <definition value="A human-readable summary of the resource conveying the essential clinical and business information for the resource." /> 242 <min value="0" /> 243 <max value="*" /> 244 <mapping> 245 <identity value="rim" /> 246 <map value="N/A" /> 247 </mapping> 248 </element> 249 <element id="Narrative.status"> 250 <path value="Narrative.status" /> 251 <short value="generated | extensions | additional | empty" /> 252 <definition value="The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data." /> 253 <min value="1" /> 254 <max value="1" /> 255 <type> 256 <code value="code" /> 257 </type> 258 <binding> 259 <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition"> 260 <valueString value="The status of a resource narrative." /> 261 </extension> 262 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 263 <valueString value="NarrativeStatus" /> 264 </extension> 265 <strength value="required" /> 266 <description value="The status of a resource narrative." /> 267 <valueSet value="http://hl7.org/fhir/ValueSet/narrative-status|5.0.0" /> 268 </binding> 269 <mapping> 270 <identity value="rim" /> 271 <map value="N/A" /> 272 </mapping> 273 </element> 274 <element id="Narrative.div"> 275 <path value="Narrative.div" /> 276 <short value="Limited xhtml content" /> 277 <definition value="The actual narrative content, a stripped down version of XHTML." /> 278 <comment value="The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained stylesheets. The XHTML content SHALL NOT contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects." /> 279 <min value="1" /> 280 <max value="1" /> 281 <type> 282 <code value="xhtml" /> 283 </type> 284 <constraint> 285 <key value="txt-1" /> 286 <severity value="error" /> 287 <human value="The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes" /> 288 <expression value="htmlChecks()" /> 289 <source value="http://hl7.org/fhir/StructureDefinition/Narrative" /> 290 </constraint> 291 <constraint> 292 <key value="txt-2" /> 293 <severity value="error" /> 294 <human value="The narrative SHALL have some non-whitespace content" /> 295 <expression value="htmlChecks()" /> 296 <source value="http://hl7.org/fhir/StructureDefinition/Narrative" /> 297 </constraint> 298 <mapping> 299 <identity value="rim" /> 300 <map value="N/A" /> 301 </mapping> 302 </element> 303 </differential> 304 </StructureDefinition>