Skip to content

Schedule Template Rule Extension

Canonicalhttps://fhir.apps.health/StructureDefinition/nexus-schedule-template-rule
Statusdraft · 1.33.0
BaseExtension (constraint)
ContextSchedule (element)
SourceFSH · JSON

One rule of a provider's schedule templates, carried on the Schedule: which template covers a time range on the days the rule names. A schedule carries one extension per rule.

Invariants

Every rule in force on a conforming instance. This profile rows are stated here; inherited rows come from the base resource and are listed so that a constraint named on an element is findable. Invariant keys elsewhere on this page link into this table.

Key Source Severity On Rule
nexus-schedule-template-rule-days-or-date this profile error Extension A rule names the weekdays it recurs on or the one date it applies on -- never both, never neither
extension('daysOfWeek').exists() xor extension('date').exists()
nexus-schedule-template-rule-effective-recurring-only this profile error Extension Only a recurring rule carries an effective period; a dated rule already names its one day
extension('effective').exists() implies extension('daysOfWeek').exists()
nexus-schedule-template-rule-end-after-start this profile error Extension A rule ends after it starts
extension('end').value.ofType(time) > extension('start').value.ofType(time)
nexus-schedule-template-rule-interval-needs-start this profile error Extension A rule that applies every second week or less often names in effective.start the date its weeks are counted from
extension('weekInterval').exists() implies (extension('weekInterval').value.ofType(positiveInt) <= 1 or extension('effective').value.ofType(Period).start.exists())
ele-1 inherited error Extension All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
ext-1 inherited error Extension Must have either extensions or value[x], not both
extension.exists() != value.exists()