{"openapi":"3.0.3","info":{"title":"API n.Call","version":"1.0.0","description":"API para integração hospitalar do n.Call com pacientes, registros, locais de internação, movimentações, leitos, quartos, unidades, enfermeiros e procedimentos. Autenticação por APIKey fixa enviada no header Authorization no formato Bearer {APIKey}; não há endpoint de geração de token JWT nesta versão."},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/Sistemas-Weby/nCall/1.0.0"},{"url":"https://chamaenfermagem.sistemasweby.com.br/api","description":"Homologação n.Call"},{"url":"https://saas.chamarenfermeira.com.br/api","description":"Produção SAAS n.Call"},{"url":"https://hqa.chamarenfermeira.com.br/api","description":"Produçao HQA"}],"components":{"securitySchemes":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Informe no formato: Bearer {APIKey}. A APIKey é a chave fixa configurada no application.ini em rest_key. Não existe endpoint de token JWT nesta versão."}},"parameters":{"IdPath":{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},"PageQuery":{"name":"page","in":"query","required":false,"schema":{"type":"integer","example":1},"description":"Página da listagem, quando suportado."},"SearchQuery":{"name":"search","in":"query","required":false,"schema":{"type":"string"},"description":"Texto para pesquisa, quando suportado."}},"responses":{"Unauthorized":{"description":"Não autorizado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"erro":{"value":{"error":"Erro na autenticação: APIKey não fornecida"}}}}}},"Forbidden":{"description":"Acesso negado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"erro":{"value":{"error":"Acesso negado para esta operação"}}}}}},"NotFound":{"description":"Não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"erro":{"value":{"error":"Registro não encontrado"}}}}}},"BadRequest":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"erro":{"value":{"error":"Dados inválidos ou incompletos"}}}}}},"ServerError":{"description":"Erro interno do servidor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"erro":{"value":{"error":"Erro interno ao processar a solicitação"}}}}}}},"schemas":{"ErrorResponse":{"type":"object","properties":{"error":{"type":"string","example":"Erro na autenticação: APIKey inválida"},"message":{"type":"string","example":"Registro não encontrado"}}},"DefaultResponse":{"type":"object","properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"Operação realizada com sucesso"}}},"PacienteBase":{"type":"object","properties":{"prontuario":{"type":"string","example":"123456"},"nome":{"type":"string","example":"Paciente Teste"},"data_nascimento":{"type":"string","format":"date","nullable":false,"example":"1980-05-20"},"acompanhante":{"type":"integer","example":2},"celular":{"type":"string","example":"11999999999"},"status":{"type":"integer","example":1},"system_unit_id":{"type":"integer","example":1}}},"PacienteCreate":{"allOf":[{"$ref":"#/components/schemas/PacienteBase"}]},"PacienteUpdate":{"allOf":[{"$ref":"#/components/schemas/PacienteBase"}]},"PacienteResponse":{"allOf":[{"type":"object","properties":{"id":{"type":"integer","example":1}}},{"$ref":"#/components/schemas/PacienteBase"}]},"PacienteListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PacienteResponse"}},"meta":{"type":"object","nullable":true,"properties":{"total":{"type":"integer","example":1},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1}}}}},"RegistroBase":{"type":"object","properties":{"data_internacao":{"type":"string","format":"date","nullable":false,"example":"2026-07-07"},"hora_internacao":{"type":"string","nullable":false,"example":"08:30:00"},"paciente_id":{"type":"integer","example":1},"medico_responsavel":{"type":"string","example":"Dr. João Silva"},"data_alta":{"type":"string","format":"date","nullable":true,"example":null},"hora_alta":{"type":"string","nullable":true,"example":null},"system_unit_id":{"type":"integer","example":1}}},"RegistroCreate":{"allOf":[{"$ref":"#/components/schemas/RegistroBase"}],"required":["system_unit_id"]},"RegistroUpdate":{"allOf":[{"$ref":"#/components/schemas/RegistroBase"}]},"RegistroResponse":{"allOf":[{"type":"object","properties":{"id":{"type":"integer","example":1}}},{"$ref":"#/components/schemas/RegistroBase"}]},"RegistroListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RegistroResponse"}},"meta":{"type":"object","nullable":true,"properties":{"total":{"type":"integer","example":1},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1}}}}},"LeitoBase":{"type":"object","properties":{"unidade_internacao_id":{"type":"integer","example":1},"quarto_id":{"type":"integer","example":101},"nome":{"type":"string","example":"Paciente Teste"},"sigla":{"type":"string","example":"UTI"},"status":{"type":"integer","example":1},"token":{"type":"string","example":"LT_1_101"}}},"LeitoCreate":{"allOf":[{"$ref":"#/components/schemas/LeitoBase"}]},"LeitoUpdate":{"allOf":[{"$ref":"#/components/schemas/LeitoBase"}]},"LeitoResponse":{"allOf":[{"type":"object","properties":{"id":{"type":"integer","example":1}}},{"$ref":"#/components/schemas/LeitoBase"}]},"LeitoListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LeitoResponse"}},"meta":{"type":"object","nullable":true,"properties":{"total":{"type":"integer","example":1},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1}}}}},"QuartoBase":{"type":"object","properties":{"unidade_internacao_id":{"type":"integer","example":1},"nome":{"type":"string","example":"Paciente Teste"},"sigla":{"type":"string","example":"UTI"},"status":{"type":"integer","example":1}}},"QuartoCreate":{"allOf":[{"$ref":"#/components/schemas/QuartoBase"}],"required":["unidade_internacao_id","nome","sigla"]},"QuartoUpdate":{"allOf":[{"$ref":"#/components/schemas/QuartoBase"}]},"QuartoResponse":{"allOf":[{"type":"object","properties":{"id":{"type":"integer","example":1}}},{"$ref":"#/components/schemas/QuartoBase"}]},"QuartoListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/QuartoResponse"}},"meta":{"type":"object","nullable":true,"properties":{"total":{"type":"integer","example":1},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1}}}}},"UnidadeInternacaoBase":{"type":"object","properties":{"nome":{"type":"string","example":"Paciente Teste"},"sigla":{"type":"string","example":"UTI"},"status":{"type":"integer","example":1},"system_unit_id":{"type":"integer","example":1}}},"UnidadeInternacaoCreate":{"allOf":[{"$ref":"#/components/schemas/UnidadeInternacaoBase"}]},"UnidadeInternacaoUpdate":{"allOf":[{"$ref":"#/components/schemas/UnidadeInternacaoBase"}]},"UnidadeInternacaoResponse":{"allOf":[{"type":"object","properties":{"id":{"type":"integer","example":1}}},{"$ref":"#/components/schemas/UnidadeInternacaoBase"}]},"UnidadeInternacaoListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UnidadeInternacaoResponse"}},"meta":{"type":"object","nullable":true,"properties":{"total":{"type":"integer","example":1},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1}}}}},"EnfermeiroBase":{"type":"object","properties":{"nome":{"type":"string","example":"Paciente Teste"},"cpf":{"type":"string","example":"000.000.000-00"},"coren":{"type":"string","example":"123456"},"uf_coren":{"type":"string","example":"SP"},"categoria_id":{"type":"integer","example":1},"foto":{"type":"string","example":null,"nullable":true},"status":{"type":"integer","example":1},"system_unit_id":{"type":"integer","example":1},"usuario_id":{"type":"integer","example":3}}},"EnfermeiroCreate":{"allOf":[{"$ref":"#/components/schemas/EnfermeiroBase"}],"required":["nome","coren","system_unit_id"]},"EnfermeiroUpdate":{"allOf":[{"$ref":"#/components/schemas/EnfermeiroBase"}]},"EnfermeiroResponse":{"allOf":[{"type":"object","properties":{"id":{"type":"integer","example":1}}},{"$ref":"#/components/schemas/EnfermeiroBase"}]},"EnfermeiroListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EnfermeiroResponse"}},"meta":{"type":"object","nullable":true,"properties":{"total":{"type":"integer","example":1},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1}}}}},"ProcedimentoBase":{"type":"object","properties":{"codigo":{"type":"string","example":"PROC001"},"descricao":{"type":"string","example":"Troca de soro"},"prioridade_triagem":{"type":"integer","example":1},"status":{"type":"integer","example":1}}},"ProcedimentoCreate":{"allOf":[{"$ref":"#/components/schemas/ProcedimentoBase"}],"required":["descricao","prioridade_triagem"]},"ProcedimentoUpdate":{"allOf":[{"$ref":"#/components/schemas/ProcedimentoBase"}]},"ProcedimentoResponse":{"allOf":[{"type":"object","properties":{"id":{"type":"integer","example":1}}},{"$ref":"#/components/schemas/ProcedimentoBase"}]},"ProcedimentoListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProcedimentoResponse"}},"meta":{"type":"object","nullable":true,"properties":{"total":{"type":"integer","example":1},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1}}}}},"MovimentacaoPacienteBase":{"type":"object","properties":{"data_movimento":{"type":"string","format":"date","nullable":false,"example":"2026-07-07"},"registro_id":{"type":"integer","example":1001},"unidade_internacao_id":{"type":"integer","example":1},"quarto_id":{"type":"integer","example":101},"leito_id":{"type":"integer","example":1},"status":{"type":"integer","example":1}}},"MovimentacaoPacienteCreate":{"allOf":[{"$ref":"#/components/schemas/MovimentacaoPacienteBase"}],"required":["data_movimento","registro_id","unidade_internacao_id","quarto_id","leito_id"]},"MovimentacaoPacienteUpdate":{"allOf":[{"$ref":"#/components/schemas/MovimentacaoPacienteBase"}]},"MovimentacaoPacienteResponse":{"allOf":[{"type":"object","properties":{"id":{"type":"integer","example":1}}},{"$ref":"#/components/schemas/MovimentacaoPacienteBase"}]},"MovimentacaoPacienteListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MovimentacaoPacienteResponse"}},"meta":{"type":"object","nullable":true,"properties":{"total":{"type":"integer","example":1},"per_page":{"type":"integer","example":15},"current_page":{"type":"integer","example":1}}}}},"RegistroLocalInternacaoCreate":{"allOf":[{"$ref":"#/components/schemas/RegistroCreate"},{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/MovimentacaoPacienteCreate"}}},"required":["details"]}]},"RegistroLocalInternacaoUpdate":{"allOf":[{"$ref":"#/components/schemas/RegistroUpdate"},{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/MovimentacaoPacienteUpdate"}}}}]},"RegistroLocalInternacaoResponse":{"allOf":[{"$ref":"#/components/schemas/RegistroResponse"},{"type":"object","properties":{"details":{"type":"array","items":{"$ref":"#/components/schemas/MovimentacaoPacienteResponse"}}}}]},"RegistroLocalInternacaoListResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RegistroLocalInternacaoResponse"}}}}}},"security":[{"apiKeyAuth":[]}],"tags":[{"name":"Pacientes"},{"name":"Registros"},{"name":"Leitos"},{"name":"Quartos"},{"name":"Unidades de Internação"},{"name":"Enfermeiros"},{"name":"Procedimentos"},{"name":"Movimentações dos Pacientes"},{"name":"Registro Local de Internação"}],"paths":{"/paciente/":{"get":{"tags":["Pacientes"],"summary":"Listar pacientes","parameters":[{"$ref":"#/components/parameters/PageQuery"},{"$ref":"#/components/parameters/SearchQuery"}],"responses":{"200":{"description":"Lista de pacientes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacienteListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Pacientes"],"summary":"Criar paciente","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacienteCreate"}}}},"responses":{"201":{"description":"Criado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacienteResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/paciente/{id}":{"get":{"tags":["Pacientes"],"summary":"Detalhar paciente","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacienteResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Pacientes"],"summary":"Atualizar paciente","parameters":[{"$ref":"#/components/parameters/IdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacienteUpdate"}}}},"responses":{"200":{"description":"Atualizado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PacienteResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Pacientes"],"summary":"Remover paciente","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"204":{"description":"Removido com sucesso"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/registro/":{"get":{"tags":["Registros"],"summary":"Listar registro de internaçãos","parameters":[{"$ref":"#/components/parameters/PageQuery"},{"$ref":"#/components/parameters/SearchQuery"}],"responses":{"200":{"description":"Lista de registro de internaçãos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Registros"],"summary":"Criar registro de internação","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroCreate"}}}},"responses":{"201":{"description":"Criado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/registro/{id}":{"get":{"tags":["Registros"],"summary":"Detalhar registro de internação","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Registros"],"summary":"Atualizar registro de internação","parameters":[{"$ref":"#/components/parameters/IdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroUpdate"}}}},"responses":{"200":{"description":"Atualizado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Registros"],"summary":"Remover registro de internação","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"204":{"description":"Removido com sucesso"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/leito/":{"get":{"tags":["Leitos"],"summary":"Listar leitos","parameters":[{"$ref":"#/components/parameters/PageQuery"},{"$ref":"#/components/parameters/SearchQuery"}],"responses":{"200":{"description":"Lista de leitos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeitoListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Leitos"],"summary":"Criar leito","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeitoCreate"}}}},"responses":{"201":{"description":"Criado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeitoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/leito/{id}":{"get":{"tags":["Leitos"],"summary":"Detalhar leito","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeitoResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Leitos"],"summary":"Atualizar leito","parameters":[{"$ref":"#/components/parameters/IdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeitoUpdate"}}}},"responses":{"200":{"description":"Atualizado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeitoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Leitos"],"summary":"Remover leito","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"204":{"description":"Removido com sucesso"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/quarto/":{"get":{"tags":["Quartos"],"summary":"Listar quartos","parameters":[{"$ref":"#/components/parameters/PageQuery"},{"$ref":"#/components/parameters/SearchQuery"}],"responses":{"200":{"description":"Lista de quartos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuartoListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Quartos"],"summary":"Criar quarto","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuartoCreate"}}}},"responses":{"201":{"description":"Criado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuartoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/quarto/{id}":{"get":{"tags":["Quartos"],"summary":"Detalhar quarto","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuartoResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Quartos"],"summary":"Atualizar quarto","parameters":[{"$ref":"#/components/parameters/IdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuartoUpdate"}}}},"responses":{"200":{"description":"Atualizado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuartoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Quartos"],"summary":"Remover quarto","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"204":{"description":"Removido com sucesso"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/unidadeinternacao/":{"get":{"tags":["Unidades de Internação"],"summary":"Listar unidade de internaçãos","parameters":[{"$ref":"#/components/parameters/PageQuery"},{"$ref":"#/components/parameters/SearchQuery"}],"responses":{"200":{"description":"Lista de unidade de internaçãos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnidadeInternacaoListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Unidades de Internação"],"summary":"Criar unidade de internação","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnidadeInternacaoCreate"}}}},"responses":{"201":{"description":"Criado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnidadeInternacaoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/unidadeinternacao/{id}":{"get":{"tags":["Unidades de Internação"],"summary":"Detalhar unidade de internação","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnidadeInternacaoResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Unidades de Internação"],"summary":"Atualizar unidade de internação","parameters":[{"$ref":"#/components/parameters/IdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnidadeInternacaoUpdate"}}}},"responses":{"200":{"description":"Atualizado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnidadeInternacaoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Unidades de Internação"],"summary":"Remover unidade de internação","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"204":{"description":"Removido com sucesso"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/enfermeiro/":{"get":{"tags":["Enfermeiros"],"summary":"Listar enfermeiros","parameters":[{"$ref":"#/components/parameters/PageQuery"},{"$ref":"#/components/parameters/SearchQuery"}],"responses":{"200":{"description":"Lista de enfermeiros","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnfermeiroListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Enfermeiros"],"summary":"Criar enfermeiro","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnfermeiroCreate"}}}},"responses":{"201":{"description":"Criado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnfermeiroResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/enfermeiro/{id}":{"get":{"tags":["Enfermeiros"],"summary":"Detalhar enfermeiro","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnfermeiroResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Enfermeiros"],"summary":"Atualizar enfermeiro","parameters":[{"$ref":"#/components/parameters/IdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnfermeiroUpdate"}}}},"responses":{"200":{"description":"Atualizado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnfermeiroResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Enfermeiros"],"summary":"Remover enfermeiro","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"204":{"description":"Removido com sucesso"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/procedimento/":{"get":{"tags":["Procedimentos"],"summary":"Listar procedimentos","parameters":[{"$ref":"#/components/parameters/PageQuery"},{"$ref":"#/components/parameters/SearchQuery"}],"responses":{"200":{"description":"Lista de procedimentos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcedimentoListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Procedimentos"],"summary":"Criar procedimento","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcedimentoCreate"}}}},"responses":{"201":{"description":"Criado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcedimentoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/procedimento/{id}":{"get":{"tags":["Procedimentos"],"summary":"Detalhar procedimento","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcedimentoResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Procedimentos"],"summary":"Atualizar procedimento","parameters":[{"$ref":"#/components/parameters/IdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcedimentoUpdate"}}}},"responses":{"200":{"description":"Atualizado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcedimentoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Procedimentos"],"summary":"Remover procedimento","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"204":{"description":"Removido com sucesso"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/movimentacaopaciente/":{"get":{"tags":["Movimentações dos Pacientes"],"summary":"Listar movimentação do pacientes","parameters":[{"$ref":"#/components/parameters/PageQuery"},{"$ref":"#/components/parameters/SearchQuery"}],"responses":{"200":{"description":"Lista de movimentação do pacientes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovimentacaoPacienteListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Movimentações dos Pacientes"],"summary":"Criar movimentação do paciente","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovimentacaoPacienteCreate"}}}},"responses":{"201":{"description":"Criado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovimentacaoPacienteResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/movimentacaopaciente/{id}":{"get":{"tags":["Movimentações dos Pacientes"],"summary":"Detalhar movimentação do paciente","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovimentacaoPacienteResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Movimentações dos Pacientes"],"summary":"Atualizar movimentação do paciente","parameters":[{"$ref":"#/components/parameters/IdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovimentacaoPacienteUpdate"}}}},"responses":{"200":{"description":"Atualizado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovimentacaoPacienteResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Movimentações dos Pacientes"],"summary":"Remover movimentação do paciente","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"204":{"description":"Removido com sucesso"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/registrolocalinternacao/":{"get":{"tags":["Registro Local de Internação"],"summary":"Listar registro local de internaçãos","parameters":[{"$ref":"#/components/parameters/PageQuery"},{"$ref":"#/components/parameters/SearchQuery"}],"responses":{"200":{"description":"Lista de registro local de internaçãos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroLocalInternacaoListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}},"post":{"tags":["Registro Local de Internação"],"summary":"Criar registro local de internação","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroLocalInternacaoCreate"}}}},"responses":{"201":{"description":"Criado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroLocalInternacaoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/registrolocalinternacao/{id}":{"get":{"tags":["Registro Local de Internação"],"summary":"Detalhar registro local de internação","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroLocalInternacaoResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"put":{"tags":["Registro Local de Internação"],"summary":"Atualizar registro local de internação","parameters":[{"$ref":"#/components/parameters/IdPath"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroLocalInternacaoUpdate"}}}},"responses":{"200":{"description":"Atualizado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistroLocalInternacaoResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}},"delete":{"tags":["Registro Local de Internação"],"summary":"Remover registro local de internação","parameters":[{"$ref":"#/components/parameters/IdPath"}],"responses":{"204":{"description":"Removido com sucesso"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}}}}