"""The base of every FHIR URL this API emits: code systems, value sets and extensions. It is a name we mint, not an address that has to resolve. `FHIR_BASE_URL` sets it. The WebApp reads these URLs by exact match (`fhir.ts` CODE_SYSTEM and `paciente-riesgo.validation.ts` INTERVAL), so a change of domain goes to both. A module of its own, with no imports from the package, so `metrics` and `durations` can use it without a cycle. """ import os BASE = os.environ.get("FHIR_BASE_URL", "https://isssteleon.org/fhir").rstrip("/") STRUCTURE = f"{BASE}/StructureDefinition"