{
"description": "PAS constraints on the Timing datatype used in the various service requests.",
"_filename": "StructureDefinition-profile-datatype-timing.json",
"package_name": "hl7.fhir.us.davinci-pas",
"date": "2024-09-26T18:54:51-04:00",
"derivation": "constraint",
"publisher": "HL7 International / Financial Management",
"fhirVersion": "4.0.1",
"jurisdiction": [ {
"coding": [ {
"code": "US",
"system": "urn:iso:std:iso:3166",
"display": "United States of America"
} ]
} ],
"name": "PASTiming",
"mapping": [ {
"uri": "http://hl7.org/v2",
"name": "HL7 v2 Mapping",
"identity": "v2"
}, {
"uri": "http://hl7.org/v3",
"name": "RIM Mapping",
"identity": "rim"
} ],
"abstract": false,
"type": "Timing",
"experimental": null,
"resourceType": "StructureDefinition",
"title": "PAS Timing",
"package_version": "2.1.0-preview",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode": "fm"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger": 3,
"_valueInteger": {
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical": "http://hl7.org/fhir/us/davinci-pas/ImplementationGuide/hl7.fhir.us.davinci-pas"
} ]
}
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode": "trial-use",
"_valueCode": {
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical": "http://hl7.org/fhir/us/davinci-pas/ImplementationGuide/hl7.fhir.us.davinci-pas"
} ]
}
} ],
"snapshot": {
"element": [ {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing",
"min": 0,
"definition": "Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out.",
"isModifier": false,
"short": "A timing schedule that specifies an event that may occur multiple times",
"mapping": [ {
"map": "n/a",
"identity": "rim"
}, {
"map": "N/A",
"identity": "v2"
}, {
"map": "QSET (GTS)",
"identity": "rim"
} ],
"max": "*",
"id": "Timing",
"comment": "Describes the occurrence of an event that may occur multiple times. Timing schedules are used for specifying when events are expected or requested to occur, and may also be used to represent the summary of a past or ongoing event. For simplicity, the definitions of Timing components are expressed as 'future' events, but such components can also be used to describe historic or ongoing events.\n\nA Timing schedule can be a list of events and/or criteria for when the event happens, which can be expressed in a structured form and/or as a code. When both event and a repeating specification are provided, the list of events should be understood as an interpretation of the information in the repeat structure.",
"base": {
"max": "*",
"min": 0,
"path": "Timing"
}
}, {
"path": "Timing.id",
"min": 0,
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"isModifier": false,
"short": "Unique id for inter-element referencing",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"type": [ {
"code": "http://hl7.org/fhirpath/System.String",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
} ]
} ],
"representation": [ "xmlAttr" ],
"max": "1",
"id": "Timing.id",
"base": {
"max": "1",
"min": 0,
"path": "Element.id"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "Timing.extension",
"min": 0,
"definition": "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.",
"isModifier": false,
"short": "Additional content defined by implementations",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"slicing": {
"rules": "open",
"description": "Extensions are always sliced by (at least) url",
"discriminator": [ {
"path": "url",
"type": "value"
} ]
},
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content" ],
"max": "*",
"id": "Timing.extension",
"comment": "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.",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "Timing.extension",
"min": 0,
"definition": "A code representing the specific days when a service is being requested",
"isModifier": false,
"short": "Extension",
"type": [ {
"code": "Extension",
"profile": [ "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-timingcalendarpattern" ]
} ],
"mustSupport": true,
"sliceName": "calendarPattern",
"max": "1",
"id": "Timing.extension:calendarPattern",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "Timing.extension",
"min": 0,
"definition": "A code representing the specific delivery of a service being requested",
"isModifier": false,
"short": "Extension",
"type": [ {
"code": "Extension",
"profile": [ "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-timingdeliverypattern" ]
} ],
"mustSupport": true,
"sliceName": "deliveryPattern",
"max": "1",
"id": "Timing.extension:deliveryPattern",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "Timing.modifierExtension",
"requirements": "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).",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"isModifier": true,
"short": "Extensions that cannot be ignored even if unrecognized",
"mapping": [ {
"map": "N/A",
"identity": "rim"
} ],
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content", "modifiers" ],
"max": "*",
"id": "Timing.modifierExtension",
"comment": "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.",
"base": {
"max": "*",
"min": 0,
"path": "BackboneElement.modifierExtension"
},
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.event",
"requirements": "In a Medication Administration Record, for instance, you need to take a general specification, and turn it into a precise specification.",
"min": 0,
"definition": "Identifies specific times when the event occurs.",
"isModifier": false,
"short": "When the event occurs",
"mapping": [ {
"map": "QLIST",
"identity": "rim"
} ],
"type": [ {
"code": "dateTime"
} ],
"max": "*",
"id": "Timing.event",
"base": {
"max": "*",
"min": 0,
"path": "Timing.event"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "tim-1",
"human": "if there's a duration, there needs to be duration units",
"xpath": "not(exists(f:duration)) or exists(f:durationUnit)",
"source": "http://hl7.org/fhir/StructureDefinition/Timing",
"severity": "error",
"expression": "duration.empty() or durationUnit.exists()"
}, {
"key": "tim-2",
"human": "if there's a period, there needs to be period units",
"xpath": "not(exists(f:period)) or exists(f:periodUnit)",
"source": "http://hl7.org/fhir/StructureDefinition/Timing",
"severity": "error",
"expression": "period.empty() or periodUnit.exists()"
}, {
"key": "tim-4",
"human": "duration SHALL be a non-negative value",
"xpath": "f:duration/@value >= 0 or not(f:duration/@value)",
"source": "http://hl7.org/fhir/StructureDefinition/Timing",
"severity": "error",
"expression": "duration.exists() implies duration >= 0"
}, {
"key": "tim-5",
"human": "period SHALL be a non-negative value",
"xpath": "f:period/@value >= 0 or not(f:period/@value)",
"source": "http://hl7.org/fhir/StructureDefinition/Timing",
"severity": "error",
"expression": "period.exists() implies period >= 0"
}, {
"key": "tim-6",
"human": "If there's a periodMax, there must be a period",
"xpath": "not(exists(f:periodMax)) or exists(f:period)",
"source": "http://hl7.org/fhir/StructureDefinition/Timing",
"severity": "error",
"expression": "periodMax.empty() or period.exists()"
}, {
"key": "tim-7",
"human": "If there's a durationMax, there must be a duration",
"xpath": "not(exists(f:durationMax)) or exists(f:duration)",
"source": "http://hl7.org/fhir/StructureDefinition/Timing",
"severity": "error",
"expression": "durationMax.empty() or duration.exists()"
}, {
"key": "tim-8",
"human": "If there's a countMax, there must be a count",
"xpath": "not(exists(f:countMax)) or exists(f:count)",
"source": "http://hl7.org/fhir/StructureDefinition/Timing",
"severity": "error",
"expression": "countMax.empty() or count.exists()"
}, {
"key": "tim-9",
"human": "If there's an offset, there must be a when (and not C, CM, CD, CV)",
"xpath": "not(exists(f:offset)) or exists(f:when)",
"source": "http://hl7.org/fhir/StructureDefinition/Timing",
"severity": "error",
"expression": "offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not()))"
}, {
"key": "tim-10",
"human": "If there's a timeOfDay, there cannot be a when, or vice versa",
"xpath": "not(exists(f:timeOfDay)) or not(exists(f:when))",
"source": "http://hl7.org/fhir/StructureDefinition/Timing",
"severity": "error",
"expression": "timeOfDay.empty() or when.empty()"
} ],
"path": "Timing.repeat",
"requirements": "Many timing schedules are determined by regular repetitions.",
"min": 0,
"definition": "A set of rules that describe when the event is scheduled.",
"isModifier": false,
"short": "When the event is to occur",
"mapping": [ {
"map": "Implies PIVL or EIVL",
"identity": "rim"
} ],
"type": [ {
"code": "Element"
} ],
"max": "1",
"id": "Timing.repeat",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat"
},
"isSummary": true
}, {
"path": "Timing.repeat.id",
"min": 0,
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"isModifier": false,
"short": "Unique id for inter-element referencing",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"type": [ {
"code": "http://hl7.org/fhirpath/System.String",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
} ]
} ],
"representation": [ "xmlAttr" ],
"max": "1",
"id": "Timing.repeat.id",
"base": {
"max": "1",
"min": 0,
"path": "Element.id"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "Timing.repeat.extension",
"min": 0,
"definition": "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.",
"isModifier": false,
"short": "Additional content defined by implementations",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"slicing": {
"rules": "open",
"description": "Extensions are always sliced by (at least) url",
"discriminator": [ {
"path": "url",
"type": "value"
} ]
},
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content" ],
"max": "*",
"id": "Timing.repeat.extension",
"comment": "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.",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.bounds[x]",
"min": 0,
"definition": "Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.",
"isModifier": false,
"short": "Length/Range of lengths, or (Start and/or end) limits",
"mapping": [ {
"map": "IVL(TS) used in a QSI",
"identity": "rim"
} ],
"type": [ {
"code": "Duration"
} ],
"mustSupport": true,
"max": "1",
"id": "Timing.repeat.bounds[x]",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.bounds[x]"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.count",
"requirements": "Repetitions may be limited by end time or total occurrences.",
"min": 0,
"definition": "A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values.",
"isModifier": false,
"short": "Number of times to repeat",
"mapping": [ {
"map": "PIVL.count",
"identity": "rim"
} ],
"type": [ {
"code": "positiveInt"
} ],
"max": "1",
"id": "Timing.repeat.count",
"comment": "If you have both bounds and count, then this should be understood as within the bounds period, until count times happens.",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.count"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.countMax",
"min": 0,
"definition": "If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.",
"isModifier": false,
"short": "Maximum number of times to repeat",
"mapping": [ {
"map": "PIVL.count",
"identity": "rim"
} ],
"type": [ {
"code": "positiveInt"
} ],
"max": "1",
"id": "Timing.repeat.countMax",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.countMax"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.duration",
"requirements": "Some activities are not instantaneous and need to be maintained for a period of time.",
"min": 0,
"definition": "How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration.",
"isModifier": false,
"short": "How long when it happens",
"mapping": [ {
"map": "PIVL.phase",
"identity": "rim"
} ],
"type": [ {
"code": "decimal"
} ],
"max": "1",
"id": "Timing.repeat.duration",
"comment": "For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise).",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.duration"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.durationMax",
"requirements": "Some activities are not instantaneous and need to be maintained for a period of time.",
"min": 0,
"definition": "If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.",
"isModifier": false,
"short": "How long when it happens (Max)",
"mapping": [ {
"map": "PIVL.phase",
"identity": "rim"
} ],
"type": [ {
"code": "decimal"
} ],
"max": "1",
"id": "Timing.repeat.durationMax",
"comment": "For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise).",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.durationMax"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.durationUnit",
"min": 0,
"definition": "The units of time for the duration, in UCUM units.",
"isModifier": false,
"short": "s | min | h | d | wk | mo | a - unit of time (UCUM)",
"mapping": [ {
"map": "PIVL.phase.unit",
"identity": "rim"
} ],
"type": [ {
"code": "code"
} ],
"binding": {
"strength": "required",
"valueSet": "http://hl7.org/fhir/ValueSet/units-of-time|4.0.1",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "UnitsOfTime"
} ],
"description": "A unit of time (units from UCUM)."
},
"max": "1",
"id": "Timing.repeat.durationUnit",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.durationUnit"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.frequency",
"min": 0,
"definition": "The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency.",
"isModifier": false,
"short": "Event occurs frequency times per period",
"mapping": [ {
"map": "PIVL.phase",
"identity": "rim"
} ],
"type": [ {
"code": "positiveInt"
} ],
"meaningWhenMissing": "If no frequency is stated, the assumption is that the event occurs once per period, but systems SHOULD always be specific about this",
"max": "1",
"id": "Timing.repeat.frequency",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.frequency"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.frequencyMax",
"min": 0,
"definition": "If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.",
"isModifier": false,
"short": "Event occurs up to frequencyMax times per period",
"mapping": [ {
"map": "PIVL.phase",
"identity": "rim"
} ],
"type": [ {
"code": "positiveInt"
} ],
"max": "1",
"id": "Timing.repeat.frequencyMax",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.frequencyMax"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.period",
"min": 0,
"definition": "Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length.",
"isModifier": false,
"short": "Event occurs frequency times per period",
"mapping": [ {
"map": "PIVL.phase",
"identity": "rim"
} ],
"type": [ {
"code": "decimal"
} ],
"mustSupport": true,
"max": "1",
"id": "Timing.repeat.period",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.period"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.periodMax",
"min": 0,
"definition": "If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days.",
"isModifier": false,
"short": "Upper limit of period (3-4 hours)",
"mapping": [ {
"map": "PIVL.phase",
"identity": "rim"
} ],
"type": [ {
"code": "decimal"
} ],
"max": "1",
"id": "Timing.repeat.periodMax",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.periodMax"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.periodUnit",
"min": 0,
"definition": "The units of time for the period in UCUM units.",
"isModifier": false,
"short": "s | min | h | d | wk | mo | a - unit of time (UCUM)",
"mapping": [ {
"map": "PIVL.phase.unit",
"identity": "rim"
} ],
"type": [ {
"code": "code"
} ],
"mustSupport": true,
"binding": {
"strength": "required",
"valueSet": "http://hl7.org/fhir/ValueSet/units-of-time|4.0.1",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "UnitsOfTime"
} ],
"description": "A unit of time (units from UCUM)."
},
"max": "1",
"id": "Timing.repeat.periodUnit",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.periodUnit"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.dayOfWeek",
"min": 0,
"definition": "If one or more days of week is provided, then the action happens only on the specified day(s).",
"isModifier": false,
"short": "mon | tue | wed | thu | fri | sat | sun",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"type": [ {
"code": "code"
} ],
"binding": {
"strength": "required",
"valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "DayOfWeek"
} ]
},
"max": "*",
"id": "Timing.repeat.dayOfWeek",
"comment": "If no days are specified, the action is assumed to happen every day as otherwise specified. The elements frequency and period cannot be used as well as dayOfWeek.",
"base": {
"max": "*",
"min": 0,
"path": "Timing.repeat.dayOfWeek"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.timeOfDay",
"min": 0,
"definition": "Specified time of day for action to take place.",
"isModifier": false,
"short": "Time of day for action",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"type": [ {
"code": "time"
} ],
"max": "*",
"id": "Timing.repeat.timeOfDay",
"comment": "When time of day is specified, it is inferred that the action happens every day (as filtered by dayofWeek) on the specified times. The elements when, frequency and period cannot be used as well as timeOfDay.",
"base": {
"max": "*",
"min": 0,
"path": "Timing.repeat.timeOfDay"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.when",
"requirements": "Timings are frequently determined by occurrences such as waking, eating and sleep.",
"min": 0,
"definition": "An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.",
"isModifier": false,
"short": "Code for time period of occurrence",
"mapping": [ {
"map": "EIVL.event",
"identity": "rim"
} ],
"type": [ {
"code": "code"
} ],
"binding": {
"strength": "required",
"valueSet": "http://hl7.org/fhir/ValueSet/event-timing|4.0.1",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "EventTiming"
} ],
"description": "Real world event relating to the schedule."
},
"max": "*",
"id": "Timing.repeat.when",
"comment": "When more than one event is listed, the event is tied to the union of the specified events.",
"base": {
"max": "*",
"min": 0,
"path": "Timing.repeat.when"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.repeat.offset",
"min": 0,
"definition": "The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event.",
"isModifier": false,
"short": "Minutes from event (before or after)",
"mapping": [ {
"map": "EIVL.offset",
"identity": "rim"
} ],
"type": [ {
"code": "unsignedInt"
} ],
"max": "1",
"id": "Timing.repeat.offset",
"base": {
"max": "1",
"min": 0,
"path": "Timing.repeat.offset"
},
"isSummary": true
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "Timing.code",
"min": 0,
"definition": "A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code).",
"isModifier": false,
"short": "BID | TID | QID | AM | PM | QD | QOD | +",
"mapping": [ {
"map": "QSC.code",
"identity": "rim"
} ],
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "preferred",
"valueSet": "http://hl7.org/fhir/ValueSet/timing-abbreviation",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "TimingAbbreviation"
} ],
"description": "Code for a known / defined timing pattern."
},
"max": "1",
"id": "Timing.code",
"comment": "BID etc. are defined as 'at institutionally specified times'. For example, an institution may choose that BID is \"always at 7am and 6pm\". If it is inappropriate for this choice to be made, the code BID should not be used. Instead, a distinct organization-specific code should be used in place of the HL7-defined BID code and/or a structured representation should be used (in this case, specifying the two event times).",
"base": {
"max": "1",
"min": 0,
"path": "Timing.code"
},
"isSummary": true
} ]
},
"status": "active",
"id": "a3e868df-c5c8-40b4-998c-e2f1cfc8612a",
"kind": "complex-type",
"url": "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-datatype-timing",
"version": "2.1.0-preview",
"differential": {
"element": [ {
"id": "Timing",
"path": "Timing"
}, {
"id": "Timing.extension:calendarPattern",
"max": "1",
"min": 0,
"path": "Timing.extension",
"type": [ {
"code": "Extension",
"profile": [ "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-timingcalendarpattern" ]
} ],
"sliceName": "calendarPattern",
"mustSupport": true
}, {
"id": "Timing.extension:deliveryPattern",
"max": "1",
"min": 0,
"path": "Timing.extension",
"type": [ {
"code": "Extension",
"profile": [ "http://hl7.org/fhir/us/davinci-pas/StructureDefinition/extension-timingdeliverypattern" ]
} ],
"sliceName": "deliveryPattern",
"mustSupport": true
}, {
"id": "Timing.repeat.bounds[x]",
"path": "Timing.repeat.bounds[x]",
"type": [ {
"code": "Duration"
} ],
"mustSupport": true
}, {
"id": "Timing.repeat.period",
"path": "Timing.repeat.period",
"mustSupport": true
}, {
"id": "Timing.repeat.periodUnit",
"path": "Timing.repeat.periodUnit",
"mustSupport": true
} ]
},
"contact": [ {
"name": "HL7 International / Financial Management",
"telecom": [ {
"value": "http://hl7.org/Special/committees/fm",
"system": "url"
}, {
"value": "fmlists@lists.hl7.org",
"system": "email"
} ]
}, {
"name": "Jean Duteau",
"telecom": [ {
"value": "mailto:jean@duteaudesign.com",
"system": "email"
} ]
}, {
"name": "HL7 International / Financial Management",
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/fm",
"system": "url"
} ]
} ],
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Timing"
}