From 97371e10625ae7e637f99741269ced5319fa7bd0 Mon Sep 17 00:00:00 2001 From: Robert Antonio Barraza Gamero Date: Thu, 14 Mar 2019 16:29:17 +0000 Subject: [PATCH] Update salud-eps.json --- apigee/salud-eps.json | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/apigee/salud-eps.json b/apigee/salud-eps.json index b217382..76d5cf4 100644 --- a/apigee/salud-eps.json +++ b/apigee/salud-eps.json @@ -678,6 +678,59 @@ } } }, + "/v2/pacientes": { + "get": { + "tags": [ + "cols-salud-paciente" + ], + "summary": "Consulta de datos del paciente", + "description": "Servicio de consulta de datos de paciente, buscando por tipo de identificación y número de identificación.", + "operationId": "getDatosPacientePorDocumento", + "parameters": [ + { + "name": "tipoId", + "in": "query", + "description": "Tipo de identificacion.
CC - Cedula
NIT - NIT", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "numId", + "in": "query", + "description": "Número de identificación", + "required": true, + "schema": { + "type": "number" + } + } + ], + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/getDatosPacientePorDocumentoResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } + }, "/v2/pacientes/convenio": { "get": { "tags": [ @@ -1717,6 +1770,10 @@ "paciente": { "type": "object", "properties": { + "id":{ + "type":"number", + "description": "Id del paciente, no llega en el servicio /detalle." + }, "documento": { "$ref": "#/components/schemas/documento" }, @@ -1740,7 +1797,8 @@ "type": "boolean" }, "fechaNacimiento": { - "type": "string" + "type": "string", + "format": "date-time" }, "genero": { "$ref": "#/components/schemas/genero" @@ -2597,6 +2655,26 @@ } } }, + "getDatosPacientePorDocumentoResponse": { + "type": "object", + "required": [ + "resultados" + ], + "properties": { + "resultados": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "paciente": { + "$ref": "#/components/schemas/paciente" + } + } + }, "convenioPacienteResponse": { "type": "object", "required": [ -- libgit2 0.26.0