POST api/collection/insert
Request Information
URI Parameters
None.
Body Parameters
Collection| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| COLLECTION_NO | string |
None. |
|
| COLLECTION_DATE | date |
None. |
|
| COLLECTION_TIME | date |
None. |
|
| REFERENCE_NO | string |
None. |
|
| PATIENT_NAME | string |
None. |
|
| AGE | string |
None. |
|
| SEX | string |
None. |
|
| HOSPITAL_ID | integer |
None. |
|
| UNIT_NAME | string |
None. |
|
| WARD | string |
None. |
|
| UHID | string |
None. |
|
| INCOME | decimal number |
None. |
|
| SPECIMEN | string |
None. |
|
| DESCRIPTION | string |
None. |
|
| DIAGNOSIS | string |
None. |
|
| ANTIBIOTIC_PRESENT | string |
None. |
|
| ANTIBIOTIC_PAST | string |
None. |
|
| INVESTIGATION_ID | integer |
None. |
|
| INVESTIGATION_NAME | string |
None. |
|
| PREVIOUS_RESULT | string |
None. |
|
| OTHERS | string |
None. |
|
| USER_ID | integer |
None. |
|
| DOCTOR_NAME | string |
None. |
|
| DOCTOR_MOBILE | string |
None. |
|
| INVESTIGATION | string |
None. |
|
| SPECIFY_TEST | string |
None. |
|
| REPORT_ID | integer |
None. |
|
| STATUS_ID | integer |
None. |
|
| LAB_ID | string |
None. |
|
| NATURE_OF_SPECIMEN | integer |
None. |
|
| STATUS_NAME | string |
None. |
|
| USER_NAME | string |
None. |
|
| HOSPITAL_NAME | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"COLLECTION_NO": "sample string 2",
"COLLECTION_DATE": "2026-01-21T18:36:41.3831129+01:00",
"COLLECTION_TIME": "2026-01-21T18:36:41.3831129+01:00",
"REFERENCE_NO": "sample string 5",
"PATIENT_NAME": "sample string 6",
"AGE": "sample string 7",
"SEX": "sample string 8",
"HOSPITAL_ID": 9,
"UNIT_NAME": "sample string 10",
"WARD": "sample string 11",
"UHID": "sample string 12",
"INCOME": 13.0,
"SPECIMEN": "sample string 14",
"DESCRIPTION": "sample string 15",
"DIAGNOSIS": "sample string 16",
"ANTIBIOTIC_PRESENT": "sample string 17",
"ANTIBIOTIC_PAST": "sample string 18",
"INVESTIGATION_ID": 19,
"INVESTIGATION_NAME": "sample string 20",
"PREVIOUS_RESULT": "sample string 21",
"OTHERS": "sample string 22",
"USER_ID": 23,
"DOCTOR_NAME": "sample string 24",
"DOCTOR_MOBILE": "sample string 25",
"INVESTIGATION": "sample string 26",
"SPECIFY_TEST": "sample string 27",
"REPORT_ID": 28,
"STATUS_ID": 29,
"LAB_ID": "sample string 30",
"NATURE_OF_SPECIMEN": 31,
"STATUS_NAME": "sample string 32",
"USER_NAME": "sample string 33",
"HOSPITAL_NAME": "sample string 34"
}
application/xml, text/xml
Sample:
<Collection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VEZTA.Models"> <AGE>sample string 7</AGE> <ANTIBIOTIC_PAST>sample string 18</ANTIBIOTIC_PAST> <ANTIBIOTIC_PRESENT>sample string 17</ANTIBIOTIC_PRESENT> <COLLECTION_DATE>2026-01-21T18:36:41.3831129+01:00</COLLECTION_DATE> <COLLECTION_NO>sample string 2</COLLECTION_NO> <COLLECTION_TIME>2026-01-21T18:36:41.3831129+01:00</COLLECTION_TIME> <DESCRIPTION>sample string 15</DESCRIPTION> <DIAGNOSIS>sample string 16</DIAGNOSIS> <DOCTOR_MOBILE>sample string 25</DOCTOR_MOBILE> <DOCTOR_NAME>sample string 24</DOCTOR_NAME> <HOSPITAL_ID>9</HOSPITAL_ID> <HOSPITAL_NAME>sample string 34</HOSPITAL_NAME> <ID>1</ID> <INCOME>13</INCOME> <INVESTIGATION>sample string 26</INVESTIGATION> <INVESTIGATION_ID>19</INVESTIGATION_ID> <INVESTIGATION_NAME>sample string 20</INVESTIGATION_NAME> <LAB_ID>sample string 30</LAB_ID> <NATURE_OF_SPECIMEN>31</NATURE_OF_SPECIMEN> <OTHERS>sample string 22</OTHERS> <PATIENT_NAME>sample string 6</PATIENT_NAME> <PREVIOUS_RESULT>sample string 21</PREVIOUS_RESULT> <REFERENCE_NO>sample string 5</REFERENCE_NO> <REPORT_ID>28</REPORT_ID> <SEX>sample string 8</SEX> <SPECIFY_TEST>sample string 27</SPECIFY_TEST> <SPECIMEN>sample string 14</SPECIMEN> <STATUS_ID>29</STATUS_ID> <STATUS_NAME>sample string 32</STATUS_NAME> <UHID>sample string 12</UHID> <UNIT_NAME>sample string 10</UNIT_NAME> <USER_ID>23</USER_ID> <USER_NAME>sample string 33</USER_NAME> <WARD>sample string 11</WARD> </Collection>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CollectionResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| flag | integer |
None. |
|
| Message | string |
None. |
|
| CollectionData | Collection of Collection |
None. |
Response Formats
application/json, text/json
Sample:
{
"flag": 1,
"Message": "sample string 2",
"CollectionData": [
{
"ID": 1,
"COLLECTION_NO": "sample string 2",
"COLLECTION_DATE": "2026-01-21T18:36:41.3987339+01:00",
"COLLECTION_TIME": "2026-01-21T18:36:41.3987339+01:00",
"REFERENCE_NO": "sample string 5",
"PATIENT_NAME": "sample string 6",
"AGE": "sample string 7",
"SEX": "sample string 8",
"HOSPITAL_ID": 9,
"UNIT_NAME": "sample string 10",
"WARD": "sample string 11",
"UHID": "sample string 12",
"INCOME": 13.0,
"SPECIMEN": "sample string 14",
"DESCRIPTION": "sample string 15",
"DIAGNOSIS": "sample string 16",
"ANTIBIOTIC_PRESENT": "sample string 17",
"ANTIBIOTIC_PAST": "sample string 18",
"INVESTIGATION_ID": 19,
"INVESTIGATION_NAME": "sample string 20",
"PREVIOUS_RESULT": "sample string 21",
"OTHERS": "sample string 22",
"USER_ID": 23,
"DOCTOR_NAME": "sample string 24",
"DOCTOR_MOBILE": "sample string 25",
"INVESTIGATION": "sample string 26",
"SPECIFY_TEST": "sample string 27",
"REPORT_ID": 28,
"STATUS_ID": 29,
"LAB_ID": "sample string 30",
"NATURE_OF_SPECIMEN": 31,
"STATUS_NAME": "sample string 32",
"USER_NAME": "sample string 33",
"HOSPITAL_NAME": "sample string 34"
},
{
"ID": 1,
"COLLECTION_NO": "sample string 2",
"COLLECTION_DATE": "2026-01-21T18:36:41.3987339+01:00",
"COLLECTION_TIME": "2026-01-21T18:36:41.3987339+01:00",
"REFERENCE_NO": "sample string 5",
"PATIENT_NAME": "sample string 6",
"AGE": "sample string 7",
"SEX": "sample string 8",
"HOSPITAL_ID": 9,
"UNIT_NAME": "sample string 10",
"WARD": "sample string 11",
"UHID": "sample string 12",
"INCOME": 13.0,
"SPECIMEN": "sample string 14",
"DESCRIPTION": "sample string 15",
"DIAGNOSIS": "sample string 16",
"ANTIBIOTIC_PRESENT": "sample string 17",
"ANTIBIOTIC_PAST": "sample string 18",
"INVESTIGATION_ID": 19,
"INVESTIGATION_NAME": "sample string 20",
"PREVIOUS_RESULT": "sample string 21",
"OTHERS": "sample string 22",
"USER_ID": 23,
"DOCTOR_NAME": "sample string 24",
"DOCTOR_MOBILE": "sample string 25",
"INVESTIGATION": "sample string 26",
"SPECIFY_TEST": "sample string 27",
"REPORT_ID": 28,
"STATUS_ID": 29,
"LAB_ID": "sample string 30",
"NATURE_OF_SPECIMEN": 31,
"STATUS_NAME": "sample string 32",
"USER_NAME": "sample string 33",
"HOSPITAL_NAME": "sample string 34"
}
]
}
application/xml, text/xml
Sample:
<CollectionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VEZTA.Models">
<CollectionData>
<Collection>
<AGE>sample string 7</AGE>
<ANTIBIOTIC_PAST>sample string 18</ANTIBIOTIC_PAST>
<ANTIBIOTIC_PRESENT>sample string 17</ANTIBIOTIC_PRESENT>
<COLLECTION_DATE>2026-01-21T18:36:41.3987339+01:00</COLLECTION_DATE>
<COLLECTION_NO>sample string 2</COLLECTION_NO>
<COLLECTION_TIME>2026-01-21T18:36:41.3987339+01:00</COLLECTION_TIME>
<DESCRIPTION>sample string 15</DESCRIPTION>
<DIAGNOSIS>sample string 16</DIAGNOSIS>
<DOCTOR_MOBILE>sample string 25</DOCTOR_MOBILE>
<DOCTOR_NAME>sample string 24</DOCTOR_NAME>
<HOSPITAL_ID>9</HOSPITAL_ID>
<HOSPITAL_NAME>sample string 34</HOSPITAL_NAME>
<ID>1</ID>
<INCOME>13</INCOME>
<INVESTIGATION>sample string 26</INVESTIGATION>
<INVESTIGATION_ID>19</INVESTIGATION_ID>
<INVESTIGATION_NAME>sample string 20</INVESTIGATION_NAME>
<LAB_ID>sample string 30</LAB_ID>
<NATURE_OF_SPECIMEN>31</NATURE_OF_SPECIMEN>
<OTHERS>sample string 22</OTHERS>
<PATIENT_NAME>sample string 6</PATIENT_NAME>
<PREVIOUS_RESULT>sample string 21</PREVIOUS_RESULT>
<REFERENCE_NO>sample string 5</REFERENCE_NO>
<REPORT_ID>28</REPORT_ID>
<SEX>sample string 8</SEX>
<SPECIFY_TEST>sample string 27</SPECIFY_TEST>
<SPECIMEN>sample string 14</SPECIMEN>
<STATUS_ID>29</STATUS_ID>
<STATUS_NAME>sample string 32</STATUS_NAME>
<UHID>sample string 12</UHID>
<UNIT_NAME>sample string 10</UNIT_NAME>
<USER_ID>23</USER_ID>
<USER_NAME>sample string 33</USER_NAME>
<WARD>sample string 11</WARD>
</Collection>
<Collection>
<AGE>sample string 7</AGE>
<ANTIBIOTIC_PAST>sample string 18</ANTIBIOTIC_PAST>
<ANTIBIOTIC_PRESENT>sample string 17</ANTIBIOTIC_PRESENT>
<COLLECTION_DATE>2026-01-21T18:36:41.3987339+01:00</COLLECTION_DATE>
<COLLECTION_NO>sample string 2</COLLECTION_NO>
<COLLECTION_TIME>2026-01-21T18:36:41.3987339+01:00</COLLECTION_TIME>
<DESCRIPTION>sample string 15</DESCRIPTION>
<DIAGNOSIS>sample string 16</DIAGNOSIS>
<DOCTOR_MOBILE>sample string 25</DOCTOR_MOBILE>
<DOCTOR_NAME>sample string 24</DOCTOR_NAME>
<HOSPITAL_ID>9</HOSPITAL_ID>
<HOSPITAL_NAME>sample string 34</HOSPITAL_NAME>
<ID>1</ID>
<INCOME>13</INCOME>
<INVESTIGATION>sample string 26</INVESTIGATION>
<INVESTIGATION_ID>19</INVESTIGATION_ID>
<INVESTIGATION_NAME>sample string 20</INVESTIGATION_NAME>
<LAB_ID>sample string 30</LAB_ID>
<NATURE_OF_SPECIMEN>31</NATURE_OF_SPECIMEN>
<OTHERS>sample string 22</OTHERS>
<PATIENT_NAME>sample string 6</PATIENT_NAME>
<PREVIOUS_RESULT>sample string 21</PREVIOUS_RESULT>
<REFERENCE_NO>sample string 5</REFERENCE_NO>
<REPORT_ID>28</REPORT_ID>
<SEX>sample string 8</SEX>
<SPECIFY_TEST>sample string 27</SPECIFY_TEST>
<SPECIMEN>sample string 14</SPECIMEN>
<STATUS_ID>29</STATUS_ID>
<STATUS_NAME>sample string 32</STATUS_NAME>
<UHID>sample string 12</UHID>
<UNIT_NAME>sample string 10</UNIT_NAME>
<USER_ID>23</USER_ID>
<USER_NAME>sample string 33</USER_NAME>
<WARD>sample string 11</WARD>
</Collection>
</CollectionData>
<Message>sample string 2</Message>
<flag>1</flag>
</CollectionResponse>