{
 "openapi": "3.1.0",
 "info": {
  "title": "Order Entry (CPOE) (EHR)",
  "version": "20261030b",
  "description": "Orders run through decision support before they are written. A contraindication stops the order unless it is overridden with a reason."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/ehr/cpoe/order": {
   "post": {
    "summary": "Order",
    "operationId": "action_cpoe_0_5",
    "description": "Body keys: dose, route, frequency, durationDays, quantity, refills, instructions, patientId*, encounterId, orderType, providerId, priority, procedureId*, formularyId*, overrideReason, clinicalNotes, indication; priority one of routine|urgent|stat|timed; tests: [{ trim }]",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ehr/cpoe/order-set": {
   "post": {
    "summary": "Order set",
    "operationId": "action_cpoe_0_5",
    "description": "Body keys: patientId*, orderSetId, providerId, encounterId, exclude",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}