From 1fe358a4e7216eb8de6e72a5c3c3d1a0a90f0526 Mon Sep 17 00:00:00 2001 From: Nathan Amorim Date: Wed, 23 Jun 2021 12:10:00 -0300 Subject: [PATCH 1/4] Update SpecializedMedicalReport_1_000.json --- jsonschema/schemas/SpecializedMedicalReport_1_000.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsonschema/schemas/SpecializedMedicalReport_1_000.json b/jsonschema/schemas/SpecializedMedicalReport_1_000.json index 5dcc6153d..4e0c65c13 100644 --- a/jsonschema/schemas/SpecializedMedicalReport_1_000.json +++ b/jsonschema/schemas/SpecializedMedicalReport_1_000.json @@ -214,7 +214,7 @@ "treatment": { "description": "Tratamentos", "required": true, - "type": "string", + "type": "boolean", "maxLength": 1, "x-totvs": [ { @@ -248,7 +248,7 @@ "certificate": { "description": "Atestado", "required": true, - "type": "string", + "type": "boolean", "maxLength": 1, "x-totvs": [ { @@ -348,7 +348,7 @@ "printed": { "description": "Impresso", "required": false, - "type": "string", + "type": "boolean", "maxLength": 1, "x-totvs": [ { From e0b40ffc8db232167c0e23ec919a4efb40f461a4 Mon Sep 17 00:00:00 2001 From: Nathan Amorim Date: Wed, 23 Jun 2021 12:45:45 -0300 Subject: [PATCH 2/4] Revert "Merge branch 'master' into SpecializedMedicalReport/v1/1_000" This reverts commit 959503b5e8f313f641ab331981dc26eb8afac9c4, reversing changes made to 1fe358a4e7216eb8de6e72a5c3c3d1a0a90f0526. --- .../SpecializedMedicalReportItems_v1_000.json | 656 +++++++++--------- .../apis/SpecializedMedicalReport_v1_000.json | 656 +++++++++--------- 2 files changed, 656 insertions(+), 656 deletions(-) diff --git a/jsonschema/apis/SpecializedMedicalReportItems_v1_000.json b/jsonschema/apis/SpecializedMedicalReportItems_v1_000.json index 1a80c0181..fb3df4573 100644 --- a/jsonschema/apis/SpecializedMedicalReportItems_v1_000.json +++ b/jsonschema/apis/SpecializedMedicalReportItems_v1_000.json @@ -1,329 +1,329 @@ { - "openapi": "3.0.1", - "servers": [ - { - "description": "API de Itens da LME - Laudo de Medicamentos Especializados", - "url": "{{host}}/api/hcg/v2", - "variables": { - "serverUrl": { - "default": "localhost" - }, - "serverHttpPort": { - "default": "8051" - } - } - } - ], - "info": { - "description": "API de Itens da LME - Laudo de Medicamentos Especializados", - "version": "1.000", - "title": "Itens da LME - Laudo de Medicamentos Especializados", - "contact": { - "name": "T-Talk", - "url": "api.totvs.com.br", - "email": "comiteintegracao@totvs.com.br" - }, - "x-totvs": { - "messageDocumentation": { - "name": "specialized-medical-report-items", - "description": "Itens da LME - Laudo de Medicamentos Especializados", - "segment": "Saúde" - }, - "productInformation": [ - { - "product": "RM", - "contact": "", - "description": "Itens da LME - Laudo de Medicamentos Especializados", - "adapter": "", - "helpUrl": "" - } - ] - } - }, - "paths": { - "/specialized-medical-report-items": { - "get": { - "tags": [ - "specialized-medical-report-items" - ], - "summary": "Listagem de registros", - "description": "Retorna uma lista de registros", - "operationId": "GetAll", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo está disponível com todos os parâmetros", - "minimalVersion": "12.1.33" - } - ] - }, - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Order" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Page" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/PageSize" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Fields" - } - ], - "responses": { - "200": { - "description": "Registros recuperados com sucesso", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/Pagedspecialized-medical-report-items" - } - } - } - }, - "404": { - "description": "Erro no momento da recuperação dos registros.", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - }, - "post": { - "tags": [ - "specialized-medical-report-items" - ], - "summary": "Insere um registro", - "description": "Insere um registro", - "operationId": "Post", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo esta disponivel com todos parametros", - "minimalVersion": "12.1.33" - } - ] - }, - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - } - ], - "requestBody": { - "description": "Objeto para inserir um registro", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" - } - } - } - }, - "responses": { - "200": { - "description": "Registro inserido com sucesso", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" - } - } - } - }, - "400": { - "description": "Erro no momento da alteração", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - } - }, - "/specialized-medical-report-items/{code}": { - "get": { - "tags": [ - "specialized-medical-report-items" - ], - "summary": "Recupera um registro", - "description": "Recupera um registro", - "operationId": "GetOne", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo está disponível com todos os parâmetros.", - "minimalVersion": "12.1.33" - } - ] - }, - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Expand" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Fields" - }, - { - "$ref": "#/components/parameters/code" - } - ], - "responses": { - "200": { - "description": "Registro recuperado com sucesso", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" - } - } - } - }, - "404": { - "description": "Erro no momento da recuperação do registro.", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - }, - "put": { - "tags": [ - "specialized-medical-report-items" - ], - "summary": "Atualiza um registro", - "description": "Atualiza um registro", - "operationId": "Put", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo esta disponivel com todos parametros", - "minimalVersion": "12.1.33" - } - ] - }, - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - }, - { - "$ref": "#/components/parameters/code", - "required": "true" - } - ], - "requestBody": { - "description": "Objeto para atualizar registro", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" - } - } - } - }, - "responses": { - "200": { - "description": "Registro atualizado com sucesso", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" - } - } - } - }, - "400": { - "description": "Erro no momento da alteração", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - }, - "delete": { - "tags": [ - "specialized-medical-report-items" - ], - "summary": "Exclui um registro", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo esta disponivel com todos parametros", - "minimalVersion": "12.1.33" - } - ] - }, - "description": "Exclui um registro", - "operationId": "Delete", - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - }, - { - "$ref": "#/components/parameters/code" - } - ], - "responses": { - "200": { - "description": "Registro excluído com sucesso" - }, - "400": { - "description": "Erro no momento da exclusão do registro.", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - } - } - }, - "components": { - "parameters": { - "code": { - "name": "code", - "in": "path", - "description": "Código da Coligada, Id da LME", - "required": true, - "schema": { - "type": "string" - } - } - }, - "schemas": {} - } -} \ No newline at end of file + "openapi": "3.0.1", + "servers": [ + { + "description": "API de Itens da LME - Laudo de Medicamentos Especializados", + "url": "{{host}}/api/hcg/v2", + "variables": { + "serverUrl": { + "default": "localhost" + }, + "serverHttpPort": { + "default": "8051" + } + } + } + ], + "info": { + "description": "API de Itens da LME - Laudo de Medicamentos Especializados", + "version": "1.000", + "title": "Itens da LME - Laudo de Medicamentos Especializados", + "contact": { + "name": "T-Talk", + "url": "api.totvs.com.br", + "email": "comiteintegracao@totvs.com.br" + }, + "x-totvs": { + "messageDocumentation": { + "name": "specialized-medical-report-items", + "description": "Itens da LME - Laudo de Medicamentos Especializados", + "segment": "Saúde" + }, + "productInformation": [ + { + "product": "RM", + "contact": "", + "description": "Itens da LME - Laudo de Medicamentos Especializados", + "adapter": "", + "helpUrl": "" + } + ] + } + }, + "paths": { + "/specialized-medical-report-items": { + "get": { + "tags": [ + "specialized-medical-report-items" + ], + "summary": "Listagem de registros", + "description": "Retorna uma lista de registros", + "operationId": "GetAll", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo está disponível com todos os parâmetros", + "minimalVersion": "12.1.33" + } + ] + }, + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Order" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Page" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/PageSize" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Fields" + } + ], + "responses": { + "200": { + "description": "Registros recuperados com sucesso", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/Pagedspecialized-medical-report-items" + } + } + } + }, + "404": { + "description": "Erro no momento da recuperação dos registros.", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + }, + "post": { + "tags": [ + "specialized-medical-report-items" + ], + "summary": "Insere um registro", + "description": "Insere um registro", + "operationId": "Post", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo esta disponivel com todos parametros", + "minimalVersion": "12.1.33" + } + ] + }, + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + } + ], + "requestBody": { + "description": "Objeto para inserir um registro", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" + } + } + } + }, + "responses": { + "200": { + "description": "Registro inserido com sucesso", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" + } + } + } + }, + "400": { + "description": "Erro no momento da alteração", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + } + }, + "/specialized-medical-report-items/{code}": { + "get": { + "tags": [ + "specialized-medical-report-items" + ], + "summary": "Recupera um registro", + "description": "Recupera um registro", + "operationId": "GetOne", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo está disponível com todos os parâmetros.", + "minimalVersion": "12.1.33" + } + ] + }, + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Expand" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Fields" + }, + { + "$ref": "#/components/parameters/code" + } + ], + "responses": { + "200": { + "description": "Registro recuperado com sucesso", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" + } + } + } + }, + "404": { + "description": "Erro no momento da recuperação do registro.", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + }, + "put": { + "tags": [ + "specialized-medical-report-items" + ], + "summary": "Atualiza um registro", + "description": "Atualiza um registro", + "operationId": "Put", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo esta disponivel com todos parametros", + "minimalVersion": "12.1.33" + } + ] + }, + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + }, + { + "$ref": "#/components/parameters/code", + "required": "true" + } + ], + "requestBody": { + "description": "Objeto para atualizar registro", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" + } + } + } + }, + "responses": { + "200": { + "description": "Registro atualizado com sucesso", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReportItems_1_000.json#/definitions/specialized-medical-report-items" + } + } + } + }, + "400": { + "description": "Erro no momento da alteração", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + }, + "delete": { + "tags": [ + "specialized-medical-report-items" + ], + "summary": "Exclui um registro", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo esta disponivel com todos parametros", + "minimalVersion": "12.1.33" + } + ] + }, + "description": "Exclui um registro", + "operationId": "Delete", + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + }, + { + "$ref": "#/components/parameters/code" + } + ], + "responses": { + "200": { + "description": "Registro excluído com sucesso" + }, + "400": { + "description": "Erro no momento da exclusão do registro.", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + } + } + }, + "components": { + "parameters": { + "code": { + "name": "code", + "in": "path", + "description": "Código da Coligada, Id da LME", + "required": true, + "schema": { + "type": "string" + } + } + }, + "schemas": {} + } +} diff --git a/jsonschema/apis/SpecializedMedicalReport_v1_000.json b/jsonschema/apis/SpecializedMedicalReport_v1_000.json index f7813bd2e..c6e75f645 100644 --- a/jsonschema/apis/SpecializedMedicalReport_v1_000.json +++ b/jsonschema/apis/SpecializedMedicalReport_v1_000.json @@ -1,329 +1,329 @@ { - "openapi": "3.0.1", - "servers": [ - { - "description": "API de LME - Laudo de medicamento especializado", - "url": "{{host}}/api/hcg/v1", - "variables": { - "serverUrl": { - "default": "localhost" - }, - "serverHttpPort": { - "default": "8051" - } - } - } - ], - "info": { - "description": "API de LME - Laudo de medicamento especializado", - "version": "1.000", - "title": "LME - Laudo de medicamento especializado", - "contact": { - "name": "T-Talk", - "url": "api.totvs.com.br", - "email": "comiteintegracao@totvs.com.br" - }, - "x-totvs": { - "messageDocumentation": { - "name": "specialized-medical-report", - "description": "LME - Laudo de medicamento especializado", - "segment": "Saúde" - }, - "productInformation": [ - { - "product": "RM", - "contact": "", - "description": "LME - Laudo de medicamento especializado", - "adapter": "", - "helpUrl": "" - } - ] - } - }, - "paths": { - "/specialized-medical-report": { - "get": { - "tags": [ - "specialized-medical-report" - ], - "summary": "Listagem de registros", - "description": "Retorna uma lista de registros", - "operationId": "GetAll", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo está disponível com todos os parâmetros", - "minimalVersion": "12.1.32" - } - ] - }, - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Order" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Page" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/PageSize" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Fields" - } - ], - "responses": { - "200": { - "description": "Registros recuperados com sucesso", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/Pagedspecialized-medical-report" - } - } - } - }, - "404": { - "description": "Erro no momento da recuperação dos registros.", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - }, - "post": { - "tags": [ - "specialized-medical-report" - ], - "summary": "Insere um registro", - "description": "Insere um registro", - "operationId": "Post", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo esta disponivel com todos parametros", - "minimalVersion": "12.1.32" - } - ] - }, - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - } - ], - "requestBody": { - "description": "Objeto para inserir um registro", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" - } - } - } - }, - "responses": { - "200": { - "description": "Registro inserido com sucesso", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" - } - } - } - }, - "400": { - "description": "Erro no momento da alteração", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - } - }, - "/specialized-medical-report/{code}": { - "get": { - "tags": [ - "specialized-medical-report" - ], - "summary": "Recupera um registro", - "description": "Recupera um registro", - "operationId": "GetOne", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo está disponível com todos os parâmetros.", - "minimalVersion": "12.1.32" - } - ] - }, - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Expand" - }, - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Fields" - }, - { - "$ref": "#/components/parameters/code" - } - ], - "responses": { - "200": { - "description": "Registro recuperado com sucesso", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" - } - } - } - }, - "404": { - "description": "Erro no momento da recuperação do registro.", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - }, - "put": { - "tags": [ - "specialized-medical-report" - ], - "summary": "Atualiza um registro", - "description": "Atualiza um registro", - "operationId": "Put", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo esta disponivel com todos parametros", - "minimalVersion": "12.1.32" - } - ] - }, - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - }, - { - "$ref": "#/components/parameters/code", - "required": "true" - } - ], - "requestBody": { - "description": "Objeto para atualizar registro", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" - } - } - } - }, - "responses": { - "200": { - "description": "Registro atualizado com sucesso", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" - } - } - } - }, - "400": { - "description": "Erro no momento da alteração", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - }, - "delete": { - "tags": [ - "specialized-medical-report" - ], - "summary": "Exclui um registro", - "x-totvs": { - "productInformation": [ - { - "product": "RM", - "available": true, - "note": "Este verbo esta disponivel com todos parametros", - "minimalVersion": "12.1.32" - } - ] - }, - "description": "Exclui um registro", - "operationId": "Delete", - "parameters": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" - }, - { - "$ref": "#/components/parameters/code" - } - ], - "responses": { - "200": { - "description": "Registro excluído com sucesso" - }, - "400": { - "description": "Erro no momento da exclusão do registro.", - "content": { - "application/json": { - "schema": { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" - } - } - } - } - } - } - } - }, - "components": { - "parameters": { - "code": { - "name": "code", - "in": "path", - "description": "Código da coligada, ID da LME", - "required": true, - "schema": { - "type": "string" - } - } - }, - "schemas": {} - } -} \ No newline at end of file + "openapi": "3.0.1", + "servers": [ + { + "description": "API de LME - Laudo de medicamento especializado", + "url": "{{host}}/api/hcg/v1", + "variables": { + "serverUrl": { + "default": "localhost" + }, + "serverHttpPort": { + "default": "8051" + } + } + } + ], + "info": { + "description": "API de LME - Laudo de medicamento especializado", + "version": "1.000", + "title": "LME - Laudo de medicamento especializado", + "contact": { + "name": "T-Talk", + "url": "api.totvs.com.br", + "email": "comiteintegracao@totvs.com.br" + }, + "x-totvs": { + "messageDocumentation": { + "name": "specialized-medical-report", + "description": "LME - Laudo de medicamento especializado", + "segment": "Saúde" + }, + "productInformation": [ + { + "product": "RM", + "contact": "", + "description": "LME - Laudo de medicamento especializado", + "adapter": "", + "helpUrl": "" + } + ] + } + }, + "paths": { + "/specialized-medical-report": { + "get": { + "tags": [ + "specialized-medical-report" + ], + "summary": "Listagem de registros", + "description": "Retorna uma lista de registros", + "operationId": "GetAll", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo está disponível com todos os parâmetros", + "minimalVersion": "12.1.32" + } + ] + }, + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Order" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Page" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/PageSize" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Fields" + } + ], + "responses": { + "200": { + "description": "Registros recuperados com sucesso", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/Pagedspecialized-medical-report" + } + } + } + }, + "404": { + "description": "Erro no momento da recuperação dos registros.", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + }, + "post": { + "tags": [ + "specialized-medical-report" + ], + "summary": "Insere um registro", + "description": "Insere um registro", + "operationId": "Post", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo esta disponivel com todos parametros", + "minimalVersion": "12.1.32" + } + ] + }, + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + } + ], + "requestBody": { + "description": "Objeto para inserir um registro", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" + } + } + } + }, + "responses": { + "200": { + "description": "Registro inserido com sucesso", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" + } + } + } + }, + "400": { + "description": "Erro no momento da alteração", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + } + }, + "/specialized-medical-report/{code}": { + "get": { + "tags": [ + "specialized-medical-report" + ], + "summary": "Recupera um registro", + "description": "Recupera um registro", + "operationId": "GetOne", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo está disponível com todos os parâmetros.", + "minimalVersion": "12.1.32" + } + ] + }, + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Expand" + }, + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Fields" + }, + { + "$ref": "#/components/parameters/code" + } + ], + "responses": { + "200": { + "description": "Registro recuperado com sucesso", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" + } + } + } + }, + "404": { + "description": "Erro no momento da recuperação do registro.", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + }, + "put": { + "tags": [ + "specialized-medical-report" + ], + "summary": "Atualiza um registro", + "description": "Atualiza um registro", + "operationId": "Put", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo esta disponivel com todos parametros", + "minimalVersion": "12.1.32" + } + ] + }, + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + }, + { + "$ref": "#/components/parameters/code", + "required": "true" + } + ], + "requestBody": { + "description": "Objeto para atualizar registro", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" + } + } + } + }, + "responses": { + "200": { + "description": "Registro atualizado com sucesso", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/SpecializedMedicalReport/v1/1_000/jsonschema/schemas/SpecializedMedicalReport_1_000.json#/definitions/specialized-medical-report" + } + } + } + }, + "400": { + "description": "Erro no momento da alteração", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + }, + "delete": { + "tags": [ + "specialized-medical-report" + ], + "summary": "Exclui um registro", + "x-totvs": { + "productInformation": [ + { + "product": "RM", + "available": true, + "note": "Este verbo esta disponivel com todos parametros", + "minimalVersion": "12.1.32" + } + ] + }, + "description": "Exclui um registro", + "operationId": "Delete", + "parameters": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/parameters/Authorization" + }, + { + "$ref": "#/components/parameters/code" + } + ], + "responses": { + "200": { + "description": "Registro excluído com sucesso" + }, + "400": { + "description": "Erro no momento da exclusão do registro.", + "content": { + "application/json": { + "schema": { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/ErrorModel" + } + } + } + } + } + } + } + }, + "components": { + "parameters": { + "code": { + "name": "code", + "in": "path", + "description": "Código da coligada, ID da LME", + "required": true, + "schema": { + "type": "string" + } + } + }, + "schemas": {} + } +} From 3695a3f6cc0ed0d5bf1087f36a1b687729cfdc67 Mon Sep 17 00:00:00 2001 From: Nathan Amorim Date: Wed, 23 Jun 2021 13:40:18 -0300 Subject: [PATCH 3/4] Delete SpecializedMedicalReport_1_000.json --- .../SpecializedMedicalReport_1_000.json | 384 ------------------ 1 file changed, 384 deletions(-) delete mode 100644 jsonschema/schemas/SpecializedMedicalReport_1_000.json diff --git a/jsonschema/schemas/SpecializedMedicalReport_1_000.json b/jsonschema/schemas/SpecializedMedicalReport_1_000.json deleted file mode 100644 index 4e0c65c13..000000000 --- a/jsonschema/schemas/SpecializedMedicalReport_1_000.json +++ /dev/null @@ -1,384 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReport_1_000.json#", - "info": { - "description": "LME - Laudo de medicamento especializado", - "version": "1.000", - "title": "LME - Laudo de medicamento especializado", - "contact": "", - "x-totvs": { - "messageDocumentation": { - "name": "specialized-medical-report", - "description": "LME - Laudo de medicamento especializado", - "segment": "Saúde" - } - } - }, - "definitions": { - "Pagedspecialized-medical-report": { - "type": "object", - "allOf": [ - { - "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/Paging" - }, - { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/specialized-medical-report" - } - } - } - } - ] - }, - "specialized-medical-report": { - "type": "object", - "properties": { - "code": { - "description": "Identificador do registro", - "required": false, - "type": "string", - "x-totvs": [ - { - "product": "RM", - "field": "[SZSUSLME.CODCOLIGADA,SZSUSLME.IDLME]", - "required": true, - "type": "String", - "available": true, - "canUpdate": false - } - ] - }, - "companyId": { - "description": "Código da coligada", - "required": true, - "type": "integer", - "format": "int16", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.CODCOLIGADA", - "required": true, - "type": "smallint", - "available": true, - "canUpdate": false - } - ] - }, - "lmeId": { - "description": "ID da LME", - "required": true, - "type": "integer", - "format": "int32", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.IDLME", - "required": true, - "type": "int", - "available": true, - "canUpdate": false - } - ] - }, - "patientAccountNumber": { - "description": "Número da conta do paciente", - "required": true, - "type": "string", - "maxLength": 14, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.NUMEROCONTA", - "required": true, - "type": "varchar", - "length": 14, - "available": true, - "canUpdate": true - } - ] - }, - "patientAccountSequence": { - "description": "Número sequencial da conta do paciente", - "required": true, - "type": "integer", - "format": "int32", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.SEQUENCIALCONTA", - "required": true, - "type": "int", - "available": true, - "canUpdate": true - } - ] - }, - "releaseDate": { - "description": "Data de Lançamento", - "required": true, - "type": "string", - "format": "date-time", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.DATALANC", - "required": true, - "type": "datetime", - "available": true, - "canUpdate": true - } - ] - }, - "weight": { - "description": "Peso do Paciente", - "required": true, - "type": "number", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.PESO", - "required": true, - "type": "decimal", - "available": true, - "canUpdate": true - } - ] - }, - "height": { - "description": "Altura do paciente", - "required": true, - "type": "number", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.ALTURA", - "required": true, - "type": "decimal", - "available": true, - "canUpdate": true - } - ] - }, - "cid": { - "description": "Código Internacional Doença", - "required": true, - "type": "string", - "maxLength": 4, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.CID", - "required": true, - "type": "varchar", - "length": 4, - "available": true, - "canUpdate": true - } - ] - }, - "medicalDiagnostic": { - "description": "Diagnóstico Médico", - "required": false, - "type": "string", - "maxLength": 255, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.DIAGNOSTICO", - "required": false, - "type": "varchar", - "length": 255, - "available": true, - "canUpdate": true - } - ] - }, - "anamnese": { - "description": "Anamnese", - "required": true, - "type": "string", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.ANAMNESE", - "required": true, - "type": "text", - "available": true, - "canUpdate": true - } - ] - }, - "treatment": { - "description": "Tratamentos", - "required": true, - "type": "boolean", - "maxLength": 1, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.TRATAMENTO", - "required": true, - "type": "char", - "length": 1, - "available": true, - "canUpdate": true - } - ] - }, - "treatmentDescription": { - "description": "Descrição do Tratamento", - "required": false, - "type": "string", - "maxLength": 500, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.DESCTRATAMENTO", - "required": false, - "type": "varchar", - "length": 500, - "available": true, - "canUpdate": true - } - ] - }, - "certificate": { - "description": "Atestado", - "required": true, - "type": "boolean", - "maxLength": 1, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.ATESTADO", - "required": true, - "type": "char", - "length": 1, - "available": true, - "canUpdate": true - } - ] - }, - "providerCode": { - "description": "Código Prestador", - "required": true, - "type": "integer", - "format": "int32", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.CODPRESTADOR", - "required": true, - "type": "int", - "available": true, - "canUpdate": true - } - ] - }, - "requestDate": { - "description": "Data Solicitação", - "required": true, - "type": "string", - "format": "date-time", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.DATASOLICITACAO", - "required": true, - "type": "datetime", - "available": true, - "canUpdate": true - } - ] - }, - "accountable": { - "description": "Responsável Preenchimento", - "required": true, - "type": "string", - "maxLength": 1, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.RESPPREENCHIMENTO", - "required": true, - "type": "char", - "length": 1, - "available": true, - "canUpdate": true - } - ] - }, - "accountableName": { - "description": "Nome Responsável Preenchimento", - "required": false, - "type": "string", - "maxLength": 255, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.RESPPREENCHIMENTONOME", - "required": false, - "type": "varchar", - "length": 255, - "available": true, - "canUpdate": true - } - ] - }, - "accountableDocument": { - "description": "CPF Responsável Preenchimento", - "required": false, - "type": "string", - "maxLength": 11, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.RESPPREENCHIMENTOCPF", - "required": false, - "type": "varchar", - "length": 11, - "available": true, - "canUpdate": true - } - ] - }, - "printed": { - "description": "Impresso", - "required": false, - "type": "boolean", - "maxLength": 1, - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.IMPRESSO", - "required": false, - "type": "char", - "length": 1, - "available": true, - "canUpdate": true - } - ] - }, - "emissaoDate": { - "description": "Data Emissão", - "required": false, - "type": "string", - "format": "date-time", - "x-totvs": [ - { - "product": "RM", - "field": "SZSUSLME.DATAEMISSAO", - "required": false, - "type": "datetime", - "available": true, - "canUpdate": true - } - ] - } - } - } - } -} \ No newline at end of file From 70ab363066e09932c19b05e71ed6264c5a0e81ff Mon Sep 17 00:00:00 2001 From: Nathan Amorim Date: Wed, 23 Jun 2021 13:40:55 -0300 Subject: [PATCH 4/4] Create SpecializedMedicalReport_1_000.json --- .../SpecializedMedicalReport_1_000.json | 384 ++++++++++++++++++ 1 file changed, 384 insertions(+) create mode 100644 jsonschema/schemas/SpecializedMedicalReport_1_000.json diff --git a/jsonschema/schemas/SpecializedMedicalReport_1_000.json b/jsonschema/schemas/SpecializedMedicalReport_1_000.json new file mode 100644 index 000000000..4e0c65c13 --- /dev/null +++ b/jsonschema/schemas/SpecializedMedicalReport_1_000.json @@ -0,0 +1,384 @@ +{ + "$schema": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/schemas/SpecializedMedicalReport_1_000.json#", + "info": { + "description": "LME - Laudo de medicamento especializado", + "version": "1.000", + "title": "LME - Laudo de medicamento especializado", + "contact": "", + "x-totvs": { + "messageDocumentation": { + "name": "specialized-medical-report", + "description": "LME - Laudo de medicamento especializado", + "segment": "Saúde" + } + } + }, + "definitions": { + "Pagedspecialized-medical-report": { + "type": "object", + "allOf": [ + { + "$ref": "https://raw.githubusercontent.com/totvs/ttalk-standard-message/master/jsonschema/apis/types/totvsApiTypesBase.json#/definitions/Paging" + }, + { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/specialized-medical-report" + } + } + } + } + ] + }, + "specialized-medical-report": { + "type": "object", + "properties": { + "code": { + "description": "Identificador do registro", + "required": false, + "type": "string", + "x-totvs": [ + { + "product": "RM", + "field": "[SZSUSLME.CODCOLIGADA,SZSUSLME.IDLME]", + "required": true, + "type": "String", + "available": true, + "canUpdate": false + } + ] + }, + "companyId": { + "description": "Código da coligada", + "required": true, + "type": "integer", + "format": "int16", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.CODCOLIGADA", + "required": true, + "type": "smallint", + "available": true, + "canUpdate": false + } + ] + }, + "lmeId": { + "description": "ID da LME", + "required": true, + "type": "integer", + "format": "int32", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.IDLME", + "required": true, + "type": "int", + "available": true, + "canUpdate": false + } + ] + }, + "patientAccountNumber": { + "description": "Número da conta do paciente", + "required": true, + "type": "string", + "maxLength": 14, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.NUMEROCONTA", + "required": true, + "type": "varchar", + "length": 14, + "available": true, + "canUpdate": true + } + ] + }, + "patientAccountSequence": { + "description": "Número sequencial da conta do paciente", + "required": true, + "type": "integer", + "format": "int32", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.SEQUENCIALCONTA", + "required": true, + "type": "int", + "available": true, + "canUpdate": true + } + ] + }, + "releaseDate": { + "description": "Data de Lançamento", + "required": true, + "type": "string", + "format": "date-time", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.DATALANC", + "required": true, + "type": "datetime", + "available": true, + "canUpdate": true + } + ] + }, + "weight": { + "description": "Peso do Paciente", + "required": true, + "type": "number", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.PESO", + "required": true, + "type": "decimal", + "available": true, + "canUpdate": true + } + ] + }, + "height": { + "description": "Altura do paciente", + "required": true, + "type": "number", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.ALTURA", + "required": true, + "type": "decimal", + "available": true, + "canUpdate": true + } + ] + }, + "cid": { + "description": "Código Internacional Doença", + "required": true, + "type": "string", + "maxLength": 4, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.CID", + "required": true, + "type": "varchar", + "length": 4, + "available": true, + "canUpdate": true + } + ] + }, + "medicalDiagnostic": { + "description": "Diagnóstico Médico", + "required": false, + "type": "string", + "maxLength": 255, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.DIAGNOSTICO", + "required": false, + "type": "varchar", + "length": 255, + "available": true, + "canUpdate": true + } + ] + }, + "anamnese": { + "description": "Anamnese", + "required": true, + "type": "string", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.ANAMNESE", + "required": true, + "type": "text", + "available": true, + "canUpdate": true + } + ] + }, + "treatment": { + "description": "Tratamentos", + "required": true, + "type": "boolean", + "maxLength": 1, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.TRATAMENTO", + "required": true, + "type": "char", + "length": 1, + "available": true, + "canUpdate": true + } + ] + }, + "treatmentDescription": { + "description": "Descrição do Tratamento", + "required": false, + "type": "string", + "maxLength": 500, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.DESCTRATAMENTO", + "required": false, + "type": "varchar", + "length": 500, + "available": true, + "canUpdate": true + } + ] + }, + "certificate": { + "description": "Atestado", + "required": true, + "type": "boolean", + "maxLength": 1, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.ATESTADO", + "required": true, + "type": "char", + "length": 1, + "available": true, + "canUpdate": true + } + ] + }, + "providerCode": { + "description": "Código Prestador", + "required": true, + "type": "integer", + "format": "int32", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.CODPRESTADOR", + "required": true, + "type": "int", + "available": true, + "canUpdate": true + } + ] + }, + "requestDate": { + "description": "Data Solicitação", + "required": true, + "type": "string", + "format": "date-time", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.DATASOLICITACAO", + "required": true, + "type": "datetime", + "available": true, + "canUpdate": true + } + ] + }, + "accountable": { + "description": "Responsável Preenchimento", + "required": true, + "type": "string", + "maxLength": 1, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.RESPPREENCHIMENTO", + "required": true, + "type": "char", + "length": 1, + "available": true, + "canUpdate": true + } + ] + }, + "accountableName": { + "description": "Nome Responsável Preenchimento", + "required": false, + "type": "string", + "maxLength": 255, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.RESPPREENCHIMENTONOME", + "required": false, + "type": "varchar", + "length": 255, + "available": true, + "canUpdate": true + } + ] + }, + "accountableDocument": { + "description": "CPF Responsável Preenchimento", + "required": false, + "type": "string", + "maxLength": 11, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.RESPPREENCHIMENTOCPF", + "required": false, + "type": "varchar", + "length": 11, + "available": true, + "canUpdate": true + } + ] + }, + "printed": { + "description": "Impresso", + "required": false, + "type": "boolean", + "maxLength": 1, + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.IMPRESSO", + "required": false, + "type": "char", + "length": 1, + "available": true, + "canUpdate": true + } + ] + }, + "emissaoDate": { + "description": "Data Emissão", + "required": false, + "type": "string", + "format": "date-time", + "x-totvs": [ + { + "product": "RM", + "field": "SZSUSLME.DATAEMISSAO", + "required": false, + "type": "datetime", + "available": true, + "canUpdate": true + } + ] + } + } + } + } +} \ No newline at end of file