pub struct Message {
pub create_time: Option<DateTime<Utc>>,
pub data: Option<Vec<u8>>,
pub labels: Option<HashMap<String, String>>,
pub message_type: Option<String>,
pub name: Option<String>,
pub parsed_data: Option<ParsedData>,
pub patient_ids: Option<Vec<PatientId>>,
pub schematized_data: Option<SchematizedData>,
pub send_facility: Option<String>,
pub send_time: Option<DateTime<Utc>>,
}
Expand description
A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.org/implement/standards/index.cfm?ref=common) for details on the standard.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations datasets hl7 v2 stores messages create projects (response)
- locations datasets hl7 v2 stores messages get projects (response)
- locations datasets hl7 v2 stores messages patch projects (request|response)
Fields§
§create_time: Option<DateTime<Utc>>
Output only. The datetime when the message was created. Set by the server.
data: Option<Vec<u8>>
Required. Raw message bytes.
labels: Option<HashMap<String, String>>
User-supplied key-value pairs used to organize HL7v2 stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62} Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store.
message_type: Option<String>
The message type for this message. MSH-9.1.
name: Option<String>
Output only. Resource name of the Message, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Stores/{hl7_v2_store_id}/messages/{message_id}
. Assigned by the server.
parsed_data: Option<ParsedData>
Output only. The parsed version of the raw message data.
patient_ids: Option<Vec<PatientId>>
All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
schematized_data: Option<SchematizedData>
The parsed version of the raw message data schematized according to this store’s schemas and type definitions.
send_facility: Option<String>
The hospital that this message came from. MSH-4.
send_time: Option<DateTime<Utc>>
The datetime the sending application sent this message. MSH-7.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Message
impl ResponseResult for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more