timing-daysOfCycle.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="timing-daysOfCycle" /> 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/timing-daysOfCycle" /> 11 <version value="4.0.1" /> 12 <name value="daysOfCycle" /> 13 <title value="Days of Cycle" /> 14 <status value="draft" /> 15 <date value="2015-02-28" /> 16 <publisher value="Health Level Seven, Inc. - MnM WG" /> 17 <contact> 18 <telecom> 19 <system value="url" /> 20 <value value="http://hl7.org/special/committees/MnM" /> 21 </telecom> 22 </contact> 23 <description value="Days of a possibly repeating cycle on which the action is to be performed. The cycle is defined by the first action with a timing element that is a parent of the daysOfCycle." /> 24 <fhirVersion value="4.0.1" /> 25 <mapping> 26 <identity value="rim" /> 27 <uri value="http://hl7.org/v3" /> 28 <name value="RIM Mapping" /> 29 </mapping> 30 <kind value="complex-type" /> 31 <abstract value="false" /> 32 <context> 33 <type value="element" /> 34 <expression value="PlanDefinition.action" /> 35 </context> 36 <context> 37 <type value="element" /> 38 <expression value="RequestGroup.action" /> 39 </context> 40 <type value="Extension" /> 41 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" /> 42 <derivation value="constraint" /> 43 <snapshot> 44 <element id="Extension"> 45 <path value="Extension" /> 46 <short value="Days on which the action should be performed" /> 47 <definition value="Days of a possibly repeating cycle on which the action is to be performed. The cycle is defined by the first action with a timing element that is a parent of the daysOfCycle." /> 48 <comment value="The cycle is defined by a parent/containing action, and the daysOfCycle extension is used on individual actions within that cycle to indicate the days of the cycle on which the actions should be performed." /> 49 <min value="1" /> 50 <max value="1" /> 51 <base> 52 <path value="Extension" /> 53 <min value="0" /> 54 <max value="*" /> 55 </base> 56 <condition value="ele-1" /> 57 <constraint> 58 <key value="ele-1" /> 59 <severity value="error" /> 60 <human value="All FHIR elements must have a @value or children" /> 61 <expression value="hasValue() or (children().count() > id.count())" /> 62 <xpath value="@value|f:*|h:div" /> 63 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 64 </constraint> 65 <constraint> 66 <key value="ext-1" /> 67 <severity value="error" /> 68 <human value="Must have either extensions or value[x], not both" /> 69 <expression value="extension.exists() != value.exists()" /> 70 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 71 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 72 </constraint> 73 <isModifier value="false" /> 74 </element> 75 <element id="Extension.id"> 76 <path value="Extension.id" /> 77 <representation value="xmlAttr" /> 78 <short value="Unique id for inter-element referencing" /> 79 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 80 <min value="0" /> 81 <max value="1" /> 82 <base> 83 <path value="Element.id" /> 84 <min value="0" /> 85 <max value="1" /> 86 </base> 87 <type> 88 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 89 <valueUrl value="string" /> 90 </extension> 91 <code value="http://hl7.org/fhirpath/System.String" /> 92 </type> 93 <isModifier value="false" /> 94 <isSummary value="false" /> 95 <mapping> 96 <identity value="rim" /> 97 <map value="n/a" /> 98 </mapping> 99 </element> 100 <element id="Extension.extension"> 101 <path value="Extension.extension" /> 102 <slicing> 103 <discriminator> 104 <type value="value" /> 105 <path value="url" /> 106 </discriminator> 107 <description value="Extensions are always sliced by (at least) url" /> 108 <rules value="open" /> 109 </slicing> 110 <short value="Additional content defined by implementations" /> 111 <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." /> 112 <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." /> 113 <alias value="extensions" /> 114 <alias value="user content" /> 115 <min value="0" /> 116 <max value="*" /> 117 <base> 118 <path value="Element.extension" /> 119 <min value="0" /> 120 <max value="*" /> 121 </base> 122 <type> 123 <code value="Extension" /> 124 </type> 125 <constraint> 126 <key value="ele-1" /> 127 <severity value="error" /> 128 <human value="All FHIR elements must have a @value or children" /> 129 <expression value="hasValue() or (children().count() > id.count())" /> 130 <xpath value="@value|f:*|h:div" /> 131 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 132 </constraint> 133 <constraint> 134 <key value="ext-1" /> 135 <severity value="error" /> 136 <human value="Must have either extensions or value[x], not both" /> 137 <expression value="extension.exists() != value.exists()" /> 138 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 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="Extension.extension:day"> 149 <path value="Extension.extension" /> 150 <sliceName value="day" /> 151 <short value="What day to perform" /> 152 <definition value="An integer that specifies a day on which the action is to be performed (starting at one). In most cases, the first day of the first cycle will be day 1." /> 153 <min value="1" /> 154 <max value="*" /> 155 <base> 156 <path value="Element.extension" /> 157 <min value="0" /> 158 <max value="*" /> 159 </base> 160 <type> 161 <code value="Extension" /> 162 </type> 163 <constraint> 164 <key value="ele-1" /> 165 <severity value="error" /> 166 <human value="All FHIR elements must have a @value or children" /> 167 <expression value="hasValue() or (children().count() > id.count())" /> 168 <xpath value="@value|f:*|h:div" /> 169 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 170 </constraint> 171 <constraint> 172 <key value="ext-1" /> 173 <severity value="error" /> 174 <human value="Must have either extensions or value[x], not both" /> 175 <expression value="extension.exists() != value.exists()" /> 176 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 177 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 178 </constraint> 179 <isModifier value="false" /> 180 <isSummary value="false" /> 181 </element> 182 <element id="Extension.extension:day.id"> 183 <path value="Extension.extension.id" /> 184 <representation value="xmlAttr" /> 185 <short value="Unique id for inter-element referencing" /> 186 <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." /> 187 <min value="0" /> 188 <max value="1" /> 189 <base> 190 <path value="Element.id" /> 191 <min value="0" /> 192 <max value="1" /> 193 </base> 194 <type> 195 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 196 <valueUrl value="string" /> 197 </extension> 198 <code value="http://hl7.org/fhirpath/System.String" /> 199 </type> 200 <isModifier value="false" /> 201 <isSummary value="false" /> 202 <mapping> 203 <identity value="rim" /> 204 <map value="n/a" /> 205 </mapping> 206 </element> 207 <element id="Extension.extension:day.extension"> 208 <path value="Extension.extension.extension" /> 209 <slicing> 210 <discriminator> 211 <type value="value" /> 212 <path value="url" /> 213 </discriminator> 214 <description value="Extensions are always sliced by (at least) url" /> 215 <rules value="open" /> 216 </slicing> 217 <short value="Extension" /> 218 <definition value="An Extension" /> 219 <min value="0" /> 220 <max value="0" /> 221 <base> 222 <path value="Element.extension" /> 223 <min value="0" /> 224 <max value="*" /> 225 </base> 226 <type> 227 <code value="Extension" /> 228 </type> 229 <constraint> 230 <key value="ele-1" /> 231 <severity value="error" /> 232 <human value="All FHIR elements must have a @value or children" /> 233 <expression value="hasValue() or (children().count() > id.count())" /> 234 <xpath value="@value|f:*|h:div" /> 235 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 236 </constraint> 237 <constraint> 238 <key value="ext-1" /> 239 <severity value="error" /> 240 <human value="Must have either extensions or value[x], not both" /> 241 <expression value="extension.exists() != value.exists()" /> 242 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" /> 243 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 244 </constraint> 245 <isModifier value="false" /> 246 <isSummary value="false" /> 247 </element> 248 <element id="Extension.extension:day.url"> 249 <path value="Extension.extension.url" /> 250 <representation value="xmlAttr" /> 251 <short value="identifies the meaning of the extension" /> 252 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 253 <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." /> 254 <min value="1" /> 255 <max value="1" /> 256 <base> 257 <path value="Extension.url" /> 258 <min value="1" /> 259 <max value="1" /> 260 </base> 261 <type> 262 <code value="uri" /> 263 </type> 264 <fixedUri value="day" /> 265 <isModifier value="false" /> 266 <isSummary value="false" /> 267 <mapping> 268 <identity value="rim" /> 269 <map value="N/A" /> 270 </mapping> 271 </element> 272 <element id="Extension.extension:day.value[x]"> 273 <path value="Extension.extension.value[x]" /> 274 <short value="Value of extension" /> 275 <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)." /> 276 <min value="1" /> 277 <max value="1" /> 278 <base> 279 <path value="Extension.value[x]" /> 280 <min value="0" /> 281 <max value="1" /> 282 </base> 283 <type> 284 <code value="integer" /> 285 </type> 286 <constraint> 287 <key value="ele-1" /> 288 <severity value="error" /> 289 <human value="All FHIR elements must have a @value or children" /> 290 <expression value="hasValue() or (children().count() > id.count())" /> 291 <xpath value="@value|f:*|h:div" /> 292 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 293 </constraint> 294 <isModifier value="false" /> 295 <isSummary value="false" /> 296 <mapping> 297 <identity value="rim" /> 298 <map value="N/A" /> 299 </mapping> 300 </element> 301 <element id="Extension.url"> 302 <path value="Extension.url" /> 303 <representation value="xmlAttr" /> 304 <short value="identifies the meaning of the extension" /> 305 <definition value="Source of the definition for the extension code - a logical name or a URL." /> 306 <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." /> 307 <min value="1" /> 308 <max value="1" /> 309 <base> 310 <path value="Extension.url" /> 311 <min value="1" /> 312 <max value="1" /> 313 </base> 314 <type> 315 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 316 <valueUrl value="uri" /> 317 </extension> 318 <code value="http://hl7.org/fhirpath/System.String" /> 319 </type> 320 <fixedUri value="http://hl7.org/fhir/StructureDefinition/timing-daysOfCycle" /> 321 <isModifier value="false" /> 322 <isSummary value="false" /> 323 <mapping> 324 <identity value="rim" /> 325 <map value="N/A" /> 326 </mapping> 327 </element> 328 <element id="Extension.value[x]"> 329 <path value="Extension.value[x]" /> 330 <short value="Value of extension" /> 331 <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)." /> 332 <min value="0" /> 333 <max value="0" /> 334 <base> 335 <path value="Extension.value[x]" /> 336 <min value="0" /> 337 <max value="1" /> 338 </base> 339 <type> 340 <code value="base64Binary" /> 341 </type> 342 <type> 343 <code value="boolean" /> 344 </type> 345 <type> 346 <code value="canonical" /> 347 </type> 348 <type> 349 <code value="code" /> 350 </type> 351 <type> 352 <code value="date" /> 353 </type> 354 <type> 355 <code value="dateTime" /> 356 </type> 357 <type> 358 <code value="decimal" /> 359 </type> 360 <type> 361 <code value="id" /> 362 </type> 363 <type> 364 <code value="instant" /> 365 </type> 366 <type> 367 <code value="integer" /> 368 </type> 369 <type> 370 <code value="markdown" /> 371 </type> 372 <type> 373 <code value="oid" /> 374 </type> 375 <type> 376 <code value="positiveInt" /> 377 </type> 378 <type> 379 <code value="string" /> 380 </type> 381 <type> 382 <code value="time" /> 383 </type> 384 <type> 385 <code value="unsignedInt" /> 386 </type> 387 <type> 388 <code value="uri" /> 389 </type> 390 <type> 391 <code value="url" /> 392 </type> 393 <type> 394 <code value="uuid" /> 395 </type> 396 <type> 397 <code value="Address" /> 398 </type> 399 <type> 400 <code value="Age" /> 401 </type> 402 <type> 403 <code value="Annotation" /> 404 </type> 405 <type> 406 <code value="Attachment" /> 407 </type> 408 <type> 409 <code value="CodeableConcept" /> 410 </type> 411 <type> 412 <code value="Coding" /> 413 </type> 414 <type> 415 <code value="ContactPoint" /> 416 </type> 417 <type> 418 <code value="Count" /> 419 </type> 420 <type> 421 <code value="Distance" /> 422 </type> 423 <type> 424 <code value="Duration" /> 425 </type> 426 <type> 427 <code value="HumanName" /> 428 </type> 429 <type> 430 <code value="Identifier" /> 431 </type> 432 <type> 433 <code value="Money" /> 434 </type> 435 <type> 436 <code value="Period" /> 437 </type> 438 <type> 439 <code value="Quantity" /> 440 </type> 441 <type> 442 <code value="Range" /> 443 </type> 444 <type> 445 <code value="Ratio" /> 446 </type> 447 <type> 448 <code value="Reference" /> 449 </type> 450 <type> 451 <code value="SampledData" /> 452 </type> 453 <type> 454 <code value="Signature" /> 455 </type> 456 <type> 457 <code value="Timing" /> 458 </type> 459 <type> 460 <code value="ContactDetail" /> 461 </type> 462 <type> 463 <code value="Contributor" /> 464 </type> 465 <type> 466 <code value="DataRequirement" /> 467 </type> 468 <type> 469 <code value="Expression" /> 470 </type> 471 <type> 472 <code value="ParameterDefinition" /> 473 </type> 474 <type> 475 <code value="RelatedArtifact" /> 476 </type> 477 <type> 478 <code value="TriggerDefinition" /> 479 </type> 480 <type> 481 <code value="UsageContext" /> 482 </type> 483 <type> 484 <code value="Dosage" /> 485 </type> 486 <type> 487 <code value="Meta" /> 488 </type> 489 <constraint> 490 <key value="ele-1" /> 491 <severity value="error" /> 492 <human value="All FHIR elements must have a @value or children" /> 493 <expression value="hasValue() or (children().count() > id.count())" /> 494 <xpath value="@value|f:*|h:div" /> 495 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 496 </constraint> 497 <isModifier value="false" /> 498 <isSummary value="false" /> 499 <mapping> 500 <identity value="rim" /> 501 <map value="N/A" /> 502 </mapping> 503 </element> 504 </snapshot> 505 <differential> 506 <element id="Extension"> 507 <path value="Extension" /> 508 <short value="Days on which the action should be performed" /> 509 <definition value="Days of a possibly repeating cycle on which the action is to be performed. The cycle is defined by the first action with a timing element that is a parent of the daysOfCycle." /> 510 <comment value="The cycle is defined by a parent/containing action, and the daysOfCycle extension is used on individual actions within that cycle to indicate the days of the cycle on which the actions should be performed." /> 511 <min value="1" /> 512 <max value="1" /> 513 </element> 514 <element id="Extension.extension:day"> 515 <path value="Extension.extension" /> 516 <sliceName value="day" /> 517 <short value="What day to perform" /> 518 <definition value="An integer that specifies a day on which the action is to be performed (starting at one). In most cases, the first day of the first cycle will be day 1." /> 519 <min value="1" /> 520 <max value="*" /> 521 <type> 522 <code value="Extension" /> 523 </type> 524 </element> 525 <element id="Extension.extension:day.extension"> 526 <path value="Extension.extension.extension" /> 527 <max value="0" /> 528 </element> 529 <element id="Extension.extension:day.url"> 530 <path value="Extension.extension.url" /> 531 <type> 532 <code value="uri" /> 533 </type> 534 <fixedUri value="day" /> 535 </element> 536 <element id="Extension.extension:day.value[x]"> 537 <path value="Extension.extension.value[x]" /> 538 <min value="1" /> 539 <type> 540 <code value="integer" /> 541 </type> 542 </element> 543 <element id="Extension.url"> 544 <path value="Extension.url" /> 545 <fixedUri value="http://hl7.org/fhir/StructureDefinition/timing-daysOfCycle" /> 546 </element> 547 <element id="Extension.value[x]"> 548 <path value="Extension.value[x]" /> 549 <min value="0" /> 550 <max value="0" /> 551 </element> 552 </differential> 553 </StructureDefinition>