POST api/Patients/CreatePatient

Request Information

URI Parameters

None.

Body Parameters

CreatePatientRequest
NameDescriptionTypeAdditional information
PatientName

string

None.

Father_Husband_Name

string

None.

GenderId

integer

None.

DOB

date

None.

CNIC

string

None.

Contact

string

None.

Address

string

None.

NCDRegistrationNumber

string

None.

DiagnosisId

integer

None.

ReferralType

integer

None.

DistrictId

integer

None.

DHQId

integer

None.

DivisionalHospitalId

integer

None.

VendorId

integer

None.

ReferredFor

Collection of AppointmentRequest

None.

AppointmentDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "PatientName": "sample string 1",
  "Father_Husband_Name": "sample string 2",
  "GenderId": 3,
  "DOB": "2025-10-26T20:00:24.4648824+05:00",
  "CNIC": "sample string 5",
  "Contact": "sample string 6",
  "Address": "sample string 7",
  "NCDRegistrationNumber": "sample string 8",
  "DiagnosisId": 9,
  "ReferralType": 10,
  "DistrictId": 11,
  "DHQId": 12,
  "DivisionalHospitalId": 13,
  "VendorId": 14,
  "ReferredFor": [
    {
      "DepartmentId": 1,
      "AppointmentDate": "2025-10-26T20:00:24.4678722+05:00"
    },
    {
      "DepartmentId": 1,
      "AppointmentDate": "2025-10-26T20:00:24.4678722+05:00"
    }
  ],
  "AppointmentDate": "2025-10-26T20:00:24.4678722+05:00"
}

application/xml, text/xml

Sample:
<CreatePatientRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PatientReferralsAPI.Models.Patient">
  <Address>sample string 7</Address>
  <AppointmentDate>2025-10-26T20:00:24.4678722+05:00</AppointmentDate>
  <CNIC>sample string 5</CNIC>
  <Contact>sample string 6</Contact>
  <DHQId>12</DHQId>
  <DOB>2025-10-26T20:00:24.4648824+05:00</DOB>
  <DiagnosisId>9</DiagnosisId>
  <DistrictId>11</DistrictId>
  <DivisionalHospitalId>13</DivisionalHospitalId>
  <Father_Husband_Name>sample string 2</Father_Husband_Name>
  <GenderId>3</GenderId>
  <NCDRegistrationNumber>sample string 8</NCDRegistrationNumber>
  <PatientName>sample string 1</PatientName>
  <ReferralType>10</ReferralType>
  <ReferredFor>
    <AppointmentRequest>
      <AppointmentDate>2025-10-26T20:00:24.4678722+05:00</AppointmentDate>
      <DepartmentId>1</DepartmentId>
    </AppointmentRequest>
    <AppointmentRequest>
      <AppointmentDate>2025-10-26T20:00:24.4678722+05:00</AppointmentDate>
      <DepartmentId>1</DepartmentId>
    </AppointmentRequest>
  </ReferredFor>
  <VendorId>14</VendorId>
</CreatePatientRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.