Documentation Index
Fetch the complete documentation index at: https://docs.fhiron.cl/llms.txt
Use this file to discover all available pages before exploring further.
Las reglas locales corren offline en el MCP connector y en Bridge. No consumen cuota. La implementación está abierta en packages/linter, sin dependencias en runtime.
| Código | Severidad | Descripción |
|---|
cl-json-01 | error | JSON inválido (string de entrada no parseable). |
cl-json-02 | error | El argumento no es un objeto FHIR. |
cl-json-03 | error | Falta resourceType. |
cl-json-04 | warning | resourceType no es un tipo oficial de FHIR R4 (el servidor lo rechazará). |
RUN chileno (perfil RUNcl)
| Código | Severidad | Descripción |
|---|
cl-run-01 | error | RUN con puntos — incluye quickFix que los elimina automáticamente. |
cl-run-02 | error | Identifier con system RUN pero sin value. |
cl-run-03 | error | Dígito verificador incorrecto. |
cl-run-04 | warning | System legacy hl7chile.cl/identificador/run obsoleto. |
Patient (CorePacienteCl)
| Código | Severidad | Descripción |
|---|
cl-patient-01 | error | Falta identifier. |
cl-patient-02 | error | Falta name. |
cl-patient-03 | error | Elemento de name sin family ni given. |
cl-patient-04 | warning | gender recomendado. |
Practitioner (CorePrestadorCl)
| Código | Severidad | Descripción |
|---|
cl-practitioner-01 | error | Falta identifier. |
cl-practitioner-02 | error | Falta name. |
Observation
| Código | Severidad | Descripción |
|---|
cl-obs-01 | error | Falta status. |
cl-obs-02 | error | Falta code. |
cl-obs-03 | error | Falta subject. |
Medication (CoreMedicamentoCl)
| Código | Severidad | Descripción |
|---|
cl-med-01 | error | Falta code. |
cl-med-02 | warning | Sistema de codificación no reconocido (TFC/SNOMED/RxNorm recomendados). |
MedicationRequest
| Código | Severidad | Descripción |
|---|
cl-medreq-01 | error | Falta status. |
cl-medreq-02 | error | Falta intent. |
cl-medreq-03 | error | Falta subject. |
cl-medreq-04 | error | Falta medication[x]. |
Encounter (CoreEncounterCl)
| Código | Severidad | Descripción |
|---|
cl-enc-01 | error | Falta status. |
cl-enc-02 | error | Falta class. |
cl-enc-03 | error | Falta subject. |
Otros recursos cubiertos
Condition · AllergyIntolerance · Procedure · Coverage · Organization · Immunization · DiagnosticReport · Bundle
Listado completo en packages/linter/src/rules.js — códigos cl-cond-*, cl-allergy-*, cl-proc-*, cl-cov-*, cl-org-*, cl-imm-*, cl-dr-*, cl-bundle-*.
Reglas locales vs validación completa
Las reglas locales son un subconjunto de las restricciones del IG. Cubren los errores más frecuentes (RUN mal formateado, campos requeridos faltantes) y producen feedback inmediato sin consumo de cuota.
La validación completa contra el IG cargado en el servidor cubre el resto: invariantes FHIRPath, bindings a ValueSets, terminologías, slicing y extensions. Cuesta 1 crédito y se invoca con fhiron_validate_fhir_resource.
| Etapa | Costo | Latencia típica |
|---|
| Reglas locales | Gratis · offline | < 5 ms |
| Validación completa | 1 crédito | < 3 s (p95) |
Patrón típico: fhiron_fhir_lint_local en cada cambio del editor; fhiron_validate_fhir_resource antes de comprometer el recurso al destino.