pub struct NamingManager;Expand description
Centralized naming manager for FHIR types
Implementations§
Source§impl NamingManager
impl NamingManager
Sourcepub fn get_resource_info(resource_name: &str) -> Option<&FhirResourceInfo>
pub fn get_resource_info(resource_name: &str) -> Option<&FhirResourceInfo>
Get information about a FHIR resource
Sourcepub fn get_datatype_info(datatype_name: &str) -> Option<&FhirResourceInfo>
pub fn get_datatype_info(datatype_name: &str) -> Option<&FhirResourceInfo>
Get information about a FHIR datatype
Sourcepub fn is_fhir_resource(type_name: &str) -> bool
pub fn is_fhir_resource(type_name: &str) -> bool
Check if a type name represents a FHIR resource
Sourcepub fn is_fhir_datatype(type_name: &str) -> bool
pub fn is_fhir_datatype(type_name: &str) -> bool
Check if a type name represents a FHIR datatype
Sourcepub fn detect_nested_structure_parent(type_name: &str) -> Option<String>
pub fn detect_nested_structure_parent(type_name: &str) -> Option<String>
Detect if a type name represents a nested structure and return the parent resource name Uses longest-prefix matching to ensure correct parent identification
Examples:
- “EvidenceVariableCharacteristic” -> Some(“EvidenceVariable”) (not “Evidence”)
- “MeasureReportGroup” -> Some(“MeasureReport”) (not “Measure”)
- “AccountCoverage” -> Some(“Account”)
Sourcepub fn get_import_path_for_type(type_name: &str) -> String
pub fn get_import_path_for_type(type_name: &str) -> String
Get the correct import path for a given type name
Auto Trait Implementations§
impl Freeze for NamingManager
impl RefUnwindSafe for NamingManager
impl Send for NamingManager
impl Sync for NamingManager
impl Unpin for NamingManager
impl UnsafeUnpin for NamingManager
impl UnwindSafe for NamingManager
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
Mutably borrows from an owned value. Read more