Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Purple requires i18n., gray are for backwards compatibility.

RuleSection

07 Physical Fouls

Property

Type

Description

id

uuid

seasonId

id

2024-25

officeId

id

Hockey Canada

name

string

Physical Fouls

code

text

7

order

number

...

Property

Type

Description

id

uuid

seasonId

id

2024-25

officeId

id

Hockey Canada

name

string

Head Contact

code

string

7.6

sectionId

id

Physical Fouls

order

number

RuleOption

This is a container that represents the options the scorekeeper can select.

...

Property

Type

Description

id

uuid

seasonId

id

2024-25

officeId

id

Hockey Canada

ruleId

id

7.6 Head Contact (07 Physical Fouls)

parentId

id

Allows overriding a parent option by a lower office

order

number

RuleOptionMember

These are the effective infractions upon selecting the option. Order is significant and allows for sequencing penalties as consecutive (e.g., major = 0, GM = 1) or parallel (same order) for start times

...

When creating a penalty, you’re presented with a list of rules and then select an option. That option then results in one or many penalties that are linked to an infraction.

InfractionType

Minor, Major, Match, Misconduct, Game Misconduct, Gross Misconduct, Game Ejection

Property

Type

Description

id

uuid

officeId

id

Hockey Canada

name

string

Minor

description

string

abbreviation

string

duration

number

Total time for stats

servedBy

string

Determines if the penalty has endTime & servedById

None | Offender | Player

isShorthanded

boolean

Determines if the penalty may be cancelled out with coincidental penalties of same type

isEjection

boolean

Penalty results in player being ejected for remainder of game

Characteristics

  • Duration indicates that there’s an end time, unless there’s also a removal and not shorthanded.

  • Can determine if someone else should be serving if any penalty in the selection has an ejection

Yes

Type

Characteristics

Minutes

Server

Who serves on bench

ShorthandedMay be canceled if coincidental

Team is shorthanded

Removed

Player is removed from game

Serving Order

Hockey

Minor

  • 2 minute penalty, timed

  • Player serves on bench, team shorthanded

2

Yes
Offender

YesNoNo

2

Major

  • 5 minute penalty, timed

  • Immediate removal (from GM)

  • Another player serves on bench, team shorthanded

5

Yes
Player (due to GM)

YesNoNo

1

Misconduct

  • 10 minutes, non-timed

  • Player serves on bench

  • Immediate substitution

10

No
Offender (duration)

NoNo

3

Game Misconduct

  • 10 minutes, non-timed

  • Immediate removal

  • Immediate substitution

10None

No

Yes

Game Ejection

Identical to Game Misconduct

10None

No

Yes

Gross Misconduct

  • 10 minutes, non-timed

  • Immediate removal

  • Immediate substitution

10None

No

Yes

Match

  • 5 minutes, timed

  • Immediate removal

  • Another player serves on bench, team shorthanded

5

Yes
Player

Yes

Penalty Shot

  • 0 minutes, non-timed

  • No removal, not served

0None

No

No

Soccer

Caution

  • Yellow card

0None

No

No

Expulsion

  • 2nd Yellow Card

  • Red Card

0None

No

Yes

Baseball

Ejection

  • All penalties

0None

No

Yes

Infraction

7.6(b) - Head Contact - Minor

...

Typical examples are 3x Stick Infraction → Game Ejection or 2x Misconduct → Game Ejection.

InfractionAccumulation

This acts as a grouping that defines the count of the member infractions necessary and what the resulting infraction is.

Property

Type

Description

id

uuid

seasonId

id

2023-24

officeId

id

Hockey Canada

name

string

Stick Infractions

count

number

3

infractionId

id

Resulting infraction when accumulation reached

4.8 (b)

isReplacement

boolean

Whether the accumulation acts as a replacement infraction or not

e.g., 2nd yellow → Yellow/Red Card

InfractionAccumulationMember

These are the list of infractions that are part of the accumulation group. Order is not significant; any member infraction counts towards the accumulation group.

...

Yellow are new properties, red are deprecated.

GamePenalty

Instances of an infraction in a game are called penalties. This is a scoresheet artifact.

Property

Type

Description

id

uuid

gameId

id

teamId

id

participantId

id

servedById

id

isInjured

boolean

Necessary for suspensions

Time

gameTime

GameTime

Time of infraction

startTime

GameTime

Time the penalty started to be served

endTime

GameTime

Time the penalty ceased to be served

isEnded

boolean

Whether or not the penalty was ended

Infraction

infractionId

id

optionId

id

Link penalties part of the same option group when creating instead of trying to reverse them as we currently do

accumulationId

id

Link penalties that were created by an accumulation rule

Legacy infraction options (deprecated)

infraction

string

Infraction “id” which is something like “head-contact” in the rulebook

duration

string

Duration “id” which is something like “minor” in the rulebook

code

string

Infraction “code”

Penalties are consisted linked if they have the same participantId, gameTime and optionId or have an accumulationId that matches.

...