get_newest_enabled_fhir_version

Function get_newest_enabled_fhir_version 

Source
pub fn get_newest_enabled_fhir_version() -> FhirVersion
Expand description

Returns the newest FHIR version that is enabled at compile time.

This function uses compile-time feature detection to determine which FHIR version should be used when multiple versions are enabled. The priority order is: R6 > R5 > R4B > R4, where newer versions take precedence.

§Examples

use helios_sof::{get_newest_enabled_fhir_version, FhirVersion};

let version = get_newest_enabled_fhir_version();
// If R5 and R4 are both enabled, this returns R5

§Panics

This function will panic at compile time if no FHIR version features are enabled.