GET api/HealthCentres/HealthCentre/GetHealthCentreDetailsByHealthCentreId?HealthCentreId={HealthCentreId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
HealthCentreId

integer

Required

Body Parameters

None.

Response Information

Resource Description

HealthCentreDetailsViewModel
NameDescriptionTypeAdditional information
HealthCentre

HealthCenterView

None.

Officers

Collection of utblOfficer

None.

SpecialistAvailable

Collection of SpecialistViewModel

None.

ServicesAvailable

Collection of ServicesViewModel

None.

DepartmentsAvailable

Collection of DepartmentViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "HealthCentre": {
    "HealthCentreId": 1,
    "HealthCentreName": "sample string 2",
    "HealthCentreTypeId": 3,
    "HealthCentreTypeName": "sample string 4",
    "DistrictName": "sample string 5",
    "Address": "sample string 6",
    "Email": "sample string 7",
    "Phone": "sample string 8",
    "Latitude": 1.0,
    "Longitude": 1.0,
    "Description": "sample string 9",
    "TransDate": "2025-10-28T01:04:28.5089335+05:30",
    "UserId": "sample string 11"
  },
  "Officers": [
    {
      "OfficerId": 1,
      "OfficerName": "sample string 2",
      "HealthCentreId": 3,
      "TransDate": "2025-10-28T01:04:28.5089335+05:30",
      "UserId": "sample string 5"
    },
    {
      "OfficerId": 1,
      "OfficerName": "sample string 2",
      "HealthCentreId": 3,
      "TransDate": "2025-10-28T01:04:28.5089335+05:30",
      "UserId": "sample string 5"
    }
  ],
  "SpecialistAvailable": [
    {
      "SpecialistId": 1,
      "SpecialistName": "sample string 2",
      "HealthCentreId": 3,
      "TransDate": "2025-10-28T01:04:28.5245548+05:30",
      "UserId": "sample string 5"
    },
    {
      "SpecialistId": 1,
      "SpecialistName": "sample string 2",
      "HealthCentreId": 3,
      "TransDate": "2025-10-28T01:04:28.5245548+05:30",
      "UserId": "sample string 5"
    }
  ],
  "ServicesAvailable": [
    {
      "ServiceId": 1,
      "ServiceName": "sample string 2",
      "HealthCentreId": 3,
      "TransDate": "2025-10-28T01:04:28.5245548+05:30",
      "UserId": "sample string 5"
    },
    {
      "ServiceId": 1,
      "ServiceName": "sample string 2",
      "HealthCentreId": 3,
      "TransDate": "2025-10-28T01:04:28.5245548+05:30",
      "UserId": "sample string 5"
    }
  ],
  "DepartmentsAvailable": [
    {
      "DepartmentId": 1,
      "DepartmentName": "sample string 2",
      "HealthCentreId": 3,
      "TransDate": "2025-10-28T01:04:28.5245548+05:30",
      "UserId": "sample string 5"
    },
    {
      "DepartmentId": 1,
      "DepartmentName": "sample string 2",
      "HealthCentreId": 3,
      "TransDate": "2025-10-28T01:04:28.5245548+05:30",
      "UserId": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<HealthCentreDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/General.Operation.CustomModels">
  <DepartmentsAvailable>
    <DepartmentViewModel>
      <DepartmentId>1</DepartmentId>
      <DepartmentName>sample string 2</DepartmentName>
      <HealthCentreId>3</HealthCentreId>
      <TransDate>2025-10-28T01:04:28.5245548+05:30</TransDate>
      <UserId>sample string 5</UserId>
    </DepartmentViewModel>
    <DepartmentViewModel>
      <DepartmentId>1</DepartmentId>
      <DepartmentName>sample string 2</DepartmentName>
      <HealthCentreId>3</HealthCentreId>
      <TransDate>2025-10-28T01:04:28.5245548+05:30</TransDate>
      <UserId>sample string 5</UserId>
    </DepartmentViewModel>
  </DepartmentsAvailable>
  <HealthCentre>
    <Address>sample string 6</Address>
    <Description>sample string 9</Description>
    <DistrictName>sample string 5</DistrictName>
    <Email>sample string 7</Email>
    <HealthCentreId>1</HealthCentreId>
    <HealthCentreName>sample string 2</HealthCentreName>
    <HealthCentreTypeId>3</HealthCentreTypeId>
    <HealthCentreTypeName>sample string 4</HealthCentreTypeName>
    <Latitude>1</Latitude>
    <Longitude>1</Longitude>
    <Phone>sample string 8</Phone>
    <TransDate>2025-10-28T01:04:28.5089335+05:30</TransDate>
    <UserId>sample string 11</UserId>
  </HealthCentre>
  <Officers xmlns:d2p1="http://schemas.datacontract.org/2004/07/General.Operation.Models">
    <d2p1:utblOfficer>
      <d2p1:HealthCentreId>3</d2p1:HealthCentreId>
      <d2p1:OfficerId>1</d2p1:OfficerId>
      <d2p1:OfficerName>sample string 2</d2p1:OfficerName>
      <d2p1:TransDate>2025-10-28T01:04:28.5089335+05:30</d2p1:TransDate>
      <d2p1:UserId>sample string 5</d2p1:UserId>
    </d2p1:utblOfficer>
    <d2p1:utblOfficer>
      <d2p1:HealthCentreId>3</d2p1:HealthCentreId>
      <d2p1:OfficerId>1</d2p1:OfficerId>
      <d2p1:OfficerName>sample string 2</d2p1:OfficerName>
      <d2p1:TransDate>2025-10-28T01:04:28.5089335+05:30</d2p1:TransDate>
      <d2p1:UserId>sample string 5</d2p1:UserId>
    </d2p1:utblOfficer>
  </Officers>
  <ServicesAvailable>
    <ServicesViewModel>
      <HealthCentreId>3</HealthCentreId>
      <ServiceId>1</ServiceId>
      <ServiceName>sample string 2</ServiceName>
      <TransDate>2025-10-28T01:04:28.5245548+05:30</TransDate>
      <UserId>sample string 5</UserId>
    </ServicesViewModel>
    <ServicesViewModel>
      <HealthCentreId>3</HealthCentreId>
      <ServiceId>1</ServiceId>
      <ServiceName>sample string 2</ServiceName>
      <TransDate>2025-10-28T01:04:28.5245548+05:30</TransDate>
      <UserId>sample string 5</UserId>
    </ServicesViewModel>
  </ServicesAvailable>
  <SpecialistAvailable>
    <SpecialistViewModel>
      <HealthCentreId>3</HealthCentreId>
      <SpecialistId>1</SpecialistId>
      <SpecialistName>sample string 2</SpecialistName>
      <TransDate>2025-10-28T01:04:28.5245548+05:30</TransDate>
      <UserId>sample string 5</UserId>
    </SpecialistViewModel>
    <SpecialistViewModel>
      <HealthCentreId>3</HealthCentreId>
      <SpecialistId>1</SpecialistId>
      <SpecialistName>sample string 2</SpecialistName>
      <TransDate>2025-10-28T01:04:28.5245548+05:30</TransDate>
      <UserId>sample string 5</UserId>
    </SpecialistViewModel>
  </SpecialistAvailable>
</HealthCentreDetailsViewModel>