Skip to main content

wrap_in_binary_envelope

Function wrap_in_binary_envelope 

Source
pub fn wrap_in_binary_envelope(
    content_type: &str,
    payload: &[u8],
) -> Result<Vec<u8>, SofError>
Expand description

Wraps raw payload bytes in a serialized FHIR Binary resource envelope (contentType = the payload’s native media type, data = base64). The caller serves the result under application/fhir+json.