Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

O3-3220: Change ids to uuids in the dispensing endpoint in the stock management backend module #20

Merged
merged 2 commits into from
May 17, 2024

Conversation

slubwama
Copy link
Collaborator

@slubwama slubwama commented May 16, 2024

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

@slubwama slubwama requested a review from akileng56 May 16, 2024 10:57
@slubwama slubwama self-assigned this May 16, 2024
@akileng56
Copy link
Collaborator

LGTM

@akileng56 akileng56 merged commit 6c762e4 into openmrs:master May 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants