Creates a new External Prescription record. External Prescription resource in the Animal Health Data Store
Reference to the animal for which the prescription was written.
Reference to the consult/visit associated with this prescription.
Reference to the client/owner contact associated with this prescription.
Canonical identifier for the external prescription.
External system reference or identifier for this prescription (e.g., pharmacy system ID).
Reference to the user (veterinarian) who prescribed the medication.
- Mock serverhttps://docs.axiomera.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/external-prescription
- Local Developmenthttp://localhost:8083/site/{siteId}/ahds/v1/external-prescription
curl -i -X POST \
'https://docs.axiomera.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/external-prescription' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"animalId": "123e4567-e89b-12d3-a456-426614174000",
"consultId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"extensions": {},
"externalPrescriptionId": "123e4567-e89b-12d3-a456-426614174000",
"externalReference": "123e4567-e89b-12d3-a456-426614174000",
"items": [
{
"class": "example",
"code": {
"code": "12345",
"system": "http://example.com/codesystem",
"display": "Example Display Name"
},
"createdAt": "2025-01-01T00:00:00.000Z",
"diagnosticDefinitionId": "123e4567-e89b-12d3-a456-426614174000",
"diagnosticItemId": "123e4567-e89b-12d3-a456-426614174000",
"isActive": true,
"name": "Example Name",
"productId": "123e4567-e89b-12d3-a456-426614174000",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"prescribingVetUserId": "123e4567-e89b-12d3-a456-426614174000",
"totalPrice": {},
"prescribedAt": "2025-01-01T00:00:00.000Z"
}'External Prescription created successfully
Reference to the animal for which the prescription was written.
Reference to the consult/visit associated with this prescription.
Reference to the client/owner contact associated with this prescription.
Timestamp when the external prescription record was created.
Canonical identifier for the external prescription.
External system reference or identifier for this prescription (e.g., pharmacy system ID).
Reference to the user (veterinarian) who prescribed the medication.
Timestamp when the external prescription record was last updated.
{ "animalId": "123e4567-e89b-12d3-a456-426614174000", "consultId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "externalPrescriptionId": "123e4567-e89b-12d3-a456-426614174000", "externalReference": "123e4567-e89b-12d3-a456-426614174000", "items": [ { … } ], "prescribingVetUserId": "123e4567-e89b-12d3-a456-426614174000", "totalPrice": {}, "updatedAt": "2025-01-01T00:00:00.000Z", "prescribedAt": "2025-01-01T00:00:00.000Z" }