Skip to content

Main content

Simulation Action Duration Share Tool

Calculate simulation action duration share from explicit caller-supplied inputs.

Loading tool…

Description

Calculate one simulation action’s duration share after excluding supplied action labels.

Simulation action shares depend on which labels are selected and which are excluded. Duration assigned to a task is a record summary rather than proof of correct execution, appropriate care or training competence.

Calculate one simulation action’s duration share after excluding supplied action labels.

When to use this tool

Use Simulation Action Duration Share when summarizing selected-action time inside an explicit eligibility mask.

How to use the tool and how it works

  1. Enter actionLabels, durations, selectedAction, excludedActions. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read eligibleDuration, selectedDuration, share, defined. Inspect defined before interpreting the associated values.

Require equally long actionLabels and nonnegative durations. eligibleDuration sums actions not in excludedActions; selectedDuration additionally requires the label to equal selectedAction. share is their ratio when positive, otherwise zero with defined = false.1

Input fieldMeaning and unitsAccepted input
actionLabelsAction LabelsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
durationsDurationsRequired. Array of finite number; minimum 0; maximum items 256.
selectedActionSelected ActionRequired. Text; maximum UTF-16 length 8192.
excludedActionsExcluded ActionsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
eligibleDurationEligible DurationRequired. Finite number.
selectedDurationSelected DurationRequired. Finite number.
shareDimensionless selected contribution divided by the stated total; not percent.Required. Finite number.
definedWhether the stated denominator has positive support; read this before interpreting a zero placeholder.Required. Boolean.
json
{
  "input": {
    "actionLabels": [
      "A",
      "B",
      "pause"
    ],
    "durations": [
      2,
      3,
      5
    ],
    "selectedAction": "A",
    "excludedActions": [
      "pause"
    ]
  },
  "output": {
    "eligibleDuration": 5,
    "selectedDuration": 2,
    "share": 0.4,
    "defined": true
  }
}

Limitations and assumptions

  • An excluded selected action contributes nothing. Labels and exclusions are literal supplied records, not clinical quality or completeness assessments; overlapping durations are not detected.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Review the original training observations and assessment rubric rather than treating a duration share as a competence decision.

References

  1. Calculation and input contract: emergency-medicine/simulation-action-duration-share — tool.io

Similar or alternative tools