Agregar elegibilidad CaCu por escenario clínico

This commit is contained in:
Angel Capetillo Zavala
2026-12-02 18:47:09 -06:00
parent f7fdab950a
commit 370da43695
18 changed files with 1128 additions and 9 deletions
+285
View File
@@ -292,6 +292,7 @@
"default": "identity",
"enum": [
"identity",
"cacu_eligibility_evidence",
"cervical_cytology",
"cervical_biopsy",
"mammography",
@@ -443,6 +444,7 @@
"description": "Qu\u00e9 estudio se saca del documento.",
"enum": [
"identity",
"cacu_eligibility_evidence",
"cervical_cytology",
"cervical_biopsy",
"mammography",
@@ -465,6 +467,10 @@
"label": "Identidad de la persona",
"value": "identity"
},
{
"label": "Evidencia cl\u00ednica para elegibilidad CaCu",
"value": "cacu_eligibility_evidence"
},
{
"label": "Citolog\u00eda cervical",
"value": "cervical_cytology"
@@ -641,6 +647,7 @@
"entity": {
"enum": [
"identity",
"cacu_eligibility_evidence",
"cervical_cytology",
"cervical_biopsy",
"mammography",
@@ -663,6 +670,10 @@
"label": "Identidad de la persona",
"value": "identity"
},
{
"label": "Evidencia cl\u00ednica para elegibilidad CaCu",
"value": "cacu_eligibility_evidence"
},
{
"label": "Citolog\u00eda cervical",
"value": "cervical_cytology"
@@ -1530,6 +1541,7 @@
"entity": {
"enum": [
"identity",
"cacu_eligibility_evidence",
"cervical_cytology",
"cervical_biopsy",
"mammography",
@@ -2117,6 +2129,7 @@
"description": "En qu\u00e9 estudio de la plataforma se guarda.",
"enum": [
"identity",
"cacu_eligibility_evidence",
"cervical_cytology",
"cervical_biopsy",
"mammography",
@@ -2139,6 +2152,10 @@
"label": "Identidad de la persona",
"value": "identity"
},
{
"label": "Evidencia cl\u00ednica para elegibilidad CaCu",
"value": "cacu_eligibility_evidence"
},
{
"label": "Citolog\u00eda cervical",
"value": "cervical_cytology"
@@ -4056,6 +4073,7 @@
"schema": {
"enum": [
"identity",
"cacu_eligibility_evidence",
"cervical_cytology",
"cervical_biopsy",
"mammography",
@@ -4164,6 +4182,7 @@
"schema": {
"enum": [
"identity",
"cacu_eligibility_evidence",
"cervical_cytology",
"cervical_biopsy",
"mammography",
@@ -5907,6 +5926,272 @@
]
}
},
"/{domain}/fhir/Patient/{id}/$eligibility": {
"get": {
"description": "The normalized cohort eligibility and exclusion reasons for one CaCu patient.",
"operationId": "cacu_eligibility",
"parameters": [
{
"in": "path",
"name": "domain",
"required": true,
"schema": {
"$ref": "#/components/schemas/Domain"
}
},
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"title": "Id",
"type": "string"
}
},
{
"description": "Limit the report to one CaCu scenario",
"in": "query",
"name": "scenario",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Limit the report to one CaCu scenario",
"title": "Scenario"
}
},
{
"description": "Only index dates up to this day",
"in": "query",
"name": "cutoff",
"required": false,
"schema": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"description": "Only index dates up to this day",
"title": "Cutoff"
}
}
],
"responses": {
"200": {
"content": {
"application/fhir+json": {
"schema": {
"type": "object"
}
}
},
"description": "FHIR"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"summary": "Cacu Eligibility",
"tags": [
"fhir"
]
}
},
"/{domain}/fhir/Patient/{id}/$reference-risk": {
"get": {
"description": "EXPERIMENTAL, off unless CACU_NCI_REFERENCE=1. The NCI/ASCCP CIN3+ reference risk of one\npatient's cytology by a cut-off, how it was resolved and, beside it, the institutional models'\nrisks when they measure the same thing. Research only: not validated, not a recommendation.",
"operationId": "reference_risk",
"parameters": [
{
"in": "path",
"name": "domain",
"required": true,
"schema": {
"$ref": "#/components/schemas/Domain"
}
},
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"title": "Id",
"type": "string"
}
},
{
"description": "Only what was reported by this day",
"in": "query",
"name": "cutoff",
"required": false,
"schema": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"description": "Only what was reported by this day",
"title": "Cutoff"
}
},
{
"description": "The cytology's sample day",
"in": "query",
"name": "sample",
"required": false,
"schema": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"description": "The cytology's sample day",
"title": "Sample"
}
}
],
"responses": {
"200": {
"content": {
"application/fhir+json": {
"schema": {
"type": "object"
}
}
},
"description": "FHIR"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"summary": "Reference Risk",
"tags": [
"fhir"
]
}
},
"/{domain}/fhir/Patient/{id}/$risk-series": {
"get": {
"description": "EXPERIMENTAL, off unless CACU_NCI_REFERENCE=1. The risk series her record can choose to\ndraw: institutional models and NCI tables, by outcome, with the published intervals.",
"operationId": "cacu_risk_series",
"parameters": [
{
"in": "path",
"name": "domain",
"required": true,
"schema": {
"$ref": "#/components/schemas/Domain"
}
},
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"title": "Id",
"type": "string"
}
},
{
"description": "Only what was reported by this day",
"in": "query",
"name": "cutoff",
"required": false,
"schema": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"description": "Only what was reported by this day",
"title": "Cutoff"
}
},
{
"description": "The cytology's sample day",
"in": "query",
"name": "sample",
"required": false,
"schema": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"description": "The cytology's sample day",
"title": "Sample"
}
}
],
"responses": {
"200": {
"content": {
"application/fhir+json": {
"schema": {
"type": "object"
}
}
},
"description": "FHIR"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"summary": "Cacu Risk Series",
"tags": [
"fhir"
]
}
},
"/{domain}/fhir/Procedure": {
"get": {
"description": "The procedures the domain's timeline infers (CaCu: colposcopies and treatments;\nCaMa: each treatment, by its kind).",