Skip to main content

rumtk_v2_python_exec

Macro rumtk_v2_python_exec 

Source
macro_rules! rumtk_v2_python_exec {
    ( $mod_path:expr, $message:expr ) => { ... };
}
Expand description

Macro for processing V2 message via a Python module loaded from disk. This interface attempts to cache the module to avoid repeated loads of the module.

ยงExamples

    use rumtk_hl7_v2::{rumtk_v2_parse_message};
    let pattern = "MSH1.1";
    let hl7_v2_message = "MSH|^~\\&|NISTEHRAPP|NISTEHRFAC|NISTIISAPP|NISTIISFAC|20150625072816.601-0500||VXU^V04^VXU_V04|NIST-IZ-AD-10.1_Send_V04_Z22|P|2.5.1|||ER|AL|||||Z22^CDCPHINVS|NISTEHRFAC|NISTIISFAC\n";
    let message = rumtk_v2_parse_message!(&hl7_v2_message).unwrap();