O3-3220: Change ids to uuids in the dispensing endpoint in the stock management backend module #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket: https://openmrs.atlassian.net/browse/O3-3220
Request Body
`
{
"dispenseItems": [
{
"dispenseLocation": "3ec8ff90-3ec1-408e-bf8c-22e4553d6e17",
"patient": "1c2a0874-f8f1-485e-a669-19ce08c74768",
"order": "bead7b5d-72f3-4ca7-9b1c-6825153e396a",
"encounter": "2c22fbce-b2de-48bc-ad31-40e13c105e3e",
"stockItem": "bcb19d60-b637-486c-b360-75f25909e533",
"stockBatch": "5fe2d225-be70-4270-bc12-375f39e9903e",
"stockItemPackagingUOM":"a35b1fac-894f-4e92-a5df-1b7e5039353b",
"quantity": 20
}
]
}
`
Response Body
`
{
"totalCount": 1,
"pageOfResults": [
{
"locationUuid": "3ec8ff90-3ec1-408e-bf8c-22e4553d6e17",
"patientId": 4891,
"orderId": 264975,
"encounterId": 411533,
"stockItemUuid": "bcb19d60-b637-486c-b360-75f25909e533",
"stockBatchUuid": "5fe2d225-be70-4270-bc12-375f39e9903e",
"quantity": 20,
"stockItemPackagingUOMUuid": "a35b1fac-894f-4e92-a5df-1b7e5039353b"
}
]
}
`
Link to postman collection example: https://documenter.getpostman.com/view/16571605/2s9Y5VUPua#02d3ce1f-ae54-4d11-8223-98d3f058aec9