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.
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()
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()