helios-sof 0.1.47

This crate provides a complete implementation of the SQL-on-FHIR specification for Rust, enabling the transformation of FHIR resources into tabular data using declarative ViewDefinitions. It supports all major FHIR versions (R4, R4B, R5, R6) through a version-agnostic abstraction layer.
Documentation
//! Test to verify that 'application/x-ndjson' is supported according to SQL-on-FHIR specification

use helios_sof::ContentType;

#[test]
fn test_x_ndjson_mime_type_support() {
    // Test that 'application/x-ndjson' is accepted
    let result = ContentType::from_string("application/x-ndjson");
    assert!(result.is_ok());
    assert_eq!(result.unwrap(), ContentType::NdJson);

    // Test that 'application/ndjson' is still accepted for backward compatibility
    let result = ContentType::from_string("application/ndjson");
    assert!(result.is_ok());
    assert_eq!(result.unwrap(), ContentType::NdJson);

    // Test that shortened format name 'ndjson' is still accepted
    let result = ContentType::from_string("ndjson");
    assert!(result.is_ok());
    assert_eq!(result.unwrap(), ContentType::NdJson);
}