fromCode static method

EncounterStatus? fromCode(
  1. String code
)

Implementation

static EncounterStatus? fromCode(String code) => switch (code) {
      ('planned') => EncounterStatus.planned,
      ('arrived') => EncounterStatus.arrived,
      ('triaged') => EncounterStatus.triaged,
      ('in-progress') => EncounterStatus.inProgress,
      ('onleave') => EncounterStatus.onleave,
      ('finished') => EncounterStatus.finished,
      ('cancelled') => EncounterStatus.cancelled,
      ('entered-in-error') => EncounterStatus.enteredInError,
      ('unknown') => EncounterStatus.unknown,
      _ => null,
    };