@RestController
@RequestMapping(value="/ingreso")
public class IngresoResource
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private IngresoService |
ingresoService |
| Constructor and Description |
|---|
IngresoResource(IngresoService ingresoService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<IngresoDTO> |
getIngresoById(int id) |
org.springframework.http.ResponseEntity<java.util.List<IngresoDTO>> |
getIngresoByPacienteDoc(java.lang.String doc) |
org.springframework.http.ResponseEntity<java.util.List<IngresoDTO>> |
getIngresoByPacienteNombre(java.lang.String nombre) |
org.springframework.http.ResponseEntity<Message> |
liberarCamaEnIngreso(int ing,
java.security.Principal usuario) |
org.springframework.http.ResponseEntity<Ingreso> |
TrasladoCamaEnIngreso(int ing,
java.lang.String cama,
java.security.Principal usuario) |
private final IngresoService ingresoService
public IngresoResource(IngresoService ingresoService)
@GetMapping(value="/find/id={id}")
public org.springframework.http.ResponseEntity<IngresoDTO> getIngresoById(@PathVariable(value="id")
int id)
@GetMapping(value="/find/documento={doc}")
public org.springframework.http.ResponseEntity<java.util.List<IngresoDTO>> getIngresoByPacienteDoc(@PathVariable(value="doc")
java.lang.String doc)
@GetMapping(value="/find/nombre={nombre}")
public org.springframework.http.ResponseEntity<java.util.List<IngresoDTO>> getIngresoByPacienteNombre(@PathVariable(value="nombre")
java.lang.String nombre)
@PutMapping(value="traslado/ingreso={ing}/cama={cama}")
public org.springframework.http.ResponseEntity<Ingreso> TrasladoCamaEnIngreso(@PathVariable(value="ing")
int ing,
@PathVariable(value="cama")
java.lang.String cama,
java.security.Principal usuario)
@PutMapping(value="liberar/ingreso={ing}")
public org.springframework.http.ResponseEntity<Message> liberarCamaEnIngreso(@PathVariable(value="ing")
int ing,
java.security.Principal usuario)