30 lines
1.4 KiB
Python
30 lines
1.4 KiB
Python
"""The models' names as the pages and FHIR resources show them (`<domain>.<model>`). A model
|
|
without one is shown by its code."""
|
|
|
|
TITLES: dict[str, str] = {
|
|
"cacu.cin2_logistic": "Riesgo de LIEAG+ (regresión logística)",
|
|
"cacu.cin2_pim": "Riesgo de LIEAG+ en vigilancia",
|
|
"cacu.cancer_pim": "Riesgo de cáncer en vigilancia",
|
|
"cacu.cin2_pim_post_colposcopy": "Riesgo de LIEAG+ tras colposcopía",
|
|
"cacu.cin2_pim_post_treatment": "Riesgo de LIEAG+ tras tratamiento",
|
|
"cacu.survival": "Supervivencia",
|
|
"cama.survival": "Supervivencia",
|
|
"cama.recurrence": "Recurrencia",
|
|
"tea.eeg-gradient": "Curva por edad: gradiente anteroposterior",
|
|
"tea.eeg-posterior-rhythm": "Curva por edad: ritmo posterior",
|
|
"tea.eeg-spikes": "Curva por edad: picos paroxísticos",
|
|
"tea.eeg-spindles-n2": "Curva por edad: husos de sueño N2",
|
|
"tea.eeg-spindles-n3": "Curva por edad: husos de sueño N3",
|
|
"tea.eeg-spindle-topography-n2": "Curva por edad: topografía de husos N2",
|
|
"tea.eeg-spindle-topography-n3": "Curva por edad: topografía de husos N3",
|
|
"tea.eeg-ados2": "Relación del EEG con el ADOS-2",
|
|
}
|
|
|
|
# Trained and scored to test and develop, compared in Gobernanza: never a patient's risk.
|
|
DEVELOPMENT = frozenset({"cacu.cin2_logistic"})
|
|
|
|
|
|
def title(model: str) -> str:
|
|
"""`model` (`<domain>.<name>`) as the pages name it."""
|
|
return TITLES.get(model, model.split(".", 1)[-1])
|