pub struct Message {
pub id: Option<Ii>,
pub creation_time: Option<String>,
pub interaction_id: Option<Ii>,
pub sender: Option<Element>,
pub receiver: Option<Element>,
pub control_act: Option<ControlAct>,
}Expand description
Level 1: the transport wrapper.
The root element’s own tag is the interaction’s wire name (analogous to
hl7-2’s message structure ID) —
this crate does not currently expose it as a field; read
Element::name on the value parse was given if you need it.
Fields§
§id: Option<Ii>This message’s own identifier — not the identifier of anything it carries.
creation_time: Option<String>When the message was created, as raw text (see
crate::rim::Act::effective_time for why this crate doesn’t
parse timestamps further yet).
interaction_id: Option<Ii>Which interaction this is — the wire contract that names the
trigger event and the payload shape a receiver should expect. An
II, not a CD: root names the interaction catalog (almost
always 2.16.840.1.113883.1.6) and extension names the specific
interaction ("QUQI_IN000001UV01").
sender: Option<Element>The sender, read as a raw element rather than a modeled Device
— see spec/index.md §1 for why.
receiver: Option<Element>The receiver, read the same way as sender.
control_act: Option<ControlAct>Level 2 and 3: the control act wrapper and the domain payload it carries, when the message has one.