Published Demo Workflow — run

failed started

← All runs
1. Submit Order → Success completed

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": "f483c222-5afd-4ab0-871b-d8a39e48462f"
  }
}
2. Get Macpharma Id → Parsed completed

mac_id = f483c222-5afd-4ab0-871b-d8a39e48462f

3. Macpharma id → Found completed
4. Record Machpharma Id failed

%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}]}