TEA on its new staging: silver load, ten measures answered on request with the status at the period's end, several groups and column strata, and FHIR R4 endpoints for measures, follow-up and patient summary
This commit is contained in:
+10
-9
@@ -48,14 +48,15 @@ def test_tea_pacientes_schema_is_fully_optional():
|
||||
assert schema.pac_id_hospital is None
|
||||
|
||||
|
||||
def test_tea_pacientes_schema_coerces_sexo_from_bare_enum_no_alias_dict():
|
||||
schema = PacientesImportSchema(pac_sexo="f")
|
||||
assert schema.pac_sexo == "F"
|
||||
def test_tea_neuropediatrics_note_takes_icd10_with_or_without_the_dot():
|
||||
"""Pins down: the note's ICD-10 is upper-cased and accepted with or without its dot; anything else is
|
||||
rejected. Fails if the pattern of `neu_cie_codigo` changes."""
|
||||
from webapi.imports.schemas.tea.evaluacion_neuropediatrica import EvaluacionNeuropediatricaImportSchema as Nota
|
||||
|
||||
|
||||
def test_tea_pacientes_schema_coerces_parentesco():
|
||||
schema = PacientesImportSchema(pac_parentesco="hijo")
|
||||
assert schema.pac_parentesco == "HIJO"
|
||||
assert Nota(neu_cie_codigo=" f84.0 ").neu_cie_codigo == "F84.0"
|
||||
assert Nota(neu_cie_codigo="F840").neu_cie_codigo == "F840"
|
||||
with pytest.raises(ValidationError):
|
||||
Nota(neu_cie_codigo="autismo")
|
||||
|
||||
|
||||
def test_classify_error_missing():
|
||||
@@ -243,5 +244,5 @@ def test_catalog_aliases_for_values_the_indicator_kit_uses():
|
||||
cito = CitologiaCervicalImportSchema(pac_id_hospital="H", cit_celulas_escamosas="NEGATIVO")
|
||||
assert cito.cit_celulas_escamosas == "NORMAL"
|
||||
assert CamaOrdenes(pac_id_hospital="H", ord_numero_hospital=1, ord_tipo_estudio="MASTOGRAFIA").ord_tipo_estudio == "MASTOGRAFIA"
|
||||
assert TeaOrdenes(ord_tipo_estudio="POTENCIALES_EVOCADOS").ord_tipo_estudio == "POTENCIALES_EVOCADOS_AUDITIVOS"
|
||||
assert TeaOrdenes(ord_tipo_estudio=" evaluacion_psicologica_tea ").ord_tipo_estudio == "EVALUACION_PSICOLOGICA_TEA"
|
||||
assert TeaOrdenes(ord_tipo_estudio="electroencefalograma").ord_tipo_estudio == "EEG"
|
||||
assert TeaOrdenes(ord_tipo_estudio=" evaluacion_psicologica_tea ").ord_tipo_estudio == "ADOS2"
|
||||
|
||||
Reference in New Issue
Block a user