Published Demo Workflow — run
failed started
Request
POST https://machpharma.fly.dev/api/v1/orders
{
"medication_requests": {
"name": "Tirzepatide"
},
"patient": {
"first_name": "Pat Smith",
"last_name": "Smith"
}
}
Response · 201
{
"data": {
"machpharma_id": "e6c1231e-8c9e-49e6-bab8-dfb9512e3a1b"
}
}
mac_id = e6c1231e-8c9e-49e6-bab8-dfb9512e3a1b
%Ash.Error.Invalid{bread_crumbs: ["Error returned from: Goodbones.Partners.Pharmacy.OrderFieldValue.set"], changeset: "#Changeset<>", errors: [%Ash.Error.Changes.InvalidAttribute{field: :order_id, message: "is invalid", private_vars: nil, value: "test_1", has_value?: true, splode: Ash.Error, bread_crumbs: ["Error returned from: Goodbones.Partners.Pharmacy.OrderFieldValue.set"], vars: [], path: [], stacktrace: #Splode.Stacktrace<>, class: :invalid}]}