POST api/Patients/CreateNewReferral

Request Information

URI Parameters

None.

Body Parameters

NewReferralRequest
NameDescriptionTypeAdditional information
PatientId

integer

None.

DiagnosisId

integer

None.

ReferralType

integer

None.

DistrictId

integer

None.

DHQId

integer

None.

DivisionalHospitalId

integer

None.

ReferredFor

Collection of AppointmentRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "PatientId": 1,
  "DiagnosisId": 2,
  "ReferralType": 3,
  "DistrictId": 4,
  "DHQId": 5,
  "DivisionalHospitalId": 6,
  "ReferredFor": [
    {
      "DepartmentId": 1,
      "AppointmentDate": "2025-10-26T20:03:52.4092427+05:00"
    },
    {
      "DepartmentId": 1,
      "AppointmentDate": "2025-10-26T20:03:52.4092427+05:00"
    }
  ]
}

application/xml, text/xml

Sample:
<NewReferralRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PatientReferralsAPI.Models.Patient">
  <DHQId>5</DHQId>
  <DiagnosisId>2</DiagnosisId>
  <DistrictId>4</DistrictId>
  <DivisionalHospitalId>6</DivisionalHospitalId>
  <PatientId>1</PatientId>
  <ReferralType>3</ReferralType>
  <ReferredFor>
    <AppointmentRequest>
      <AppointmentDate>2025-10-26T20:03:52.4092427+05:00</AppointmentDate>
      <DepartmentId>1</DepartmentId>
    </AppointmentRequest>
    <AppointmentRequest>
      <AppointmentDate>2025-10-26T20:03:52.4092427+05:00</AppointmentDate>
      <DepartmentId>1</DepartmentId>
    </AppointmentRequest>
  </ReferredFor>
</NewReferralRequest>

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.