POST api/Salud/NuevoTratamiento

Request Information

URI Parameters

None.

Body Parameters

tratamientos
NameDescriptionTypeAdditional information
idEmpresa

globally unique identifier

None.

idTratamiento

integer

None.

idEvento

integer

None.

consecutivo

integer

None.

idMedicamento

integer

None.

fechaProgramado

date

None.

fechaRealizado

date

None.

idUsuarioRealizo

integer

None.

observaciones

string

None.

idTrabajadorSuministro

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "idEmpresa": "1f3271cd-9c19-4d41-9716-50387d1650c1",
  "idTratamiento": 2,
  "idEvento": 3,
  "consecutivo": 4,
  "idMedicamento": 1,
  "fechaProgramado": "2025-01-21T22:52:18.2988026-08:00",
  "fechaRealizado": "2025-01-21T22:52:18.2988026-08:00",
  "idUsuarioRealizo": 1,
  "observaciones": "sample string 6",
  "idTrabajadorSuministro": 1
}

application/xml, text/xml

Sample:
<tratamientos xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GF.WS">
  <consecutivo>4</consecutivo>
  <fechaProgramado>2025-01-21T22:52:18.2988026-08:00</fechaProgramado>
  <fechaRealizado>2025-01-21T22:52:18.2988026-08:00</fechaRealizado>
  <idEmpresa>1f3271cd-9c19-4d41-9716-50387d1650c1</idEmpresa>
  <idEvento>3</idEvento>
  <idMedicamento>1</idMedicamento>
  <idTrabajadorSuministro>1</idTrabajadorSuministro>
  <idTratamiento>2</idTratamiento>
  <idUsuarioRealizo>1</idUsuarioRealizo>
  <observaciones>sample string 6</observaciones>
</tratamientos>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idEmpresa"

1f3271cd-9c19-4d41-9716-50387d1650c1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idTratamiento"

2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idEvento"

3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="consecutivo"

4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idMedicamento"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="fechaProgramado"

2025-01-21T22:52:18.2988026-08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="fechaRealizado"

2025-01-21T22:52:18.2988026-08:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idUsuarioRealizo"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="observaciones"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="idTrabajadorSuministro"

1
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""

System.Object
--MultipartDataMediaFormatterBoundary1q2w3e--