feat: Add new profile and time period placeholders in placeholder_resolver.py
- Introduced functions to retrieve profile name, age, height, and gender for better placeholder resolution. - Added functions for displaying current date and time period labels (last 7, 30, and 90 days). - Updated PLACEHOLDER_MAP to utilize new functions for improved readability and maintainability. - Enhanced placeholder registrations in __init__.py to include new modules for sleep, vital metrics, and profile time periods. These changes enhance the flexibility and functionality of the placeholder system, allowing for more dynamic content generation.
This commit is contained in:
1 parent
e9e094c6a4
commit
2ea5f905c4
9 files changed
+1233
-68
No files matched your search
@@ -0,0 +1,19 @@
|
||||
"""Gemeinsames Evidence-Tagging für Registry-Einträge."""
|
||||
|
||||
from placeholder_registry import EvidenceType, PlaceholderMetadata
|
||||
|
||||
STANDARD_FIELDS = (
|
||||
"key", "category", "description", "resolver_module", "resolver_function",
|
||||
"data_layer_module", "data_layer_function", "source_tables", "semantic_contract",
|
||||
"unit", "time_window", "output_type", "placeholder_type", "format_hint",
|
||||
"example_output", "minimum_data_requirements", "confidence_logic",
|
||||
"missing_value_policy", "layer_1_decision", "layer_2a_decision",
|
||||
"layer_2b_reuse_possible", "architecture_alignment", "issue_53_alignment",
|
||||
)
|
||||
|
||||
|
||||
def tag_standard_evidence(meta: PlaceholderMetadata) -> None:
|
||||
for field in STANDARD_FIELDS:
|
||||
meta.set_evidence(field, EvidenceType.CODE_DERIVED)
|
||||
meta.set_evidence("business_meaning", EvidenceType.DRAFT_DERIVED)
|
||||
meta.set_evidence("known_limitations", EvidenceType.MIXED)
|
||||
Reference in new issue
Block a user