Gobernanza: view the results of one EDF and its ADOS-2 report without storing them, with Guardar como PDF
This commit is contained in:
@@ -0,0 +1,835 @@
|
||||
{
|
||||
"resourceType": "Bundle",
|
||||
"type": "collection",
|
||||
"entry": [
|
||||
{
|
||||
"resource": {
|
||||
"resourceType": "Observation",
|
||||
"id": "ados2-vista-previa",
|
||||
"status": "final",
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2",
|
||||
"display": "ADOS-2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"subject": {
|
||||
"reference": "Patient/vista-previa"
|
||||
},
|
||||
"effectiveDateTime": "1985-01-01",
|
||||
"component": [
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.modulo",
|
||||
"display": "Módulo"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueCodeableConcept": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.modulo.MODULO_2"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.css",
|
||||
"display": "Puntaje de severidad (CSS)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 8
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.clasificacion",
|
||||
"display": "Clasificación"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueCodeableConcept": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.clasificacion.AUTISMO"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/ados2-dominio",
|
||||
"code": "SA",
|
||||
"display": "Afecto social"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 10
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/ados2-dominio",
|
||||
"code": "RRB",
|
||||
"display": "Comportamiento restringido y repetitivo"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 4
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.rrb_a4",
|
||||
"display": "Uso estereotipado o idiosincrásico de palabras o frases"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 1,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 1
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "RRB"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.rrb_d2",
|
||||
"display": "Manierismos de manos y dedos y otros manierismos complejos"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 2,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 2
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "RRB"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.rrb_d4",
|
||||
"display": "Intereses inusualmente repetitivos o comportamientos estereotipados"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 1,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 1
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "RRB"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.sa_a6",
|
||||
"display": "Señalar"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 1,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 1
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "SA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.sa_a7",
|
||||
"display": "Señalar"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 0,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 0
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "SA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.sa_b1",
|
||||
"display": "Contacto visual inusual"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 2,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 2
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "SA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.sa_b12",
|
||||
"display": "Características de las iniciaciones sociales"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 2,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 2
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "SA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.sa_b2",
|
||||
"display": "Expresiones faciales dirigidas a otros"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 1,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 1
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "SA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.sa_b3",
|
||||
"display": "Expresiones faciales dirigidas a otros"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 0,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 0
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "SA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.sa_b5",
|
||||
"display": "Disfrute compartido durante la interacción"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 2,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 2
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "SA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.sa_b6",
|
||||
"display": "Iniciación espontánea de la atención conjunta"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 1,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 1
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "SA"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "ados2.sa_b8",
|
||||
"display": "Características de las iniciaciones sociales"
|
||||
}
|
||||
]
|
||||
},
|
||||
"valueInteger": 1,
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/puntaje-algoritmo",
|
||||
"valueInteger": 1
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/dominio",
|
||||
"valueCode": "SA"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"tag": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/etiqueta",
|
||||
"code": "simulado",
|
||||
"display": "Datos simulados"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"resource": {
|
||||
"resourceType": "Procedure",
|
||||
"id": "eeg-vista-previa",
|
||||
"status": "completed",
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "eeg",
|
||||
"display": "Electroencefalograma"
|
||||
}
|
||||
]
|
||||
},
|
||||
"subject": {
|
||||
"reference": "Patient/vista-previa"
|
||||
},
|
||||
"performedDateTime": "1985-01-01",
|
||||
"meta": {
|
||||
"tag": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/etiqueta",
|
||||
"code": "simulado",
|
||||
"display": "Datos simulados"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"resource": {
|
||||
"resourceType": "DiagnosticReport",
|
||||
"id": "eeg-vista-previa",
|
||||
"status": "final",
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/tea-catalogo",
|
||||
"code": "eeg",
|
||||
"display": "Electroencefalograma"
|
||||
}
|
||||
]
|
||||
},
|
||||
"subject": {
|
||||
"reference": "Patient/vista-previa"
|
||||
},
|
||||
"effectiveDateTime": "1985-01-01",
|
||||
"result": [
|
||||
{
|
||||
"reference": "Observation/calidad-bad-scalp-triage-vista-previa"
|
||||
},
|
||||
{
|
||||
"reference": "Observation/calidad-clean-windows-vista-previa"
|
||||
},
|
||||
{
|
||||
"reference": "Observation/calidad-internal-coverage-vista-previa"
|
||||
},
|
||||
{
|
||||
"reference": "Observation/calidad-line-noise-vista-previa"
|
||||
},
|
||||
{
|
||||
"reference": "Observation/calidad-triage-level-vista-previa"
|
||||
},
|
||||
{
|
||||
"reference": "Observation/calidad-usable-scalp-vista-previa"
|
||||
}
|
||||
],
|
||||
"conclusionCode": [
|
||||
{
|
||||
"coding": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/calidad",
|
||||
"code": "MALO"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"coding": [
|
||||
{
|
||||
"system": "urn:tea:validation",
|
||||
"code": "not-valid"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"extension": [
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/duracion-min",
|
||||
"valueDecimal": 2.0
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/edad-meses",
|
||||
"valueDecimal": 30.0
|
||||
},
|
||||
{
|
||||
"url": "https://isssteleon.org/fhir/StructureDefinition/canales",
|
||||
"valueInteger": 24
|
||||
}
|
||||
],
|
||||
"conclusion": "EEG de mala calidad: no es válido para el estudio (nivel de triaje: no_analizable).",
|
||||
"meta": {
|
||||
"tag": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/etiqueta",
|
||||
"code": "simulado",
|
||||
"display": "Datos simulados"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"resource": {
|
||||
"resourceType": "Observation",
|
||||
"id": "calidad-bad-scalp-triage-vista-previa",
|
||||
"status": "final",
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "urn:tea:validation",
|
||||
"code": "bad-scalp-triage",
|
||||
"display": "bad-scalp-triage"
|
||||
}
|
||||
],
|
||||
"text": "bad-scalp-triage"
|
||||
},
|
||||
"subject": {
|
||||
"reference": "Patient/vista-previa"
|
||||
},
|
||||
"effectiveDateTime": "1985-01-01",
|
||||
"interpretation": [
|
||||
{
|
||||
"coding": [
|
||||
{
|
||||
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
|
||||
"code": "N"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"valueQuantity": {
|
||||
"value": 0.0,
|
||||
"unit": "electrodes"
|
||||
},
|
||||
"referenceRange": [
|
||||
{
|
||||
"high": {
|
||||
"value": 2.0,
|
||||
"unit": "electrodes"
|
||||
}
|
||||
}
|
||||
],
|
||||
"component": [
|
||||
{
|
||||
"code": {
|
||||
"text": "decisive"
|
||||
},
|
||||
"valueBoolean": true
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"tag": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/etiqueta",
|
||||
"code": "simulado",
|
||||
"display": "Datos simulados"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"resource": {
|
||||
"resourceType": "Observation",
|
||||
"id": "calidad-clean-windows-vista-previa",
|
||||
"status": "final",
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "urn:tea:validation",
|
||||
"code": "clean-windows",
|
||||
"display": "clean-windows"
|
||||
}
|
||||
],
|
||||
"text": "clean-windows"
|
||||
},
|
||||
"subject": {
|
||||
"reference": "Patient/vista-previa"
|
||||
},
|
||||
"effectiveDateTime": "1985-01-01",
|
||||
"interpretation": [
|
||||
{
|
||||
"coding": [
|
||||
{
|
||||
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
|
||||
"code": "N"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"valueQuantity": {
|
||||
"value": 100.0,
|
||||
"unit": "%"
|
||||
},
|
||||
"referenceRange": [
|
||||
{
|
||||
"low": {
|
||||
"value": 60.0,
|
||||
"unit": "%"
|
||||
}
|
||||
}
|
||||
],
|
||||
"component": [
|
||||
{
|
||||
"code": {
|
||||
"text": "decisive"
|
||||
},
|
||||
"valueBoolean": true
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"tag": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/etiqueta",
|
||||
"code": "simulado",
|
||||
"display": "Datos simulados"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"resource": {
|
||||
"resourceType": "Observation",
|
||||
"id": "calidad-internal-coverage-vista-previa",
|
||||
"status": "final",
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "urn:tea:validation",
|
||||
"code": "internal-coverage",
|
||||
"display": "internal-coverage"
|
||||
}
|
||||
],
|
||||
"text": "internal-coverage"
|
||||
},
|
||||
"subject": {
|
||||
"reference": "Patient/vista-previa"
|
||||
},
|
||||
"effectiveDateTime": "1985-01-01",
|
||||
"interpretation": [
|
||||
{
|
||||
"coding": [
|
||||
{
|
||||
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
|
||||
"code": "N"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"valueQuantity": {
|
||||
"value": 1.0,
|
||||
"unit": "fraction"
|
||||
},
|
||||
"referenceRange": [
|
||||
{
|
||||
"low": {
|
||||
"value": 0.9,
|
||||
"unit": "fraction"
|
||||
}
|
||||
}
|
||||
],
|
||||
"component": [
|
||||
{
|
||||
"code": {
|
||||
"text": "decisive"
|
||||
},
|
||||
"valueBoolean": true
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"tag": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/etiqueta",
|
||||
"code": "simulado",
|
||||
"display": "Datos simulados"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"resource": {
|
||||
"resourceType": "Observation",
|
||||
"id": "calidad-line-noise-vista-previa",
|
||||
"status": "final",
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "urn:tea:validation",
|
||||
"code": "line-noise",
|
||||
"display": "line-noise"
|
||||
}
|
||||
],
|
||||
"text": "line-noise"
|
||||
},
|
||||
"subject": {
|
||||
"reference": "Patient/vista-previa"
|
||||
},
|
||||
"effectiveDateTime": "1985-01-01",
|
||||
"interpretation": [
|
||||
{
|
||||
"coding": [
|
||||
{
|
||||
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
|
||||
"code": "N"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"valueQuantity": {
|
||||
"value": 9.231034526452635,
|
||||
"unit": "dB"
|
||||
},
|
||||
"referenceRange": [
|
||||
{
|
||||
"high": {
|
||||
"value": 45.0,
|
||||
"unit": "dB"
|
||||
}
|
||||
}
|
||||
],
|
||||
"component": [
|
||||
{
|
||||
"code": {
|
||||
"text": "decisive"
|
||||
},
|
||||
"valueBoolean": false
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"tag": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/etiqueta",
|
||||
"code": "simulado",
|
||||
"display": "Datos simulados"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"resource": {
|
||||
"resourceType": "Observation",
|
||||
"id": "calidad-triage-level-vista-previa",
|
||||
"status": "final",
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "urn:tea:validation",
|
||||
"code": "triage-level",
|
||||
"display": "triage-level"
|
||||
}
|
||||
],
|
||||
"text": "triage-level"
|
||||
},
|
||||
"subject": {
|
||||
"reference": "Patient/vista-previa"
|
||||
},
|
||||
"effectiveDateTime": "1985-01-01",
|
||||
"interpretation": [
|
||||
{
|
||||
"coding": [
|
||||
{
|
||||
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
|
||||
"code": "A"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"valueString": "no_analizable",
|
||||
"component": [
|
||||
{
|
||||
"code": {
|
||||
"text": "decisive"
|
||||
},
|
||||
"valueBoolean": true
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"tag": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/etiqueta",
|
||||
"code": "simulado",
|
||||
"display": "Datos simulados"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"resource": {
|
||||
"resourceType": "Observation",
|
||||
"id": "calidad-usable-scalp-vista-previa",
|
||||
"status": "final",
|
||||
"code": {
|
||||
"coding": [
|
||||
{
|
||||
"system": "urn:tea:validation",
|
||||
"code": "usable-scalp",
|
||||
"display": "usable-scalp"
|
||||
}
|
||||
],
|
||||
"text": "usable-scalp"
|
||||
},
|
||||
"subject": {
|
||||
"reference": "Patient/vista-previa"
|
||||
},
|
||||
"effectiveDateTime": "1985-01-01",
|
||||
"interpretation": [
|
||||
{
|
||||
"coding": [
|
||||
{
|
||||
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
|
||||
"code": "N"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"valueQuantity": {
|
||||
"value": 19.0,
|
||||
"unit": "electrodes"
|
||||
},
|
||||
"referenceRange": [
|
||||
{
|
||||
"low": {
|
||||
"value": 12.0,
|
||||
"unit": "electrodes"
|
||||
}
|
||||
}
|
||||
],
|
||||
"component": [
|
||||
{
|
||||
"code": {
|
||||
"text": "decisive"
|
||||
},
|
||||
"valueBoolean": true
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"tag": [
|
||||
{
|
||||
"system": "https://isssteleon.org/fhir/CodeSystem/etiqueta",
|
||||
"code": "simulado",
|
||||
"display": "Datos simulados"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -21,6 +21,7 @@ import { historicoFigura } from './indicadores-historico-figures';
|
||||
import { datosValidos } from './indicadores.service';
|
||||
import { FhirTeaSeguimientoService, mapaDeElectrodos } from './tea-seguimiento-fhir';
|
||||
import { IndicadorDatos } from './indicadores.models';
|
||||
import vistaPreviaBundle from './fixtures/tea_vista_previa_bundle.json';
|
||||
|
||||
const measure = (id: string) => resources(fx.measures).find(m => m.id === id) as Measure;
|
||||
|
||||
@@ -384,4 +385,18 @@ describe('Seguimiento de TEA sobre FHIR', () => {
|
||||
expect(mapa.regiones.map(r => [r.codigo, r.etiqueta, r.valor_z])).toEqual([
|
||||
['frontal_media', 'Frontal media', 3], ['central', 'Central', 1.5]]);
|
||||
});
|
||||
|
||||
it('la vista previa de un EDF y su ADOS-2 se lee como la ficha de un paciente guardado', async () => {
|
||||
// The fixture is what `POST /governance/tea/eeg/preview` answered for a short synthetic EDF with an ADOS-2 report.
|
||||
// Pins that the bundle the server builds without storing anything passes the same converter and checks as a
|
||||
// stored patient's summary. Fails if the server's shape and the converter drift apart.
|
||||
const answer = firstValueFrom(service.vistaPrevia(vistaPreviaBundle));
|
||||
http.expectOne('/tea/fhir/CodeSystem/tea-eeg-metrica').flush({ concept: [] });
|
||||
const detalle = await answer;
|
||||
expect(detalle.id_seudonimo).toBe('vista-previa');
|
||||
expect(detalle.ados2?.modulo).toBe('2');
|
||||
expect(detalle.ados2?.dominios.length).toBe(2);
|
||||
expect(detalle.eeg?.calidad).toBe('malo');
|
||||
expect(detalle.eeg?.criterios_calidad.length).toBeGreaterThan(0);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -85,7 +85,9 @@ export function normaFigure(m: TeaEegAlteracion, edad: number): PlotlyFigure {
|
||||
styleUrl: './tea-paciente-resumen.scss',
|
||||
})
|
||||
export class TeaPacienteResumen implements OnInit {
|
||||
@Input({ required: true }) id = '';
|
||||
@Input() id = '';
|
||||
/** A summary the host already has (an analysis that was not stored): nothing is requested. */
|
||||
@Input() detalleInicial?: TeaPacienteDetalle;
|
||||
/** `tarjetas`: four summary cards for a table row. `resumen`: the whole record as a summary with collapsible headers. */
|
||||
@Input() modo: 'tarjetas' | 'resumen' = 'tarjetas';
|
||||
/** The cards' button: the host shows the whole record in its own section. */
|
||||
@@ -129,19 +131,20 @@ export class TeaPacienteResumen implements OnInit {
|
||||
readonly nivelCss = NIVEL_CSS;
|
||||
readonly calidad = CALIDAD;
|
||||
readonly estado = ESTADO;
|
||||
ngOnInit() { this.load(); }
|
||||
ngOnInit() { if (this.detalleInicial) this.aplicar(this.detalleInicial); else this.load(); }
|
||||
// Opens on the first altered metric that has a map or a norm, or on the first one with either if none is altered.
|
||||
private aplicar(d: TeaPacienteDetalle) {
|
||||
const e = d.eeg;
|
||||
if (e) {
|
||||
const conPanel = e.alteraciones.filter(a => e.mapas.some(m => m.codigo === a.codigo) || this.conNorma(e, a.codigo));
|
||||
this.mostrar(e, (conPanel.find(a => a.estado === 'aumentado' || a.estado === 'disminuido') ?? conPanel[0])?.codigo);
|
||||
} else { this.mapaElegido = undefined; this.figura = this.figuraNorma = undefined; }
|
||||
this.detalle.set(d); this.status.set('ready');
|
||||
}
|
||||
load() {
|
||||
this.status.set('loading');
|
||||
this.service.detalle(this.id).pipe(takeUntilDestroyed(this.destroy)).subscribe({
|
||||
next: d => {
|
||||
// Opens on the first altered metric that has a map or a norm, or on the first one with either if none is altered.
|
||||
const e = d.eeg;
|
||||
if (e) {
|
||||
const conPanel = e.alteraciones.filter(a => e.mapas.some(m => m.codigo === a.codigo) || this.conNorma(e, a.codigo));
|
||||
this.mostrar(e, (conPanel.find(a => a.estado === 'aumentado' || a.estado === 'disminuido') ?? conPanel[0])?.codigo);
|
||||
} else { this.mapaElegido = undefined; this.figura = this.figuraNorma = undefined; }
|
||||
this.detalle.set(d); this.status.set('ready');
|
||||
},
|
||||
next: d => this.aplicar(d),
|
||||
error: () => this.status.set('error'),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -331,19 +331,26 @@ export class FhirTeaSeguimientoService extends TeaSeguimientoService {
|
||||
return forkJoin({
|
||||
bundle: this.client.get<Bundle>(`/tea/fhir/Patient/${encodeURIComponent(id)}/$resumen-tea`),
|
||||
metricas: this.metricas(),
|
||||
}).pipe(map(({ bundle, metricas }) => {
|
||||
const all = resources(bundle);
|
||||
const observations = all.filter(r => r.resourceType === 'Observation') as Observation[];
|
||||
const episode = resources(bundle, 'EpisodeOfCare')[0];
|
||||
const relacion = relacionDeRiesgo(resources(bundle, 'RiskAssessment')[0]);
|
||||
return teaPacienteDetalle({
|
||||
simulado: all.length > 0 && all.every(isSimulated),
|
||||
id_seudonimo: id,
|
||||
grupo_edad: grupoEdad(episode && extension(episode, 'grupo-edad')?.valueCoding?.code),
|
||||
ados2: ados2DeObservacion(byCode(observations, 'ados2')),
|
||||
eeg: eegDeReporte(resources(bundle, 'DiagnosticReport')[0] as Report | undefined, observations, metricas),
|
||||
...(relacion ? { relacion_ados2: relacion } : {}),
|
||||
}, id);
|
||||
}));
|
||||
}).pipe(map(({ bundle, metricas }) => detalleDeBundle(bundle, metricas, id)));
|
||||
}
|
||||
// The summary of an analysis the server did without storing it, read like a stored patient's.
|
||||
override vistaPrevia(bundle: unknown, id = 'vista-previa') {
|
||||
return this.metricas().pipe(map(metricas => detalleDeBundle(bundle as Bundle, metricas, id)));
|
||||
}
|
||||
}
|
||||
|
||||
// A `$resumen-tea` bundle as the patient summary the view draws.
|
||||
function detalleDeBundle(bundle: Bundle, metricas: Metric[], id: string) {
|
||||
const all = resources(bundle);
|
||||
const observations = all.filter(r => r.resourceType === 'Observation') as Observation[];
|
||||
const episode = resources(bundle, 'EpisodeOfCare')[0];
|
||||
const relacion = relacionDeRiesgo(resources(bundle, 'RiskAssessment')[0]);
|
||||
return teaPacienteDetalle({
|
||||
simulado: all.length > 0 && all.every(isSimulated),
|
||||
id_seudonimo: id,
|
||||
grupo_edad: grupoEdad(episode && extension(episode, 'grupo-edad')?.valueCoding?.code),
|
||||
ados2: ados2DeObservacion(byCode(observations, 'ados2')),
|
||||
eeg: eegDeReporte(resources(bundle, 'DiagnosticReport')[0] as Report | undefined, observations, metricas),
|
||||
...(relacion ? { relacion_ados2: relacion } : {}),
|
||||
}, id);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { inject, Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpParams } from '@angular/common/http';
|
||||
import { map } from 'rxjs';
|
||||
import { map, Observable, throwError } from 'rxjs';
|
||||
import { isoDate, SeguimientoQuery, SeguimientoResponse, SeguimientoStatus } from './cacu-seguimiento.models';
|
||||
import { validSeguimientoQuery } from './cacu-seguimiento.service';
|
||||
|
||||
@@ -244,4 +244,8 @@ export class TeaSeguimientoService {
|
||||
detalle(id: string) {
|
||||
return this.http.get<unknown>(`/tea/seguimiento/${encodeURIComponent(id)}`).pipe(map(v => teaPacienteDetalle(v, id)));
|
||||
}
|
||||
/** The summary of an analysis that was not stored; only the FHIR service reads the server's bundle. */
|
||||
vistaPrevia(_bundle: unknown, _id?: string): Observable<TeaPacienteDetalle> {
|
||||
return throwError(() => new Error('La vista previa necesita el servicio FHIR.'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user