POST api/PersonalPrescriptionPackage
Request Information
URI Parameters
None.
Body Parameters
PersonalPrescriptionPackage| Name | Description | Type | Additional information |
|---|---|---|---|
| Prescriber | HealthProfessionalBasicInfo |
Required |
|
| PrescriberCabinetCode | string |
Required |
|
| NumberOfPrescriptions | integer |
Required |
|
| PackageID | integer |
None. |
|
| Prescriptions | Collection of PersonalPrescription |
None. |
|
| Message | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"prescriber": {
"username": "sample string 1",
"name": "sample string 2",
"lastName": "sample string 3",
"healthProfessionalCode": "sample string 4",
"title": "sample string 5",
"academyName": "sample string 6"
},
"prescriberCabinetCode": "sample string 1",
"numberOfPrescriptions": 2,
"packageID": 3,
"prescriptions": [
{
"personalPrescriptionID": 1,
"guid": "af72cd4e-7ea9-4782-8457-9824f12610d8",
"status": "sample string 3"
},
{
"personalPrescriptionID": 1,
"guid": "af72cd4e-7ea9-4782-8457-9824f12610d8",
"status": "sample string 3"
}
],
"message": "sample string 4"
}
application/xml, text/xml
Sample:
<PersonalPrescriptionPackage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMedit.eOsa.BDO.API.PersonalPrescription">
<Message>sample string 4</Message>
<NumberOfPrescriptions>2</NumberOfPrescriptions>
<PackageID>3</PackageID>
<Prescriber xmlns:d2p1="http://schemas.datacontract.org/2004/07/eMedit.eOsa.BDO.API.HealthProfessional">
<d2p1:AcademyName>sample string 6</d2p1:AcademyName>
<d2p1:HealthProfessionalCode>sample string 4</d2p1:HealthProfessionalCode>
<d2p1:LastName>sample string 3</d2p1:LastName>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Title>sample string 5</d2p1:Title>
<d2p1:Username>sample string 1</d2p1:Username>
</Prescriber>
<PrescriberCabinetCode>sample string 1</PrescriberCabinetCode>
<Prescriptions>
<PersonalPrescription>
<Guid>af72cd4e-7ea9-4782-8457-9824f12610d8</Guid>
<PersonalPrescriptionID>1</PersonalPrescriptionID>
<Status>sample string 3</Status>
</PersonalPrescription>
<PersonalPrescription>
<Guid>af72cd4e-7ea9-4782-8457-9824f12610d8</Guid>
<PersonalPrescriptionID>1</PersonalPrescriptionID>
<Status>sample string 3</Status>
</PersonalPrescription>
</Prescriptions>
</PersonalPrescriptionPackage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PersonalPrescriptionPackageResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| DateCreated | string |
None. |
|
| PackageID | string |
None. |
|
| ErrorDetails | string |
None. |
|
| Success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"dateCreated": "sample string 1",
"packageID": "sample string 2",
"errorDetails": "sample string 3",
"success": true
}
application/xml, text/xml
Sample:
<PersonalPrescriptionPackageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMedit.eOsa.BDO.API.PersonalPrescription"> <DateCreated>sample string 1</DateCreated> <ErrorDetails>sample string 3</ErrorDetails> <PackageID>sample string 2</PackageID> <Success>true</Success> </PersonalPrescriptionPackageResponse>