Regenerate the API client for person review and corrections
This commit is contained in:
+157
-9
@@ -44,6 +44,38 @@
|
||||
"title": "Condition",
|
||||
"type": "object"
|
||||
},
|
||||
"Correction": {
|
||||
"properties": {
|
||||
"field": {
|
||||
"enum": [
|
||||
"record_number",
|
||||
"full_name",
|
||||
"curp",
|
||||
"nss",
|
||||
"birth_date",
|
||||
"sex",
|
||||
"postal_code"
|
||||
],
|
||||
"title": "Field",
|
||||
"type": "string"
|
||||
},
|
||||
"record": {
|
||||
"title": "Record",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"title": "Value",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"record",
|
||||
"field",
|
||||
"value"
|
||||
],
|
||||
"title": "Correction",
|
||||
"type": "object"
|
||||
},
|
||||
"Domain": {
|
||||
"enum": [
|
||||
"cacu",
|
||||
@@ -363,6 +395,29 @@
|
||||
"title": "Map",
|
||||
"type": "object"
|
||||
},
|
||||
"PersonDecision": {
|
||||
"properties": {
|
||||
"candidate": {
|
||||
"title": "Candidate",
|
||||
"type": "string"
|
||||
},
|
||||
"person": {
|
||||
"title": "Person",
|
||||
"type": "string"
|
||||
},
|
||||
"same": {
|
||||
"title": "Same",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"person",
|
||||
"candidate",
|
||||
"same"
|
||||
],
|
||||
"title": "PersonDecision",
|
||||
"type": "object"
|
||||
},
|
||||
"Pipeline": {
|
||||
"properties": {
|
||||
"nodes": {
|
||||
@@ -1327,6 +1382,52 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/review/corrections": {
|
||||
"post": {
|
||||
"description": "A corrected identity field of one record (e.g. a mistyped record number); linking\nuses it on the next run. Fixing the source too is still worth it.",
|
||||
"operationId": "correct",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Correction"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"201": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Response Correct",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Correct",
|
||||
"tags": [
|
||||
"review"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/review/held": {
|
||||
"get": {
|
||||
"description": "Rows a rule held, with the reasons and the values as they came.",
|
||||
@@ -1384,10 +1485,10 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/review/links": {
|
||||
"/review/persons": {
|
||||
"get": {
|
||||
"description": "Records that may be the same person but were left apart.",
|
||||
"operationId": "links",
|
||||
"description": "Persons to settle (with their possible owners) and torn persons (with their\nrecords) left by a pipeline's link node.",
|
||||
"operationId": "persons",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
@@ -1417,12 +1518,15 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"additionalProperties": true,
|
||||
"type": "object"
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"additionalProperties": true,
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"title": "Response Links",
|
||||
"type": "array"
|
||||
"title": "Response Persons",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1439,7 +1543,51 @@
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Links",
|
||||
"summary": "Persons",
|
||||
"tags": [
|
||||
"review"
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"description": "Whether a person and a possible owner are one patient; applied on the next run.",
|
||||
"operationId": "decide_persons",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PersonDecision"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"201": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Response Decide Persons",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Decide Persons",
|
||||
"tags": [
|
||||
"review"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user