Dicom.SR.LogEntry (Dicom v0.9.1)

Copy Markdown View Source

A single log entry for a TID 3001 Procedure Log document.

Each entry captures an event that occurred during an interventional or imaging procedure: its timestamp, the type of action, and a description.

Summary

Types

action_type()

@type action_type() :: :image_acquisition | :drug_administered | :measurement | :text

t()

@type t() :: %Dicom.SR.LogEntry{
  action_type: action_type(),
  datetime: DateTime.t() | NaiveDateTime.t() | String.t(),
  description: String.t() | Dicom.SR.Code.t(),
  details: keyword()
}

Functions

new(datetime, action_type, description, details \\ [])

@spec new(
  DateTime.t() | NaiveDateTime.t() | String.t(),
  action_type(),
  String.t() | Dicom.SR.Code.t(),
  keyword()
) :: t()

to_content_item(entry)

@spec to_content_item(t()) :: Dicom.SR.ContentItem.t()