POST PlanCare2Api/MedicalIntoxicationTobacco

Insert MedicalIntoxicationTobacco.

Relation(s) must be of the following type: Client

Requires 'Insert' permission for function MedicalIntoxicationTobacco {579E3587-91BB-44F9-AD7D-BABC85B1E17D}

Request Information

URI Parameters

None.

Body Parameters

MedicalIntoxicationTobacco.

MedicalIntoxicationTobacco
NameDescriptionTypeAdditional information
StartDate

StartDate.

date

None

StopDate

StopDate.

date

None

MedicalCodeTobaccoStatusId

Id of MedicalCodeTobaccoStatus (MedicalCodeListType.TobaccoStatus).

globally unique identifier

None

MedicalCodeTobaccoTypeUserId

Id of MedicalCodeTobaccoTypeUser (MedicalCodeListType.TobaccoTypeUser).

globally unique identifier

None

Amount

Amount.

integer

None

PackYears

PackYears.

integer

None

Remarks

Remarks.

string

None

Id

Id of the registration.

integer

None

RelationId

Id of the relation which the registration belongs to.

integer

Required

RegistrationDateTime

DateTime of measurement.

date

Required

Source

Source of registration (example: name of the questionnaire).

string

None

Request Formats

application/json, text/json

Sample:
{
  "StartDate": "2026-05-26T21:11:17.13584+02:00",
  "StopDate": "2026-05-26T21:11:17.13584+02:00",
  "MedicalCodeTobaccoStatusId": "8fb542d9-10f6-4ae3-91d0-7b22f2fbf44c",
  "MedicalCodeTobaccoTypeUserId": "054cf2bd-460b-45c0-9e2f-da42cabceeef",
  "Amount": 1,
  "PackYears": 1,
  "Remarks": "sample string 2",
  "Id": 3,
  "RelationId": 4,
  "RegistrationDateTime": "2026-05-26T21:11:17.13584+02:00",
  "Source": "sample string 6"
}

application/xml, text/xml

Sample:
<MedicalIntoxicationTobacco xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface.Medical">
  <Id>3</Id>
  <RegistrationDateTime>2026-05-26T21:11:17.13584+02:00</RegistrationDateTime>
  <RelationId>4</RelationId>
  <Source>sample string 6</Source>
  <Amount>1</Amount>
  <MedicalCodeTobaccoStatusId>8fb542d9-10f6-4ae3-91d0-7b22f2fbf44c</MedicalCodeTobaccoStatusId>
  <MedicalCodeTobaccoTypeUserId>054cf2bd-460b-45c0-9e2f-da42cabceeef</MedicalCodeTobaccoTypeUserId>
  <PackYears>1</PackYears>
  <Remarks>sample string 2</Remarks>
  <StartDate>2026-05-26T21:11:17.13584+02:00</StartDate>
  <StopDate>2026-05-26T21:11:17.13584+02:00</StopDate>
</MedicalIntoxicationTobacco>

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None

Content

HttpContent

None

StatusCode

HttpStatusCode

None

ReasonPhrase

string

None

Headers

Collection of Object

None

RequestMessage

HttpRequestMessage

None

IsSuccessStatusCode

boolean

None