Skip to main content

Disease

The PostAddDisease endpoint is responsible for registering a new disease in the MIMS system.


How to register a disease

HTTP POST Request

Request TypeExample URL
POST{{url_base}}/PostAddDisease
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddDisease"

Input Parameters

ParameterTypeRequiredDescription
BranchNoString(25)YesExternal code of the branch
DiseaseNoString(25)YesExternal code of the disease
DiseaseNameString(40)YesDisease name
NotesString(2000)NoNotes about the disease
SymptomsString(2000)NoDisease symptoms
DiseaseTypeNoString(25)NoExternal code of the disease type
OverwriteIfExistsBooleanNoFlag indicating that data should be overwritten if the record already exists

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution
DiseaseCodeIntegerYesInternal disease code generated in the MIMS system

Request Example

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddDisease"' \
--header 'Content-Type: application/json' \
--data '{
"BranchNo": "FIL001",
"DiseaseNo": "DOE001",
"DiseaseName": "Doença Exemplo",
"Notes": "Observações sobre a doença",
"Symptoms": "Sintomas da doença",
"DiseaseTypeNo": "DT001",
"OverwriteIfExists": true
}'

Response Example

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"DiseaseCode": 456
}

🐞 Possible Errors

CodeMessage
ADE‑001The provided "DiseaseNo" already exists!