StructureDefinition-Flag-alert-uv-ips.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="Flag-alert-uv-ips" /> 4 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"> 5 <valueCode value="pc" /> 6 </extension> 7 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"> 8 <valueInteger value="2"> 9 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"> 10 <valueCanonical value="http://hl7.org/fhir/uv/ips/ImplementationGuide/hl7.fhir.uv.ips" /> 11 </extension> 12 </valueInteger> 13 </extension> 14 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> 15 <valueCode value="trial-use"> 16 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"> 17 <valueCanonical value="http://hl7.org/fhir/uv/ips/ImplementationGuide/hl7.fhir.uv.ips" /> 18 </extension> 19 </valueCode> 20 </extension> 21 <url value="http://hl7.org/fhir/uv/ips/StructureDefinition/Flag-alert-uv-ips" /> 22 <version value="2.0.0" /> 23 <name value="FlagAlertUvIps" /> 24 <title value="Flag - Alert (IPS)" /> 25 <status value="active" /> 26 <experimental value="false" /> 27 <date value="2024-07-03T17:50:07.0000000+02:00" /> 28 <publisher value="HL7 International / Patient Care" /> 29 <contact> 30 <name value="HL7 International / Patient Care" /> 31 <telecom> 32 <system value="url" /> 33 <value value="http://www.hl7.org/Special/committees/patientcare" /> 34 </telecom> 35 </contact> 36 <description value="This profile constrains the Flag resource by the International Patient Summary (IPS) FHIR Implementation Guide. A record of an alert is represented in the patient summary as an instance of a Flag resource constrained by this profile. This specialized Flag is used to convey information about an alert specific to an IPS. Information is flagged to raise awareness of potential concerns and/or dangers to/from the subject of the IPS. It brings information to the fore and may reference other information from the summary (through the supportingInfo extension) as well as present obstacles to care." /> 37 <jurisdiction> 38 <coding> 39 <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" /> 40 <code value="001" /> 41 <display value="World" /> 42 </coding> 43 </jurisdiction> 44 <purpose value="This profile constrains the representation of a record of an alert in the context of the international patient summary as specified by the IPS project of HL7 International." /> 45 <fhirVersion value="4.0.1" /> 46 <mapping> 47 <identity value="rim" /> 48 <uri value="http://hl7.org/v3" /> 49 <name value="RIM Mapping" /> 50 </mapping> 51 <mapping> 52 <identity value="w5" /> 53 <uri value="http://hl7.org/fhir/fivews" /> 54 <name value="FiveWs Pattern Mapping" /> 55 </mapping> 56 <kind value="resource" /> 57 <abstract value="false" /> 58 <type value="Flag" /> 59 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Flag" /> 60 <derivation value="constraint" /> 61 <snapshot> 62 <element id="Flag"> 63 <path value="Flag" /> 64 <short value="Key information to flag to healthcare providers" /> 65 <definition value="Prospective warnings of potential issues when providing care to the patient." /> 66 <alias value="Barriers to Care" /> 67 <alias value="Alert" /> 68 <alias value="Warning" /> 69 <min value="0" /> 70 <max value="*" /> 71 <base> 72 <path value="Flag" /> 73 <min value="0" /> 74 <max value="*" /> 75 </base> 76 <constraint> 77 <key value="dom-2" /> 78 <severity value="error" /> 79 <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources" /> 80 <expression value="contained.contained.empty()" /> 81 <xpath value="not(parent::f:contained and f:contained)" /> 82 <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" /> 83 </constraint> 84 <constraint> 85 <key value="dom-3" /> 86 <severity value="error" /> 87 <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" /> 88 <expression value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" /> 89 <xpath value="not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))" /> 90 <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" /> 91 </constraint> 92 <constraint> 93 <key value="dom-4" /> 94 <severity value="error" /> 95 <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" /> 96 <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" /> 97 <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" /> 98 <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" /> 99 </constraint> 100 <constraint> 101 <key value="dom-5" /> 102 <severity value="error" /> 103 <human value="If a resource is contained in another resource, it SHALL NOT have a security label" /> 104 <expression value="contained.meta.security.empty()" /> 105 <xpath value="not(exists(f:contained/*/f:meta/f:security))" /> 106 <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" /> 107 </constraint> 108 <constraint> 109 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> 110 <valueBoolean value="true" /> 111 </extension> 112 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> 113 <valueMarkdown value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." /> 114 </extension> 115 <key value="dom-6" /> 116 <severity value="warning" /> 117 <human value="A resource should have narrative for robust management" /> 118 <expression value="text.`div`.exists()" /> 119 <xpath value="exists(f:text/h:div)" /> 120 <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" /> 121 </constraint> 122 <isModifier value="false" /> 123 <isSummary value="false" /> 124 <mapping> 125 <identity value="rim" /> 126 <map value="Entity. Role, or Act" /> 127 </mapping> 128 <mapping> 129 <identity value="rim" /> 130 <map value="Observation[classCode=ISSUE, moodCode=EVN]" /> 131 </mapping> 132 </element> 133 <element id="Flag.id"> 134 <path value="Flag.id" /> 135 <short value="Logical id of this artifact" /> 136 <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." /> 137 <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation." /> 138 <min value="0" /> 139 <max value="1" /> 140 <base> 141 <path value="Resource.id" /> 142 <min value="0" /> 143 <max value="1" /> 144 </base> 145 <type> 146 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 147 <valueUrl value="id" /> 148 </extension> 149 <code value="http://hl7.org/fhirpath/System.String" /> 150 </type> 151 <isModifier value="false" /> 152 <isSummary value="true" /> 153 </element> 154 <element id="Flag.meta"> 155 <path value="Flag.meta" /> 156 <short value="Metadata about the resource" /> 157 <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." /> 158 <min value="0" /> 159 <max value="1" /> 160 <base> 161 <path value="Resource.meta" /> 162 <min value="0" /> 163 <max value="1" /> 164 </base> 165 <type> 166 <code value="Meta" /> 167 </type> 168 <constraint> 169 <key value="ele-1" /> 170 <severity value="error" /> 171 <human value="All FHIR elements must have a @value or children" /> 172 <expression value="hasValue() or (children().count() > id.count())" /> 173 <xpath value="@value|f:*|h:div" /> 174 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 175 </constraint> 176 <isModifier value="false" /> 177 <isSummary value="true" /> 178 </element> 179 <element id="Flag.implicitRules"> 180 <path value="Flag.implicitRules" /> 181 <short value="A set of rules under which this content was created" /> 182 <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." /> 183 <comment value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." /> 184 <min value="0" /> 185 <max value="1" /> 186 <base> 187 <path value="Resource.implicitRules" /> 188 <min value="0" /> 189 <max value="1" /> 190 </base> 191 <type> 192 <code value="uri" /> 193 </type> 194 <constraint> 195 <key value="ele-1" /> 196 <severity value="error" /> 197 <human value="All FHIR elements must have a @value or children" /> 198 <expression value="hasValue() or (children().count() > id.count())" /> 199 <xpath value="@value|f:*|h:div" /> 200 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 201 </constraint> 202 <isModifier value="true" /> 203 <isModifierReason value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" /> 204 <isSummary value="true" /> 205 </element> 206 <element id="Flag.language"> 207 <path value="Flag.language" /> 208 <short value="Language of the resource content" /> 209 <definition value="The base language in which the resource is written." /> 210 <comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." /> 211 <min value="0" /> 212 <max value="1" /> 213 <base> 214 <path value="Resource.language" /> 215 <min value="0" /> 216 <max value="1" /> 217 </base> 218 <type> 219 <code value="code" /> 220 </type> 221 <constraint> 222 <key value="ele-1" /> 223 <severity value="error" /> 224 <human value="All FHIR elements must have a @value or children" /> 225 <expression value="hasValue() or (children().count() > id.count())" /> 226 <xpath value="@value|f:*|h:div" /> 227 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 228 </constraint> 229 <isModifier value="false" /> 230 <isSummary value="false" /> 231 <binding> 232 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> 233 <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages" /> 234 </extension> 235 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 236 <valueString value="Language" /> 237 </extension> 238 <strength value="preferred" /> 239 <description value="A human language." /> 240 <valueSet value="http://hl7.org/fhir/ValueSet/languages" /> 241 </binding> 242 </element> 243 <element id="Flag.text"> 244 <path value="Flag.text" /> 245 <short value="Text summary of the resource, for human interpretation" /> 246 <definition value="A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." /> 247 <comment value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later." /> 248 <alias value="narrative" /> 249 <alias value="html" /> 250 <alias value="xhtml" /> 251 <alias value="display" /> 252 <min value="0" /> 253 <max value="1" /> 254 <base> 255 <path value="DomainResource.text" /> 256 <min value="0" /> 257 <max value="1" /> 258 </base> 259 <type> 260 <code value="Narrative" /> 261 </type> 262 <constraint> 263 <key value="ele-1" /> 264 <severity value="error" /> 265 <human value="All FHIR elements must have a @value or children" /> 266 <expression value="hasValue() or (children().count() > id.count())" /> 267 <xpath value="@value|f:*|h:div" /> 268 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 269 </constraint> 270 <isModifier value="false" /> 271 <isSummary value="false" /> 272 <mapping> 273 <identity value="rim" /> 274 <map value="Act.text?" /> 275 </mapping> 276 </element> 277 <element id="Flag.contained"> 278 <path value="Flag.contained" /> 279 <short value="Contained, inline Resources" /> 280 <definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." /> 281 <comment value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels." /> 282 <alias value="inline resources" /> 283 <alias value="anonymous resources" /> 284 <alias value="contained resources" /> 285 <min value="0" /> 286 <max value="*" /> 287 <base> 288 <path value="DomainResource.contained" /> 289 <min value="0" /> 290 <max value="*" /> 291 </base> 292 <type> 293 <code value="Resource" /> 294 </type> 295 <isModifier value="false" /> 296 <isSummary value="false" /> 297 <mapping> 298 <identity value="rim" /> 299 <map value="N/A" /> 300 </mapping> 301 </element> 302 <element id="Flag.extension"> 303 <path value="Flag.extension" /> 304 <slicing> 305 <discriminator> 306 <type value="value" /> 307 <path value="url" /> 308 </discriminator> 309 <ordered value="false" /> 310 <rules value="open" /> 311 </slicing> 312 <short value="Extension" /> 313 <definition value="An Extension" /> 314 <min value="0" /> 315 <max value="*" /> 316 <base> 317 <path value="DomainResource.extension" /> 318 <min value="0" /> 319 <max value="*" /> 320 </base> 321 <type> 322 <code value="Extension" /> 323 </type> 324 <constraint> 325 <key value="ele-1" /> 326 <severity value="error" /> 327 <human value="All FHIR elements must have a @value or children" /> 328 <expression value="hasValue() or (children().count() > id.count())" /> 329 <xpath value="@value|f:*|h:div" /> 330 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 331 </constraint> 332 <constraint> 333 <key value="ext-1" /> 334 <severity value="error" /> 335 <human value="Must have either extensions or value[x], not both" /> 336 <expression value="extension.exists() != value.exists()" /> 337 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 338 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 339 </constraint> 340 <isModifier value="false" /> 341 <isSummary value="false" /> 342 </element> 343 <element id="Flag.extension:flag-priority"> 344 <path value="Flag.extension" /> 345 <sliceName value="flag-priority" /> 346 <short value="An alarm code" /> 347 <definition value="A code that identifies the priority of the alert, for example the Alert Priority flags column in IHE PCD TF 2 Table B.8-4." /> 348 <min value="0" /> 349 <max value="1" /> 350 <base> 351 <path value="DomainResource.extension" /> 352 <min value="0" /> 353 <max value="*" /> 354 </base> 355 <type> 356 <code value="Extension" /> 357 <profile value="http://hl7.org/fhir/StructureDefinition/flag-priority" /> 358 </type> 359 <constraint> 360 <key value="ele-1" /> 361 <severity value="error" /> 362 <human value="All FHIR elements must have a @value or children" /> 363 <expression value="hasValue() or (children().count() > id.count())" /> 364 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 365 </constraint> 366 <constraint> 367 <key value="ext-1" /> 368 <severity value="error" /> 369 <human value="Must have either extensions or value[x], not both" /> 370 <expression value="extension.exists() != value.exists()" /> 371 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 372 </constraint> 373 <mustSupport value="true" /> 374 <isModifier value="false" /> 375 </element> 376 <element id="Flag.modifierExtension"> 377 <path value="Flag.modifierExtension" /> 378 <short value="Extensions that cannot be ignored" /> 379 <definition value="May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." /> 380 <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." /> 381 <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." /> 382 <alias value="extensions" /> 383 <alias value="user content" /> 384 <min value="0" /> 385 <max value="*" /> 386 <base> 387 <path value="DomainResource.modifierExtension" /> 388 <min value="0" /> 389 <max value="*" /> 390 </base> 391 <type> 392 <code value="Extension" /> 393 </type> 394 <constraint> 395 <key value="ele-1" /> 396 <severity value="error" /> 397 <human value="All FHIR elements must have a @value or children" /> 398 <expression value="hasValue() or (children().count() > id.count())" /> 399 <xpath value="@value|f:*|h:div" /> 400 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 401 </constraint> 402 <constraint> 403 <key value="ext-1" /> 404 <severity value="error" /> 405 <human value="Must have either extensions or value[x], not both" /> 406 <expression value="extension.exists() != value.exists()" /> 407 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 408 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 409 </constraint> 410 <isModifier value="true" /> 411 <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" /> 412 <isSummary value="false" /> 413 <mapping> 414 <identity value="rim" /> 415 <map value="N/A" /> 416 </mapping> 417 </element> 418 <element id="Flag.identifier"> 419 <path value="Flag.identifier" /> 420 <short value="Business identifier" /> 421 <definition value="Business identifiers assigned to this flag by the performer or other systems which remain constant as the resource is updated and propagates from server to server." /> 422 <comment value="This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number." /> 423 <requirements value="Allows identification of the flag as it is known by various participating systems and in a way that remains consistent across servers." /> 424 <min value="0" /> 425 <max value="*" /> 426 <base> 427 <path value="Flag.identifier" /> 428 <min value="0" /> 429 <max value="*" /> 430 </base> 431 <type> 432 <code value="Identifier" /> 433 </type> 434 <constraint> 435 <key value="ele-1" /> 436 <severity value="error" /> 437 <human value="All FHIR elements must have a @value or children" /> 438 <expression value="hasValue() or (children().count() > id.count())" /> 439 <xpath value="@value|f:*|h:div" /> 440 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 441 </constraint> 442 <isModifier value="false" /> 443 <isSummary value="true" /> 444 <mapping> 445 <identity value="w5" /> 446 <map value="FiveWs.identifier" /> 447 </mapping> 448 <mapping> 449 <identity value="rim" /> 450 <map value=".id" /> 451 </mapping> 452 </element> 453 <element id="Flag.status"> 454 <path value="Flag.status" /> 455 <short value="active | inactive | entered-in-error" /> 456 <definition value="Supports basic workflow." /> 457 <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." /> 458 <min value="1" /> 459 <max value="1" /> 460 <base> 461 <path value="Flag.status" /> 462 <min value="1" /> 463 <max value="1" /> 464 </base> 465 <type> 466 <code value="code" /> 467 </type> 468 <fixedCode value="active" /> 469 <constraint> 470 <key value="ele-1" /> 471 <severity value="error" /> 472 <human value="All FHIR elements must have a @value or children" /> 473 <expression value="hasValue() or (children().count() > id.count())" /> 474 <xpath value="@value|f:*|h:div" /> 475 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 476 </constraint> 477 <isModifier value="true" /> 478 <isModifierReason value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" /> 479 <isSummary value="true" /> 480 <binding> 481 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 482 <valueString value="FlagStatus" /> 483 </extension> 484 <strength value="required" /> 485 <description value="Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or was entered in error." /> 486 <valueSet value="http://hl7.org/fhir/ValueSet/flag-status|4.0.1" /> 487 </binding> 488 <mapping> 489 <identity value="w5" /> 490 <map value="FiveWs.status" /> 491 </mapping> 492 <mapping> 493 <identity value="rim" /> 494 <map value=".status" /> 495 </mapping> 496 </element> 497 <element id="Flag.category"> 498 <path value="Flag.category" /> 499 <short value="Clinical, administrative, etc." /> 500 <definition value="Allows a flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context." /> 501 <comment value="The value set will often need to be adjusted based on local business rules and usage context." /> 502 <min value="0" /> 503 <max value="*" /> 504 <base> 505 <path value="Flag.category" /> 506 <min value="0" /> 507 <max value="*" /> 508 </base> 509 <type> 510 <code value="CodeableConcept" /> 511 <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" /> 512 </type> 513 <constraint> 514 <key value="ele-1" /> 515 <severity value="error" /> 516 <human value="All FHIR elements must have a @value or children" /> 517 <expression value="hasValue() or (children().count() > id.count())" /> 518 <xpath value="@value|f:*|h:div" /> 519 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 520 </constraint> 521 <mustSupport value="true" /> 522 <isModifier value="false" /> 523 <isSummary value="true" /> 524 <binding> 525 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 526 <valueString value="FlagCategory" /> 527 </extension> 528 <strength value="example" /> 529 <description value="A general category for flags for filtering/display purposes." /> 530 <valueSet value="http://hl7.org/fhir/ValueSet/flag-category" /> 531 </binding> 532 <mapping> 533 <identity value="w5" /> 534 <map value="FiveWs.class" /> 535 </mapping> 536 <mapping> 537 <identity value="rim" /> 538 <map value=".code" /> 539 </mapping> 540 </element> 541 <element id="Flag.code"> 542 <path value="Flag.code" /> 543 <short value="Coded or textual message to display to user" /> 544 <definition value="The coded value or textual component of the flag to display to the user." /> 545 <comment value="If non-coded, use CodeableConcept.text. This element should always be included in the narrative." /> 546 <min value="1" /> 547 <max value="1" /> 548 <base> 549 <path value="Flag.code" /> 550 <min value="1" /> 551 <max value="1" /> 552 </base> 553 <type> 554 <code value="CodeableConcept" /> 555 <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" /> 556 </type> 557 <constraint> 558 <key value="ele-1" /> 559 <severity value="error" /> 560 <human value="All FHIR elements must have a @value or children" /> 561 <expression value="hasValue() or (children().count() > id.count())" /> 562 <xpath value="@value|f:*|h:div" /> 563 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 564 </constraint> 565 <mustSupport value="true" /> 566 <isModifier value="false" /> 567 <isSummary value="true" /> 568 <binding> 569 <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> 570 <valueString value="FlagCode" /> 571 </extension> 572 <strength value="example" /> 573 <description value="Detail codes identifying specific flagged issues." /> 574 <valueSet value="http://hl7.org/fhir/ValueSet/flag-code" /> 575 </binding> 576 <mapping> 577 <identity value="w5" /> 578 <map value="FiveWs.what[x]" /> 579 </mapping> 580 <mapping> 581 <identity value="rim" /> 582 <map value=".value" /> 583 </mapping> 584 </element> 585 <element id="Flag.subject"> 586 <path value="Flag.subject" /> 587 <short value="Who/What is flag about?" /> 588 <definition value="The patient, location, group, organization, or practitioner etc. this is about record this flag is associated with." /> 589 <min value="1" /> 590 <max value="1" /> 591 <base> 592 <path value="Flag.subject" /> 593 <min value="1" /> 594 <max value="1" /> 595 </base> 596 <type> 597 <code value="Reference" /> 598 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" /> 599 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" /> 600 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" /> 601 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" /> 602 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" /> 603 <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" /> 604 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" /> 605 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" /> 606 </type> 607 <constraint> 608 <key value="ele-1" /> 609 <severity value="error" /> 610 <human value="All FHIR elements must have a @value or children" /> 611 <expression value="hasValue() or (children().count() > id.count())" /> 612 <xpath value="@value|f:*|h:div" /> 613 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 614 </constraint> 615 <isModifier value="false" /> 616 <isSummary value="true" /> 617 <mapping> 618 <identity value="w5" /> 619 <map value="FiveWs.subject[x]" /> 620 </mapping> 621 <mapping> 622 <identity value="rim" /> 623 <map value=".participation[typeCode=SBJ].role[classCode=PAT | LOCE | ASSIGNED]" /> 624 </mapping> 625 <mapping> 626 <identity value="w5" /> 627 <map value="FiveWs.subject" /> 628 </mapping> 629 </element> 630 <element id="Flag.period"> 631 <path value="Flag.period" /> 632 <short value="Time period when flag is active" /> 633 <definition value="The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified." /> 634 <min value="0" /> 635 <max value="1" /> 636 <base> 637 <path value="Flag.period" /> 638 <min value="0" /> 639 <max value="1" /> 640 </base> 641 <type> 642 <code value="Period" /> 643 </type> 644 <constraint> 645 <key value="ele-1" /> 646 <severity value="error" /> 647 <human value="All FHIR elements must have a @value or children" /> 648 <expression value="hasValue() or (children().count() > id.count())" /> 649 <xpath value="@value|f:*|h:div" /> 650 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 651 </constraint> 652 <isModifier value="false" /> 653 <isSummary value="true" /> 654 <mapping> 655 <identity value="w5" /> 656 <map value="FiveWs.context" /> 657 </mapping> 658 </element> 659 <element id="Flag.encounter"> 660 <path value="Flag.encounter" /> 661 <short value="Alert relevant during encounter" /> 662 <definition value="This alert is only relevant during the encounter." /> 663 <comment value="If both Flag.encounter and Flag.period are valued, then Flag.period.start shall not be before Encounter.period.start and Flag.period.end shall not be after Encounter.period.end." /> 664 <min value="0" /> 665 <max value="1" /> 666 <base> 667 <path value="Flag.encounter" /> 668 <min value="0" /> 669 <max value="1" /> 670 </base> 671 <type> 672 <code value="Reference" /> 673 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" /> 674 </type> 675 <constraint> 676 <key value="ele-1" /> 677 <severity value="error" /> 678 <human value="All FHIR elements must have a @value or children" /> 679 <expression value="hasValue() or (children().count() > id.count())" /> 680 <xpath value="@value|f:*|h:div" /> 681 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 682 </constraint> 683 <isModifier value="false" /> 684 <isSummary value="true" /> 685 <mapping> 686 <identity value="w5" /> 687 <map value="FiveWs.context" /> 688 </mapping> 689 </element> 690 <element id="Flag.author"> 691 <path value="Flag.author" /> 692 <short value="Flag creator" /> 693 <definition value="The person, organization or device that created the flag." /> 694 <min value="0" /> 695 <max value="1" /> 696 <base> 697 <path value="Flag.author" /> 698 <min value="0" /> 699 <max value="1" /> 700 </base> 701 <type> 702 <code value="Reference" /> 703 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" /> 704 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" /> 705 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" /> 706 <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" /> 707 <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" /> 708 </type> 709 <constraint> 710 <key value="ele-1" /> 711 <severity value="error" /> 712 <human value="All FHIR elements must have a @value or children" /> 713 <expression value="hasValue() or (children().count() > id.count())" /> 714 <xpath value="@value|f:*|h:div" /> 715 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 716 </constraint> 717 <isModifier value="false" /> 718 <isSummary value="true" /> 719 <mapping> 720 <identity value="w5" /> 721 <map value="FiveWs.author" /> 722 </mapping> 723 <mapping> 724 <identity value="rim" /> 725 <map value=".participation[typeCode=AUT].role" /> 726 </mapping> 727 </element> 728 </snapshot> 729 <differential> 730 <element id="Flag.extension"> 731 <path value="Flag.extension" /> 732 <slicing> 733 <discriminator> 734 <type value="value" /> 735 <path value="url" /> 736 </discriminator> 737 <ordered value="false" /> 738 <rules value="open" /> 739 </slicing> 740 </element> 741 <element id="Flag.extension:flag-priority"> 742 <path value="Flag.extension" /> 743 <sliceName value="flag-priority" /> 744 <min value="0" /> 745 <max value="1" /> 746 <type> 747 <code value="Extension" /> 748 <profile value="http://hl7.org/fhir/StructureDefinition/flag-priority" /> 749 </type> 750 <mustSupport value="true" /> 751 </element> 752 <element id="Flag.status"> 753 <path value="Flag.status" /> 754 <fixedCode value="active" /> 755 </element> 756 <element id="Flag.category"> 757 <path value="Flag.category" /> 758 <type> 759 <code value="CodeableConcept" /> 760 <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" /> 761 </type> 762 <mustSupport value="true" /> 763 </element> 764 <element id="Flag.code"> 765 <path value="Flag.code" /> 766 <type> 767 <code value="CodeableConcept" /> 768 <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" /> 769 </type> 770 <mustSupport value="true" /> 771 </element> 772 </differential> 773 </StructureDefinition>