GET api/Prescriptions/ByMedicationHistoryId?Id={Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of PrescriptionListView
NameDescriptionTypeAdditional information
Id

integer

None.

OwnerId

integer

None.

FarmId

integer

None.

BatchInfoId

integer

None.

MedicationHistory

integer

None.

Disease

string

None.

Suggestion

string

None.

ReportingAt

date

None.

PrescribedBy

integer

None.

ActiveStatus

boolean

None.

CreatedAt

date

None.

UpdatedAt

date

None.

DeletedAt

date

None.

DeletedBy

integer

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

DeletedStatus

boolean

None.

BuyStatus

boolean

None.

FarmTitle

string

None.

FarmAddress

string

None.

BatchInfo

string

None.

MedicationHistoryTitle

string

None.

DoctorName

string

None.

DoctorOrganization

string

None.

DoctorDesignation

string

None.

DoctorInstitutes

string

None.

DoctorDegree

string

None.

BirdTypeTitle

string

None.

BatchAge

integer

None.

BirdCount

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "OwnerId": 2,
    "FarmId": 3,
    "BatchInfoId": 4,
    "MedicationHistory": 5,
    "Disease": "sample string 6",
    "Suggestion": "sample string 7",
    "ReportingAt": "2025-12-06T10:23:14.4366692+06:00",
    "PrescribedBy": 9,
    "ActiveStatus": true,
    "CreatedAt": "2025-12-06T10:23:14.4366692+06:00",
    "UpdatedAt": "2025-12-06T10:23:14.4366692+06:00",
    "DeletedAt": "2025-12-06T10:23:14.4366692+06:00",
    "DeletedBy": 13,
    "CreatedBy": 14,
    "UpdatedBy": 15,
    "DeletedStatus": true,
    "BuyStatus": true,
    "FarmTitle": "sample string 18",
    "FarmAddress": "sample string 19",
    "BatchInfo": "sample string 20",
    "MedicationHistoryTitle": "sample string 21",
    "DoctorName": "sample string 22",
    "DoctorOrganization": "sample string 23",
    "DoctorDesignation": "sample string 24",
    "DoctorInstitutes": "sample string 25",
    "DoctorDegree": "sample string 26",
    "BirdTypeTitle": "sample string 27",
    "BatchAge": 28,
    "BirdCount": 29
  },
  {
    "Id": 1,
    "OwnerId": 2,
    "FarmId": 3,
    "BatchInfoId": 4,
    "MedicationHistory": 5,
    "Disease": "sample string 6",
    "Suggestion": "sample string 7",
    "ReportingAt": "2025-12-06T10:23:14.4366692+06:00",
    "PrescribedBy": 9,
    "ActiveStatus": true,
    "CreatedAt": "2025-12-06T10:23:14.4366692+06:00",
    "UpdatedAt": "2025-12-06T10:23:14.4366692+06:00",
    "DeletedAt": "2025-12-06T10:23:14.4366692+06:00",
    "DeletedBy": 13,
    "CreatedBy": 14,
    "UpdatedBy": 15,
    "DeletedStatus": true,
    "BuyStatus": true,
    "FarmTitle": "sample string 18",
    "FarmAddress": "sample string 19",
    "BatchInfo": "sample string 20",
    "MedicationHistoryTitle": "sample string 21",
    "DoctorName": "sample string 22",
    "DoctorOrganization": "sample string 23",
    "DoctorDesignation": "sample string 24",
    "DoctorInstitutes": "sample string 25",
    "DoctorDegree": "sample string 26",
    "BirdTypeTitle": "sample string 27",
    "BatchAge": 28,
    "BirdCount": 29
  }
]

application/xml, text/xml

Sample:
<ArrayOfPrescriptionListView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.ViewModels">
  <PrescriptionListView>
    <ActiveStatus>true</ActiveStatus>
    <BatchAge>28</BatchAge>
    <BatchInfo>sample string 20</BatchInfo>
    <BatchInfoId>4</BatchInfoId>
    <BirdCount>29</BirdCount>
    <BirdTypeTitle>sample string 27</BirdTypeTitle>
    <BuyStatus>true</BuyStatus>
    <CreatedAt>2025-12-06T10:23:14.4366692+06:00</CreatedAt>
    <CreatedBy>14</CreatedBy>
    <DeletedAt>2025-12-06T10:23:14.4366692+06:00</DeletedAt>
    <DeletedBy>13</DeletedBy>
    <DeletedStatus>true</DeletedStatus>
    <Disease>sample string 6</Disease>
    <DoctorDegree>sample string 26</DoctorDegree>
    <DoctorDesignation>sample string 24</DoctorDesignation>
    <DoctorInstitutes>sample string 25</DoctorInstitutes>
    <DoctorName>sample string 22</DoctorName>
    <DoctorOrganization>sample string 23</DoctorOrganization>
    <FarmAddress>sample string 19</FarmAddress>
    <FarmId>3</FarmId>
    <FarmTitle>sample string 18</FarmTitle>
    <Id>1</Id>
    <MedicationHistory>5</MedicationHistory>
    <MedicationHistoryTitle>sample string 21</MedicationHistoryTitle>
    <OwnerId>2</OwnerId>
    <PrescribedBy>9</PrescribedBy>
    <ReportingAt>2025-12-06T10:23:14.4366692+06:00</ReportingAt>
    <Suggestion>sample string 7</Suggestion>
    <UpdatedAt>2025-12-06T10:23:14.4366692+06:00</UpdatedAt>
    <UpdatedBy>15</UpdatedBy>
  </PrescriptionListView>
  <PrescriptionListView>
    <ActiveStatus>true</ActiveStatus>
    <BatchAge>28</BatchAge>
    <BatchInfo>sample string 20</BatchInfo>
    <BatchInfoId>4</BatchInfoId>
    <BirdCount>29</BirdCount>
    <BirdTypeTitle>sample string 27</BirdTypeTitle>
    <BuyStatus>true</BuyStatus>
    <CreatedAt>2025-12-06T10:23:14.4366692+06:00</CreatedAt>
    <CreatedBy>14</CreatedBy>
    <DeletedAt>2025-12-06T10:23:14.4366692+06:00</DeletedAt>
    <DeletedBy>13</DeletedBy>
    <DeletedStatus>true</DeletedStatus>
    <Disease>sample string 6</Disease>
    <DoctorDegree>sample string 26</DoctorDegree>
    <DoctorDesignation>sample string 24</DoctorDesignation>
    <DoctorInstitutes>sample string 25</DoctorInstitutes>
    <DoctorName>sample string 22</DoctorName>
    <DoctorOrganization>sample string 23</DoctorOrganization>
    <FarmAddress>sample string 19</FarmAddress>
    <FarmId>3</FarmId>
    <FarmTitle>sample string 18</FarmTitle>
    <Id>1</Id>
    <MedicationHistory>5</MedicationHistory>
    <MedicationHistoryTitle>sample string 21</MedicationHistoryTitle>
    <OwnerId>2</OwnerId>
    <PrescribedBy>9</PrescribedBy>
    <ReportingAt>2025-12-06T10:23:14.4366692+06:00</ReportingAt>
    <Suggestion>sample string 7</Suggestion>
    <UpdatedAt>2025-12-06T10:23:14.4366692+06:00</UpdatedAt>
    <UpdatedBy>15</UpdatedBy>
  </PrescriptionListView>
</ArrayOfPrescriptionListView>